summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_view.h')
-rw-r--r--krita/ui/kis_view.h177
1 files changed, 89 insertions, 88 deletions
diff --git a/krita/ui/kis_view.h b/krita/ui/kis_view.h
index 71d97017..134d934a 100644
--- a/krita/ui/kis_view.h
+++ b/krita/ui/kis_view.h
@@ -29,10 +29,10 @@
#include <list>
-#include <qdatetime.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
#include <ksqueezedtextlabel.h>
#include <kdebug.h>
@@ -52,13 +52,13 @@
#include "kis_color.h"
#include "kis_input_device.h"
-class QButton;
-class QLabel;
-class QPaintEvent;
-class QScrollBar;
-class QWidget;
-class QPopup;
-class QPopupMenu;
+class TQButton;
+class TQLabel;
+class TQPaintEvent;
+class TQScrollBar;
+class TQWidget;
+class TQPopup;
+class TQPopupMenu;
class DCOPObject;
class KAction;
@@ -118,6 +118,7 @@ class KRITA_EXPORT KisView
{
Q_OBJECT
+ TQ_OBJECT
typedef KoView super;
@@ -126,16 +127,16 @@ class KRITA_EXPORT KisView
typedef vKisCanvasObserver::const_iterator vKisCanvasObserver_cit;
public:
- KisView(KisDoc *doc, KisUndoAdapter *adapter, QWidget *parent = 0, const char *name = 0);
+ KisView(KisDoc *doc, KisUndoAdapter *adapter, TQWidget *tqparent = 0, const char *name = 0);
virtual ~KisView();
public: // KXMLGUIBuilder implementation
- virtual QWidget *createContainer( QWidget *parent, int index, const QDomElement &element, int &id );
- virtual void removeContainer( QWidget *container, QWidget *parent, QDomElement &element, int id );
+ virtual TQWidget *createContainer( TQWidget *tqparent, int index, const TQDomElement &element, int &id );
+ virtual void removeContainer( TQWidget *container, TQWidget *tqparent, TQDomElement &element, int id );
public: // KoView implementation
- virtual bool eventFilter(QObject *o, QEvent *e);
+ virtual bool eventFilter(TQObject *o, TQEvent *e);
virtual DCOPObject* dcopObject();
@@ -150,13 +151,13 @@ public: // KoView implementation
virtual int topBorder() const;
virtual int bottomBorder() const;
- Q_INT32 docWidth() const;
- Q_INT32 docHeight() const;
+ TQ_INT32 docWidth() const;
+ TQ_INT32 docHeight() const;
void updateStatusBarSelectionLabel();
- virtual QPoint applyViewTransformations(const QPoint& p) const;
- virtual QPoint reverseViewTransformations( const QPoint& p) const;
+ virtual TQPoint applyViewTransformations(const TQPoint& p) const;
+ virtual TQPoint reverseViewTransformations( const TQPoint& p) const;
virtual void canvasAddChild(KoViewChild *child);
signals:
@@ -170,10 +171,10 @@ signals:
* changed.
**/
void currentColorSpaceChanged(KisColorSpace* cs);
- void cursorPosition(Q_INT32 xpos, Q_INT32 ypos);
+ void cursorPosition(TQ_INT32 xpos, TQ_INT32 ypos);
- void sigFGQColorChanged(const QColor &);
- void sigBGQColorChanged(const QColor &);
+ void sigFGTQColorChanged(const TQColor &);
+ void sigBGTQColorChanged(const TQColor &);
void sigInputDeviceChanged(const KisInputDevice& inputDevice);
@@ -211,15 +212,15 @@ public slots:
public:
- virtual void mouseMoveEvent(QMouseEvent *e);
+ virtual void mouseMoveEvent(TQMouseEvent *e);
- void resizeCurrentImage(Q_INT32 w, Q_INT32 h, bool cropLayers = false);
+ void resizeCurrentImage(TQ_INT32 w, TQ_INT32 h, bool cropLayers = false);
void scaleCurrentImage(double sx, double sy, KisFilterStrategy *filterStrategy);
void rotateCurrentImage(double radians);
void shearCurrentImage(double angleX, double angleY);
- void insertPart(const QRect& viewRect, const KoDocumentEntry& entry,
- KisGroupLayerSP parent, KisLayerSP above);
+ void insertPart(const TQRect& viewRect, const KoDocumentEntry& entry,
+ KisGroupLayerSP tqparent, KisLayerSP above);
/**
* Import an image as a layer. If there is more than
@@ -229,13 +230,13 @@ public:
* @param url the url to the image file
* @return the number of layers added
*/
- Q_INT32 importImage(const KURL& url = KURL());
+ TQ_INT32 importImage(const KURL& url = KURL());
protected:
- virtual void resizeEvent(QResizeEvent*); // From QWidget
- virtual void styleChange(QStyle& oldStyle); // From QWidget
- virtual void paletteChange(const QPalette& oldPalette); // From QWidget
- virtual void showEvent(QShowEvent *);
+ virtual void resizeEvent(TQResizeEvent*); // From TQWidget
+ virtual void styleChange(TQStyle& oldStyle); // From TQWidget
+ virtual void paletteChange(const TQPalette& oldPalette); // From TQWidget
+ virtual void showEvent(TQShowEvent *);
protected slots:
virtual void slotChildActivated(bool a); // from KoView
@@ -309,40 +310,40 @@ private slots:
private:
virtual KisCanvas *kiscanvas() const;
- virtual Q_INT32 horzValue() const;
- virtual Q_INT32 vertValue() const;
+ virtual TQ_INT32 horzValue() const;
+ virtual TQ_INT32 vertValue() const;
- virtual void scrollTo(Q_INT32 x, Q_INT32 y);
+ virtual void scrollTo(TQ_INT32 x, TQ_INT32 y);
- virtual void updateCanvas(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h);
- virtual void updateCanvas(const QRect& imageRect);
+ virtual void updateCanvas(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h);
+ virtual void updateCanvas(const TQRect& imageRect);
virtual void zoomIn();
- virtual void zoomIn(Q_INT32 x, Q_INT32 y);
+ virtual void zoomIn(TQ_INT32 x, TQ_INT32 y);
virtual void zoomOut();
- virtual void zoomOut(Q_INT32 x, Q_INT32 y);
+ virtual void zoomOut(TQ_INT32 x, TQ_INT32 y);
- virtual void zoomTo(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h);
- virtual void zoomTo(const QRect& r);
+ virtual void zoomTo(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h);
+ virtual void zoomTo(const TQRect& r);
virtual void zoomTo(const KisRect& r);
virtual void zoomAroundPoint(double x, double y, double zf);
- virtual QPoint viewToWindow(const QPoint& pt);
- virtual QPoint viewToWindow(const QPoint& pt) const;
+ virtual TQPoint viewToWindow(const TQPoint& pt);
+ virtual TQPoint viewToWindow(const TQPoint& pt) const;
virtual KisPoint viewToWindow(const KisPoint& pt);
- virtual QRect viewToWindow(const QRect& rc);
+ virtual TQRect viewToWindow(const TQRect& rc);
virtual KisRect viewToWindow(const KisRect& rc);
- virtual void viewToWindow(Q_INT32 *x, Q_INT32 *y);
+ virtual void viewToWindow(TQ_INT32 *x, TQ_INT32 *y);
- virtual QPoint windowToView(const QPoint& pt);
- virtual QPoint windowToView(const QPoint& pt) const;
+ virtual TQPoint windowToView(const TQPoint& pt);
+ virtual TQPoint windowToView(const TQPoint& pt) const;
virtual KisPoint windowToView(const KisPoint& pt);
- virtual QRect windowToView(const QRect& rc);
+ virtual TQRect windowToView(const TQRect& rc);
virtual KisRect windowToView(const KisRect& rc);
- virtual void windowToView(Q_INT32 *x, Q_INT32 *y);
+ virtual void windowToView(TQ_INT32 *x, TQ_INT32 *y);
- virtual QCursor setCanvasCursor(const QCursor & cursor);
+ virtual TQCursor setCanvasCursor(const TQCursor & cursor);
void setInputDevice(KisInputDevice inputDevice);
KisInputDevice currentInputDevice() const;
@@ -366,13 +367,13 @@ private:
void createLayerBox();
void createDockers();
- void paintToolOverlay(const QRegion& region);
+ void paintToolOverlay(const TQRegion& region);
- void paintQPaintDeviceView(const QRegion& canvasRegion);
- void paintOpenGLView(const QRect& canvasRect);
+ void paintTQPaintDeviceView(const TQRegion& canvasRegion);
+ void paintOpenGLView(const TQRect& canvasRect);
- void updateQPaintDeviceCanvas(const QRect& imageRect);
- void updateOpenGLCanvas(const QRect& imageRect);
+ void updateTQPaintDeviceCanvas(const TQRect& imageRect);
+ void updateOpenGLCanvas(const TQRect& imageRect);
/**
* Update the whole of the KisCanvas, including areas outside the image.
@@ -427,13 +428,13 @@ private:
private slots:
void layersUpdated(); // Used in the channel separation to notify the view that we have added a few layers.
- void maskUpdated(); // To update the enabled or disabled status of the mask entries
+ void tqmaskUpdated(); // To update the enabled or disabled status of the tqmask entries
- void slotSetFGQColor(const QColor & c);
- void slotSetBGQColor(const QColor & c);
+ void slotSetFGTQColor(const TQColor & c);
+ void slotSetBGTQColor(const TQColor & c);
- void imgUpdated(QRect rc);
- void slotOpenGLImageUpdated(QRect rc);
+ void imgUpdated(TQRect rc);
+ void slotOpenGLImageUpdated(TQRect rc);
void imgResizeToActiveLayer();
@@ -441,18 +442,18 @@ private slots:
void canvasGotButtonPressEvent(KisButtonPressEvent *e);
void canvasGotButtonReleaseEvent(KisButtonReleaseEvent *e);
void canvasGotDoubleClickEvent(KisDoubleClickEvent *e);
- void canvasGotPaintEvent(QPaintEvent *e);
- void canvasGotEnterEvent(QEvent *e);
- void canvasGotLeaveEvent(QEvent *e);
- void canvasGotMouseWheelEvent(QWheelEvent *e);
- void canvasGotKeyPressEvent(QKeyEvent*);
- void canvasGotKeyReleaseEvent(QKeyEvent*);
- void canvasGotDragEnterEvent(QDragEnterEvent*);
- void canvasGotDropEvent(QDropEvent*);
+ void canvasGotPaintEvent(TQPaintEvent *e);
+ void canvasGotEnterEvent(TQEvent *e);
+ void canvasGotLeaveEvent(TQEvent *e);
+ void canvasGotMouseWheelEvent(TQWheelEvent *e);
+ void canvasGotKeyPressEvent(TQKeyEvent*);
+ void canvasGotKeyReleaseEvent(TQKeyEvent*);
+ void canvasGotDragEnterEvent(TQDragEnterEvent*);
+ void canvasGotDropEvent(TQDropEvent*);
void reconnectAfterPartInsert();
- QPoint mapToScreen(const QPoint& pt);
+ TQPoint mapToScreen(const TQPoint& pt);
void slotImageProperties();
void layerCompositeOp(const KisCompositeOp& compositeOp);
@@ -465,13 +466,13 @@ private slots:
void layerProperties();
void showLayerProperties(KisLayerSP layer);
void layerAdd();
- void addLayer(KisGroupLayerSP parent, KisLayerSP above);
- void addGroupLayer(KisGroupLayerSP parent, KisLayerSP above);
+ void addLayer(KisGroupLayerSP tqparent, KisLayerSP above);
+ void addGroupLayer(KisGroupLayerSP tqparent, KisLayerSP above);
void addPartLayer();
- void addPartLayer(KisGroupLayerSP parent, KisLayerSP above, const KoDocumentEntry& entry);
+ void addPartLayer(KisGroupLayerSP tqparent, KisLayerSP above, const KoDocumentEntry& entry);
void addAdjustmentLayer();
- void addAdjustmentLayer(KisGroupLayerSP parent, KisLayerSP above);
- void addAdjustmentLayer(KisGroupLayerSP parent, KisLayerSP above, const QString & name, KisFilterConfiguration * filter, KisSelectionSP selection = 0);
+ void addAdjustmentLayer(KisGroupLayerSP tqparent, KisLayerSP above);
+ void addAdjustmentLayer(KisGroupLayerSP tqparent, KisLayerSP above, const TQString & name, KisFilterConfiguration * filter, KisSelectionSP selection = 0);
void layerRemove();
void layerDuplicate();
void layerRaise();
@@ -491,7 +492,7 @@ private slots:
void slotActualSize();
void slotFitToCanvas();
- void slotImageSizeChanged(Q_INT32 w, Q_INT32 h);
+ void slotImageSizeChanged(TQ_INT32 w, TQ_INT32 h);
void scrollH(int value);
void scrollV(int value);
@@ -504,7 +505,7 @@ private slots:
void preferences();
- void slotAutoScroll(const QPoint &p);
+ void slotAutoScroll(const TQPoint &p);
void handlePartLayerAdded(KisLayerSP layer);
@@ -534,9 +535,9 @@ private:
// Fringe benefits
KisRuler *m_hRuler;
KisRuler *m_vRuler;
- Q_INT32 m_rulerThickness;
- Q_INT32 m_vScrollBarExtent;
- Q_INT32 m_hScrollBarExtent;
+ TQ_INT32 m_rulerThickness;
+ TQ_INT32 m_vScrollBarExtent;
+ TQ_INT32 m_hScrollBarExtent;
// Actions
KAction *m_imgFlatten;
@@ -559,8 +560,8 @@ private:
KAction *m_layerTop;
KAction *m_createMask;
- KAction *m_maskFromSelection;
- KAction *m_maskToSelection;
+ KAction *m_tqmaskFromSelection;
+ KAction *m_tqmaskToSelection;
KAction *m_applyMask;
KAction *m_removeMask;
KToggleAction *m_editMask;
@@ -581,8 +582,8 @@ private:
DCOPObject *m_dcop;
// Widgets
- QScrollBar *m_hScroll; // XXX: the sizing of the scrollthumbs
- QScrollBar *m_vScroll; // is not right yet.
+ TQScrollBar *m_hScroll; // XXX: the sizing of the scrollthumbs
+ TQScrollBar *m_vScroll; // is not right yet.
int m_scrollX;
int m_scrollY;
int m_canvasXOffset;
@@ -593,14 +594,14 @@ private:
bool m_showEventReceived;
bool m_imageLoaded;
- QTimer m_initialZoomTimer;
+ TQTimer m_initialZoomTimer;
// KisGuideSP m_currentGuide;
-// QPoint m_lastGuidePoint;
+// TQPoint m_lastGuidePoint;
KisUndoAdapter *m_adapter;
vKisCanvasObserver m_observers;
- QLabel *m_statusBarZoomLabel;
+ TQLabel *m_statusBarZoomLabel;
KSqueezedTextLabel *m_statusBarSelectionLabel;
KSqueezedTextLabel *m_statusBarProfileLabel;
KisLabelProgress *m_progress;
@@ -622,10 +623,10 @@ private:
KisID m_paintop;
const KisPaintOpSettings *m_paintopSettings;
- QTime m_tabletEventTimer;
- QTabletEvent::TabletDevice m_lastTabletEventDevice;
+ TQTime m_tabletEventTimer;
+ TQTabletEvent::TabletDevice m_lastTabletEventDevice;
- QPixmap m_canvasPixmap;
+ TQPixmap m_canvasPixmap;
bool m_toolIsPainting;
#ifdef HAVE_GL