kivio
KivioShape Class Reference
List of all members.Detailed Description
Definition at line 26 of file kivio_shape.h.
Public Member Functions | |
KivioShape () | |
KivioShape (const KivioShape &) | |
virtual | ~KivioShape () |
void | copyInto (KivioShape *) const |
bool | loadXML (const QDomElement &) |
QDomElement | saveXML (QDomDocument &) |
KivioShapeData::KivioShapeType | shapeType () |
KivioShapeData * | shapeData () |
Static Public Member Functions | |
static KivioShape * | loadShapeArc (const QDomElement &) |
static KivioShape * | loadShapeClosedPath (const QDomElement &) |
static KivioShape * | loadShapeBezier (const QDomElement &) |
static KivioShape * | loadShapeEllipse (const QDomElement &) |
static KivioShape * | loadShapeLineArray (const QDomElement &) |
static KivioShape * | loadShapeOpenPath (const QDomElement &) |
static KivioShape * | loadShapePie (const QDomElement &) |
static KivioShape * | loadShapePolygon (const QDomElement &) |
static KivioShape * | loadShapePolyline (const QDomElement &) |
static KivioShape * | loadShapeRectangle (const QDomElement &) |
static KivioShape * | loadShapeRoundRectangle (const QDomElement &) |
static KivioShape * | loadShapeTextBox (const QDomElement &) |
Protected Attributes | |
KivioShapeData | m_shapeData |
Constructor & Destructor Documentation
KivioShape::KivioShape | ( | ) |
KivioShape::KivioShape | ( | const KivioShape & | source | ) |
Copy constructor.
- Parameters:
-
source The object to copy data from
Definition at line 45 of file kivio_shape.cpp.
KivioShape::~KivioShape | ( | ) | [virtual] |
Member Function Documentation
void KivioShape::copyInto | ( | KivioShape * | pTarget | ) | const |
Copy all data into pTarget.
- Parameters:
-
pTarget The target &ref KivioShape to copy into
Definition at line 66 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeArc | ( | const QDomElement & | ) | [static] |
Loads a shape of type arc.
- Parameters:
-
e The element to load from
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 140 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeBezier | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type bezier.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 204 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeClosedPath | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type closed-path.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 152 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeEllipse | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type ellipse.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 266 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeLineArray | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type line-array.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 311 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeOpenPath | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type open-path.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 363 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapePie | ( | const QDomElement & | ) | [static] |
Loads a shape of type pie.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 413 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapePolygon | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type polygon.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 425 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapePolyline | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type polyline.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 477 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeRectangle | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type rectangle.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 525 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeRoundRectangle | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type round rectangle.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 572 of file kivio_shape.cpp.
KivioShape * KivioShape::loadShapeTextBox | ( | const QDomElement & | e | ) | [static] |
Loads a shape of type textbox.
- Parameters:
-
e The element to load from.
- Returns:
- A newly allocated KivioShape, or NULL on error.
Definition at line 624 of file kivio_shape.cpp.
bool KivioShape::loadXML | ( | const QDomElement & | e | ) |
Load this object from an XML element.
- Parameters:
-
e The element to load from
- Returns:
- true on success, false on failure.
Definition at line 81 of file kivio_shape.cpp.
QDomElement KivioShape::saveXML | ( | QDomDocument & | doc | ) |
Save this object to an XML element.
- Parameters:
-
doc The document to save to
- Returns:
- QDomElement representing this object.
Definition at line 119 of file kivio_shape.cpp.
The documentation for this class was generated from the following files: