summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/imagemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'kimagemapeditor/imagemap.h')
-rw-r--r--kimagemapeditor/imagemap.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/kimagemapeditor/imagemap.h b/kimagemapeditor/imagemap.h
index 7576baa0..fe14c9d4 100644
--- a/kimagemapeditor/imagemap.h
+++ b/kimagemapeditor/imagemap.h
@@ -18,10 +18,10 @@
#ifndef IMAGEMAP_H
#define IMAGEMAP_H
-#include <qscrollview.h>
-#include <qimage.h>
-#include <qpoint.h>
-#include <qrect.h>
+#include <tqscrollview.h>
+#include <tqimage.h>
+#include <tqpoint.h>
+#include <tqrect.h>
#include "kdeversion.h"
@@ -31,45 +31,45 @@
class KImageMapEditor;
class Area;
-class ImageMap : public QScrollView {
+class ImageMap : public TQScrollView {
public:
enum DrawAction { None, DrawCircle, DrawRectangle, DrawPolygon, MoveSelectionPoint, MoveArea };
private:
- QRect imageRect;
- QPoint drawStart;
- QPoint drawCurrent;
- QPoint drawEnd;
+ TQRect imageRect;
+ TQPoint drawStart;
+ TQPoint drawCurrent;
+ TQPoint drawEnd;
bool eraseOldArea;
Area *oldArea;
// Holds the original image
- QImage image;
+ TQImage image;
// Holds the zoomed image for efficiency reasons
- QPixmap zoomedImage;
+ TQPixmap zoomedImage;
Area *currentArea;
DrawAction currentAction;
- QRect *currentSelectionPoint;
+ TQRect *currentSelectionPoint;
KImageMapEditor *imageMapEditor;
double _zoom;
public:
- ImageMap(QWidget *parent,KImageMapEditor* _imageMapEditor);
+ ImageMap(TQWidget *parent,KImageMapEditor* _imageMapEditor);
~ImageMap();
void setZoom(double z);
- void setPicture(const QImage &_image);
+ void setPicture(const TQImage &_image);
void repaintArea(const Area & a);
- QImage picture() const;
- QPoint translateFromZoom(const QPoint & p) const;
- QPoint translateToZoom(const QPoint & p) const;
- QRect translateToZoom(const QRect & p) const;
+ TQImage picture() const;
+ TQPoint translateFromZoom(const TQPoint & p) const;
+ TQPoint translateToZoom(const TQPoint & p) const;
+ TQRect translateToZoom(const TQRect & p) const;
protected:
- virtual void contentsMousePressEvent(QMouseEvent* e);
- virtual void contentsMouseDoubleClickEvent(QMouseEvent* e);
- virtual void contentsMouseReleaseEvent(QMouseEvent *e);
- virtual void contentsMouseMoveEvent(QMouseEvent *e);
- virtual void resizeEvent(QResizeEvent* e);
- virtual void drawContents(QPainter* p,int clipx,int clipy,int clipw,int cliph);
+ virtual void contentsMousePressEvent(TQMouseEvent* e);
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent* e);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent *e);
+ virtual void contentsMouseMoveEvent(TQMouseEvent *e);
+ virtual void resizeEvent(TQResizeEvent* e);
+ virtual void drawContents(TQPainter* p,int clipx,int clipy,int clipw,int cliph);
};
-inline QImage ImageMap::picture() const {
+inline TQImage ImageMap::picture() const {
return image;
}