kivio

KivioSMLStencil Class Reference

Inheritance diagram for KivioSMLStencil:

KivioStencil List of all members.

Detailed Description

Definition at line 36 of file kivio_sml_stencil.h.


Public Member Functions

 KivioSMLStencil ()
virtual ~KivioSMLStencil ()
virtual bool loadXML (const QDomElement &)
virtual QDomElement saveXML (QDomDocument &)
virtual QPtrList< KivioShape > * shapeList ()
virtual KivioShapesubSelection ()
virtual void paintOutline (KivioIntraStencilData *)
virtual void paint (KivioIntraStencilData *)
virtual void paintConnectorTargets (KivioIntraStencilData *)
virtual KivioStencilduplicate ()
virtual QColor fgColor ()
virtual QColor bgColor ()
virtual void setFGColor (QColor)
virtual void setBGColor (QColor)
virtual void setLineWidth (double)
virtual double lineWidth ()
virtual void setLinePattern (int p)
virtual int linePattern ()
virtual void setFillPattern (int p)
virtual int fillPattern ()
virtual void setTextColor (QColor)
virtual void setTextFont (const QFont &)
virtual void setHTextAlign (int)
virtual void setVTextAlign (int)
virtual int hTextAlign ()
virtual int vTextAlign ()
virtual QString text ()
virtual void setText (const QString &)
virtual QFont textFont ()
virtual QColor textColor ()
virtual KivioCollisionType checkForCollision (KoPoint *, double)
virtual KivioConnectorTargetconnectToTarget (KivioConnectorPoint *, double)
virtual KivioConnectorTargetconnectToTarget (KivioConnectorPoint *, int)
virtual KoPoint snapToTarget (const KoPoint &p, double thresh, bool &hit)
virtual void updateGeometry ()
virtual int generateIds (int)
virtual int resizeHandlePositions ()
virtual KivioLineStyle lineStyle ()
virtual void setLineStyle (KivioLineStyle ls)
virtual QString getTextBoxName (const KoPoint &p)
virtual void setText (const QString &text, const QString &name)
virtual QString text (const QString &name)
virtual void addConnectorTarget (const KoPoint &)
virtual void removeConnectorTarget (const KoPoint &)
virtual bool hasTextBox () const
virtual QColor textColor (const QString &textBoxName)
virtual void setTextColor (const QString &textBoxName, const QColor &color)
virtual QFont textFont (const QString &textBoxName)
virtual void setTextFont (const QString &textBoxName, const QFont &font)
virtual int hTextAlign (const QString &textBoxName)
virtual int vTextAlign (const QString &textBoxName)
virtual void setHTextAlign (const QString &textBoxName, int align)
virtual void setVTextAlign (const QString &textBoxName, int align)

Protected Member Functions

void drawOutlineArc (KivioShape *, KivioIntraStencilData *)
void drawOutlineBezier (KivioShape *, KivioIntraStencilData *)
void drawOutlineOpenPath (KivioShape *, KivioIntraStencilData *)
void drawOutlineClosedPath (KivioShape *, KivioIntraStencilData *)
void drawOutlinePie (KivioShape *, KivioIntraStencilData *)
void drawOutlineEllipse (KivioShape *, KivioIntraStencilData *)
void drawOutlineLineArray (KivioShape *, KivioIntraStencilData *)
void drawOutlineRectangle (KivioShape *, KivioIntraStencilData *)
void drawOutlineRoundRectangle (KivioShape *, KivioIntraStencilData *)
void drawOutlinePolygon (KivioShape *, KivioIntraStencilData *)
void drawOutlinePolyline (KivioShape *, KivioIntraStencilData *)
void drawOutlineTextBox (KivioShape *, KivioIntraStencilData *)
void drawArc (KivioShape *, KivioIntraStencilData *)
void drawBezier (KivioShape *, KivioIntraStencilData *)
void drawOpenPath (KivioShape *, KivioIntraStencilData *)
void drawClosedPath (KivioShape *, KivioIntraStencilData *)
void drawPie (KivioShape *, KivioIntraStencilData *)
void drawEllipse (KivioShape *, KivioIntraStencilData *)
void drawLineArray (KivioShape *, KivioIntraStencilData *)
void drawRectangle (KivioShape *, KivioIntraStencilData *)
void drawRoundRectangle (KivioShape *, KivioIntraStencilData *)
void drawPolygon (KivioShape *, KivioIntraStencilData *)
void drawPolyline (KivioShape *, KivioIntraStencilData *)
void drawTextBox (KivioShape *, KivioIntraStencilData *)
bool checkCollisionArc (KivioShape *, KoPoint *)
bool checkCollisionBezier (KivioShape *, KoPoint *)
bool checkCollisionOpenPath (KivioShape *, KoPoint *)
bool checkCollisionClosedPath (KivioShape *, KoPoint *)
bool checkCollisionPie (KivioShape *, KoPoint *)
bool checkCollisionEllipse (KivioShape *, KoPoint *)
bool checkCollisionLineArray (KivioShape *, KoPoint *)
bool checkCollisionRectangle (KivioShape *, KoPoint *)
bool checkCollisionRoundRectangle (KivioShape *, KoPoint *)
bool checkCollisionPolygon (KivioShape *, KoPoint *)
bool checkCollisionPolyline (KivioShape *, KoPoint *)
bool checkCollisionTextBox (KivioShape *, KoPoint *)
KivioShapelocateShape (const QString &)
void loadConnectorTargetListXML (const QDomElement &)

Protected Attributes

QPtrList< KivioShape > * m_pShapeList
KivioShapem_pSubSelection
QPtrList< KivioConnectorTarget > * m_pConnectorTargets
int _xoff
int _yoff
KoZoomHandler * m_zoomHandler

Friends

class KivioSMLStencilSpawner

Constructor & Destructor Documentation

KivioSMLStencil::KivioSMLStencil (  ) 

Default constructor.

Allocates a new shape list, connector targets, and original connector targets.

Definition at line 55 of file kivio_sml_stencil.cpp.

KivioSMLStencil::~KivioSMLStencil (  )  [virtual]

Destructor.

Deletes the allocated objects.

Definition at line 74 of file kivio_sml_stencil.cpp.


Member Function Documentation

QColor KivioSMLStencil::bgColor (  )  [virtual]

Get the bg color of this stencil.

Reimplemented from KivioStencil.

Definition at line 1789 of file kivio_sml_stencil.cpp.

KivioCollisionType KivioSMLStencil::checkForCollision ( KoPoint *  ,
double   
) [virtual]

Check for a collision in this stencil.

Reimplemented from KivioStencil.

Definition at line 1846 of file kivio_sml_stencil.cpp.

KivioConnectorTarget * KivioSMLStencil::connectToTarget ( KivioConnectorPoint p,
int   
) [virtual]

Connects a KivioConnectorPoint to this stencil via targetID.

This function is called during loads, *ONLY* loads.

Reimplemented from KivioStencil.

Definition at line 1531 of file kivio_sml_stencil.cpp.

KivioConnectorTarget * KivioSMLStencil::connectToTarget ( KivioConnectorPoint p,
double  threshHold 
) [virtual]

Attempts to connect a KivioConnectorPoint to this stencil.

This function will attempt to locate a KivioConnectorTarget in this stencil with-in a given threshold. If it finds it, it will connect the point to it, and return the target of the connection.

Reimplemented from KivioStencil.

Definition at line 1466 of file kivio_sml_stencil.cpp.

KivioStencil * KivioSMLStencil::duplicate (  )  [virtual]

Duplicates this object.

Duplicates all aspects of this object except for the stencil connected to the targets.

Reimplemented from KivioStencil.

Definition at line 255 of file kivio_sml_stencil.cpp.

QColor KivioSMLStencil::fgColor (  )  [virtual]

Get the Fg color of a stencil.

Reimplemented from KivioStencil.

Definition at line 1774 of file kivio_sml_stencil.cpp.

int KivioSMLStencil::generateIds ( int   )  [virtual]

Generates the ids for anything needed by this stencil.

Reimplemented from KivioStencil.

Definition at line 1814 of file kivio_sml_stencil.cpp.

QString KivioSMLStencil::getTextBoxName ( const KoPoint &  p  )  [virtual]

Returns the name of the text box that is at.

Parameters:
p. If there exist no text box at
p then it returns QString::null.

Reimplemented from KivioStencil.

Definition at line 2020 of file kivio_sml_stencil.cpp.

bool KivioSMLStencil::hasTextBox (  )  const [virtual]

Returns true if the stencil has a text box.

Reimplemented from KivioStencil.

Definition at line 2127 of file kivio_sml_stencil.cpp.

int KivioSMLStencil::hTextAlign (  )  [virtual]

Get the horizontal alignment of this stencil.

Reimplemented from KivioStencil.

Definition at line 1664 of file kivio_sml_stencil.cpp.

double KivioSMLStencil::lineWidth (  )  [virtual]

Get the line width of this stencil.

Reimplemented from KivioStencil.

Definition at line 1750 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::loadConnectorTargetListXML ( const QDomElement &   )  [protected]

Help function for loading from an XML node.

Definition at line 134 of file kivio_sml_stencil.cpp.

bool KivioSMLStencil::loadXML ( const QDomElement &   )  [virtual]

Loads a KivioSMLStencil from an XML node.

Reimplemented from KivioStencil.

Definition at line 89 of file kivio_sml_stencil.cpp.

KivioShape * KivioSMLStencil::locateShape ( const QString &   )  [protected]

Locates a shape in the shape list by name.

Definition at line 178 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::paint ( KivioIntraStencilData  )  [virtual]

Paints the stencil.

Reimplemented from KivioStencil.

Definition at line 754 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::paintConnectorTargets ( KivioIntraStencilData  )  [virtual]

Paints the connector targets of this stencil.

Reimplemented from KivioStencil.

Definition at line 835 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::paintOutline ( KivioIntraStencilData  )  [virtual]

Paint the outline of the stencil.

Reimplemented from KivioStencil.

Definition at line 303 of file kivio_sml_stencil.cpp.

int KivioSMLStencil::resizeHandlePositions (  )  [virtual]

Return a set of bits representing what resize handles are available.

Reimplemented from KivioStencil.

Definition at line 1976 of file kivio_sml_stencil.cpp.

QDomElement KivioSMLStencil::saveXML ( QDomDocument &   )  [virtual]

Saves this object to an XMLELement.

Reimplemented from KivioStencil.

Definition at line 203 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setBGColor ( QColor   )  [virtual]

Set the bg color of this stencil.

Reimplemented from KivioStencil.

Definition at line 1371 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setFGColor ( QColor   )  [virtual]

Set the fg color of this stencil.

Reimplemented from KivioStencil.

Definition at line 1353 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setHTextAlign ( int   )  [virtual]

Sets the horizontal alignemnt of this stencil.

Reimplemented from KivioStencil.

Definition at line 1626 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setLineWidth ( double   )  [virtual]

Set the line width of this stencil.

Reimplemented from KivioStencil.

Definition at line 1435 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setText ( const QString &   )  [virtual]

Set the text of this stencil.

Reimplemented from KivioStencil.

Definition at line 1730 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setTextColor ( QColor   )  [virtual]

Set the text color of this stencil.

Reimplemented from KivioStencil.

Definition at line 1400 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setTextFont ( const QFont &   )  [virtual]

Set the text font of this stencil.

Reimplemented from KivioStencil.

Definition at line 1417 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::setVTextAlign ( int   )  [virtual]

Set the vertical alignment of this stencil.

Reimplemented from KivioStencil.

Definition at line 1645 of file kivio_sml_stencil.cpp.

QString KivioSMLStencil::text (  )  [virtual]

Get the text of this stencil.

Reimplemented from KivioStencil.

Definition at line 1708 of file kivio_sml_stencil.cpp.

QFont KivioSMLStencil::textFont (  )  [virtual]

Gets the font of this stencil.

Reimplemented from KivioStencil.

Definition at line 1586 of file kivio_sml_stencil.cpp.

void KivioSMLStencil::updateGeometry (  )  [virtual]

Updates the geometry of this stencil.

This function rearranges the KivioConnectorTargets to reflect that of the width/height/position.

Reimplemented from KivioStencil.

Definition at line 1558 of file kivio_sml_stencil.cpp.

int KivioSMLStencil::vTextAlign (  )  [virtual]

Get the vertical text alignment of this stencil.

Reimplemented from KivioStencil.

Definition at line 1686 of file kivio_sml_stencil.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys