diff options
Diffstat (limited to 'krita/core/kis_palette.h')
| -rw-r--r-- | krita/core/kis_palette.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/krita/core/kis_palette.h b/krita/core/kis_palette.h index 5d7d02c9f..ef1788192 100644 --- a/krita/core/kis_palette.h +++ b/krita/core/kis_palette.h @@ -18,9 +18,9 @@ #ifndef KIS_PALETTE_ #define KIS_PALETTE_ -#include <qimage.h> -#include <qcolor.h> -#include <qvaluevector.h> +#include <tqimage.h> +#include <tqcolor.h> +#include <tqvaluevector.h> #include <kio/job.h> #include <kpalette.h> @@ -29,15 +29,15 @@ #include "kis_resource.h" #include "kis_global.h" #include "kis_gradient.h" -#include "kis_alpha_mask.h" +#include "kis_alpha_tqmask.h" -class QPoint; -class QPixmap; +class TQPoint; +class TQPixmap; class KisPaintDevice; struct KisPaletteEntry { - QColor color; - QString name; + TQColor color; + TQString name; bool operator==(const KisPaletteEntry& rhs) const { return color == rhs.color && name == rhs.name; } @@ -51,28 +51,29 @@ class KisPalette : public KisResource { typedef KisResource super; Q_OBJECT + TQ_OBJECT public: /** * Create a palette from the colours in an image */ - KisPalette(const QImage * img, Q_INT32 nColors, const QString & name); + KisPalette(const TQImage * img, TQ_INT32 nColors, const TQString & name); /** * Create a palette from the colours in a paint device */ - KisPalette(const KisPaintDeviceSP device, Q_INT32 nColors, const QString & name); + KisPalette(const KisPaintDeviceSP device, TQ_INT32 nColors, const TQString & name); /** * Create a palette from the colours in a gradient */ - KisPalette(const KisGradient * gradient, Q_INT32 nColors, const QString & name); + KisPalette(const KisGradient * gradient, TQ_INT32 nColors, const TQString & name); /** * Load a palette from a file. This can be a Gimp * palette, a RIFF palette or a Photoshop palette. */ - KisPalette(const QString& filename); + KisPalette(const TQString& filename); /// Create an empty palette KisPalette(); @@ -84,28 +85,28 @@ public: virtual bool load(); virtual bool save(); - virtual QImage img(); + virtual TQImage img(); public: void add(const KisPaletteEntry &); void remove(const KisPaletteEntry &); - KisPaletteEntry getColor(Q_UINT32 index); - Q_INT32 nColors(); + KisPaletteEntry getColor(TQ_UINT32 index); + TQ_INT32 nColors(); private: bool init(); private: - QByteArray m_data; + TQByteArray m_data; bool m_ownData; - QImage m_img; - QString m_name; - QString m_comment; - Q_INT32 m_columns; - QValueVector<KisPaletteEntry> m_colors; + TQImage m_img; + TQString m_name; + TQString m_comment; + TQ_INT32 m_columns; + TQValueVector<KisPaletteEntry> m_colors; }; #endif // KIS_PALETTE_ |
