summaryrefslogtreecommitdiffstats
path: root/client/dominoclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/dominoclient.h')
-rw-r--r--client/dominoclient.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/client/dominoclient.h b/client/dominoclient.h
index 3c92495..0bb39be 100644
--- a/client/dominoclient.h
+++ b/client/dominoclient.h
@@ -25,14 +25,14 @@
#include <kcommondecoration.h>
#include <kdecorationfactory.h>
-#include <qlayout.h>
+#include <tqlayout.h>
namespace Domino {
class DominoClient;
class TitleBar;
-class DominoHandler: public QObject, public KDecorationFactory
+class DominoHandler: public TQObject, public KDecorationFactory
{
public:
DominoHandler();
@@ -41,16 +41,16 @@ class DominoHandler: public QObject, public KDecorationFactory
bool reset( unsigned long changed );
virtual bool supports( Ability ability );
- QColor buttonContourColor;
- QColor buttonMouseOverContourColor;
- QColor buttonPressedContourColor;
+ TQColor buttonContourColor;
+ TQColor buttonMouseOverContourColor;
+ TQColor buttonPressedContourColor;
bool customButtonColor;
- QColor buttonColor;
+ TQColor buttonColor;
bool customButtonIconColor;
- QColor buttonIconColor;
+ TQColor buttonIconColor;
bool customBorderColor;
- QColor borderColor;
+ TQColor borderColor;
bool darkLines;
private:
@@ -70,10 +70,10 @@ class DominoButton : public KCommonDecorationButton
void reset(unsigned long changed);
protected:
- void enterEvent(QEvent *);
- void leaveEvent(QEvent *);
- void drawButton(QPainter *p);
- void drawButtonLabel(QPainter*) {;}
+ void enterEvent(TQEvent *);
+ void leaveEvent(TQEvent *);
+ void drawButton(TQPainter *p);
+ void drawButtonLabel(TQPainter*) {;}
bool isMouseOver;
DominoClient* client;
@@ -87,9 +87,9 @@ class DominoClient : public KCommonDecoration
DominoClient( KDecorationBridge* b, KDecorationFactory* f );
~DominoClient();
- virtual QString visibleName() const;
- virtual QString defaultButtonsLeft() const;
- virtual QString defaultButtonsRight() const;
+ virtual TQString visibleName() const;
+ virtual TQString defaultButtonsLeft() const;
+ virtual TQString defaultButtonsRight() const;
virtual bool decorationBehaviour(DecorationBehaviour behaviour) const;
virtual int layoutMetric(LayoutMetric lm, bool respectWindowState = true, const KCommonDecorationButton * = 0) const;
virtual KCommonDecorationButton *createButton(ButtonType type);
@@ -97,7 +97,7 @@ class DominoClient : public KCommonDecoration
void init();
void reset( unsigned long changed );
- void resize( const QSize& s );
+ void resize( const TQSize& s );
void updateMask();
void updateWindowShape();
@@ -107,15 +107,15 @@ class DominoClient : public KCommonDecoration
void iconChange();
TitleBar* titleBar;
- QWidget* borderTopLeft;
- QWidget* borderTopRight;
- QWidget* borderBottomLeft;
- QWidget* borderBottomRight;
- QWidget* borderLeft;
- QWidget* borderRight;
- QWidget* borderBottom;
- QGridLayout* mainlayout;
- QButton* menuButton;
+ TQWidget* borderTopLeft;
+ TQWidget* borderTopRight;
+ TQWidget* borderBottomLeft;
+ TQWidget* borderBottomRight;
+ TQWidget* borderLeft;
+ TQWidget* borderRight;
+ TQWidget* borderBottom;
+ TQGridLayout* mainlayout;
+ TQButton* menuButton;
void setPixmaps();
bool titleBarMouseOver;
@@ -126,31 +126,31 @@ class DominoClient : public KCommonDecoration
void menuButtonDestroyed();
protected:
- bool eventFilter(QObject*, QEvent*);
- void paintEvent(QPaintEvent*);
- void resizeEvent(QResizeEvent*);
- void showEvent(QShowEvent*);
+ bool eventFilter(TQObject*, TQEvent*);
+ void paintEvent(TQPaintEvent*);
+ void resizeEvent(TQResizeEvent*);
+ void showEvent(TQShowEvent*);
private:
void createLayout();
};
-class TitleBar : public QWidget
+class TitleBar : public TQWidget
{
public:
- TitleBar(QWidget* parent=0, const char* name=0) : QWidget(parent, name) {}
- void enterEvent(QEvent * e);
- bool eventFilter(QObject*, QEvent*);
+ TitleBar(TQWidget* parent=0, const char* name=0) : TQWidget(parent, name) {}
+ void enterEvent(TQEvent * e);
+ bool eventFilter(TQObject*, TQEvent*);
DominoClient* client;
};
-void renderGradient(QPainter *painter, QRect &rect,
- QColor &c1, QColor &c2, const char* name = 0);
-QColor alphaBlendColors(const QColor &backgroundColor, const QColor &foregroundColor, const int alpha);
-QImage tintImage(const QImage &img, const QColor &tintColor);
+void renderGradient(TQPainter *painter, TQRect &rect,
+ TQColor &c1, TQColor &c2, const char* name = 0);
+TQColor alphaBlendColors(const TQColor &backgroundColor, const TQColor &foregroundColor, const int alpha);
+TQImage tintImage(const TQImage &img, const TQColor &tintColor);
}
#endif