summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/tool_crop/kis_tool_crop.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/tool_crop/kis_tool_crop.h')
-rw-r--r--krita/plugins/tools/tool_crop/kis_tool_crop.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/krita/plugins/tools/tool_crop/kis_tool_crop.h b/krita/plugins/tools/tool_crop/kis_tool_crop.h
index 538e4158..5be2daa2 100644
--- a/krita/plugins/tools/tool_crop/kis_tool_crop.h
+++ b/krita/plugins/tools/tool_crop/kis_tool_crop.h
@@ -21,26 +21,27 @@
#ifndef KIS_TOOL_CROP_H_
#define KIS_TOOL_CROP_H_
-#include <qpoint.h>
-#include <qregion.h>
+#include <tqpoint.h>
+#include <tqregion.h>
#include <kis_tool_non_paint.h>
#include <kis_tool_factory.h>
-class QRect;
-class QCursor;
+class TQRect;
+class TQCursor;
class WdgToolCrop;
/**
* Crop tool
*
* TODO: - crop from selection -- i.e, set crop outline to the exact bounds of the selection.
- * - (when moving to Qt 4: replace rectangle with darker, dimmer overlay layer
+ * - (when moving to TQt 4: replace rectangle with darker, dimmer overlay layer
* like we have for selections right now)
*/
class KisToolCrop : public KisToolNonPaint {
typedef KisToolNonPaint super;
Q_OBJECT
+ TQ_OBJECT
public:
@@ -49,14 +50,14 @@ public:
virtual void update(KisCanvasSubject *subject);
- virtual QWidget* createOptionWidget(QWidget* parent);
- virtual QWidget* optionWidget();
+ virtual TQWidget* createOptionWidget(TQWidget* tqparent);
+ virtual TQWidget* optionWidget();
virtual void setup(KActionCollection *collection);
virtual enumToolType toolType() { return TOOL_TRANSFORM; }
- virtual Q_UINT32 priority() { return 1; }
+ virtual TQ_UINT32 priority() { return 1; }
virtual void paint(KisCanvasPainter& gc);
- virtual void paint(KisCanvasPainter& gc, const QRect& rc);
+ virtual void paint(KisCanvasPainter& gc, const TQRect& rc);
virtual void buttonPress(KisButtonPressEvent *e);
virtual void move(KisMoveEvent *e);
virtual void buttonRelease(KisButtonReleaseEvent *e);
@@ -70,16 +71,16 @@ public slots:
private:
void clearRect();
- QRegion handles(QRect rect);
+ TQRegion handles(TQRect rect);
void paintOutlineWithHandles();
- void paintOutlineWithHandles(KisCanvasPainter& gc, const QRect& rc);
- Q_INT32 mouseOnHandle (const QPoint currentViewPoint);
- void setMoveResizeCursor (Q_INT32 handle);
+ void paintOutlineWithHandles(KisCanvasPainter& gc, const TQRect& rc);
+ TQ_INT32 mouseOnHandle (const TQPoint currentViewPoint);
+ void setMoveResizeCursor (TQ_INT32 handle);
void validateSelection(bool updateratio = true);
- void setOptionWidgetX(Q_INT32 x);
- void setOptionWidgetY(Q_INT32 y);
- void setOptionWidgetWidth(Q_INT32 x);
- void setOptionWidgetHeight(Q_INT32 y);
+ void setOptionWidgetX(TQ_INT32 x);
+ void setOptionWidgetY(TQ_INT32 y);
+ void setOptionWidgetWidth(TQ_INT32 x);
+ void setOptionWidgetHeight(TQ_INT32 y);
void setOptionWidgetRatio(double ratio);
private slots:
@@ -91,26 +92,26 @@ private slots:
void setCropHeight(int y);
void setRatio(double ratio);
- inline QRect realRectCrop() { QRect r = m_rectCrop; r.setSize(r.size() - QSize(1,1)); return r; }
+ inline TQRect realRectCrop() { TQRect r = m_rectCrop; r.setSize(r.size() - TQSize(1,1)); return r; }
private:
void updateWidgetValues(bool updateratio = true);
KisCanvasSubject *m_subject;
- QRect m_rectCrop; // Is the coordinate of the outline rect and not of the region to crop (to get the region to crop you need to remove 1 to width and height
-// QPoint m_startPos;
-// QPoint m_endPos;
+ TQRect m_rectCrop; // Is the coordinate of the outline rect and not of the region to crop (to get the region to crop you need to remove 1 to width and height
+// TQPoint m_startPos;
+// TQPoint m_endPos;
bool m_selecting;
- QPoint m_dragStart;
- QPoint m_dragStop;
+ TQPoint m_dragStart;
+ TQPoint m_dragStop;
WdgToolCrop* m_optWidget;
- Q_INT32 m_handleSize;
- QRegion m_handlesRegion;
+ TQ_INT32 m_handleSize;
+ TQRegion m_handlesRegion;
bool m_haveCropSelection;
- Q_INT32 m_dx, m_dy;
- Q_INT32 m_mouseOnHandleType;
- QCursor m_cropCursor;
+ TQ_INT32 m_dx, m_dy;
+ TQ_INT32 m_mouseOnHandleType;
+ TQCursor m_cropCursor;
enum handleType
{