summaryrefslogtreecommitdiffstats
path: root/src/knutdock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/knutdock.h')
-rwxr-xr-xsrc/knutdock.h67
1 files changed, 34 insertions, 33 deletions
diff --git a/src/knutdock.h b/src/knutdock.h
index 7a798bd..aec3612 100755
--- a/src/knutdock.h
+++ b/src/knutdock.h
@@ -26,12 +26,12 @@
#include <ksystemtray.h>
#include <kpopupmenu.h>
-#include <qobject.h>
+#include <tqobject.h>
-class QString;
-class QPixmap;
-class QColor;
+class TQString;
+class TQPixmap;
+class TQColor;
/**
* This class makes icons in dock.
@@ -43,6 +43,7 @@ class QColor;
*/
class KNutDock : public KSystemTray {
Q_OBJECT
+ TQ_OBJECT
public:
enum KNTDconst { DefaultToolTipFlags = 0x398};
@@ -137,16 +138,16 @@ class KNutDock : public KSystemTray {
void changeToolTip(void);
/**
- * Provede nove zpracovani dat a jejich nakresli iconu docku, interni repaint je volan vzdy.
+ * Provede nove zpracovani dat a jejich nakresli iconu docku, interni tqrepaint je volan vzdy.
* Tato funkce take vola funkci ToolTip.
- * Makes new processing of data and paints icons of dock, internal repaint is colled always.
+ * Makes new processing of data and paints icons of dock, internal tqrepaint is colled always.
* This function calls function ToolTips too.
* @param always Kdyz je true prorovede vykresleni vzdy, kde je false provede vykresleni jen kdyz je zmenena nejaka hodnota UPS.
* @param always When param is true, icon is made always, is one is false icon is makeing when same UPS's value is changed.
*
* @since 0.4
**/
- void repaintDock ( const bool always = false);
+ void tqrepaintDock ( const bool always = false);
@@ -236,12 +237,12 @@ class KNutDock : public KSystemTray {
*
* @since 0.1
**/
- void UPSChanged(QString name);
+ void UPSChanged(TQString name);
protected slots:
- virtual void mousePressEvent(QMouseEvent *e);
+ virtual void mousePressEvent(TQMouseEvent *e);
/**
* @internal
@@ -372,7 +373,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.2
**/
- void paintNumbers (int numbers, int x, int y, QPainter* p, float sizeMult ); //x,y levy horni roh cisla 1
+ void paintNumbers (int numbers, int x, int y, TQPainter* p, float sizeMult ); //x,y levy horni roh cisla 1
/**
* @internal
@@ -385,7 +386,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.1
**/
- void paintNumber (int x, int y, int number, QPainter *p, float sizeMult);
+ void paintNumber (int x, int y, int number, TQPainter *p, float sizeMult);
/**
* @internal
@@ -398,7 +399,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.1
**/
- void paintChar (int x, int y, char LCDChar, QPainter *p);
+ void paintChar (int x, int y, char LCDChar, TQPainter *p);
/**
@@ -410,7 +411,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.1
**/
- void paintDash (int x, int y, QPainter *p, float sizeMult);
+ void paintDash (int x, int y, TQPainter *p, float sizeMult);
/**
@@ -442,15 +443,15 @@ class KNutDock : public KSystemTray {
/**
* @internal
- * Paints layer for UPS Status, only for type general
- * Vykresli vrstvu pro UPS Status.
+ * Paints layer for UPS tqStatus, only for type general
+ * Vykresli vrstvu pro UPS tqStatus.
*
* @since 0.2
**/
- void paintStatus (int status );
+ void painttqStatus (int status );
- void paintEvent (QPaintEvent *);
+ void paintEvent (TQPaintEvent *);
/**
* @internal
@@ -460,7 +461,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.3
**/
- void paintErrorPoint ( QPainter& paint );
+ void paintErrorPoint ( TQPainter& paint );
/**
* @internal
@@ -470,7 +471,7 @@ class KNutDock : public KSystemTray {
*
* @since 0.3
**/
- void paintOKPoint ( QPainter& paint );
+ void paintOKPoint ( TQPainter& paint );
/**
* @internal
@@ -481,31 +482,31 @@ class KNutDock : public KSystemTray {
**/
void clearValues(void);
- void resizeEvent ( QResizeEvent * );
+ void resizeEvent ( TQResizeEvent * );
KNutUpsData* m_upsRecords;
KNutVarData::SettingDataDef* m_settingData; // v teto strukture jsou ulozeny promene ktere nastavuji konfiguraci
KNutVarData::upsInfoDef* m_activeUpsInfo; // values for selected ups
- QPixmap m_mainPix;
- QPixmap m_errorPix;
- QPixmap m_connectPix;
- QPixmap m_upsPix;
- QPixmap m_battPix;
+ TQPixmap m_mainPix;
+ TQPixmap m_errorPix;
+ TQPixmap m_connectPix;
+ TQPixmap m_upsPix;
+ TQPixmap m_battPix;
- QPixmap m_mainLayer1;
+ TQPixmap m_mainLayer1;
- QColor backgroundColor;
+ TQColor backgroundColor;
KPopupMenu* m_menu;
KPopupMenu* m_upsServerMenu;
- QPixmap *m_statusLayer;
- QPixmap *m_runtimeLayer;
- QPixmap *m_loadLayer;
- QPixmap *m_chargeLayer;
- QPixmap *m_mainLayer;
+ TQPixmap *m_statusLayer;
+ TQPixmap *m_runtimeLayer;
+ TQPixmap *m_loadLayer;
+ TQPixmap *m_chargeLayer;
+ TQPixmap *m_mainLayer;
int m_runtimeValue;
int m_upsLoadValue;
@@ -519,7 +520,7 @@ class KNutDock : public KSystemTray {
upsConnection m_dataOkOld;
int m_typeOfIcon;
- QColor m_myBGColor;
+ TQColor m_myBGColor;
unsigned int m_toolTipFlags;
};