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