summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_canvas_painter.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_canvas_painter.h')
-rw-r--r--krita/ui/kis_canvas_painter.h366
1 files changed, 183 insertions, 183 deletions
diff --git a/krita/ui/kis_canvas_painter.h b/krita/ui/kis_canvas_painter.h
index 5559057d..9a719eea 100644
--- a/krita/ui/kis_canvas_painter.h
+++ b/krita/ui/kis_canvas_painter.h
@@ -23,7 +23,7 @@
#include <config.h>
#endif
-#include <qpainter.h>
+#include <tqpainter.h>
#include "kis_global.h"
@@ -41,45 +41,45 @@ public:
virtual void save();
virtual void restore();
- virtual QFontMetrics fontMetrics() const;
- virtual QFontInfo fontInfo() const;
+ virtual TQFontMetrics fontMetrics() const;
+ virtual TQFontInfo fontInfo() const;
- virtual const QFont& font() const;
- virtual void setFont(const QFont&);
- virtual const QPen& pen() const;
- virtual void setPen(const QPen&);
+ virtual const TQFont& font() const;
+ virtual void setFont(const TQFont&);
+ virtual const TQPen& pen() const;
+ virtual void setPen(const TQPen&);
virtual void setPen(Qt::PenStyle);
- virtual void setPen(const QColor&);
- virtual const QBrush&brush() const;
- virtual void setBrush(const QBrush&);
- virtual void setBrush(Qt::BrushStyle);
- virtual void setBrush(const QColor&);
- virtual QPoint pos() const;
-
- virtual const QColor&backgroundColor() const;
- virtual void setBackgroundColor(const QColor&);
+ virtual void setPen(const TQColor&);
+ virtual const TQBrush&brush() const;
+ virtual void setBrush(const TQBrush&);
+ virtual void setBrush(TQt::BrushStyle);
+ virtual void setBrush(const TQColor&);
+ virtual TQPoint pos() const;
+
+ virtual const TQColor&backgroundColor() const;
+ virtual void setBackgroundColor(const TQColor&);
virtual Qt::BGMode backgroundMode() const;
virtual void setBackgroundMode(Qt::BGMode);
- virtual Qt::RasterOp rasterOp() const;
- virtual void setRasterOp(Qt::RasterOp);
- virtual const QPoint&brushOrigin() const;
+ virtual TQt::RasterOp rasterOp() const;
+ virtual void setRasterOp(TQt::RasterOp);
+ virtual const TQPoint&brushOrigin() const;
virtual void setBrushOrigin(int x, int y);
- virtual void setBrushOrigin(const QPoint&);
+ virtual void setBrushOrigin(const TQPoint&);
virtual bool hasViewXForm() const;
virtual bool hasWorldXForm() const;
virtual void setViewXForm(bool);
- virtual QRect window() const;
- virtual void setWindow(const QRect&);
+ virtual TQRect window() const;
+ virtual void setWindow(const TQRect&);
virtual void setWindow(int x, int y, int w, int h);
- virtual QRect viewport() const;
- virtual void setViewport(const QRect&);
+ virtual TQRect viewport() const;
+ virtual void setViewport(const TQRect&);
virtual void setViewport(int x, int y, int w, int h);
virtual void setWorldXForm(bool);
- virtual const QWMatrix&worldMatrix() const;
- virtual void setWorldMatrix(const QWMatrix&, bool combine=FALSE);
+ virtual const TQWMatrix&tqworldMatrix() const;
+ virtual void setWorldMatrix(const TQWMatrix&, bool combine=FALSE);
virtual void saveWorldMatrix();
virtual void restoreWorldMatrix();
@@ -93,86 +93,86 @@ public:
virtual double translationX() const;
virtual double translationY() const;
- virtual QPoint xForm(const QPoint&) const;
- virtual QRect xForm(const QRect&) const;
- virtual QPointArray xForm(const QPointArray&) const;
- virtual QPointArray xForm(const QPointArray&, int index, int npoints) const;
- virtual QPoint xFormDev(const QPoint&) const;
- virtual QRect xFormDev(const QRect&) const;
- virtual QPointArray xFormDev(const QPointArray&) const;
- virtual QPointArray xFormDev(const QPointArray&, int index, int npoints) const;
+ virtual TQPoint xForm(const TQPoint&) const;
+ virtual TQRect xForm(const TQRect&) const;
+ virtual TQPointArray xForm(const TQPointArray&) const;
+ virtual TQPointArray xForm(const TQPointArray&, int index, int npoints) const;
+ virtual TQPoint xFormDev(const TQPoint&) const;
+ virtual TQRect xFormDev(const TQRect&) const;
+ virtual TQPointArray xFormDev(const TQPointArray&) const;
+ virtual TQPointArray xFormDev(const TQPointArray&, int index, int npoints) const;
virtual void setClipping(bool);
virtual bool hasClipping() const;
- virtual QRegion clipRegion(QPainter::CoordinateMode = QPainter::CoordDevice) const;
- virtual void setClipRect(const QRect&, QPainter::CoordinateMode = QPainter::CoordDevice);
- virtual void setClipRect(int x, int y, int w, int h, QPainter::CoordinateMode = QPainter::CoordDevice);
- virtual void setClipRegion(const QRegion&, QPainter::CoordinateMode = QPainter::CoordDevice);
+ virtual TQRegion clipRegion(TQPainter::CoordinateMode = TQPainter::CoordDevice) const;
+ virtual void setClipRect(const TQRect&, TQPainter::CoordinateMode = TQPainter::CoordDevice);
+ virtual void setClipRect(int x, int y, int w, int h, TQPainter::CoordinateMode = TQPainter::CoordDevice);
+ virtual void setClipRegion(const TQRegion&, TQPainter::CoordinateMode = TQPainter::CoordDevice);
virtual void drawPoint(int x, int y);
- virtual void drawPoint(const QPoint&);
- virtual void drawPoints(const QPointArray& a, int index=0, int npoints=-1);
+ virtual void drawPoint(const TQPoint&);
+ virtual void drawPoints(const TQPointArray& a, int index=0, int npoints=-1);
virtual void moveTo(int x, int y);
- virtual void moveTo(const QPoint&);
+ virtual void moveTo(const TQPoint&);
virtual void lineTo(int x, int y);
- virtual void lineTo(const QPoint&);
+ virtual void lineTo(const TQPoint&);
virtual void drawLine(int x1, int y1, int x2, int y2);
- virtual void drawLine(const QPoint&, const QPoint&);
+ virtual void drawLine(const TQPoint&, const TQPoint&);
virtual void drawRect(int x, int y, int w, int h);
- virtual void drawRect(const QRect&);
+ virtual void drawRect(const TQRect&);
virtual void drawWinFocusRect(int x, int y, int w, int h);
- virtual void drawWinFocusRect(int x, int y, int w, int h, const QColor&bgColor);
- virtual void drawWinFocusRect(const QRect&);
- virtual void drawWinFocusRect(const QRect&, const QColor&bgColor);
+ virtual void drawWinFocusRect(int x, int y, int w, int h, const TQColor&bgColor);
+ virtual void drawWinFocusRect(const TQRect&);
+ virtual void drawWinFocusRect(const TQRect&, const TQColor&bgColor);
virtual void drawRoundRect(int x, int y, int w, int h, int = 25, int = 25);
- virtual void drawRoundRect(const QRect&, int = 25, int = 25);
+ virtual void drawRoundRect(const TQRect&, int = 25, int = 25);
virtual void drawEllipse(int x, int y, int w, int h);
- virtual void drawEllipse(const QRect&);
+ virtual void drawEllipse(const TQRect&);
virtual void drawArc(int x, int y, int w, int h, int a, int alen);
- virtual void drawArc(const QRect&, int a, int alen);
+ virtual void drawArc(const TQRect&, int a, int alen);
virtual void drawPie(int x, int y, int w, int h, int a, int alen);
- virtual void drawPie(const QRect&, int a, int alen);
+ virtual void drawPie(const TQRect&, int a, int alen);
virtual void drawChord(int x, int y, int w, int h, int a, int alen);
- virtual void drawChord(const QRect&, int a, int alen);
- virtual void drawLineSegments(const QPointArray&, int index=0, int nlines=-1);
- virtual void drawPolyline(const QPointArray&, int index=0, int npoints=-1);
- virtual void drawPolygon(const QPointArray&, bool winding=FALSE, int index=0, int npoints=-1);
- virtual void drawConvexPolygon(const QPointArray&, int index=0, int npoints=-1);
- virtual void drawCubicBezier(const QPointArray&, int index=0);
- virtual void drawPixmap(int x, int y, const QPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1);
- virtual void drawPixmap(const QPoint&, const QPixmap&, const QRect&sr);
- virtual void drawPixmap(const QPoint&, const QPixmap&);
- virtual void drawPixmap(const QRect&, const QPixmap&);
- virtual void drawImage(int x, int y, const QImage&, int sx = 0, int sy = 0, int sw = -1, int sh = -1, int conversionFlags = 0);
- virtual void drawImage(const QPoint&, const QImage&, const QRect&sr, int conversionFlags = 0);
- virtual void drawImage(const QPoint&, const QImage&, int conversion_flags = 0);
- virtual void drawImage(const QRect&, const QImage&);
- virtual void drawTiledPixmap(int x, int y, int w, int h, const QPixmap&, int sx=0, int sy=0);
- virtual void drawTiledPixmap(const QRect&, const QPixmap&, const QPoint&);
- virtual void drawTiledPixmap(const QRect&, const QPixmap&);
- //virtual void drawPicture(const QPicture&);
- //virtual void drawPicture(int x, int y, const QPicture&);
- //virtual void drawPicture(const QPoint&, const QPicture&);
-
- virtual void fillRect(int x, int y, int w, int h, const QBrush&);
- virtual void fillRect(const QRect&, const QBrush&);
+ virtual void drawChord(const TQRect&, int a, int alen);
+ virtual void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1);
+ virtual void drawPolyline(const TQPointArray&, int index=0, int npoints=-1);
+ virtual void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1);
+ virtual void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1);
+ virtual void drawCubicBezier(const TQPointArray&, int index=0);
+ virtual void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1);
+ virtual void drawPixmap(const TQPoint&, const TQPixmap&, const TQRect&sr);
+ virtual void drawPixmap(const TQPoint&, const TQPixmap&);
+ virtual void drawPixmap(const TQRect&, const TQPixmap&);
+ virtual void drawImage(int x, int y, const TQImage&, int sx = 0, int sy = 0, int sw = -1, int sh = -1, int conversionFlags = 0);
+ virtual void drawImage(const TQPoint&, const TQImage&, const TQRect&sr, int conversionFlags = 0);
+ virtual void drawImage(const TQPoint&, const TQImage&, int conversion_flags = 0);
+ virtual void drawImage(const TQRect&, const TQImage&);
+ virtual void drawTiledPixmap(int x, int y, int w, int h, const TQPixmap&, int sx=0, int sy=0);
+ virtual void drawTiledPixmap(const TQRect&, const TQPixmap&, const TQPoint&);
+ virtual void drawTiledPixmap(const TQRect&, const TQPixmap&);
+ //virtual void drawPicture(const TQPicture&);
+ //virtual void drawPicture(int x, int y, const TQPicture&);
+ //virtual void drawPicture(const TQPoint&, const TQPicture&);
+
+ virtual void fillRect(int x, int y, int w, int h, const TQBrush&);
+ virtual void fillRect(const TQRect&, const TQBrush&);
virtual void eraseRect(int x, int y, int w, int h);
- virtual void eraseRect(const QRect&);
+ virtual void eraseRect(const TQRect&);
- virtual void drawText(int x, int y, const QString&, int len = -1, QPainter::TextDirection dir = QPainter::Auto);
- virtual void drawText(const QPoint&, const QString&, int len = -1, QPainter::TextDirection dir = QPainter::Auto);
+ virtual void drawText(int x, int y, const TQString&, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto);
+ virtual void drawText(const TQPoint&, const TQString&, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto);
- virtual void drawText(int x, int y, const QString&, int pos, int len, QPainter::TextDirection dir = QPainter::Auto);
- virtual void drawText(const QPoint&p, const QString&, int pos, int len, QPainter::TextDirection dir = QPainter::Auto);
+ virtual void drawText(int x, int y, const TQString&, int pos, int len, TQPainter::TextDirection dir = TQPainter::Auto);
+ virtual void drawText(const TQPoint&p, const TQString&, int pos, int len, TQPainter::TextDirection dir = TQPainter::Auto);
- virtual void drawText(int x, int y, int w, int h, int flags, const QString&, int len = -1, QRect *br=0, QTextParag **intern=0);
- virtual void drawText(const QRect&, int flags, const QString&, int len = -1, QRect *br=0, QTextParag **intern=0);
+ virtual void drawText(int x, int y, int w, int h, int flags, const TQString&, int len = -1, TQRect *br=0, TQTextParag **intern=0);
+ virtual void drawText(const TQRect&, int flags, const TQString&, int len = -1, TQRect *br=0, TQTextParag **intern=0);
- virtual void drawTextItem(int x, int y, const QTextItem&ti, int textflags = 0);
- virtual void drawTextItem(const QPoint& p, const QTextItem&ti, int textflags = 0);
+ virtual void tqdrawTextItem(int x, int y, const TQTextItem&ti, int textflags = 0);
+ virtual void tqdrawTextItem(const TQPoint& p, const TQTextItem&ti, int textflags = 0);
- virtual QRect boundingRect(int x, int y, int w, int h, int flags, const QString&, int len = -1, QTextParag **intern=0);
- virtual QRect boundingRect(const QRect&, int flags, const QString&, int len = -1, QTextParag **intern=0);
+ virtual TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString&, int len = -1, TQTextParag **intern=0);
+ virtual TQRect boundingRect(const TQRect&, int flags, const TQString&, int len = -1, TQTextParag **intern=0);
virtual int tabStops() const;
virtual void setTabStops(int);
@@ -180,69 +180,69 @@ public:
virtual void setTabArray(int *);
protected:
- QFont m_defaultFont;
- QPen m_defaultPen;
- QBrush m_defaultBrush;
- QColor m_defaultColor;
- QPoint m_defaultBrushOrigin;
- QWMatrix m_defaultWorldMatrix;
+ TQFont m_defaultFont;
+ TQPen m_defaultPen;
+ TQBrush m_defaultBrush;
+ TQColor m_defaultColor;
+ TQPoint m_defaultBrushOrigin;
+ TQWMatrix m_defaultWorldMatrix;
};
class KisCanvasPainter {
public:
KisCanvasPainter();
KisCanvasPainter(KisCanvas *canvas);
- KisCanvasPainter(const QPaintDevice *paintDevice);
+ KisCanvasPainter(const TQPaintDevice *paintDevice);
~KisCanvasPainter();
bool begin(KisCanvas *canvas, bool unclipped = false);
- bool begin(const QPaintDevice *paintDevice, bool unclipped = false);
+ bool begin(const TQPaintDevice *paintDevice, bool unclipped = false);
bool end();
void save();
void restore();
- QFontMetrics fontMetrics() const;
- QFontInfo fontInfo() const;
+ TQFontMetrics fontMetrics() const;
+ TQFontInfo fontInfo() const;
- const QFont& font() const;
- void setFont(const QFont&);
- const QPen& pen() const;
- void setPen(const QPen&);
+ const TQFont& font() const;
+ void setFont(const TQFont&);
+ const TQPen& pen() const;
+ void setPen(const TQPen&);
void setPen(Qt::PenStyle);
- void setPen(const QColor&);
- const QBrush&brush() const;
- void setBrush(const QBrush&);
- void setBrush(Qt::BrushStyle);
- void setBrush(const QColor&);
- QPoint pos() const;
-
- const QColor&backgroundColor() const;
- void setBackgroundColor(const QColor&);
+ void setPen(const TQColor&);
+ const TQBrush&brush() const;
+ void setBrush(const TQBrush&);
+ void setBrush(TQt::BrushStyle);
+ void setBrush(const TQColor&);
+ TQPoint pos() const;
+
+ const TQColor&backgroundColor() const;
+ void setBackgroundColor(const TQColor&);
Qt::BGMode backgroundMode() const;
void setBackgroundMode(Qt::BGMode);
- Qt::RasterOp rasterOp() const;
- void setRasterOp(Qt::RasterOp);
- const QPoint&brushOrigin() const;
+ TQt::RasterOp rasterOp() const;
+ void setRasterOp(TQt::RasterOp);
+ const TQPoint&brushOrigin() const;
void setBrushOrigin(int x, int y);
- void setBrushOrigin(const QPoint&);
+ void setBrushOrigin(const TQPoint&);
bool hasViewXForm() const;
bool hasWorldXForm() const;
void setViewXForm(bool);
- QRect window() const;
- void setWindow(const QRect&);
+ TQRect window() const;
+ void setWindow(const TQRect&);
void setWindow(int x, int y, int w, int h);
- QRect viewport() const;
- void setViewport(const QRect&);
+ TQRect viewport() const;
+ void setViewport(const TQRect&);
void setViewport(int x, int y, int w, int h);
void setWorldXForm(bool);
- const QWMatrix&worldMatrix() const;
- void setWorldMatrix(const QWMatrix&, bool combine=FALSE);
+ const TQWMatrix&tqworldMatrix() const;
+ void setWorldMatrix(const TQWMatrix&, bool combine=FALSE);
void saveWorldMatrix();
void restoreWorldMatrix();
@@ -256,86 +256,86 @@ public:
double translationX() const;
double translationY() const;
- QPoint xForm(const QPoint&) const;
- QRect xForm(const QRect&) const;
- QPointArray xForm(const QPointArray&) const;
- QPointArray xForm(const QPointArray&, int index, int npoints) const;
- QPoint xFormDev(const QPoint&) const;
- QRect xFormDev(const QRect&) const;
- QPointArray xFormDev(const QPointArray&) const;
- QPointArray xFormDev(const QPointArray&, int index, int npoints) const;
+ TQPoint xForm(const TQPoint&) const;
+ TQRect xForm(const TQRect&) const;
+ TQPointArray xForm(const TQPointArray&) const;
+ TQPointArray xForm(const TQPointArray&, int index, int npoints) const;
+ TQPoint xFormDev(const TQPoint&) const;
+ TQRect xFormDev(const TQRect&) const;
+ TQPointArray xFormDev(const TQPointArray&) const;
+ TQPointArray xFormDev(const TQPointArray&, int index, int npoints) const;
void setClipping(bool);
bool hasClipping() const;
- QRegion clipRegion(QPainter::CoordinateMode = QPainter::CoordDevice) const;
- void setClipRect(const QRect&, QPainter::CoordinateMode = QPainter::CoordDevice);
- void setClipRect(int x, int y, int w, int h, QPainter::CoordinateMode = QPainter::CoordDevice);
- void setClipRegion(const QRegion&, QPainter::CoordinateMode = QPainter::CoordDevice);
+ TQRegion clipRegion(TQPainter::CoordinateMode = TQPainter::CoordDevice) const;
+ void setClipRect(const TQRect&, TQPainter::CoordinateMode = TQPainter::CoordDevice);
+ void setClipRect(int x, int y, int w, int h, TQPainter::CoordinateMode = TQPainter::CoordDevice);
+ void setClipRegion(const TQRegion&, TQPainter::CoordinateMode = TQPainter::CoordDevice);
void drawPoint(int x, int y);
- void drawPoint(const QPoint&);
- void drawPoints(const QPointArray& a, int index=0, int npoints=-1);
+ void drawPoint(const TQPoint&);
+ void drawPoints(const TQPointArray& a, int index=0, int npoints=-1);
void moveTo(int x, int y);
- void moveTo(const QPoint&);
+ void moveTo(const TQPoint&);
void lineTo(int x, int y);
- void lineTo(const QPoint&);
+ void lineTo(const TQPoint&);
void drawLine(int x1, int y1, int x2, int y2);
- void drawLine(const QPoint&, const QPoint&);
+ void drawLine(const TQPoint&, const TQPoint&);
void drawRect(int x, int y, int w, int h);
- void drawRect(const QRect&);
+ void drawRect(const TQRect&);
void drawWinFocusRect(int x, int y, int w, int h);
- void drawWinFocusRect(int x, int y, int w, int h, const QColor&bgColor);
- void drawWinFocusRect(const QRect&);
- void drawWinFocusRect(const QRect&, const QColor&bgColor);
+ void drawWinFocusRect(int x, int y, int w, int h, const TQColor&bgColor);
+ void drawWinFocusRect(const TQRect&);
+ void drawWinFocusRect(const TQRect&, const TQColor&bgColor);
void drawRoundRect(int x, int y, int w, int h, int = 25, int = 25);
- void drawRoundRect(const QRect&, int = 25, int = 25);
+ void drawRoundRect(const TQRect&, int = 25, int = 25);
void drawEllipse(int x, int y, int w, int h);
- void drawEllipse(const QRect&);
+ void drawEllipse(const TQRect&);
void drawArc(int x, int y, int w, int h, int a, int alen);
- void drawArc(const QRect&, int a, int alen);
+ void drawArc(const TQRect&, int a, int alen);
void drawPie(int x, int y, int w, int h, int a, int alen);
- void drawPie(const QRect&, int a, int alen);
+ void drawPie(const TQRect&, int a, int alen);
void drawChord(int x, int y, int w, int h, int a, int alen);
- void drawChord(const QRect&, int a, int alen);
- void drawLineSegments(const QPointArray&, int index=0, int nlines=-1);
- void drawPolyline(const QPointArray&, int index=0, int npoints=-1);
- void drawPolygon(const QPointArray&, bool winding=FALSE, int index=0, int npoints=-1);
- void drawConvexPolygon(const QPointArray&, int index=0, int npoints=-1);
- void drawCubicBezier(const QPointArray&, int index=0);
- void drawPixmap(int x, int y, const QPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1);
- void drawPixmap(const QPoint&, const QPixmap&, const QRect&sr);
- void drawPixmap(const QPoint&, const QPixmap&);
- void drawPixmap(const QRect&, const QPixmap&);
- void drawImage(int x, int y, const QImage&, int sx = 0, int sy = 0, int sw = -1, int sh = -1, int conversionFlags = 0);
- void drawImage(const QPoint&, const QImage&, const QRect&sr, int conversionFlags = 0);
- void drawImage(const QPoint&, const QImage&, int conversion_flags = 0);
- void drawImage(const QRect&, const QImage&);
- void drawTiledPixmap(int x, int y, int w, int h, const QPixmap&, int sx=0, int sy=0);
- void drawTiledPixmap(const QRect&, const QPixmap&, const QPoint&);
- void drawTiledPixmap(const QRect&, const QPixmap&);
- //void drawPicture(const QPicture&);
- //void drawPicture(int x, int y, const QPicture&);
- //void drawPicture(const QPoint&, const QPicture&);
-
- void fillRect(int x, int y, int w, int h, const QBrush&);
- void fillRect(const QRect&, const QBrush&);
+ void drawChord(const TQRect&, int a, int alen);
+ void drawLineSegments(const TQPointArray&, int index=0, int nlines=-1);
+ void drawPolyline(const TQPointArray&, int index=0, int npoints=-1);
+ void drawPolygon(const TQPointArray&, bool winding=FALSE, int index=0, int npoints=-1);
+ void drawConvexPolygon(const TQPointArray&, int index=0, int npoints=-1);
+ void drawCubicBezier(const TQPointArray&, int index=0);
+ void drawPixmap(int x, int y, const TQPixmap&, int sx=0, int sy=0, int sw=-1, int sh=-1);
+ void drawPixmap(const TQPoint&, const TQPixmap&, const TQRect&sr);
+ void drawPixmap(const TQPoint&, const TQPixmap&);
+ void drawPixmap(const TQRect&, const TQPixmap&);
+ void drawImage(int x, int y, const TQImage&, int sx = 0, int sy = 0, int sw = -1, int sh = -1, int conversionFlags = 0);
+ void drawImage(const TQPoint&, const TQImage&, const TQRect&sr, int conversionFlags = 0);
+ void drawImage(const TQPoint&, const TQImage&, int conversion_flags = 0);
+ void drawImage(const TQRect&, const TQImage&);
+ void drawTiledPixmap(int x, int y, int w, int h, const TQPixmap&, int sx=0, int sy=0);
+ void drawTiledPixmap(const TQRect&, const TQPixmap&, const TQPoint&);
+ void drawTiledPixmap(const TQRect&, const TQPixmap&);
+ //void drawPicture(const TQPicture&);
+ //void drawPicture(int x, int y, const TQPicture&);
+ //void drawPicture(const TQPoint&, const TQPicture&);
+
+ void fillRect(int x, int y, int w, int h, const TQBrush&);
+ void fillRect(const TQRect&, const TQBrush&);
void eraseRect(int x, int y, int w, int h);
- void eraseRect(const QRect&);
+ void eraseRect(const TQRect&);
- void drawText(int x, int y, const QString&, int len = -1, QPainter::TextDirection dir = QPainter::Auto);
- void drawText(const QPoint&, const QString&, int len = -1, QPainter::TextDirection dir = QPainter::Auto);
+ void drawText(int x, int y, const TQString&, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto);
+ void drawText(const TQPoint&, const TQString&, int len = -1, TQPainter::TextDirection dir = TQPainter::Auto);
- void drawText(int x, int y, const QString&, int pos, int len, QPainter::TextDirection dir = QPainter::Auto);
- void drawText(const QPoint&p, const QString&, int pos, int len, QPainter::TextDirection dir = QPainter::Auto);
+ void drawText(int x, int y, const TQString&, int pos, int len, TQPainter::TextDirection dir = TQPainter::Auto);
+ void drawText(const TQPoint&p, const TQString&, int pos, int len, TQPainter::TextDirection dir = TQPainter::Auto);
- void drawText(int x, int y, int w, int h, int flags, const QString&, int len = -1, QRect *br=0, QTextParag **intern=0);
- void drawText(const QRect&, int flags, const QString&, int len = -1, QRect *br=0, QTextParag **intern=0);
+ void drawText(int x, int y, int w, int h, int flags, const TQString&, int len = -1, TQRect *br=0, TQTextParag **intern=0);
+ void drawText(const TQRect&, int flags, const TQString&, int len = -1, TQRect *br=0, TQTextParag **intern=0);
- void drawTextItem(int x, int y, const QTextItem&ti, int textflags = 0);
- void drawTextItem(const QPoint& p, const QTextItem&ti, int textflags = 0);
+ void tqdrawTextItem(int x, int y, const TQTextItem&ti, int textflags = 0);
+ void tqdrawTextItem(const TQPoint& p, const TQTextItem&ti, int textflags = 0);
- QRect boundingRect(int x, int y, int w, int h, int flags, const QString&, int len = -1, QTextParag **intern=0);
- QRect boundingRect(const QRect&, int flags, const QString&, int len = -1, QTextParag **intern=0);
+ TQRect boundingRect(int x, int y, int w, int h, int flags, const TQString&, int len = -1, TQTextParag **intern=0);
+ TQRect boundingRect(const TQRect&, int flags, const TQString&, int len = -1, TQTextParag **intern=0);
int tabStops() const;
void setTabStops(int);
@@ -344,12 +344,12 @@ public:
protected:
KisCanvasWidgetPainter *m_canvasWidgetPainter;
- QFont m_defaultFont;
- QPen m_defaultPen;
- QBrush m_defaultBrush;
- QColor m_defaultColor;
- QPoint m_defaultBrushOrigin;
- QWMatrix m_defaultWorldMatrix;
+ TQFont m_defaultFont;
+ TQPen m_defaultPen;
+ TQBrush m_defaultBrush;
+ TQColor m_defaultColor;
+ TQPoint m_defaultBrushOrigin;
+ TQWMatrix m_defaultWorldMatrix;
};
#endif // KIS_CANVAS_PAINTER_H_