summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/karamba.h
diff options
context:
space:
mode:
Diffstat (limited to 'superkaramba/src/karamba.h')
-rw-r--r--superkaramba/src/karamba.h130
1 files changed, 65 insertions, 65 deletions
diff --git a/superkaramba/src/karamba.h b/superkaramba/src/karamba.h
index a81b11b..d3e6e4a 100644
--- a/superkaramba/src/karamba.h
+++ b/superkaramba/src/karamba.h
@@ -28,43 +28,43 @@
#include <config.h>
#endif
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kapplication.h>
#include <kwinmodule.h>
#include <kwin.h>
-#include <qfile.h>
+#include <tqfile.h>
#include <kfile.h>
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kaction.h>
-#include <qtimer.h>
-#include <qpixmap.h>
-#include <qpainter.h>
+#include <tqtimer.h>
+#include <tqpixmap.h>
+#include <tqpainter.h>
//#include <krootpixmap.h>
-#include <qregexp.h>
-#include <qlabel.h>
-#include <qobjectlist.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqregexp.h>
+#include <tqlabel.h>
+#include <tqobjectlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <ksharedpixmap.h>
-#include <qvaluestack.h>
+#include <tqvaluestack.h>
#include <dcopclient.h>
#include <kpopupmenu.h>
-#include <qcursor.h>
+#include <tqcursor.h>
#include <netwm.h>
#include <kiconloader.h>
#include <kfiledialog.h>
-#include <qmap.h>
+#include <tqmap.h>
#include <kurl.h>
#include <krun.h>
-#include <qdatetime.h>
-#include <qbitmap.h>
+#include <tqdatetime.h>
+#include <tqbitmap.h>
#include <kconfig.h>
#include <kprocess.h>
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include "karambarootpixmap.h"
@@ -114,24 +114,24 @@ class karamba : public QWidget
Q_OBJECT
public:
- karamba(QString fn, QString name, bool reloading = false,
+ karamba(TQString fn, TQString name, bool reloading = false,
int instance = -1, bool sub_theme = false);
- QObjectList *menuList;
+ TQObjectList *menuList;
virtual ~karamba();
const ThemeFile& theme() const { return m_theme; };
- QObjectList *meterList;
- QObjectList *imageList;
- QObjectList *clickList;
+ TQObjectList *meterList;
+ TQObjectList *imageList;
+ TQObjectList *clickList;
void setSensor(const LineParser& lineParser, Meter* meter);
- QString getSensor(Meter* meter);
- QString findSensorFromMap(Sensor* sensor);
+ TQString getSensor(Meter* meter);
+ TQString findSensorFromMap(Sensor* sensor);
void deleteMeterFromSensors(Meter* meter);
Sensor* findSensorFromList(Meter* meter);
KPopupMenu* keditpop;
KPopupMenu *kpop;
- QBitmap* widgetMask;
+ TQBitmap* widgetMask;
KarambaRootPixmap *kroot;
TaskManager taskManager;
Systemtray* systray;
@@ -143,19 +143,19 @@ public:
bool getWidgetUpdate() { return widgetUpdate; };
bool hasMeter(Meter* meter) { return meterList->containsRef(meter) > 0; };
char getTempUnit() { return tempUnit; };
- void addMenuConfigOption(QString key, QString name);
- bool setMenuConfigOption(QString key, bool value);
- bool readMenuConfigOption(QString key);
+ void addMenuConfigOption(TQString key, TQString name);
+ bool setMenuConfigOption(TQString key, bool value);
+ bool readMenuConfigOption(TQString key);
void writeConfigData();
TextField* getDefaultTextProps() { return defaultTextField; };
int instance() const { return m_instance; };
void setInstance(int instance) { m_instance = instance; };
void closeTheme(bool reloading = false);
- void keyPressed(const QString& s, const Meter* meter);
+ void keyPressed(const TQString& s, const Meter* meter);
int numberOfConfMenuItems;
KConfig* config;
- QString prettyName;
+ TQString prettyName;
bool m_sub_theme;
bool isSubTheme() { return m_sub_theme; }
@@ -163,13 +163,13 @@ public:
KWinModule* kWinModule;
- QString incomingData;
- QString getIncomingData() { return incomingData; }
- void _setIncomingData(QString data) { incomingData = data; }
- void setIncomingData(QString theme, QString data);
+ TQString incomingData;
+ TQString getIncomingData() { return incomingData; }
+ void _setIncomingData(TQString data) { incomingData = data; }
+ void setIncomingData(TQString theme, TQString data);
- void themeNotify(QString theme, QString txt);
- void callTheme(QString theme, QString txt);
+ void themeNotify(TQString theme, TQString txt);
+ void callTheme(TQString theme, TQString txt);
double getUpdateTime() { return update_time; }
void setUpdateTime(double time) { update_time = time; }
@@ -181,18 +181,18 @@ public:
void hideMenuExtension();
protected:
- void mousePressEvent( QMouseEvent *);
- void wheelEvent( QWheelEvent *);
- void mouseReleaseEvent( QMouseEvent *);
- void mouseDoubleClickEvent( QMouseEvent *);
- void mouseMoveEvent( QMouseEvent *);
- void keyPressEvent ( QKeyEvent * e );
- void closeEvent ( QCloseEvent *);
- void paintEvent ( QPaintEvent *);
+ void mousePressEvent( TQMouseEvent *);
+ void wheelEvent( TQWheelEvent *);
+ void mouseReleaseEvent( TQMouseEvent *);
+ void mouseDoubleClickEvent( TQMouseEvent *);
+ void mouseMoveEvent( TQMouseEvent *);
+ void keyPressEvent ( TQKeyEvent * e );
+ void closeEvent ( TQCloseEvent *);
+ void paintEvent ( TQPaintEvent *);
void saveProperties(KConfig *);
void readProperties(KConfig *);
- void dragEnterEvent(QDragEnterEvent* event);
- void dropEvent(QDropEvent* event);
+ void dragEnterEvent(TQDragEnterEvent* event);
+ void dropEvent(TQDropEvent* event);
private:
bool widgetUpdate;
@@ -212,15 +212,15 @@ private:
bool parseConfig();
- void passClick( QMouseEvent* );
- void passWheelClick( QWheelEvent* );
- void meterClicked(QMouseEvent*, Meter*);
+ void passClick( TQMouseEvent* );
+ void passWheelClick( TQWheelEvent* );
+ void meterClicked(TQMouseEvent*, Meter*);
- QMap<QString, Sensor*> sensorMap;
- QObjectList *sensorList;
- QObjectList *timeList;
+ TQMap<TQString, Sensor*> sensorMap;
+ TQObjectList *sensorList;
+ TQObjectList *timeList;
- QTime lowerTimer;
+ TQTime lowerTimer;
// use only the first occurance of KARAMBA in a config file
bool foundKaramba;
@@ -229,13 +229,13 @@ private:
KPopupMenu* kglobal;
DCOPClient *client;
- QCString appId;
+ TQCString appId;
- QPixmap pm;
- QPixmap background;
- QPainter p;
+ TQPixmap pm;
+ TQPixmap background;
+ TQPainter p;
- QPoint clickPos;
+ TQPoint clickPos;
KActionCollection* accColl;
KActionCollection* menuAccColl;
KToggleAction *toggleLocked;
@@ -262,9 +262,9 @@ public slots:
void updateSensors();
void currentDesktopChanged(int);
void currentWallpaperChanged(int);
- void slotToggleConfigOption(QString key, bool);
+ void slotToggleConfigOption(TQString key, bool);
void updateBackground(KSharedPixmap*);
- void passMenuOptionChanged(QString key, bool);
+ void passMenuOptionChanged(TQString key, bool);
void passMenuItemClicked(int);
void processExited (KProcess *proc);
void receivedStdout (KProcess *proc, char *buffer, int buflen);
@@ -301,7 +301,7 @@ public slots:
private:
bool m_reloading;
bool themeStarted;
- QTimer *m_sysTimer;
+ TQTimer *m_sysTimer;
int m_interval;
private slots:
@@ -312,7 +312,7 @@ private slots:
void slotToggleLocked();
void slotToggleFastTransforms();
void popupNotify(int);
- void slotFileChanged( const QString & );
+ void slotFileChanged( const TQString & );
void slotToggleSystemTray();
void slotQuit();
@@ -328,7 +328,7 @@ class DesktopChangeSlot : public QObject
Q_OBJECT
public:
- DesktopChangeSlot(QObject *parent, int desktop_id);
+ DesktopChangeSlot(TQObject *parent, int desktop_id);
/* Parent should be the karamba object
* desktop id of 0 indicates all desktops */
void setMenuId(int id);
@@ -348,10 +348,10 @@ class SignalBridge : public QObject
Q_OBJECT
public:
- SignalBridge(QObject* parent, QString, KActionCollection*);
+ SignalBridge(TQObject* parent, TQString, KActionCollection*);
signals:
- void enabled(QString, bool);
+ void enabled(TQString, bool);
public slots:
void receive();