summaryrefslogtreecommitdiffstats
path: root/src/kvirc/ui/kvi_taskbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/ui/kvi_taskbar.h')
-rw-r--r--src/kvirc/ui/kvi_taskbar.h91
1 files changed, 48 insertions, 43 deletions
diff --git a/src/kvirc/ui/kvi_taskbar.h b/src/kvirc/ui/kvi_taskbar.h
index 300e0f68..9e9ebe29 100644
--- a/src/kvirc/ui/kvi_taskbar.h
+++ b/src/kvirc/ui/kvi_taskbar.h
@@ -27,16 +27,16 @@
#include "kvi_settings.h"
#include "kvi_pointerlist.h"
-#include <qframe.h>
+#include <tqframe.h>
#include "kvi_tal_tooltip.h"
#include "kvi_tal_listview.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
class KviWindow;
class KviFrame;
-class QPixmap;
+class TQPixmap;
class KviDynamicToolTip;
class KviConsole;
@@ -74,28 +74,29 @@ public:
// This is the basic interface that all the external classes should see
//
-// Please note that Qt3 moc skips the *_SKIP_BEGIN -> *_SKIP_END blocks
-// while the Qt4 moc skips the Q_MOC_RUN ifdef block.. so...
+// Please note that TQt3 tqmoc skips the *_SKIP_BEGIN -> *_SKIP_END blocks
+// while the TQt4 tqmoc skips the TQ_TQMOC_RUN ifdef block.. so...
-// Qt4 version
+// TQt4 version
// If you get failures (undefined references) in some non-autotools based
-// build system that uses Qt4 then you must add the -DCOMPILE_USE_QT4
-// commandline parameter to moc (at leat) when parsing this file.
+// build system that uses TQt4 then you must add the -DCOMPILE_USE_QT4
+// commandline parameter to tqmoc (at leat) when parsing this file.
-// MOC_SKIP_BEGIN
+// TQMOC_SKIP_BEGIN
#ifdef COMPILE_USE_QT4
-#include <QDockWidget>
+#include <TQDockWidget>
-class KVIRC_API KviTaskBarBase : public QDockWidget
+class KVIRC_API KviTaskBarBase : public TQDockWidget
{
Q_OBJECT
+ TQ_OBJECT
#endif //COMPILE_USE_QT4
-// MOC_SKIP_END
+// TQMOC_SKIP_END
-// Qt3 version
-#ifndef Q_MOC_RUN
+// TQt3 version
+#ifndef TQ_TQMOC_RUN
#ifndef COMPILE_USE_QT4
#include "kvi_toolbar.h"
@@ -103,6 +104,7 @@ class KVIRC_API KviTaskBarBase : public QDockWidget
class KVIRC_API KviTaskBarBase : public KviToolBar
{
Q_OBJECT
+ TQ_OBJECT
#endif
#endif
@@ -111,7 +113,7 @@ public:
virtual ~KviTaskBarBase();
protected:
KviFrame * m_pFrm;
- QTimer * m_pActivityMeterTimer;
+ TQTimer * m_pActivityMeterTimer;
public:
virtual KviTaskBarItem * addItem(KviWindow *){ return 0; };
virtual bool removeItem(KviTaskBarItem *){ return false; };
@@ -125,7 +127,7 @@ public:
virtual void switchWindow(bool bNext,bool bInContextOnly);
virtual void updatePseudoTransparency(){};
virtual void applyOptions(){};
- static void getTextForConsole(QString &szText,KviConsole * pConsole);
+ static void getTextForConsole(TQString &szText,KviConsole * pConsole);
protected slots:
virtual void updateActivityMeter();
};
@@ -138,24 +140,23 @@ protected slots:
class KviClassicTaskBar;
-class KVIRC_API KviTaskBarButton : public QPushButton , KviTaskBarItem
+class KVIRC_API KviTaskBarButton : public TQPushButton , KviTaskBarItem
{
friend class KviClassicTaskBar;
Q_OBJECT
+ TQ_OBJECT
public:
- KviTaskBarButton(QWidget * par,KviWindow * wnd,const char * name);
+ KviTaskBarButton(TQWidget * par,KviWindow * wnd,const char * name);
~KviTaskBarButton();
protected:
bool m_bActive;
KviDynamicToolTip * m_pTip;
protected:
- virtual void mousePressEvent(QMouseEvent *e);
-#if QT_VERSION >= 300
- virtual void contextMenuEvent(QContextMenuEvent *e);
-#endif
- virtual void drawButtonLabel(QPainter *p);
+ virtual void mousePressEvent(TQMouseEvent *e);
+ virtual void contextMenuEvent(TQContextMenuEvent *e);
+ virtual void drawButtonLabel(TQPainter *p);
#ifdef COMPILE_USE_QT4
- virtual void paintEvent(QPaintEvent * e);
+ virtual void paintEvent(TQPaintEvent * e);
#endif
public:
virtual bool active(){ return m_bActive; };
@@ -166,27 +167,28 @@ public:
protected:
void setActive(bool bActive);
protected slots:
- void tipRequest(KviDynamicToolTip *tip,const QPoint &pnt);
+ void tipRequest(KviDynamicToolTip *tip,const TQPoint &pnt);
};
class KVIRC_API KviClassicTaskBar : public KviTaskBarBase
{
Q_OBJECT
+ TQ_OBJECT
public:
KviClassicTaskBar();
~KviClassicTaskBar();
protected:
KviPointerList<KviTaskBarButton> * m_pButtonList;
int m_iButtonHeight;
- QWidget * m_pBase;
+ TQWidget * m_pBase;
protected:
void calcButtonHeight();
void doLayout(); // called by KviFrame to adjust a bug on WIndows
void insertButton(KviTaskBarButton * b);
public:
-// virtual void fontChange(const QFont & old);
- virtual void resizeEvent(QResizeEvent *e);
+// virtual void fontChange(const TQFont & old);
+ virtual void resizeEvent(TQResizeEvent *e);
public:
virtual KviTaskBarItem * addItem(KviWindow *);
virtual bool removeItem(KviTaskBarItem *);
@@ -217,18 +219,18 @@ public:
protected:
int m_iStepNumber;
bool m_bIncreasing;
- QTimer* m_pAnimTimer;
+ TQTimer* m_pAnimTimer;
KviTreeTaskBarItemInternal *m_pInternal;
int m_iRedDiff;
int m_iGreenDiff;
int m_iBlueDiff;
public:
- virtual QString key(int column,bool) const;
- virtual void paintCell(QPainter *p,const QColorGroup &cg,int column,int width,int alignment);
+ virtual TQString key(int column,bool) const;
+ virtual void paintCell(TQPainter *p,const TQColorGroup &cg,int column,int width,int tqalignment);
#ifdef COMPILE_USE_QT4
- virtual void paintBranches(QPainter *p,const QColorGroup &cg,int w,int y,int h);
+ virtual void paintBranches(TQPainter *p,const TQColorGroup &cg,int w,int y,int h);
#else
- virtual void paintBranches(QPainter *p,const QColorGroup &cg,int w,int y,int h,GUIStyle s);
+ virtual void paintBranches(TQPainter *p,const TQColorGroup &cg,int w,int y,int h,GUIStyle s);
#endif
virtual void captionChanged();
virtual void highlight(int iLevel = 1);
@@ -244,9 +246,10 @@ protected:
int calculateColor(int col1,int col2);
};
-class KviTreeTaskBarItemInternal : public QObject
+class KviTreeTaskBarItemInternal : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KviTreeTaskBarItemInternal(KviTreeTaskBarItem* pItem):m_pItem(pItem) {};
~KviTreeTaskBarItemInternal() {};
@@ -260,16 +263,17 @@ class KVIRC_API KviTreeTaskBarListView : public KviTalListView
{
friend class KviTreeTaskBarItem;
Q_OBJECT
+ TQ_OBJECT
KviTreeTaskBarItem* m_pPrevItem;
public:
- KviTreeTaskBarListView(QWidget * par);
+ KviTreeTaskBarListView(TQWidget * par);
~KviTreeTaskBarListView();
protected:
- virtual void contentsMousePressEvent(QMouseEvent *e);
- virtual void paintEmptyArea(QPainter * p,const QRect &rct);
- virtual void resizeEvent(QResizeEvent *e);
- virtual void contentsMouseMoveEvent ( QMouseEvent * e );
- virtual void leaveEvent(QEvent *);
+ virtual void contentsMousePressEvent(TQMouseEvent *e);
+ virtual void paintEmptyArea(TQPainter * p,const TQRect &rct);
+ virtual void resizeEvent(TQResizeEvent *e);
+ virtual void contentsMouseMoveEvent ( TQMouseEvent * e );
+ virtual void leaveEvent(TQEvent *);
signals:
void leftMousePress(KviTalListViewItem * it);
void rightMousePress(KviTalListViewItem * it);
@@ -282,6 +286,7 @@ public slots:
class KVIRC_API KviTreeTaskBar : public KviTaskBarBase
{
Q_OBJECT
+ TQ_OBJECT
public:
KviTreeTaskBar();
~KviTreeTaskBar();
@@ -299,13 +304,13 @@ public:
virtual KviTaskBarItem * prevItem(void);
virtual bool setIterationPointer(KviTaskBarItem * it);
virtual void updatePseudoTransparency();
- virtual bool eventFilter(QObject * o,QEvent *e);
+ virtual bool eventFilter(TQObject * o,TQEvent *e);
virtual void updateActivityMeter();
virtual void applyOptions();
protected:
- virtual void moveEvent(QMoveEvent *);
+ virtual void moveEvent(TQMoveEvent *);
protected slots:
- void tipRequest(KviDynamicToolTip *tip,const QPoint &pnt);
+ void tipRequest(KviDynamicToolTip *tip,const TQPoint &pnt);
};