diff options
author | Mavridis Philippe <[email protected]> | 2022-10-15 19:07:17 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2022-10-15 19:07:17 +0300 |
commit | e49c3e89f8017d07357ad146c76e5e3f64d9b4f1 (patch) | |
tree | 5c4efea399718fcc8c8837daa7fd566b1865d69a /src/MachBunt.h | |
parent | 47d22fa476f71a0e29649c2342fe11b04f079386 (diff) | |
download | twin-style-machbunt-e49c3e89f8017d07357ad146c76e5e3f64d9b4f1.tar.gz twin-style-machbunt-e49c3e89f8017d07357ad146c76e5e3f64d9b4f1.zip |
Qt3->TQt conversion
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/MachBunt.h')
-rw-r--r-- | src/MachBunt.h | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/MachBunt.h b/src/MachBunt.h index fa60f54..0859903 100644 --- a/src/MachBunt.h +++ b/src/MachBunt.h @@ -6,17 +6,17 @@ #ifndef __KDE_SuSE_H #define __KDE_SuSE_H -#include <qvariant.h> -#include <qlayout.h> -#include <qbutton.h> -#include <qbitmap.h> -#include <qimage.h> +#include <ntqvariant.h> +#include <ntqlayout.h> +#include <ntqbutton.h> +#include <ntqbitmap.h> +#include <ntqimage.h> #include <kpixmap.h> #include <kdecoration.h> #include <kdecorationfactory.h> -class QLabel; -class QSpacerItem; -class QHBoxLayout; +class TQLabel; +class TQSpacerItem; +class TQHBoxLayout; #define USE_BUT 1 #define PIX_HEIGHT 24 @@ -42,48 +42,48 @@ extern KPixmap buttonPixmap[BtnCount][2][3][2]; extern bool titlebarResize, titlebarPlain, titlebarLogo, titlebarSidebar, titlebarNoPlainButtons; extern double titlebarLenseButtonFlare; -KPixmap create_buttonPixmap( int x, int y, QPixmap pix, QPixmap bg, int active, int mouse ); +KPixmap create_buttonPixmap( int x, int y, TQPixmap pix, TQPixmap bg, int active, int mouse ); class MachBunt; -class MachBuntButton : public QButton +class MachBuntButton : public TQButton { Q_OBJECT public: MachBuntButton(MachBunt *client, const char *name, - int button, QPixmap bgI, QPixmap bgA, bool isMini=false, - const QString& tip=NULL); + int button, TQPixmap bgI, TQPixmap bgA, bool isMini=false, + const TQString& tip=NULL); virtual ~MachBuntButton(); virtual void reset( unsigned long changed ); void setBitmap(const unsigned char *bitmap); - void setPixmap(const QPixmap &p); - void setTipText(const QString &tip); + void setPixmap(const TQPixmap &p); + void setTipText(const TQString &tip); void setPosition(ButtonPos pos); - virtual QSize sizeHint() const; + virtual TQSize sizeHint() const; int last_button; KPixmap menuButtonPixmap[BtnCount][2][3][2]; signals: void shapeMe(int); - void mousePressedMove(QMouseEvent*); + void mousePressedMove(TQMouseEvent*); protected: - void mousePressEvent(QMouseEvent* e); - void mouseReleaseEvent(QMouseEvent* e); - virtual void drawButton(QPainter *p); - void drawButtonLabel(QPainter *){;} - void enterEvent(QEvent *); - void leaveEvent(QEvent *); - void mouseMoveEvent( QMouseEvent *e ); + void mousePressEvent(TQMouseEvent* e); + void mouseReleaseEvent(TQMouseEvent* e); + virtual void drawButton(TQPainter *p); + void drawButtonLabel(TQPainter *){;} + void enterEvent(TQEvent *); + void leaveEvent(TQEvent *); + void mouseMoveEvent( TQMouseEvent *e ); - bool resizePosition( QPoint pos ); + bool resizePosition( TQPoint pos ); - QBitmap deco; - QPixmap pix; - QPixmap menuPixmap; - QPixmap bg[2]; + TQBitmap deco; + TQPixmap pix; + TQPixmap menuPixmap; + TQPixmap bg[2]; bool menuBtn; bool miniBtn; bool pressed; @@ -103,16 +103,16 @@ class MachBunt : public KDecoration MachBunt(KDecorationBridge* bridge, KDecorationFactory* factory); virtual ~MachBunt(); virtual void init(); - virtual void resize(const QSize&); - virtual bool eventFilter( QObject* o, QEvent* e ); + virtual void resize(const TQSize&); + virtual bool eventFilter( TQObject* o, TQEvent* e ); protected: virtual void reset( unsigned long changed ); - virtual void resizeEvent( QResizeEvent* ); - virtual void paintEvent( QPaintEvent* ); - virtual void showEvent( QShowEvent* ); - virtual void mouseDoubleClickEvent( QMouseEvent * ); - virtual Position mousePosition( const QPoint& ) const; + virtual void resizeEvent( TQResizeEvent* ); + virtual void paintEvent( TQPaintEvent* ); + virtual void showEvent( TQShowEvent* ); + virtual void mouseDoubleClickEvent( TQMouseEvent * ); + virtual Position mousePosition( const TQPoint& ) const; virtual void captionChange(); virtual void desktopChange(); virtual void shadeChange() {}; @@ -121,8 +121,8 @@ class MachBunt : public KDecoration virtual void iconChange(); virtual void calcHiddenButtons(); virtual void borders(int&, int&, int&, int&) const; - virtual QSize minimumSize() const; - virtual int mapButton( const QChar &c ); + virtual TQSize minimumSize() const; + virtual int mapButton( const TQChar &c ); virtual void doLayout(); virtual void createButtons(); @@ -136,25 +136,25 @@ class MachBunt : public KDecoration void slotMaximize(); void menuButtonPressed(); void doShape(int x=0); - void mouseMoveOnButtonPressed(QMouseEvent*); + void mouseMoveOnButtonPressed(TQMouseEvent*); private: bool isTool(); MachBuntButton* button[ BtnCount ]; - QPoint buttonPressedPosition; + TQPoint buttonPressedPosition; int lastButtonWidth; int titleHeight; - QSpacerItem* titlebar; + TQSpacerItem* titlebar; bool hiddenItems; - QVBoxLayout* windowLayout; - QBoxLayout* topLayout; + TQVBoxLayout* windowLayout; + TQBoxLayout* topLayout; bool smallButtons; bool mouseOverButton; }; -class BuntFactory : public QObject, public KDecorationFactory +class BuntFactory : public TQObject, public KDecorationFactory { Q_OBJECT @@ -164,7 +164,7 @@ class BuntFactory : public QObject, public KDecorationFactory virtual ~BuntFactory() {}; virtual KDecoration* createDecoration( KDecorationBridge* ); virtual bool reset( unsigned long changed ); - virtual QValueList< BorderSize > borderSizes() const; + virtual TQValueList< BorderSize > borderSizes() const; }; }; |