summaryrefslogtreecommitdiffstats
path: root/karbon/karbon_resourceserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/karbon_resourceserver.h')
-rw-r--r--karbon/karbon_resourceserver.h55
1 files changed, 28 insertions, 27 deletions
diff --git a/karbon/karbon_resourceserver.h b/karbon/karbon_resourceserver.h
index 8dbdc35f..cf1aae55 100644
--- a/karbon/karbon_resourceserver.h
+++ b/karbon/karbon_resourceserver.h
@@ -26,9 +26,9 @@
#define __KARBONRESOURCESERVER_H__
-#include <qptrlist.h>
-#include <qdict.h>
-#include <qstring.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
+#include <tqstring.h>
//#include "vgradient.h"
#include "vpattern.h"
@@ -40,9 +40,10 @@ class VClipartIconItem;
class VObject;
-class KARBONCOMMON_EXPORT KarbonResourceServer : public QObject
+class KARBONCOMMON_EXPORT KarbonResourceServer : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KarbonResourceServer();
@@ -53,12 +54,12 @@ public:
return m_patterns.count();
}
- QPtrList<KoIconItem> patterns()
+ TQPtrList<KoIconItem> patterns()
{
return m_patterns;
}
- VPattern* addPattern( const QString& tilename );
+ VPattern* addPattern( const TQString& tilename );
void removePattern( VPattern* pattern );
int gradientCount()
@@ -66,7 +67,7 @@ public:
return m_gradients->count();
}
- QPtrList<VGradientListItem>* gradients()
+ TQPtrList<VGradientListItem>* gradients()
{
return m_gradients;
}
@@ -79,7 +80,7 @@ public:
return m_cliparts->count();
}
- QPtrList<VClipartIconItem>* cliparts()
+ TQPtrList<VClipartIconItem>* cliparts()
{
return m_cliparts;
}
@@ -87,43 +88,43 @@ public:
VClipartIconItem* addClipart( VObject* clipart, double width, double height );
void removeClipart( VClipartIconItem* clipartIcon );
- QPixmap *cachePixmap( const QString &key, int group_or_size );
+ TQPixmap *cachePixmap( const TQString &key, int group_or_size );
signals:
void patternAdded( KoIconItem *pattern );
void patternRemoved( KoIconItem *pattern );
protected:
- const VPattern* loadPattern( const QString& filename );
+ const VPattern* loadPattern( const TQString& filename );
- void loadGradient( const QString& filename );
- void saveGradient( VGradient* gradient, const QString& filename );
+ void loadGradient( const TQString& filename );
+ void saveGradient( VGradient* gradient, const TQString& filename );
- void loadClipart( const QString& filename );
- void saveClipart( VObject* object, double width, double height, const QString& filename );
+ void loadClipart( const TQString& filename );
+ void saveClipart( VObject* object, double width, double height, const TQString& filename );
private:
- QPtrList<KoIconItem> m_patterns;
- QPtrList<VGradientListItem>* m_gradients;
- QPtrList<VClipartIconItem>* m_cliparts;
- QDict<QPixmap> m_pixmaps;
+ TQPtrList<KoIconItem> m_patterns;
+ TQPtrList<VGradientListItem>* m_gradients;
+ TQPtrList<VClipartIconItem>* m_cliparts;
+ TQDict<TQPixmap> m_pixmaps;
};
class VClipartIconItem : public KoIconItem
{
public:
- VClipartIconItem( const VObject* clipart, double width, double height, QString filename );
+ VClipartIconItem( const VObject* clipart, double width, double height, TQString filename );
VClipartIconItem( const VClipartIconItem& item );
~VClipartIconItem();
- virtual QPixmap& thumbPixmap() const
+ virtual TQPixmap& thumbPixmap() const
{
- return ( QPixmap& ) m_thumbPixmap;
+ return ( TQPixmap& ) m_thumbPixmap;
}
- virtual QPixmap& pixmap() const
+ virtual TQPixmap& pixmap() const
{
- return ( QPixmap& ) m_pixmap;
+ return ( TQPixmap& ) m_pixmap;
}
const VObject* clipart() const
@@ -131,7 +132,7 @@ public:
return m_clipart;
}
- QString filename() const
+ TQString filename() const
{
return m_filename;
}
@@ -154,10 +155,10 @@ public:
VClipartIconItem* clone();
private:
- QPixmap m_pixmap;
- QPixmap m_thumbPixmap;
+ TQPixmap m_pixmap;
+ TQPixmap m_thumbPixmap;
VObject* m_clipart;
- QString m_filename;
+ TQString m_filename;
bool m_delete;
double m_width;
double m_height;