diff options
Diffstat (limited to 'client/deKoratorclient.h')
-rw-r--r-- | client/deKoratorclient.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/client/deKoratorclient.h b/client/deKoratorclient.h index b8c7c28..d1bbede 100644 --- a/client/deKoratorclient.h +++ b/client/deKoratorclient.h @@ -35,16 +35,16 @@ #ifndef DEKORATORCLIENT_H #define DEKORATORCLIENT_H -#include <qbutton.h> -#include <qbitmap.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpainter.h> -#include <qtooltip.h> -#include <qpixmap.h> -#include <qapplication.h> -#include <qtimer.h> -#include <qcursor.h> +#include <tqbutton.h> +#include <tqbitmap.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqtooltip.h> +#include <tqpixmap.h> +#include <tqapplication.h> +#include <tqtimer.h> +#include <tqcursor.h> #include <kdecoration.h> #include <kdecorationfactory.h> @@ -58,8 +58,8 @@ #include "shadow.h" -class QSpacerItem; -class QPoint; +class TQSpacerItem; +class TQPoint; namespace DeKorator { @@ -141,9 +141,9 @@ public: virtual ~DeKoratorFactory(); virtual KDecoration *createDecoration( KDecorationBridge *b ); virtual bool reset( unsigned long changed ); - static void colorizePixmap( QPixmap *pix, QColor col, QString colorizeMethod ); + static void colorizePixmap( TQPixmap *pix, TQColor col, TQString colorizeMethod ); static bool initialized(); - QBitmap topLeftCornerBitmap_, topMidBitmap_, topRightCornerBitmap_, buttomLeftCornerBitmap_, buttomMidBitmap_, buttomRightCornerBitmap_; + TQBitmap topLeftCornerBitmap_, topMidBitmap_, topRightCornerBitmap_, buttomLeftCornerBitmap_, buttomMidBitmap_, buttomRightCornerBitmap_; private: bool readConfig(); @@ -161,9 +161,9 @@ private: static bool colorizeInActFrames_; static bool needInit_; static bool needReload_; - static QString framesPath_; - static QString buttonsPath_; - static QString masksPath_; + static TQString framesPath_; + static TQString buttonsPath_; + static TQString masksPath_; public: static bool initialized_; static bool useCustomButtonsColors_; @@ -171,7 +171,7 @@ public: static bool customColorsInActiveButtons_; static bool colorizeActButtons_; static bool colorizeInActButtons_; - static QColor cusBtnCol_[ buttonTypeAllCount ]; + static TQColor cusBtnCol_[ buttonTypeAllCount ]; }; inline bool DeKoratorFactory::initialized() @@ -192,16 +192,16 @@ inline bool DeKoratorFactory::initialized() // DeKoratorButton ////////////////////////////////////////////////////////////// -class DeKoratorButton : public QButton +class DeKoratorButton : public TQButton { Q_OBJECT public: DeKoratorButton( bool isLeft, int buttonWidth, int buttonHeight, DeKoratorClient *parent = 0, const char *name = 0, - const QString &tip = NULL, ButtonType type = ButtonHelp, buttonTypeAll btnType = restore ); + const TQString &tip = NULL, ButtonType type = ButtonHelp, buttonTypeAll btnType = restore ); ~DeKoratorButton(); void setPixmap( buttonTypeAll btnType ); - QSize sizeHint() const; + TQSize sizeHint() const; ButtonState lastMousePress() const; void reset(); @@ -209,30 +209,30 @@ protected slots: void animate(); private: - void enterEvent( QEvent *e ); - void leaveEvent( QEvent *e ); - void mousePressEvent( QMouseEvent *e ); - void mouseReleaseEvent( QMouseEvent *e ); - void drawButton( QPainter *painter ); - QImage* chooseRightHoverEffect( QImage *img, QString res ); + void enterEvent( TQEvent *e ); + void leaveEvent( TQEvent *e ); + void mousePressEvent( TQMouseEvent *e ); + void mouseReleaseEvent( TQMouseEvent *e ); + void drawButton( TQPainter *painter ); + TQImage* chooseRightHoverEffect( TQImage *img, TQString res ); private: bool isLeft_; int buttonWidth_; DeKoratorClient *client_; ButtonType type_; - //QPixmap *decoPix_, *decoPixPress_, *decoPixHover_, *decoPixInAct_; + //TQPixmap *decoPix_, *decoPixPress_, *decoPixHover_, *decoPixInAct_; ButtonState lastmouse_; int decoPixHeight_; bool hover_; - QTimer *animTmr; + TQTimer *animTmr; uint animProgress; - QPixmap *btnPixAct_, *btnPixInAct_; + TQPixmap *btnPixAct_, *btnPixInAct_; buttonTypeAll btnType_; int s; }; -inline Qt::ButtonState DeKoratorButton::lastMousePress() const +inline TQt::ButtonState DeKoratorButton::lastMousePress() const { return lastmouse_; } @@ -272,19 +272,19 @@ public: virtual void shadeChange(); virtual void borders( int &l, int &r, int &t, int &b ) const; - virtual void resize( const QSize &size ); - virtual QSize minimumSize() const; - virtual Position mousePosition( const QPoint &point ) const; + virtual void resize( const TQSize &size ); + virtual TQSize minimumSize() const; + virtual Position mousePosition( const TQPoint &point ) const; private: - void addButtons( QBoxLayout* layout, const QString& buttons, bool isLeft ); - - bool eventFilter( QObject *obj, QEvent *e ); - void mouseDoubleClickEvent( QMouseEvent *e ); - void wheelEvent( QWheelEvent *e ); - void paintEvent( QPaintEvent *e ); - void resizeEvent( QResizeEvent * ); - void showEvent( QShowEvent * ); + void addButtons( TQBoxLayout* layout, const TQString& buttons, bool isLeft ); + + bool eventFilter( TQObject *obj, TQEvent *e ); + void mouseDoubleClickEvent( TQMouseEvent *e ); + void wheelEvent( TQWheelEvent *e ); + void paintEvent( TQPaintEvent *e ); + void resizeEvent( TQResizeEvent * ); + void showEvent( TQShowEvent * ); void doShape(); void updateCaptionBuffer(); @@ -301,17 +301,17 @@ private slots: private: DeKoratorButton *button[ ButtonTypeCount ]; - QVBoxLayout *mainLayout_; - QHBoxLayout *titleLayout_ ; - QHBoxLayout *midLayout_; - QSpacerItem *leftTitleBarSpacer_, *titleBarSpacer_, *rightTitleBarSpacer_, *leftSpacer_, *rightSpacer_, *bottomSpacer_; + TQVBoxLayout *mainLayout_; + TQHBoxLayout *titleLayout_ ; + TQHBoxLayout *midLayout_; + TQSpacerItem *leftTitleBarSpacer_, *titleBarSpacer_, *rightTitleBarSpacer_, *leftSpacer_, *rightSpacer_, *bottomSpacer_; bool closing_; - QPixmap *captionBufferPix_; + TQPixmap *captionBufferPix_; bool captionBufferDirty_; - QImage activeShadowImg_, inActiveShadowImg_; - QRegion mask_; + TQImage activeShadowImg_, inActiveShadowImg_; + TQRegion mask_; bool sizeChanged; - QSize oldSize_; + TQSize oldSize_; public: DeKoratorFactory *decoFactory_; }; |