diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kimagemapeditor/imagemap.h | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimagemapeditor/imagemap.h')
-rw-r--r-- | kimagemapeditor/imagemap.h | 50 |
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; } |