summaryrefslogtreecommitdiffstats
path: root/ktnef/gui/qwmf.h
diff options
context:
space:
mode:
Diffstat (limited to 'ktnef/gui/qwmf.h')
-rw-r--r--ktnef/gui/qwmf.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/ktnef/gui/qwmf.h b/ktnef/gui/qwmf.h
index b655a3fd3..051979df3 100644
--- a/ktnef/gui/qwmf.h
+++ b/ktnef/gui/qwmf.h
@@ -19,14 +19,14 @@
#ifndef qwmf_h
#define qwmf_h
-#include <qstring.h>
-#include <qpainter.h>
-#include <qwmatrix.h>
-#include <qpointarray.h>
-#include <qpen.h>
-#include <qcolor.h>
-#include <qimage.h>
-#include <qrect.h>
+#include <tqstring.h>
+#include <tqpainter.h>
+#include <tqwmatrix.h>
+#include <tqpointarray.h>
+#include <tqpen.h>
+#include <tqcolor.h>
+#include <tqimage.h>
+#include <tqrect.h>
class QBuffer;
class QString;
@@ -41,7 +41,7 @@ struct WmfPlaceableHeader;
* How to use QWinMetaFile :
* #include "qwmf.h"
* QWinMetaFile wmf;
- * QPicture pic; // or QImage pic;
+ * TQPicture pic; // or TQImage pic;
* if ( wmf.load( filename )
*   wmf.paint( &pic );
*/
@@ -56,8 +56,8 @@ public:
/**
* Load WMF file. Returns true on success.
*/
- virtual bool load( const QString &fileName );
- virtual bool load( QBuffer &buffer );
+ virtual bool load( const TQString &fileName );
+ virtual bool load( TQBuffer &buffer );
/**
* Paint metafile to given paint-device using absolute or relative coordinate.
@@ -65,7 +65,7 @@ public:
* relative coord. use the existing world transfomation Matrix
* Returns true on success.
*/
- virtual bool paint( const QPaintDevice* target, bool absolute=false );
+ virtual bool paint( const TQPaintDevice* target, bool absolute=false );
/**
* Returns true if the metafile is placeable.
@@ -80,8 +80,8 @@ public:
/**
* Returns bounding rectangle
*/
- QRect bbox( void ) const { return mBBox; }
- void setBbox( QRect r ) { mBBox = r; }
+ TQRect bbox( void ) const { return mBBox; }
+ void setBbox( TQRect r ) { mBBox = r; }
public: // should be protected but cannot
/** Metafile painter methods */
@@ -182,10 +182,10 @@ protected:
virtual int findFunc( unsigned short aFunc ) const;
/** Fills given parms into mPoints. */
- QPointArray* pointArray( short num, short* parms );
+ TQPointArray* pointArray( short num, short* parms );
/** Returns color given by the two parameters */
- QColor color( short* parm );
+ TQColor color( short* parm );
/** Converts two parameters to long */
unsigned int toDWord( short* parm );
@@ -202,26 +202,26 @@ protected:
Qt::RasterOp winToQtRaster( long parm ) const;
/** Converts DIB to BMP */
- bool dibToBmp( QImage& bmp, const char* dib, long size);
+ bool dibToBmp( TQImage& bmp, const char* dib, long size);
protected:
- QPainter mPainter;
+ TQPainter mPainter;
bool mIsPlaceable, mIsEnhanced, mValid;
// coordinate system
bool mAbsoluteCoord;
- QWMatrix mInternalWorldMatrix; // memorisation of WMF matrix transformation
- QRect mHeaderBoundingBox;
- QRect mBBox;
+ TQWMatrix mInternalWorldMatrix; // memorisation of WMF matrix transformation
+ TQRect mHeaderBoundingBox;
+ TQRect mBBox;
// informtion shared between Metafile Functions
- QColor mTextColor;
+ TQColor mTextColor;
int mTextAlign, mRotation;
bool mWinding;
WmfCmd* mFirstCmd;
WinObjHandle** mObjHandleTab;
- QPointArray mPoints;
+ TQPointArray mPoints;
int mDpi;
};