summaryrefslogtreecommitdiffstats
path: root/src/kooldock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kooldock.h')
-rw-r--r--src/kooldock.h132
1 files changed, 66 insertions, 66 deletions
diff --git a/src/kooldock.h b/src/kooldock.h
index a129a6f..ac523f1 100644
--- a/src/kooldock.h
+++ b/src/kooldock.h
@@ -30,14 +30,14 @@
#include <kpixmap.h>
#include <kurifilter.h>
-#include <qwidget.h>
-#include <qptrlist.h>
-#include <qtimer.h>
-#include <qcolor.h>
+#include <ntqwidget.h>
+#include <ntqptrlist.h>
+#include <ntqtimer.h>
+#include <ntqcolor.h>
#include <netwm.h>
-#include <qdatetime.h>
+#include <ntqdatetime.h>
#include "item.h"
#include "xosd.h"
@@ -59,22 +59,22 @@ const int SPACE_W = 1; // space between quick launchers and tasks (the seperator
const int ON_CHANGE_ANIM_INTERVAL = 50; // animation's interval
/** KoolDock is the base class of the project */
-class KoolDock : public QWidget
+class KoolDock : public TQWidget
{
Q_OBJECT
public:
/** construtor */
- KoolDock(QWidget* parent=0, const char *name=0);
+ KoolDock(TQWidget* parent=0, const char *name=0);
/** destructor */
~KoolDock();
- //static bool writeIgnoreList(QString text);
- void setMainPath(const QString& path);
- void setArgs(const QString& param);
+ //static bool writeIgnoreList(TQString text);
+ void setMainPath(const TQString& path);
+ void setArgs(const TQString& param);
clip *clipw;
private:
- QTime *perf;
+ TQTime *perf;
// configuration variables
int fShowTaskbar; // show-taskbar flag
int fMinimizedOnly; // show only minimized icons flag
@@ -90,7 +90,7 @@ class KoolDock : public QWidget
int zoomTicksB, zoomTicksS; //counts timer ticks
int neededTicksB,neededTicksS; //sets how many ticks is necessary to calculate new speed
bool fSpeed;
- QColor borderColor;
+ TQColor borderColor;
int fHidden; // hidden dockbar
int fStayBelow;
int fOrientation; //bottom/left/top/right
@@ -112,7 +112,7 @@ class KoolDock : public QWidget
int fCurrent; //whether to only show windows on current desktop
int oldDesktop; //number of previous desktop
bool firstTime; //to control certain things
- QString curTheme; //for the background theme (to preserve changes)
+ TQString curTheme; //for the background theme (to preserve changes)
int leftRes; //Left monitor resolution
int XinDesiredHeight;
int XinPreviousWidth;
@@ -125,24 +125,24 @@ class KoolDock : public QWidget
int ptPart;
bool mouseOnLauncher;
- QStringList lstDrop;
+ TQStringList lstDrop;
bool useList;
Atom net_system_tray_selection;
Atom net_system_tray_opcode;
- QString fLeftImg;
- QString fRightImg;
- QString fCenterImg;
+ TQString fLeftImg;
+ TQString fRightImg;
+ TQString fCenterImg;
bool fNWideBg;
bool scaleMax;
- QPixmap LeftImg;
- QPixmap RightImg;
- QPixmap CenterImg;
- QPixmap TempScaledCenter;
- QPixmap TestPix;
- QImage TestIm;
+ TQPixmap LeftImg;
+ TQPixmap RightImg;
+ TQPixmap CenterImg;
+ TQPixmap TempScaledCenter;
+ TQPixmap TestPix;
+ TQImage TestIm;
unsigned int oLeft, oRight;
@@ -155,22 +155,22 @@ class KoolDock : public QWidget
int lastX;
int dockOpacity;
- QColor bgColor;
+ TQColor bgColor;
- QColor sepColor; // separator bar's color
+ TQColor sepColor; // separator bar's color
int Ybase;
// normal variables
- QString progPath;
- QString menuPath;
- QString confFile;
- QString iFilename; // right clicked item filename
- QString mainPath;
- QString args;
+ TQString progPath;
+ TQString menuPath;
+ TQString confFile;
+ TQString iFilename; // right clicked item filename
+ TQString mainPath;
+ TQString args;
- QStringList ignoreList;
+ TQStringList ignoreList;
NETWinInfo *info;
@@ -192,29 +192,29 @@ class KoolDock : public QWidget
int last_mx;
int last_ncx;
- QPtrList<Item> items;//currently visible items
- QPtrList<Item> witems;//all windows on all desktops
+ TQPtrList<Item> items;//currently visible items
+ TQPtrList<Item> witems;//all windows on all desktops
int iSize[MAX_ICONS + 1];//icon sizes
int cx[MAX_ICONS + 1];//positions of small icons
int cur_cx[MAX_ICONS + 1];//positions of visible icons
- QPixmap offscr;//drawing buffer
+ TQPixmap offscr;//drawing buffer
KRootPixmap *rootpix;
KPixmap bottomBg;
KPixmap bottomBgf;
- QPixmap topBg;
+ TQPixmap topBg;
KAboutDialog *aboutDlg;
- QTimer *mkbigTimer; //zoom animation timers
- QTimer *mksmallTimer;
- QTimer *mTimer; //mouse move emulator (can't use normal event instead)
- QTimer *onChangeTimer; // used when a window has changed and we need to notify user
- QTimer *trackTimer; //checks whether mouse touches screen edge
+ TQTimer *mkbigTimer; //zoom animation timers
+ TQTimer *mksmallTimer;
+ TQTimer *mTimer; //mouse move emulator (can't use normal event instead)
+ TQTimer *onChangeTimer; // used when a window has changed and we need to notify user
+ TQTimer *trackTimer; //checks whether mouse touches screen edge
int animStep; // animation step, not in use yet
int iOnClick; // index of the quick launcher being clicked
WId cId; // id of the application (used in the right click menu over the taskbar)
- QString cClass;
+ TQString cClass;
WId CurrentFocus;
int onChangeAnimStep;
KPopupMenu *deskpopup;
@@ -225,24 +225,24 @@ class KoolDock : public QWidget
KPopupMenu *advMenu;
int menuCount, currMenu;
bool allApps;
- QPtrList<KPopupMenu> popups;
+ TQPtrList<KPopupMenu> popups;
bool iGroup;
int dIndex, nDesks;
- QPtrList<dInfo> desks;
+ TQPtrList<dInfo> desks;
bool fExpanded;
bool track2active;
/*Xosd Section */
- QString nom;
- QString aux;
+ TQString nom;
+ TQString aux;
//xosd *osd;
int xosd_st;
int showNames;
int fCleaner;
int xosdShadowOffset;
- QString xosdFont;
- QString xosdColor;
- QString xosdShadowColor;
+ TQString xosdFont;
+ TQString xosdColor;
+ TQString xosdShadowColor;
bool xosdBold;
bool xosdItalic;
int xosdSize;
@@ -251,7 +251,7 @@ class KoolDock : public QWidget
int animValue;
int animState;
- void run(const QString& cmd);
+ void run(const TQString& cmd);
int func(int x);
int func2(int x);
void doUpdateGeometry();
@@ -279,16 +279,16 @@ class KoolDock : public QWidget
void init2();
protected:
- void paintEvent(QPaintEvent *);
- void mousePressEvent( QMouseEvent * );
+ void paintEvent(TQPaintEvent *);
+ void mousePressEvent( TQMouseEvent * );
void mMoveEvent( int ex, int ey);
void mPress( int mx, int my, ButtonState srcButton);
- void wheelEvent(QWheelEvent *);
- void enterEvent(QEvent*);
- void onleaveEvent(QEvent*);
+ void wheelEvent(TQWheelEvent *);
+ void enterEvent(TQEvent*);
+ void onleaveEvent(TQEvent*);
void mksmallTimerstop();
- void dragMoveEvent(QDragMoveEvent* event);
- void dropEvent(QDropEvent* event);
+ void dragMoveEvent(TQDragMoveEvent* event);
+ void dropEvent(TQDropEvent* event);
public slots:
void edit();
@@ -301,7 +301,7 @@ class KoolDock : public QWidget
void workAreaChanged();
void currentDesktopChanged(int);
void onChangeTimerTicked();
- void updateBackground(const QPixmap&);
+ void updateBackground(const TQPixmap&);
void moveApp();
void resizeApp();
void minApp();
@@ -329,22 +329,22 @@ class KoolDock : public QWidget
void toggleKeptBelowOthers();
void toggleFullScreen();
- static void addFile(const QString& filename,
- const QString& iconname,
- const QString& execname,
- const QString& name,
+ static void addFile(const TQString& filename,
+ const TQString& iconname,
+ const TQString& execname,
+ const TQString& name,
bool notify = true,
bool terminal = false,
bool tclose = false,
bool cuser = false,
- QString = "na");
- bool ignored(const QString& appname);
+ TQString = "na");
+ bool ignored(const TQString& appname);
#ifdef _ENABLE_DEBUG
- static void debug(QString message);
+ static void debug(TQString message);
#endif
#ifndef _ENABLE_DEBUG
- static void debug(QString);
+ static void debug(TQString);
#endif
void mkbigTimerDo();
void mksmallTimerDo();