summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/kivio_py_stencil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_py_stencil.h')
-rw-r--r--kivio/kiviopart/kiviosdk/kivio_py_stencil.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_py_stencil.h b/kivio/kiviopart/kiviosdk/kivio_py_stencil.h
index 0ee18a5c..44905922 100644
--- a/kivio/kiviopart/kiviosdk/kivio_py_stencil.h
+++ b/kivio/kiviopart/kiviosdk/kivio_py_stencil.h
@@ -28,11 +28,11 @@
#ifdef HAVE_PYTHON
-#include <qptrlist.h>
-#include <qcolor.h>
-#include <qfont.h>
+#include <tqptrlist.h>
+#include <tqcolor.h>
+#include <tqfont.h>
-/* slots gets defined in Qt 3.2 and conflicts with python 2.3 headers */
+/* slots gets defined in TQt 3.2 and conflicts with python 2.3 headers */
#undef slots
#include <Python.h>
#define slots
@@ -52,9 +52,9 @@ public:
virtual ~KivioPyStencil();
- virtual bool loadXML( const QDomElement & );
- virtual QDomElement saveXML( QDomDocument & );
- virtual void loadConnectorTargetListXML( const QDomElement & );
+ virtual bool loadXML( const TQDomElement & );
+ virtual TQDomElement saveXML( TQDomDocument & );
+ virtual void loadConnectorTargetListXML( const TQDomElement & );
virtual void updateGeometry();
virtual KivioStencil *duplicate();
@@ -70,21 +70,21 @@ public:
virtual int generateIds( int );
- virtual QColor fgColor();
- virtual void setFGColor( QColor );
+ virtual TQColor fgColor();
+ virtual void setFGColor( TQColor );
- virtual void setBGColor( QColor );
- virtual QColor bgColor();
+ virtual void setBGColor( TQColor );
+ virtual TQColor bgColor();
virtual void setLineWidth( double );
virtual double lineWidth();
// FOnt stuff
- virtual QColor textColor();
- virtual void setTextColor( QColor );
+ virtual TQColor textColor();
+ virtual void setTextColor( TQColor );
- virtual QFont textFont();
- virtual void setTextFont( const QFont & );
+ virtual TQFont textFont();
+ virtual void setTextFont( const TQFont & );
virtual int hTextAlign();
virtual int vTextAlign();
@@ -92,13 +92,13 @@ public:
virtual void setHTextAlign(int);
virtual void setVTextAlign(int);
- virtual void setText( const QString & );
- virtual QString text();
+ virtual void setText( const TQString & );
+ virtual TQString text();
protected:
PyObject *vars, *globals;
- QString resizeCode; // python code to be runed when resize
+ TQString resizeCode; // python code to be runed when resize
double old_x, old_y, old_w, old_h;
virtual void rescaleShapes( PyObject * ); // find recursive for x,y,w,h in object( dict or list ) and update them
@@ -107,19 +107,19 @@ protected:
* set style settings from dict, return tru if need to use fill... methods or false if draw...
*/
virtual void setStyle( KivioIntraStencilData *d, PyObject *style, int &fillStyle );
- QColor readColor( PyObject *color ); // used by setStyle
+ TQColor readColor( PyObject *color ); // used by setStyle
- QPtrList<KivioConnectorTarget> *m_pConnectorTargets;
+ TQPtrList<KivioConnectorTarget> *m_pConnectorTargets;
/**
* init stencil using initCode, return 1, if ok, or 0 if was some error ( maybe python syntax error )
*/
- int init( QString initCode);
+ int init( TQString initCode);
- int runPython(QString code);
+ int runPython(TQString code);
double getDoubleFromDict( PyObject *dict, const char* key );
- QString getStringFromDict( PyObject *dict, const char* key );
+ TQString getStringFromDict( PyObject *dict, const char* key );
void PyDebug( PyObject * ); // show var
};