diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kivio/plugins/kivioselecttool/tool_select.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/plugins/kivioselecttool/tool_select.h')
-rw-r--r-- | kivio/plugins/kivioselecttool/tool_select.h | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/kivio/plugins/kivioselecttool/tool_select.h b/kivio/plugins/kivioselecttool/tool_select.h index 6a6bd9b5..6e476b99 100644 --- a/kivio/plugins/kivioselecttool/tool_select.h +++ b/kivio/plugins/kivioselecttool/tool_select.h @@ -20,15 +20,15 @@ #ifndef TOOL_SELECT_H #define TOOL_SELECT_H -#include <qptrlist.h> +#include <tqptrlist.h> #include <KoPoint.h> #include <KoRect.h> #include "kivio_mousetool.h" class KivioView; class KivioPage; -class QMouseEvent; -class QKeyEvent; +class TQMouseEvent; +class TQKeyEvent; class KPopupMenu; class KRadioAction; class KAction; @@ -54,13 +54,14 @@ enum { class SelectTool : public Kivio::MouseTool { Q_OBJECT + TQ_OBJECT public: - SelectTool( KivioView* parent ); + SelectTool( KivioView* tqparent ); ~SelectTool(); - virtual bool processEvent(QEvent* e); + virtual bool processEvent(TQEvent* e); - void select(const QRect&); + void select(const TQRect&); public slots: void setActivated(bool a); @@ -69,39 +70,39 @@ class SelectTool : public Kivio::MouseTool void operationDone(); protected slots: - void editText(QPtrList<KivioStencil>* stencils); + void editText(TQPtrList<KivioStencil>* stencils); void showProperties(); void editStencilText(); protected: - void mousePress(const QPoint&); - void mouseMove(QMouseEvent*); - void mouseRelease(const QPoint&); - void leftDoubleClick(const QPoint&); + void mousePress(const TQPoint&); + void mouseMove(TQMouseEvent*); + void mouseRelease(const TQPoint&); + void leftDoubleClick(const TQPoint&); - bool startResizing(const QPoint&); - bool startDragging(const QPoint&, bool); - bool startCustomDragging(const QPoint&, bool); - bool startRubberBanding(const QPoint&); + bool startResizing(const TQPoint&); + bool startDragging(const TQPoint&, bool); + bool startCustomDragging(const TQPoint&, bool); + bool startRubberBanding(const TQPoint&); - void continueDragging(const QPoint&, bool ignoreGridGuides = false); - void continueCustomDragging(const QPoint&); - void continueResizing(const QPoint&, bool ignoreGridGuides = false); - void continueRubberBanding(const QPoint&); + void continueDragging(const TQPoint&, bool ignoreGridGuides = false); + void continueCustomDragging(const TQPoint&); + void continueResizing(const TQPoint&, bool ignoreGridGuides = false); + void continueRubberBanding(const TQPoint&); - void endResizing(const QPoint&); - void endDragging(const QPoint&); - void endCustomDragging(const QPoint&); - void endRubberBanding(const QPoint&); + void endResizing(const TQPoint&); + void endDragging(const TQPoint&); + void endCustomDragging(const TQPoint&); + void endRubberBanding(const TQPoint&); - void showPopupMenu(const QPoint&); + void showPopupMenu(const TQPoint&); - void changeMouseCursor(const QPoint&); + void changeMouseCursor(const TQPoint&); int isOverResizeHandle( KivioStencil *pStencil, const double x, const double y ); - void keyPress(QKeyEvent* e); + void keyPress(TQKeyEvent* e); - QPoint m_startPoint, m_releasePoint; + TQPoint m_startPoint, m_releasePoint; KoPoint m_lastPoint; KoPoint m_origPoint; @@ -121,7 +122,7 @@ class SelectTool : public Kivio::MouseTool int m_resizeHandle; bool m_controlKey; int m_customDragID; - QPtrList <KivioSelectDragData> m_lstOldGeometry; + TQPtrList <KivioSelectDragData> m_lstOldGeometry; KoRect m_selectedRect; KoPoint m_customDragOrigPoint; |