summaryrefslogtreecommitdiffstats
path: root/kimgio/rgb.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kimgio/rgb.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/rgb.h')
-rw-r--r--kimgio/rgb.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kimgio/rgb.h b/kimgio/rgb.h
index 224d22cc8..cd0a897d9 100644
--- a/kimgio/rgb.h
+++ b/kimgio/rgb.h
@@ -11,37 +11,37 @@
#ifndef KIMG_RGB_H
#define KIMG_RGB_H
-#include <qmap.h>
-#include <qptrvector.h>
+#include <tqmap.h>
+#include <tqptrvector.h>
class QImage;
class QImageIO;
extern "C" {
-void kimgio_rgb_read(QImageIO *);
-void kimgio_rgb_write(QImageIO *);
+void kimgio_rgb_read(TQImageIO *);
+void kimgio_rgb_write(TQImageIO *);
}
-class RLEData : public QMemArray<uchar> {
+class RLEData : public TQMemArray<uchar> {
public:
RLEData() {}
RLEData(const uchar *d, uint l, uint o) : m_offset(o) { duplicate(d, l); }
bool operator<(const RLEData&) const;
- void write(QDataStream& s);
- void print(QString) const; // TODO remove
+ void write(TQDataStream& s);
+ void print(TQString) const; // TODO remove
uint offset() { return m_offset; }
private:
uint m_offset;
};
-class RLEMap : public QMap<RLEData, uint> {
+class RLEMap : public TQMap<RLEData, uint> {
public:
RLEMap() : m_counter(0), m_offset(0) {}
uint insert(const uchar *d, uint l);
- QPtrVector<RLEData> vector();
+ TQPtrVector<RLEData> vector();
void setBaseOffset(uint o) { m_offset = o; }
private:
uint m_counter;
@@ -51,11 +51,11 @@ private:
class SGIImage {
public:
- SGIImage(QImageIO *);
+ SGIImage(TQImageIO *);
~SGIImage();
- bool readImage(QImage&);
- bool writeImage(QImage&);
+ bool readImage(TQImage&);
+ bool writeImage(TQImage&);
private:
enum { NORMAL, DITHERED, SCREEN, COLORMAP }; // colormap
@@ -77,18 +77,18 @@ private:
Q_UINT32 *m_starttab;
Q_UINT32 *m_lengthtab;
QByteArray m_data;
- QByteArray::Iterator m_pos;
+ TQByteArray::Iterator m_pos;
RLEMap m_rlemap;
- QPtrVector<RLEData> m_rlevector;
+ TQPtrVector<RLEData> m_rlevector;
uint m_numrows;
- bool readData(QImage&);
+ bool readData(TQImage&);
bool getRow(uchar *dest);
void writeHeader();
void writeRle();
- void writeVerbatim(const QImage&);
- bool scanData(const QImage&);
+ void writeVerbatim(const TQImage&);
+ bool scanData(const TQImage&);
uint compact(uchar *, uchar *);
uchar intensity(uchar);
};