summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrPixmapObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'kpresenter/KPrPixmapObject.h')
-rw-r--r--kpresenter/KPrPixmapObject.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/kpresenter/KPrPixmapObject.h b/kpresenter/KPrPixmapObject.h
index 1be1dbee..4237d96e 100644
--- a/kpresenter/KPrPixmapObject.h
+++ b/kpresenter/KPrPixmapObject.h
@@ -24,14 +24,14 @@
#ifndef kppixmapobject_h
#define kppixmapobject_h
-#include <qdatetime.h>
-#include <qvariant.h>
+#include <tqdatetime.h>
+#include <tqvariant.h>
#include "KPrObject.h"
#include <KoPictureCollection.h>
#include <KoSize.h>
-class QPixmap;
+class TQPixmap;
// ### TODO rename the class (and the related files/classes) to a better name (for example KPPictureObject)
@@ -51,13 +51,13 @@ public:
* Only used as a default value in the filedialog, in changePicture
* \warning Do not use for anything else
*/
- QString getFileName() const
+ TQString getFileName() const
{ return image.getKey().filename(); }
KoPictureKey getKey() const
{ return image.getKey(); }
- QSize originalSize() const
+ TQSize originalSize() const
{ return image.getOriginalSize(); }
/// Deprecated, please use KPrPixmapObject::setPicture
@@ -68,18 +68,18 @@ public:
virtual ObjType getType() const
{ return OT_PICTURE; }
- virtual QString getTypeString() const
+ virtual TQString getTypeString() const
{ return i18n("Picture"); }
- virtual QDomDocumentFragment save( QDomDocument& doc, double offset );
+ virtual TQDomDocumentFragment save( TQDomDocument& doc, double offset );
- virtual double load(const QDomElement &element);
- virtual void loadOasis(const QDomElement &element, KoOasisContext & context, KPrLoadingInfo *info);
+ virtual double load(const TQDomElement &element);
+ virtual void loadOasis(const TQDomElement &element, KoOasisContext & context, KPrLoadingInfo *info);
- virtual void draw( QPainter *_painter, KoTextZoomHandler*_zoomHandler,
+ virtual void draw( TQPainter *_painter, KoTextZoomHandler*_zoomHandler,
int /* page */, SelectionMode selectionMode, bool drawContour = FALSE );
- QPixmap getOriginalPixmap();
+ TQPixmap getOriginalPixmap();
PictureMirrorType getPictureMirrorType() const { return mirrorType; }
int getPictureDepth() const { return depth; }
bool getPictureSwapRGB() const { return swapRGB; }
@@ -87,11 +87,11 @@ public:
int getPictureBright() const { return bright; }
ImageEffect getImageEffect() const {return m_effect;}
- QVariant getIEParam1() const {return m_ie_par1;}
- QVariant getIEParam2() const {return m_ie_par2;}
- QVariant getIEParam3() const {return m_ie_par3;}
+ TQVariant getIEParam1() const {return m_ie_par1;}
+ TQVariant getIEParam2() const {return m_ie_par2;}
+ TQVariant getIEParam3() const {return m_ie_par3;}
void setImageEffect(ImageEffect eff) { m_effect = eff; }
- void setIEParams(QVariant p1, QVariant p2, QVariant p3) {
+ void setIEParams(TQVariant p1, TQVariant p2, TQVariant p3) {
m_ie_par1=p1;
m_ie_par2=p2;
m_ie_par3=p3;
@@ -106,8 +106,8 @@ public:
KoPicture picture() const { return image;}
/// Deprecated, please use KPrPixmapObject::loadPicture
- void loadImage( const QString & fileName ) KDE_DEPRECATED;
- void loadPicture( const QString & fileName );
+ void loadImage( const TQString & fileName ) KDE_DEPRECATED;
+ void loadPicture( const TQString & fileName );
virtual void flip(bool horizontal );
@@ -117,7 +117,7 @@ protected:
KPrPixmapObject() {}
- QPixmap changePictureSettings( QPixmap _tmpPixmap );
+ TQPixmap changePictureSettings( TQPixmap _tmpPixmap );
virtual void saveOasisPictureElement( KoGenStyle &styleobjectauto ) const;
void loadOasisPictureEffect(KoOasisContext & context );
virtual void fillStyle( KoGenStyle& styleObjectAuto, KoGenStyles& mainStyles ) const;
@@ -126,10 +126,10 @@ protected:
* @internal
* Draws the shadow
*/
- void drawShadow( QPainter* _painter, KoZoomHandler* _zoomHandler);
+ void drawShadow( TQPainter* _painter, KoZoomHandler* _zoomHandler);
- QPixmap generatePixmap(KoZoomHandler*_zoomHandler);
- QString convertValueToPercent( int val ) const;
+ TQPixmap generatePixmap(KoZoomHandler*_zoomHandler);
+ TQString convertValueToPercent( int val ) const;
KoPictureCollection *imageCollection;
KoPicture image;
@@ -142,12 +142,12 @@ protected:
//image effect and its params
ImageEffect m_effect, m_cachedEffect;
- QVariant m_ie_par1, m_cachedPar1;
- QVariant m_ie_par2, m_cachedPar2;
- QVariant m_ie_par3, m_cachedPar3;
+ TQVariant m_ie_par1, m_cachedPar1;
+ TQVariant m_ie_par2, m_cachedPar2;
+ TQVariant m_ie_par3, m_cachedPar3;
- QPixmap m_cachedPixmap;
- QRect m_cachedRect;
+ TQPixmap m_cachedPixmap;
+ TQRect m_cachedRect;
};
#endif