summaryrefslogtreecommitdiffstats
path: root/krita/plugins/tools/tool_curves/kis_tool_moutline.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/plugins/tools/tool_curves/kis_tool_moutline.h')
-rw-r--r--krita/plugins/tools/tool_curves/kis_tool_moutline.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/krita/plugins/tools/tool_curves/kis_tool_moutline.h b/krita/plugins/tools/tool_curves/kis_tool_moutline.h
index 43a140be..e5ff62a1 100644
--- a/krita/plugins/tools/tool_curves/kis_tool_moutline.h
+++ b/krita/plugins/tools/tool_curves/kis_tool_moutline.h
@@ -25,15 +25,15 @@
#include "kis_curve_framework.h"
#include "kis_tool_curve.h"
-class QSlider;
+class TQSlider;
class KisToolMagnetic;
class KisVector2D;
class Node;
-typedef QValueVector<Node> NodeCol;
-typedef QValueVector<NodeCol> NodeMatrix;
-typedef QValueVector<Q_INT16> GrayCol;
-typedef QValueVector<GrayCol> GrayMatrix;
+typedef TQValueVector<Node> NodeCol;
+typedef TQValueVector<NodeCol> NodeMatrix;
+typedef TQValueVector<TQ_INT16> GrayCol;
+typedef TQValueVector<GrayCol> GrayMatrix;
class KisCurveMagnetic : public KisCurve {
@@ -41,19 +41,19 @@ class KisCurveMagnetic : public KisCurve {
KisToolMagnetic *m_parent;
- void reduceMatrix (QRect&, GrayMatrix&, int, int, int, int);
+ void reduceMatrix (TQRect&, GrayMatrix&, int, int, int, int);
void findEdge (int, int, const GrayMatrix&, Node&);
- void detectEdges (const QRect&, KisPaintDeviceSP, GrayMatrix&);
+ void detectEdges (const TQRect&, KisPaintDeviceSP, GrayMatrix&);
- void gaussianBlur (const QRect&, KisPaintDeviceSP, KisPaintDeviceSP);
- void toGrayScale (const QRect&, KisPaintDeviceSP, GrayMatrix&);
+ void gaussianBlur (const TQRect&, KisPaintDeviceSP, KisPaintDeviceSP);
+ void toGrayScale (const TQRect&, KisPaintDeviceSP, GrayMatrix&);
void getDeltas (const GrayMatrix&, GrayMatrix&, GrayMatrix&);
void getMagnitude (const GrayMatrix&, const GrayMatrix&, GrayMatrix&);
void nonMaxSupp (const GrayMatrix&, const GrayMatrix&, const GrayMatrix&, GrayMatrix&);
public:
- KisCurveMagnetic (KisToolMagnetic *parent);
+ KisCurveMagnetic (KisToolMagnetic *tqparent);
~KisCurveMagnetic ();
virtual KisCurve::iterator addPivot (iterator, const KisPoint&);
@@ -66,6 +66,7 @@ class KisToolMagnetic : public KisToolCurve {
typedef KisToolCurve super;
Q_OBJECT
+ TQ_OBJECT
friend class KisCurveMagnetic;
@@ -77,9 +78,9 @@ public:
virtual void update (KisCanvasSubject*);
virtual void setup (KActionCollection*);
virtual enumToolType toolType() { return TOOL_SELECT; }
- virtual Q_UINT32 priority() { return 9; }
+ virtual TQ_UINT32 priority() { return 9; }
- virtual void keyPress(QKeyEvent*);
+ virtual void keyPress(TQKeyEvent*);
virtual void buttonPress(KisButtonPressEvent*);
virtual void buttonRelease(KisButtonReleaseEvent*);
virtual void move(KisMoveEvent*);
@@ -87,7 +88,7 @@ public:
virtual KisCurve::iterator selectByMouse(KisCurve::iterator it);
bool editingMode() {return m_editingMode;}
- virtual QWidget* createOptionWidget(QWidget* parent);
+ virtual TQWidget* createOptionWidget(TQWidget* tqparent);
public slots:
@@ -100,10 +101,10 @@ public slots:
private:
KisCurveMagnetic *m_derived;
- QWidget* m_optWidget;
- QLabel* m_mode;
- QLabel* m_lbDistance;
- QSlider* m_slDistance;
+ TQWidget* m_optWidget;
+ TQLabel* m_mode;
+ TQLabel* m_lbDistance;
+ TQSlider* m_slDistance;
bool m_editingMode;
bool m_editingCursor;
bool m_draggingCursor;