diff options
Diffstat (limited to 'arts/builder/createtool.h')
-rw-r--r-- | arts/builder/createtool.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/arts/builder/createtool.h b/arts/builder/createtool.h index c8fe0763..15a4b5e7 100644 --- a/arts/builder/createtool.h +++ b/arts/builder/createtool.h @@ -22,8 +22,8 @@ #ifndef _CREATETOOL_H #define _CREATETOOL_H -#include <qwidget.h> -#include <qcursor.h> +#include <tqwidget.h> +#include <tqcursor.h> #include "structure.h" #include "module.h" @@ -41,17 +41,17 @@ public: MWidgetTool(ModuleWidget *mwidget); virtual ~MWidgetTool(); - virtual void mousePressEvent(QMouseEvent *e) = 0; - virtual void mouseMoveEvent(QMouseEvent *e) = 0; - virtual void mouseReleaseEvent(QMouseEvent *e) = 0; + virtual void mousePressEvent(TQMouseEvent *e) = 0; + virtual void mouseMoveEvent(TQMouseEvent *e) = 0; + virtual void mouseReleaseEvent(TQMouseEvent *e) = 0; }; class CreateTool: public MWidgetTool { protected: - QCursor oldCursor; + TQCursor oldCursor; bool oldMouseTracking; - QRect componentRect; + TQRect componentRect; int width, height; public: @@ -61,9 +61,9 @@ public: virtual void estimateSize() = 0; virtual void performCreate(int x, int y) = 0; - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; class CreateModuleTool: public CreateTool @@ -106,27 +106,27 @@ public: class MoveComponentsTool: public MWidgetTool { - QPoint lastPos; + TQPoint lastPos; public: - MoveComponentsTool(ModuleWidget *widget, QMouseEvent *e); + MoveComponentsTool(ModuleWidget *widget, TQMouseEvent *e); - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; class ConnectPortsTool: public MWidgetTool { ModulePort *connectingPort; - QPoint firstPos, lastPos; + TQPoint firstPos, lastPos; public: ConnectPortsTool(ModuleWidget *widget, ModulePort *connectingPort); - void mousePressEvent(QMouseEvent *e); - void mouseMoveEvent(QMouseEvent *e); - void mouseReleaseEvent(QMouseEvent *e); + void mousePressEvent(TQMouseEvent *e); + void mouseMoveEvent(TQMouseEvent *e); + void mouseReleaseEvent(TQMouseEvent *e); }; #endif |