kivio
kivio_sml_stencil_spawner.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KIVIO_SML_STENCIL_SPAWNER_H
00020 #define KIVIO_SML_STENCIL_SPAWNER_H
00021
00022 #include <qdom.h>
00023 #include <qptrlist.h>
00024 #include <qstring.h>
00025
00026 #include "kivio_stencil_spawner.h"
00027
00028 class KivioStencilSpawnerSet;
00029 class KivioStencil;
00030 class KivioSMLStencil;
00031 class KivioConnectorTarget;
00032 class QPainter;
00033 class QPixmap;
00034 class QRect;
00035
00036 class KivioSMLStencilSpawner : public KivioStencilSpawner
00037 {
00038 protected:
00039 KivioSMLStencil *m_pStencil;
00040 QString m_filename;
00041
00042
00043 QPtrList<KivioConnectorTarget>*m_pTargets;
00044
00045 protected:
00046 void loadShape( QDomNode & );
00047 QString readDesc( const QString & );
00048
00049 public:
00050 KivioSMLStencilSpawner( KivioStencilSpawnerSet * );
00051 virtual ~KivioSMLStencilSpawner();
00052
00053 virtual bool load( const QString & );
00054 virtual bool loadXML( const QString &, QDomDocument & );
00055
00056 virtual QDomElement saveXML( QDomDocument & );
00057
00058 virtual QString &filename() { return m_filename; }
00059
00060 virtual KivioStencil *newStencil();
00061
00062 QPtrList <KivioConnectorTarget> *targets() { return m_pTargets; }
00063 };
00064
00065 #endif
00066
00067
|