summaryrefslogtreecommitdiffstats
path: root/kbarcode/zplutils.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 00:55:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 00:55:34 +0000
commitc4189d200e71c7ef82e9a6e34935ad225154d658 (patch)
treef7f29a1159e0402472ff2ab22617a8113f66263c /kbarcode/zplutils.h
parent2f888b1578e65ec1bc514996eb509fcaf34462d6 (diff)
downloadkbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.tar.gz
kbarcode-c4189d200e71c7ef82e9a6e34935ad225154d658.zip
TQt4 port kbarcode
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1233956 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/zplutils.h')
-rw-r--r--kbarcode/zplutils.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/kbarcode/zplutils.h b/kbarcode/zplutils.h
index 14365bb..1c5e0b6 100644
--- a/kbarcode/zplutils.h
+++ b/kbarcode/zplutils.h
@@ -18,18 +18,18 @@
#ifndef ZPLUTILS_H
#define ZPLUTILS_H
-#include <qpaintdevice.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
+#include <tqpaintdevice.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
-class QColor;
-class QFont;
-class QImage;
-class QSize;
-class QTextStream;
+class TQColor;
+class TQFont;
+class TQImage;
+class TQSize;
+class TQTextStream;
-class BarcodePrinterDevice : public QPaintDevice {
+class BarcodePrinterDevice : public TQPaintDevice {
public:
BarcodePrinterDevice( double dpix, double dpiy );
@@ -52,19 +52,19 @@ class BarcodePrinterDevice : public QPaintDevice {
*/
class ZPLUtils {
public:
- static QString footer();
- static QString header();
+ static TQString footer();
+ static TQString header();
- static QString encoding( const QString & encoding );
- static QString fieldData( const QString & data );
- static QString fieldOrigin( int x, int y );
- static QString font( const QFont & font );
+ static TQString encoding( const TQString & encoding );
+ static TQString fieldData( const TQString & data );
+ static TQString fieldOrigin( int x, int y );
+ static TQString font( const TQFont & font );
private:
static void fillEncodings();
protected:
- static QMap<QString,QString> encodings;
+ static TQMap<TQString,TQString> encodings;
};
/**
@@ -80,20 +80,20 @@ class IPLUtils {
public:
IPLUtils();
- void addValue( const QString & v );
+ void addValue( const TQString & v );
int counter();
- QString encoding( const QString & type );
- QString footer();
- QString header();
+ TQString encoding( const TQString & type );
+ TQString footer();
+ TQString header();
- QString field( const QString & data );
- QString fieldOrigin( int x, int y );
+ TQString field( const TQString & data );
+ TQString fieldOrigin( int x, int y );
private:
int m_counter;
- QStringList m_values;
- static QMap<QString,QString> encodings;
+ TQStringList m_values;
+ static TQMap<TQString,TQString> encodings;
/** fill the map to match kbarcode encoding types with IPL types */
void fillEncodings();
@@ -111,26 +111,26 @@ class IPLUtils {
class EPCLUtils {
public:
- static QString encoding( const QString & type );
- static QString footer();
- static QString header();
+ static TQString encoding( const TQString & type );
+ static TQString footer();
+ static TQString header();
- static QString field( const QString & data );
+ static TQString field( const TQString & data );
- EPCLUtils( QTextStream* stream, QPaintDevice* source );
+ EPCLUtils( TQTextStream* stream, TQPaintDevice* source );
- void setTextField( int x, int y, int width, int height, const QString & text );
- void setBarcode( int x, int y, int h, const QString & value, const QString & type );
- void setRect( int x, int y, const QSize size, bool circle, int width );
- void setImage( int x, int y, const QImage* image );
+ void setTextField( int x, int y, int width, int height, const TQString & text );
+ void setBarcode( int x, int y, int h, const TQString & value, const TQString & type );
+ void setRect( int x, int y, const TQSize size, bool circle, int width );
+ void setImage( int x, int y, const TQImage* image );
void close();
private:
static void fillEncodings();
- static QMap<QString,QString> encodings;
+ static TQMap<TQString,TQString> encodings;
- inline void setField( const QString & data );
+ inline void setField( const TQString & data );
void fillImageBuffer( void );
};