kivio
kivio_shape.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KIVIO_SHAPE_H
00020 #define KIVIO_SHAPE_H
00021
00022 #include "kivio_shape_data.h"
00023 #include <qdom.h>
00024
00025
00026 class KivioShape
00027 {
00028 protected:
00029 KivioShapeData m_shapeData;
00030
00031 public:
00032 KivioShape();
00033 KivioShape( const KivioShape & );
00034
00035 virtual ~KivioShape();
00036
00037 void copyInto( KivioShape * ) const;
00038
00039 bool loadXML( const QDomElement & );
00040 QDomElement saveXML( QDomDocument & );
00041
00042 KivioShapeData::KivioShapeType shapeType() { return m_shapeData.shapeType(); }
00043
00044 KivioShapeData *shapeData() { return &m_shapeData; }
00045
00046 static KivioShape *loadShapeArc( const QDomElement & );
00047 static KivioShape *loadShapeClosedPath( const QDomElement & );
00048 static KivioShape *loadShapeBezier( const QDomElement & );
00049 static KivioShape *loadShapeEllipse( const QDomElement & );
00050 static KivioShape *loadShapeLineArray( const QDomElement & );
00051 static KivioShape *loadShapeOpenPath( const QDomElement & );
00052 static KivioShape *loadShapePie( const QDomElement & );
00053 static KivioShape *loadShapePolygon( const QDomElement & );
00054 static KivioShape *loadShapePolyline( const QDomElement & );
00055 static KivioShape *loadShapeRectangle( const QDomElement & );
00056 static KivioShape *loadShapeRoundRectangle( const QDomElement & );
00057 static KivioShape *loadShapeTextBox( const QDomElement & );
00058 };
00059
00060 #endif
00061
00062
|