diff options
Diffstat (limited to 'krita/ui/kis_tool_paint.h')
-rw-r--r-- | krita/ui/kis_tool_paint.h | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/krita/ui/kis_tool_paint.h b/krita/ui/kis_tool_paint.h index 9aae6516..6e1406b5 100644 --- a/krita/ui/kis_tool_paint.h +++ b/krita/ui/kis_tool_paint.h @@ -19,24 +19,24 @@ #ifndef KIS_TOOL_PAINT_H_ #define KIS_TOOL_PAINT_H_ -#include <qcursor.h> -#include <qlayout.h> +#include <tqcursor.h> +#include <tqlayout.h> #include <koffice_export.h> #include "kis_tool.h" #include "kis_composite_op.h" -class QCheckBox; -class QEvent; -class QKeyEvent; -class QComboBox; -class QPaintEvent; -class QRect; -class QGridLayout; +class TQCheckBox; +class TQEvent; +class TQKeyEvent; +class TQComboBox; +class TQPaintEvent; +class TQRect; +class TQGridLayout; class KDialog; class KisCanvasSubject; -class QLabel; +class TQLabel; class KisCmbComposite; class KisIntSpinbox; @@ -51,30 +51,31 @@ enum enumBrushMode { class KRITACORE_EXPORT KisToolPaint : public KisTool { Q_OBJECT + TQ_OBJECT typedef KisTool super; public: - KisToolPaint(const QString& UIName); + KisToolPaint(const TQString& UIName); virtual ~KisToolPaint(); public: virtual void update(KisCanvasSubject *subject); 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); virtual void doubleClick(KisDoubleClickEvent *e); - virtual void keyPress(QKeyEvent *e); - virtual void keyRelease(QKeyEvent *e); + virtual void keyPress(TQKeyEvent *e); + virtual void keyRelease(TQKeyEvent *e); - virtual QCursor cursor(); - virtual void setCursor(const QCursor& cursor); - virtual QWidget* createOptionWidget(QWidget* parent); - virtual QWidget* optionWidget(); - virtual void addOptionWidgetOption(QWidget *control, QWidget *label = 0); + virtual TQCursor cursor(); + virtual void setCursor(const TQCursor& cursor); + virtual TQWidget* createOptionWidget(TQWidget* tqparent); + virtual TQWidget* optionWidget(); + virtual void addOptionWidgetOption(TQWidget *control, TQWidget *label = 0); public slots: virtual void activate(); @@ -87,30 +88,30 @@ public slots: protected: void notifyModified() const; - // Add the tool-specific layout to the default option widget's layout. - void addOptionWidgetLayout(QLayout *layout); + // Add the tool-specific tqlayout to the default option widget's tqlayout. + void addOptionWidgetLayout(TQLayout *tqlayout); private: void updateCompositeOpComboBox(); protected: KisCanvasSubject *m_subject; - QRect m_dirtyRect; - Q_UINT8 m_opacity; + TQRect m_dirtyRect; + TQ_UINT8 m_opacity; KisCompositeOp m_compositeOp; bool m_paintOutline; private: - QString m_UIName; + TQString m_UIName; - QCursor m_cursor; + TQCursor m_cursor; - QWidget *m_optionWidget; - QGridLayout *m_optionWidgetLayout; + TQWidget *m_optionWidget; + TQGridLayout *m_optionWidgetLayout; - QLabel *m_lbOpacity; + TQLabel *m_lbOpacity; KisIntSpinbox *m_slOpacity; - QLabel *m_lbComposite; + TQLabel *m_lbComposite; KisCmbComposite *m_cmbComposite; }; |