summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/drawzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'kimagemapeditor/drawzone.h')
-rw-r--r--kimagemapeditor/drawzone.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/kimagemapeditor/drawzone.h b/kimagemapeditor/drawzone.h
index 764e6951..58887288 100644
--- a/kimagemapeditor/drawzone.h
+++ b/kimagemapeditor/drawzone.h
@@ -18,11 +18,11 @@
#ifndef IMAGEMAP_H
#define IMAGEMAP_H
-#include <qscrollview.h>
-#include <qimage.h>
-#include <qpoint.h>
-#include <qrect.h>
-#include <qcursor.h>
+#include <tqscrollview.h>
+#include <tqimage.h>
+#include <tqpoint.h>
+#include <tqrect.h>
+#include <tqcursor.h>
#include "kdeversion.h"
@@ -35,39 +35,39 @@ class Area;
*@internal
*@see Area
*/
-class DrawZone : public QScrollView {
+class DrawZone : public TQScrollView {
public:
- DrawZone(QWidget *parent,KImageMapEditor* _imageMapEditor);
+ DrawZone(TQWidget *parent,KImageMapEditor* _imageMapEditor);
~DrawZone();
- QImage picture() const;
+ TQImage picture() const;
void repaintArea(const Area & a);
- void repaintRect(const QRect & r);
+ void repaintRect(const TQRect & r);
void cancelDrawing();
- void setPicture(const QImage &_image);
+ void setPicture(const TQImage &_image);
void setZoom(double z);
- QPoint translateFromZoom(const QPoint & p) const;
- QRect translateFromZoom(const QRect & p) const;
- QPoint translateToZoom(const QPoint & p) const;
- QRect translateToZoom(const QRect & p) const;
+ TQPoint translateFromZoom(const TQPoint & p) const;
+ TQRect translateFromZoom(const TQRect & p) const;
+ TQPoint translateToZoom(const TQPoint & p) const;
+ TQRect translateToZoom(const TQRect & p) const;
- QRect getImageRect() const { return image.rect(); }
+ TQRect getImageRect() const { return image.rect(); }
protected:
- virtual void contentsMouseDoubleClickEvent(QMouseEvent*);
- virtual void contentsMousePressEvent(QMouseEvent*);
- virtual void contentsMouseReleaseEvent(QMouseEvent*);
- virtual void contentsMouseMoveEvent(QMouseEvent*);
- virtual void resizeEvent(QResizeEvent*);
- virtual void drawContents(QPainter*,int,int,int,int);
- virtual void viewportDropEvent(QDropEvent*);
- virtual void contentsDragEnterEvent(QDragEnterEvent*);
- virtual void contentsDropEvent(QDropEvent*);
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent*);
+ virtual void contentsMousePressEvent(TQMouseEvent*);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent*);
+ virtual void contentsMouseMoveEvent(TQMouseEvent*);
+ virtual void resizeEvent(TQResizeEvent*);
+ virtual void drawContents(TQPainter*,int,int,int,int);
+ virtual void viewportDropEvent(TQDropEvent*);
+ virtual void contentsDragEnterEvent(TQDragEnterEvent*);
+ virtual void contentsDropEvent(TQDropEvent*);
/**
* Represents whats currently going on
@@ -80,7 +80,7 @@ protected:
*/
enum DrawAction { None, DrawCircle, DrawRectangle, DrawPolygon, DrawFreehand, MoveSelectionPoint, MoveArea, DoSelect, RemovePoint, AddPoint };
- void createBorderRectangles(const QRect & r,QRect & rb,QRect & lb,QRect & tb,QRect & bb);
+ void createBorderRectangles(const TQRect & r,TQRect & rb,TQRect & lb,TQRect & tb,TQRect & bb);
private:
@@ -88,33 +88,33 @@ private:
// The currently drawing area
Area *currentArea;
// Needed when moving selectionpoints
- QRect *currentSelectionPoint;
+ TQRect *currentSelectionPoint;
// The point where the user clicked the mouse
- QPoint drawStart;
- QPoint drawCurrent;
+ TQPoint drawStart;
+ TQPoint drawCurrent;
// The original image
- QImage image;
+ TQImage image;
KImageMapEditor *imageMapEditor;
// Only the rect of the zoomed image, perhaps redundant
- QRect imageRect;
+ TQRect imageRect;
// Only for repaint issues
Area *oldArea;
- QRect oldSelectionRect;
+ TQRect oldSelectionRect;
// Holds the zoomed image for efficiency reasons
- QPixmap zoomedImage;
+ TQPixmap zoomedImage;
// The current zoom-factor
double _zoom;
- QCursor RectangleCursor;
- QCursor CircleCursor;
- QCursor PolygonCursor;
- QCursor FreehandCursor;
- QCursor AddPointCursor;
- QCursor RemovePointCursor;
+ TQCursor RectangleCursor;
+ TQCursor CircleCursor;
+ TQCursor PolygonCursor;
+ TQCursor FreehandCursor;
+ TQCursor AddPointCursor;
+ TQCursor RemovePointCursor;
};
-inline QImage DrawZone::picture() const {
+inline TQImage DrawZone::picture() const {
return image;
}