diff options
Diffstat (limited to 'krita/core/kis_painter.h')
| -rw-r--r-- | krita/core/kis_painter.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/krita/core/kis_painter.h b/krita/core/kis_painter.h index fa8de0889..abfd8b17e 100644 --- a/krita/core/kis_painter.h +++ b/krita/core/kis_painter.h @@ -34,15 +34,15 @@ #include <koffice_export.h> -class QRect; +class TQRect; class KisTransaction; class KisBrush; class KisPattern; /** * KisPainter contains the graphics primitives necessary to draw on a - * KisPaintDevice. This is the same kind of abstraction as used in Qt - * itself, where you have QPainter and QPaintDevice. + * KisPaintDevice. This is the same kind of abstraction as used in TQt + * itself, where you have TQPainter and TQPaintDevice. * * However, KisPainter works on a tiled image and supports different * colour models, and that's a lot more complicated. @@ -79,7 +79,7 @@ public: KCommand *end(); /// Begin an undoable paint operation - void beginTransaction(const QString& customName = QString::null); + void beginTransaction(const TQString& customName = TQString()); /// Finish the undoable paint operation KCommand *endTransaction(); @@ -102,11 +102,11 @@ public: /** * Blast the specified region from src onto the current paint device. */ - void bitBlt(Q_INT32 dx, Q_INT32 dy, + void bitBlt(TQ_INT32 dx, TQ_INT32 dy, const KisCompositeOp& op, KisPaintDeviceSP src, - Q_INT32 sx, Q_INT32 sy, - Q_INT32 sw, Q_INT32 sh) + TQ_INT32 sx, TQ_INT32 sy, + TQ_INT32 sw, TQ_INT32 sh) { bitBlt(dx, dy, op, src, OPACITY_OPAQUE, sx, sy, sw, sh); } @@ -115,47 +115,47 @@ public: * Overloaded version of the previous, differs in that it is possible to specify * a value for opacity */ - void bitBlt(Q_INT32 dx, Q_INT32 dy, + void bitBlt(TQ_INT32 dx, TQ_INT32 dy, const KisCompositeOp& op, KisPaintDeviceSP src, - Q_UINT8 opacity, - Q_INT32 sx, Q_INT32 sy, - Q_INT32 sw, Q_INT32 sh); + TQ_UINT8 opacity, + TQ_INT32 sx, TQ_INT32 sy, + TQ_INT32 sw, TQ_INT32 sh); /** - * A version of bitBlt that renders using an external mask, ignoring + * A version of bitBlt that renders using an external tqmask, ignoring * the src device's own selection, if it has one. */ - void bltMask(Q_INT32 dx, Q_INT32 dy, + void bltMask(TQ_INT32 dx, TQ_INT32 dy, const KisCompositeOp &op, KisPaintDeviceSP src, KisPaintDeviceSP selMask, - Q_UINT8 opacity, - Q_INT32 sx, Q_INT32 sy, - Q_INT32 sw, Q_INT32 sh); + TQ_UINT8 opacity, + TQ_INT32 sx, TQ_INT32 sy, + TQ_INT32 sw, TQ_INT32 sh); /** - * A version of bitBlt that renders using an external selection mask, ignoring + * A version of bitBlt that renders using an external selection tqmask, ignoring * the src device's own selection, if it has one. */ - void bltSelection(Q_INT32 dx, Q_INT32 dy, + void bltSelection(TQ_INT32 dx, TQ_INT32 dy, const KisCompositeOp &op, KisPaintDeviceSP src, KisSelectionSP selMask, - Q_UINT8 opacity, - Q_INT32 sx, Q_INT32 sy, - Q_INT32 sw, Q_INT32 sh); + TQ_UINT8 opacity, + TQ_INT32 sx, TQ_INT32 sy, + TQ_INT32 sw, TQ_INT32 sh); /** - * A version of bitBlt that renders using the src device's selection mask, if it has one. + * A version of bitBlt that renders using the src device's selection tqmask, if it has one. */ - void bltSelection(Q_INT32 dx, Q_INT32 dy, + void bltSelection(TQ_INT32 dx, TQ_INT32 dy, const KisCompositeOp &op, KisPaintDeviceSP src, - Q_UINT8 opacity, - Q_INT32 sx, Q_INT32 sy, - Q_INT32 sw, Q_INT32 sh); + TQ_UINT8 opacity, + TQ_INT32 sx, TQ_INT32 sy, + TQ_INT32 sw, TQ_INT32 sh); /** @@ -166,19 +166,19 @@ public: * * Call will RESET the dirtyRect! */ - QRect dirtyRect(); + TQRect dirtyRect(); /** * Add the r to the current dirty rect, and return the dirtyRect after adding r to it. */ - QRect addDirtyRect(QRect r) { m_dirtyRect |= r; return m_dirtyRect; } + TQRect addDirtyRect(TQRect r) { m_dirtyRect |= r; return m_dirtyRect; } /** * Paint a line that connects the dots in points */ - void paintPolyline(const QValueVector <KisPoint> &points, + void paintPolyline(const TQValueVector <KisPoint> &points, int index = 0, int numPoints = -1); /** @@ -323,9 +323,9 @@ public: StrokeStyle strokeStyle() const { return m_strokeStyle; } /// Set the opacity which is used in painting (like filling polygons) - void setOpacity(Q_UINT8 opacity) { m_opacity = opacity; } + void setOpacity(TQ_UINT8 opacity) { m_opacity = opacity; } /// Returns the opacity that is used in painting - Q_UINT8 opacity() const { return m_opacity; } + TQ_UINT8 opacity() const { return m_opacity; } /** * Sets the current composite operation. Everything painted will be composited on @@ -399,7 +399,7 @@ protected: KisPaintDeviceSP m_device; KisTransaction *m_transaction; - QRect m_dirtyRect; + TQRect m_dirtyRect; KisColor m_paintColor; KisColor m_backgroundColor; @@ -413,13 +413,13 @@ protected: bool m_duplicateHealing; int m_duplicateHealingRadius; bool m_duplicatePerspectiveCorrection; - Q_UINT8 m_opacity; + TQ_UINT8 m_opacity; KisCompositeOp m_compositeOp; KisFilterSP m_filter; KisPaintOp * m_paintOp; double m_pressure; bool m_cancelRequested; - Q_INT32 m_pixelSize; + TQ_INT32 m_pixelSize; KisColorSpace * m_colorSpace; KisProfile * m_profile; KisPaintDeviceSP m_dab; |
