summaryrefslogtreecommitdiffstats
path: root/krita/sdk/kis_canvas_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/sdk/kis_canvas_controller.h')
-rw-r--r--krita/sdk/kis_canvas_controller.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/krita/sdk/kis_canvas_controller.h b/krita/sdk/kis_canvas_controller.h
index 99d43c38f..6ed8f1b94 100644
--- a/krita/sdk/kis_canvas_controller.h
+++ b/krita/sdk/kis_canvas_controller.h
@@ -19,12 +19,12 @@
#ifndef KIS_CANVAS_CONTROLLER_H_
#define KIS_CANVAS_CONTROLLER_H_
-#include <qglobal.h>
-#include <qpoint.h>
-#include <qrect.h>
+#include <tqglobal.h>
+#include <tqpoint.h>
+#include <tqrect.h>
#include "kis_types.h"
-class QWidget;
+class TQWidget;
class KisTool;
class KisRect;
class KisPoint;
@@ -52,12 +52,12 @@ public:
/**
* @return the value of the horizontal scrollbar.
*/
- virtual Q_INT32 horzValue() const = 0;
+ virtual TQ_INT32 horzValue() const = 0;
/**
* @return the value of the vertical scrollbar
*/
- virtual Q_INT32 vertValue() const = 0;
+ virtual TQ_INT32 vertValue() const = 0;
/**
* Sets the horizontal and vertical scrollbars to the specified values
@@ -65,25 +65,25 @@ public:
* @param x the value the horizontal scrollbar is set to
* @param y the value the vertical scrollbar is set to
*/
- virtual void scrollTo(Q_INT32 x, Q_INT32 y) = 0;
+ virtual void scrollTo(TQ_INT32 x, TQ_INT32 y) = 0;
/**
- * Tell all of the canvas to repaint itself.
+ * Tell all of the canvas to tqrepaint itself.
*/
virtual void updateCanvas() = 0;
/**
- * Tell the canvas to repaint the rectangle defined by x, y, w and h.
+ * Tell the canvas to tqrepaint the rectangle defined by x, y, w and h.
* The coordinates are image coordinates.
*/
- virtual void updateCanvas(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h) = 0;
+ virtual void updateCanvas(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h) = 0;
/**
- * Tell the canvas repaint the specified rectangle. The coordinates
+ * Tell the canvas tqrepaint the specified rectangle. The coordinates
* are image coordinates, not view coordinates.
*/
- virtual void updateCanvas(const QRect& rc) = 0;
+ virtual void updateCanvas(const TQRect& rc) = 0;
/**
* Increase the zoomlevel one step
@@ -96,7 +96,7 @@ public:
* @param x The x coordinate of the visible point in image coordinates
* @param y the y coordinate of the visible point in image coordinates
*/
- virtual void zoomIn(Q_INT32 x, Q_INT32 y) = 0;
+ virtual void zoomIn(TQ_INT32 x, TQ_INT32 y) = 0;
/**
* Decrease the zoomlevel one step
@@ -110,7 +110,7 @@ public:
* @param x the x coordinate of the visible point in image coordinates
* @param y the y coordinate of the visible point in image coordinates
*/
- virtual void zoomOut(Q_INT32 x, Q_INT32 y) = 0;
+ virtual void zoomOut(TQ_INT32 x, TQ_INT32 y) = 0;
/**
* To centre the view on the given point with the given zoom factor.
@@ -126,14 +126,14 @@ public:
* out as necessary. The view will be centered around the center point
* of the specified rect.
*/
- virtual void zoomTo(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h) = 0;
+ virtual void zoomTo(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h) = 0;
/**
* Make the rect defined by x, y, w and h visible, zooming in or
* out as necessary. The view will be centered around the center point
* of the specified rect.
*/
- virtual void zoomTo(const QRect& r) = 0;
+ virtual void zoomTo(const TQRect& r) = 0;
/**
* Make the rect defined by x, y, w and h visible, zooming in or
@@ -147,25 +147,25 @@ public:
*
* You can get the rectangle of the image that's visible using the
* viewToWindow() functions (KisCanvasController). E.g.
- * viewToWindow(QRect(0, 0, canvasWidth, canvasHeight)).
+ * viewToWindow(TQRect(0, 0, canvasWidth, canvasHeight)).
*
* Here, the view is the canvas widget in the view widget, and the window
* is the window on the image.
*/
- virtual QPoint viewToWindow(const QPoint& pt) = 0;
+ virtual TQPoint viewToWindow(const TQPoint& pt) = 0;
virtual KisPoint viewToWindow(const KisPoint& pt) = 0;
- virtual QRect viewToWindow(const QRect& rc) = 0;
+ virtual TQRect viewToWindow(const TQRect& rc) = 0;
virtual KisRect viewToWindow(const KisRect& rc) = 0;
- virtual void viewToWindow(Q_INT32 *x, Q_INT32 *y) = 0;
+ virtual void viewToWindow(TQ_INT32 *x, TQ_INT32 *y) = 0;
/**
* Conversion functions from image coordinates to view coordinates
*/
- virtual QPoint windowToView(const QPoint& pt) = 0;
+ virtual TQPoint windowToView(const TQPoint& pt) = 0;
virtual KisPoint windowToView(const KisPoint& pt) = 0;
- virtual QRect windowToView(const QRect& rc) = 0;
+ virtual TQRect windowToView(const TQRect& rc) = 0;
virtual KisRect windowToView(const KisRect& rc) = 0;
- virtual void windowToView(Q_INT32 *x, Q_INT32 *y) = 0;
+ virtual void windowToView(TQ_INT32 *x, TQ_INT32 *y) = 0;
/**
* Set the cursor shown when the pointer is over the canvas widget to
@@ -174,7 +174,7 @@ public:
* @param cursor the new cursor
* @return the old cursor
*/
- virtual QCursor setCanvasCursor(const QCursor & cursor) = 0;
+ virtual TQCursor setCanvasCursor(const TQCursor & cursor) = 0;
/**
* Set the active input device to the specified input device, This