summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/pcx/kfile_pcx.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kfile-plugins/pcx/kfile_pcx.h
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/pcx/kfile_pcx.h')
-rw-r--r--kfile-plugins/pcx/kfile_pcx.h43
1 files changed, 22 insertions, 21 deletions
diff --git a/kfile-plugins/pcx/kfile_pcx.h b/kfile-plugins/pcx/kfile_pcx.h
index 2d9b772f..f406e79f 100644
--- a/kfile-plugins/pcx/kfile_pcx.h
+++ b/kfile-plugins/pcx/kfile_pcx.h
@@ -26,16 +26,16 @@ struct PALETTE
{
struct
{
- Q_UINT8 r;
- Q_UINT8 g;
- Q_UINT8 b;
+ TQ_UINT8 r;
+ TQ_UINT8 g;
+ TQ_UINT8 b;
} p[ 16 ];
};
struct PCXHEADER
{
- Q_UINT8 Manufacturer; // Constant Flag, 10 = ZSoft .pcx
- Q_UINT8 Version; // Version informationˇ
+ TQ_UINT8 Manufacturer; // Constant Flag, 10 = ZSoft .pcx
+ TQ_UINT8 Version; // Version informationˇ
// 0 = Version 2.5 of PC Paintbrushˇ
// 2 = Version 2.8 w/palette informationˇ
// 3 = Version 2.8 w/o palette informationˇ
@@ -45,37 +45,38 @@ struct PCXHEADER
// and PC Paintbrush +, includes
// Publisher's Paintbrush . Includes
// 24-bit .PCX filesˇ
- Q_UINT8 Encoding; // 1 = .PCX run length encoding
- Q_UINT8 Bpp; // Number of bits to represent a pixel
+ TQ_UINT8 Encoding; // 1 = .PCX run length encoding
+ TQ_UINT8 Bpp; // Number of bits to represent a pixel
// (per Plane) - 1, 2, 4, or 8ˇ
- Q_UINT16 XMin;
- Q_UINT16 YMin;
- Q_UINT16 XMax;
- Q_UINT16 YMax;
- Q_UINT16 HDpi;
- Q_UINT16 YDpi;
+ TQ_UINT16 XMin;
+ TQ_UINT16 YMin;
+ TQ_UINT16 XMax;
+ TQ_UINT16 YMax;
+ TQ_UINT16 HDpi;
+ TQ_UINT16 YDpi;
struct PALETTE Palette;
- Q_UINT8 Reserved; // Should be set to 0.
- Q_UINT8 NPlanes; // Number of color planes
- Q_UINT16 BytesPerLine; // Number of bytes to allocate for a scanline
+ TQ_UINT8 Reserved; // Should be set to 0.
+ TQ_UINT8 NPlanes; // Number of color planes
+ TQ_UINT16 BytesPerLine; // Number of bytes to allocate for a scanline
// plane. MUST be an EVEN number. Do NOT
// calculate from Xmax-Xmin.ˇ
- Q_UINT16 PaletteInfo; // How to interpret palette- 1 = Color/BW,
+ TQ_UINT16 PaletteInfo; // How to interpret palette- 1 = Color/BW,
// 2 = Grayscale ( ignored in PB IV/ IV + )ˇ
- Q_UINT16 HScreenSize; // Horizontal screen size in pixels. New field
+ TQ_UINT16 HScreenSize; //Qt::Horizontal screen size in pixels. New field
// found only in PB IV/IV Plus
- Q_UINT16 VScreenSize; // Vertical screen size in pixels. New field
+ TQ_UINT16 VScreenSize; //Qt::Vertical screen size in pixels. New field
// found only in PB IV/IV Plus
- Q_UINT8 Filler[ 54 ]; // Blank to fill out 128 byte header. Set all
+ TQ_UINT8 Filler[ 54 ]; // Blank to fill out 128 byte header. Set all
// bytes to 0
};
class KPcxPlugin: public KFilePlugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KPcxPlugin(TQObject *parent, const char *name, const TQStringList& args);
+ KPcxPlugin(TQObject *tqparent, const char *name, const TQStringList& args);
virtual bool readInfo(KFileMetaInfo& info, uint what);
private: