#include <kivio_shape_data.h>
Public Types | |
| enum | KivioShapeType { kstNone = 0 , kstArc , kstPie , kstLineArray , kstPolyline , kstPolygon , kstBezier , kstRectangle , kstRoundRectangle , kstEllipse , kstOpenPath , kstClosedPath , kstTextBox } |
Public Member Functions | |
| KivioShapeData (const KivioShapeData &) | |
| virtual void | copyInto (KivioShapeData *pTarget) const |
| virtual bool | loadXML (const TQDomElement &) |
| virtual TQDomElement | saveXML (TQDomDocument &) |
| KivioShapeType | shapeType () const |
| void | setShapeType (KivioShapeType st) |
| TQPtrList< KivioPoint > * | pointList () |
| KivioFillStyle * | fillStyle () const |
| KivioLineStyle * | lineStyle () const |
| void | setLineStyle (KivioLineStyle ls) |
| const TQString & | name () const |
| void | setName (const TQString &newName) |
| KivioPoint * | position () |
| KivioPoint * | dimensions () |
| double | x () |
| double | y () |
| double | w () |
| double | h () |
| TQString | text () |
| void | setText (const TQString &newText) |
| bool | isHtml () const |
| void | setIsHtml (bool b) |
| int | hTextAlign () const |
| void | setHTextAlign (int i) |
| int | vTextAlign () const |
| void | setVTextAlign (int i) |
| TQFont | textFont () |
| void | setTextFont (const TQFont &f) |
| TQColor | textColor () |
| void | setTextColor (TQColor c) |
| void | setTextStyle (KivioTextStyle *) |
Static Public Member Functions | |
| static KivioShapeType | shapeTypeFromString (const TQString &) |
Protected Attributes | |
| TQPtrList< KivioPoint > * | m_pOriginalPointList |
| KivioShapeType | m_shapeType |
| KivioPoint | m_position |
| KivioPoint | m_dimensions |
| KivioFillStyle * | m_pFillStyle |
| KivioLineStyle * | m_pLineStyle |
| TQString | m_name |
| KivioTextStyle * | m_pTextData |
Friends | |
| class | KivioShape |
Detailed Description
A class containing all the data for a KivioShape.
Definition at line 51 of file kivio_shape_data.h.
Member Enumeration Documentation
◆ KivioShapeType
The possible shape types.
Definition at line 57 of file kivio_shape_data.h.
Constructor & Destructor Documentation
◆ KivioShapeData() [1/2]
| KivioShapeData::KivioShapeData | ( | ) |
Definition at line 76 of file kivio_shape_data.cpp.
◆ KivioShapeData() [2/2]
| KivioShapeData::KivioShapeData | ( | const KivioShapeData & | source | ) |
Definition at line 97 of file kivio_shape_data.cpp.
◆ ~KivioShapeData()
|
virtual |
Definition at line 151 of file kivio_shape_data.cpp.
Member Function Documentation
◆ copyInto()
|
virtual |
Definition at line 179 of file kivio_shape_data.cpp.
◆ dimensions()
|
inline |
Definition at line 119 of file kivio_shape_data.h.
◆ fillStyle()
|
inline |
Definition at line 108 of file kivio_shape_data.h.
◆ h()
|
inline |
Definition at line 124 of file kivio_shape_data.h.
◆ hTextAlign()
| int KivioShapeData::hTextAlign | ( | ) | const |
Definition at line 494 of file kivio_shape_data.cpp.
◆ isHtml()
| bool KivioShapeData::isHtml | ( | ) | const |
Definition at line 480 of file kivio_shape_data.cpp.
◆ lineStyle()
|
inline |
Definition at line 109 of file kivio_shape_data.h.
◆ loadXML()
|
virtual |
Load this object from an XML element.
Definition at line 257 of file kivio_shape_data.cpp.
◆ name()
|
inline |
Definition at line 113 of file kivio_shape_data.h.
◆ pointList()
|
inline |
Definition at line 106 of file kivio_shape_data.h.
◆ position()
|
inline |
Definition at line 118 of file kivio_shape_data.h.
◆ saveXML()
|
virtual |
Save this object to an XML element.
Definition at line 358 of file kivio_shape_data.cpp.
◆ setHTextAlign()
| void KivioShapeData::setHTextAlign | ( | int | i | ) |
Definition at line 502 of file kivio_shape_data.cpp.
◆ setIsHtml()
| void KivioShapeData::setIsHtml | ( | bool | b | ) |
Definition at line 488 of file kivio_shape_data.cpp.
◆ setLineStyle()
| void KivioShapeData::setLineStyle | ( | KivioLineStyle | ls | ) |
Definition at line 558 of file kivio_shape_data.cpp.
◆ setName()
|
inline |
Definition at line 114 of file kivio_shape_data.h.
◆ setShapeType()
| void KivioShapeData::setShapeType | ( | KivioShapeType | st | ) |
Definition at line 443 of file kivio_shape_data.cpp.
◆ setText()
| void KivioShapeData::setText | ( | const TQString & | newText | ) |
Definition at line 472 of file kivio_shape_data.cpp.
◆ setTextColor()
| void KivioShapeData::setTextColor | ( | TQColor | c | ) |
Definition at line 544 of file kivio_shape_data.cpp.
◆ setTextFont()
| void KivioShapeData::setTextFont | ( | const TQFont & | f | ) |
Definition at line 530 of file kivio_shape_data.cpp.
◆ setTextStyle()
| void KivioShapeData::setTextStyle | ( | KivioTextStyle * | pStyle | ) |
Definition at line 550 of file kivio_shape_data.cpp.
◆ setVTextAlign()
| void KivioShapeData::setVTextAlign | ( | int | i | ) |
Definition at line 516 of file kivio_shape_data.cpp.
◆ shapeType()
|
inline |
Definition at line 101 of file kivio_shape_data.h.
◆ shapeTypeFromString()
|
static |
Definition at line 431 of file kivio_shape_data.cpp.
◆ text()
| TQString KivioShapeData::text | ( | ) |
Definition at line 464 of file kivio_shape_data.cpp.
◆ textColor()
| TQColor KivioShapeData::textColor | ( | ) |
Definition at line 536 of file kivio_shape_data.cpp.
◆ textFont()
| TQFont KivioShapeData::textFont | ( | ) |
Definition at line 522 of file kivio_shape_data.cpp.
◆ vTextAlign()
| int KivioShapeData::vTextAlign | ( | ) | const |
Definition at line 508 of file kivio_shape_data.cpp.
◆ w()
|
inline |
Definition at line 123 of file kivio_shape_data.h.
◆ x()
|
inline |
Definition at line 121 of file kivio_shape_data.h.
◆ y()
|
inline |
Definition at line 122 of file kivio_shape_data.h.
Friends And Related Symbol Documentation
◆ KivioShape
|
friend |
Definition at line 74 of file kivio_shape_data.h.
Member Data Documentation
◆ m_dimensions
|
protected |
Definition at line 79 of file kivio_shape_data.h.
◆ m_name
|
protected |
Definition at line 86 of file kivio_shape_data.h.
◆ m_pFillStyle
|
protected |
Definition at line 80 of file kivio_shape_data.h.
◆ m_pLineStyle
|
protected |
Definition at line 84 of file kivio_shape_data.h.
◆ m_pOriginalPointList
|
protected |
Definition at line 76 of file kivio_shape_data.h.
◆ m_position
|
protected |
Definition at line 79 of file kivio_shape_data.h.
◆ m_pTextData
|
protected |
Definition at line 88 of file kivio_shape_data.h.
◆ m_shapeType
|
protected |
Definition at line 78 of file kivio_shape_data.h.
The documentation for this class was generated from the following files:
