diff options
Diffstat (limited to 'kpresenter/KPrBackground.h')
-rw-r--r-- | kpresenter/KPrBackground.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/kpresenter/KPrBackground.h b/kpresenter/KPrBackground.h index b0326634..b0a93f39 100644 --- a/kpresenter/KPrBackground.h +++ b/kpresenter/KPrBackground.h @@ -22,8 +22,8 @@ #ifndef kpbackground_h #define kpbackground_h -#include <qsize.h> -#include <qdatetime.h> +#include <tqsize.h> +#include <tqdatetime.h> #include <KoBrush.h> #include <KoStyleStack.h> #include <KoOasisStyles.h> @@ -34,11 +34,11 @@ #include "global.h" class KPrDocument; -class QPainter; -class QPixmap; +class TQPainter; +class TQPixmap; class KPrGradientCollection; -class QDomDocument; -class QDomElement; +class TQDomDocument; +class TQDomElement; class KoTextZoomHandler; class KPrPage; class KoXmlWriter; @@ -51,7 +51,7 @@ class KPrBackGround public: struct Settings { - Settings( const BackType backType, const QColor backColor1, const QColor backColor2, + Settings( const BackType backType, const TQColor backColor1, const TQColor backColor2, const BCType bcType, const bool unbalanced, const int xfactor, const int yfactor, const KoPictureKey &key, const BackView backView ) : m_backType( backType ) @@ -66,8 +66,8 @@ public: {} BackType m_backType; - QColor m_backColor1; - QColor m_backColor2; + TQColor m_backColor1; + TQColor m_backColor2; // Gradient setting BCType m_bcType; bool m_unbalanced; @@ -89,9 +89,9 @@ public: } void setBackView( BackView _backView ) { backView = _backView; } - void setBackColor1( const QColor &_color ) + void setBackColor1( const TQColor &_color ) { removeGradient(); backColor1 = _color; } - void setBackColor2( const QColor &_color ) + void setBackColor2( const TQColor &_color ) { removeGradient(); backColor2 = _color; } void setBackColorType( BCType _bcType ) { removeGradient(); bcType = _bcType; } @@ -113,9 +113,9 @@ public: { return backType; } BackView getBackView() const { return backView; } - QColor getBackColor1() const + TQColor getBackColor1() const { return backColor1; } - QColor getBackColor2() const + TQColor getBackColor2() const { return backColor2; } BCType getBackColorType() const { return bcType; } @@ -133,45 +133,45 @@ public: // Draw the background. // Uses the @p zoomHandler to determine the size of the background - void drawBackground( QPainter *_painter, const KoTextZoomHandler* zoomHandler, - const QRect& crect, bool _drawBorders ); + void drawBackground( TQPainter *_painter, const KoTextZoomHandler* zoomHandler, + const TQRect& crect, bool _drawBorders ); // Draw the background. The size of the background is passed explicitly - void drawBackground( QPainter *_painter, const QSize& ext, - const QRect& crect, bool _drawBorders ); + void drawBackground( TQPainter *_painter, const TQSize& ext, + const TQRect& crect, bool _drawBorders ); void reload(); - QDomElement save( QDomDocument &doc ); - void load( const QDomElement &element ); + TQDomElement save( TQDomDocument &doc ); + void load( const TQDomElement &element ); void loadOasis( KoOasisContext & context ); void saveOasisBackgroundPageStyle( KoGenStyle &stylepageauto, KoGenStyles &mainStyles ); protected: - void drawBackColor( QPainter *_painter, const QSize& ext, const QRect& crect ); - void drawBackPix( QPainter *_painter, const QSize& ext, const QRect& crect ); - void drawBorders( QPainter *_painter, const QSize& ext, const QRect& crect ); + void drawBackColor( TQPainter *_painter, const TQSize& ext, const TQRect& crect ); + void drawBackPix( TQPainter *_painter, const TQSize& ext, const TQRect& crect ); + void drawBorders( TQPainter *_painter, const TQSize& ext, const TQRect& crect ); // The current gradient isn't valid anymore (e.g. size or settings changed) -> discard it void removeGradient(); // Generate a new gradient pixmap, for the given size - void generateGradient( const QSize& size ); + void generateGradient( const TQSize& size ); KoPictureCollection *pictureCollection() const; KPrGradientCollection *gradientCollection() const; - QString saveOasisPictureStyle( KoGenStyles& mainStyles ); + TQString saveOasisPictureStyle( KoGenStyles& mainStyles ); private: BackType backType; BackView backView; - QColor backColor1; - QColor backColor2; + TQColor backColor1; + TQColor backColor2; BCType bcType; // Background picture KoPicture backPicture; // Pixmap used to cache the drawing of the gradient, at the current size - const QPixmap *gradientPixmap; + const TQPixmap *gradientPixmap; // The page for which this background exists KPrPage *m_page; |