summaryrefslogtreecommitdiffstats
path: root/krita/core/kis_datamanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'krita/core/kis_datamanager.h')
-rw-r--r--krita/core/kis_datamanager.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/krita/core/kis_datamanager.h b/krita/core/kis_datamanager.h
index 2c450004f..79f7ddb8c 100644
--- a/krita/core/kis_datamanager.h
+++ b/krita/core/kis_datamanager.h
@@ -18,9 +18,9 @@
#ifndef KIS_DATAMANAGER_H_
#define KIS_DATAMANAGER_H_
-#include <qglobal.h>
-#include <qvaluevector.h>
-#include <qrect.h>
+#include <tqglobal.h>
+#include <tqvaluevector.h>
+#include <tqrect.h>
class KoStore;
@@ -40,12 +40,12 @@ class KoStore;
* that may allow deferred loading.
*
* A datamanager knows nothing about the type of pixel data except
- * how many Q_UINT8's a single pixel takes.
+ * how many TQ_UINT8's a single pixel takes.
*/
class KisDataManager : public ACTUAL_DATAMGR {
public:
- KisDataManager(Q_UINT32 pixelSize, const Q_UINT8 *defPixel) : ACTUAL_DATAMGR(pixelSize, defPixel) {}
+ KisDataManager(TQ_UINT32 pixelSize, const TQ_UINT8 *defPixel) : ACTUAL_DATAMGR(pixelSize, defPixel) {}
KisDataManager(const KisDataManager& dm) : ACTUAL_DATAMGR(dm) { }
public:
@@ -53,12 +53,12 @@ public:
* Sets the default pixel. Note that this might change every occurrance, and it might not, but new data
* well be initialised with this pixel
*/
- inline void setDefaultPixel(const Q_UINT8 *defPixel) { return ACTUAL_DATAMGR::setDefaultPixel(defPixel); }
+ inline void setDefaultPixel(const TQ_UINT8 *defPixel) { return ACTUAL_DATAMGR::setDefaultPixel(defPixel); }
/**
* Gets the default pixel.
*/
- inline const Q_UINT8 *defaultPixel() const { return ACTUAL_DATAMGR::defaultPixel(); }
+ inline const TQ_UINT8 *defaultPixel() const { return ACTUAL_DATAMGR::defaultPixel(); }
/**
* Reguests a memento from the data manager. There is only one memento active
@@ -98,15 +98,15 @@ public:
/**
* Returns the number of bytes a pixel takes
*/
- inline Q_UINT32 pixelSize() { return ACTUAL_DATAMGR::pixelSize(); }
+ inline TQ_UINT32 pixelSize() { return ACTUAL_DATAMGR::pixelSize(); }
/**
* Return the extent of the data in x,y,w,h.
*/
- inline void extent(Q_INT32 &x, Q_INT32 &y, Q_INT32 &w, Q_INT32 &h) const
+ inline void extent(TQ_INT32 &x, TQ_INT32 &y, TQ_INT32 &w, TQ_INT32 &h) const
{ return ACTUAL_DATAMGR::extent(x, y, w, h); }
- QRect extent() const { return ACTUAL_DATAMGR::extent(); }
+ TQRect extent() const { return ACTUAL_DATAMGR::extent(); }
public:
@@ -114,26 +114,26 @@ public:
/**
* Crop or extend the data to x, y, w, h.
*/
- inline void setExtent(Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h)
+ inline void setExtent(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
{ return ACTUAL_DATAMGR::setExtent(x, y, w, h); }
- inline void setExtent(const QRect & rect) { setExtent(rect.x(), rect.y(), rect.width(), rect.height()); }
+ inline void setExtent(const TQRect & rect) { setExtent(rect.x(), rect.y(), rect.width(), rect.height()); }
public:
/**
* Clear the specified rect to the specified value.
*/
- inline void clear(Q_INT32 x, Q_INT32 y,
- Q_INT32 w, Q_INT32 h,
- Q_UINT8 def) { ACTUAL_DATAMGR::clear(x, y, w, h, def); }
+ inline void clear(TQ_INT32 x, TQ_INT32 y,
+ TQ_INT32 w, TQ_INT32 h,
+ TQ_UINT8 def) { ACTUAL_DATAMGR::clear(x, y, w, h, def); }
/**
* Clear the specified rect to the specified pixel value.
*/
- inline void clear(Q_INT32 x, Q_INT32 y,
- Q_INT32 w, Q_INT32 h,
- const Q_UINT8 * def) { ACTUAL_DATAMGR::clear(x, y, w, h, def); }
+ inline void clear(TQ_INT32 x, TQ_INT32 y,
+ TQ_INT32 w, TQ_INT32 h,
+ const TQ_UINT8 * def) { ACTUAL_DATAMGR::clear(x, y, w, h, def); }
/**
* Clear all back to default values.
@@ -147,63 +147,63 @@ public:
* Copy the specified rect from the specified data into this
* data.
*/
- inline void paste(KisDataManagerSP data, Q_INT32 sx, Q_INT32 sy, Q_INT32 dx, Q_INT32 dy,
- Q_INT32 w, Q_INT32 h) { ACTUAL_DATAMGR::paste(data, sx, sy, dx, dy, w, h); }
+ inline void paste(KisDataManagerSP data, TQ_INT32 sx, TQ_INT32 sy, TQ_INT32 dx, TQ_INT32 dy,
+ TQ_INT32 w, TQ_INT32 h) { ACTUAL_DATAMGR::paste(data, sx, sy, dx, dy, w, h); }
public:
/**
* Get a read-only pointer to the specified pixel.
*/
- inline KDE_DEPRECATED const Q_UINT8* pixel(Q_INT32 x, Q_INT32 y)
+ inline KDE_DEPRECATED const TQ_UINT8* pixel(TQ_INT32 x, TQ_INT32 y)
{ return ACTUAL_DATAMGR::pixel(x, y); }
/**
* Get a read-write pointer to the specified pixel.
*/
- inline KDE_DEPRECATED Q_UINT8* writablePixel(Q_INT32 x, Q_INT32 y)
+ inline KDE_DEPRECATED TQ_UINT8* writablePixel(TQ_INT32 x, TQ_INT32 y)
{ return ACTUAL_DATAMGR::writablePixel(x, y); }
/**
* Write the specified data to x, y. There is no checking on pixelSize!
*/
- inline void setPixel(Q_INT32 x, Q_INT32 y, const Q_UINT8 * data)
+ inline void setPixel(TQ_INT32 x, TQ_INT32 y, const TQ_UINT8 * data)
{ ACTUAL_DATAMGR::setPixel(x, y, data);}
/**
* Copy the bytes in the specified rect to a chunk of memory.
* The pixelSize in bytes is w * h * pixelSize. XXX: Better
- * use QValueVector?
+ * use TQValueVector?
*/
- inline void readBytes(Q_UINT8 * data,
- Q_INT32 x, Q_INT32 y,
- Q_INT32 w, Q_INT32 h)
+ inline void readBytes(TQ_UINT8 * data,
+ TQ_INT32 x, TQ_INT32 y,
+ TQ_INT32 w, TQ_INT32 h)
{ ACTUAL_DATAMGR::readBytes(data, x, y, w, h);}
/**
* Copy the bytes to the specified rect. w * h * pixelSize bytes will be read, whether
- * the caller prepared them or not. XXX: Better use QValueVector?
+ * the caller prepared them or not. XXX: Better use TQValueVector?
*/
- inline void writeBytes(const Q_UINT8 * data,
- Q_INT32 x, Q_INT32 y,
- Q_INT32 w, Q_INT32 h)
+ inline void writeBytes(const TQ_UINT8 * data,
+ TQ_INT32 x, TQ_INT32 y,
+ TQ_INT32 w, TQ_INT32 h)
{ACTUAL_DATAMGR::writeBytes( data, x, y, w, h); }
// Get the number of contiguous columns starting at x, valid for all values
// of y between minY and maxY.
- inline Q_INT32 numContiguousColumns(Q_INT32 x, Q_INT32 minY, Q_INT32 maxY)
+ inline TQ_INT32 numContiguousColumns(TQ_INT32 x, TQ_INT32 minY, TQ_INT32 maxY)
{ return ACTUAL_DATAMGR::numContiguousColumns(x, minY, maxY); }
// Get the number of contiguous rows starting at y, valid for all values
// of x between minX and maxX.
- inline Q_INT32 numContiguousRows(Q_INT32 y, Q_INT32 minX, Q_INT32 maxX)
+ inline TQ_INT32 numContiguousRows(TQ_INT32 y, TQ_INT32 minX, TQ_INT32 maxX)
{ return ACTUAL_DATAMGR::numContiguousRows(y, minX, maxX); }
// Get the row stride at pixel (x, y). This is the number of bytes to add to a
// pointer to pixel (x, y) to access (x, y + 1).
- inline Q_INT32 rowStride(Q_INT32 x, Q_INT32 y)
+ inline TQ_INT32 rowStride(TQ_INT32 x, TQ_INT32 y)
{ return ACTUAL_DATAMGR::rowStride(x, y); }
protected: