summaryrefslogtreecommitdiffstats
path: root/src/knutpanelmeter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 19:37:06 +0000
commit968af1d235ac30d737991b269156bee5dc99d318 (patch)
tree19b118fa5380087e10cb728be545760791ce0676 /src/knutpanelmeter.h
parentaea4882f3b37f17c5b56bc77667e683c52254c30 (diff)
downloadknutclient-968af1d235ac30d737991b269156bee5dc99d318.tar.gz
knutclient-968af1d235ac30d737991b269156bee5dc99d318.zip
TQt4 port knutclient
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knutclient@1238881 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knutpanelmeter.h')
-rw-r--r--src/knutpanelmeter.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/knutpanelmeter.h b/src/knutpanelmeter.h
index 3bc8d47..3adeae0 100644
--- a/src/knutpanelmeter.h
+++ b/src/knutpanelmeter.h
@@ -22,18 +22,19 @@
#include "knutvardata.h"
-//#include <qwidget.h>
-#include <qscrollview.h>
+//#include <tqwidget.h>
+#include <tqscrollview.h>
-class QLabel;
-class QFont;
+class TQLabel;
+class TQFont;
/**
*@author Daniel Prynych
*/
-class KNutPanelMeter : public QScrollView {
+class KNutPanelMeter : public TQScrollView {
Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -46,7 +47,7 @@ public:
*
* @since 0.2
**/
- KNutPanelMeter(QPalette aPanelPalette, KNutVarData::upsInfoDef* activeUpsInfo, KNutVarData::SettingDataDef* settingData, KNutVarData* analogRecords, QWidget *parent=0, const char *name=0);
+ KNutPanelMeter(TQPalette aPanelPalette, KNutVarData::upsInfoDef* activeUpsInfo, KNutVarData::SettingDataDef* settingData, KNutVarData* analogRecords, TQWidget *tqparent=0, const char *name=0);
/**
* Destruktor
@@ -89,7 +90,7 @@ public:
*
* @since 0.1
**/
- void repaintScaleAnalogPanel (int panelNumber, float value);
+ void tqrepaintScaleAnalogPanel (int panelNumber, float value);
/**
* Paints pointer for selected analog panel
@@ -97,14 +98,14 @@ public:
*
* @param panelNumber is number of analog panel.
* @param value is value of settimg amalog panel.
- * @param run = TRUE makes immediately repaint of panel
+ * @param run = TRUE makes immediately tqrepaint of panel
* @param panelNumber je cislo analogoveho panelu.
* @param value je hodnota na kterou je panel nastaven.
* @param run = TRUE provede okamzite prekresleni
*
* @since 0.2
**/
- void repaintAnalogPointer (int panelNumber, float value, bool run = true);
+ void tqrepaintAnalogPointer (int panelNumber, float value, bool run = true);
/**
@@ -113,13 +114,13 @@ public:
* Prekresli a prebarvi analogove panely.
* Prekresuje rozsah panelu pro frekvenci a nepeti na zaklade soucasneho nastaveni.
*
- * @param repaintFrequencyPanels urcuje ze ma prekreslit panely ktere zobrazuji vstupni frequency.
- * @param repaintVoltagePanels urcuje ze ma prekreslit panely ktere zobrazuji vstupni a vystupni napeti.
- * @param repaintAllPanels urcuje ze ma prebarvit vsechny prvky panelu.
+ * @param tqrepaintFrequencyPanels urcuje ze ma prekreslit panely ktere zobrazuji vstupni frequency.
+ * @param tqrepaintVoltagePanels urcuje ze ma prekreslit panely ktere zobrazuji vstupni a vystupni napeti.
+ * @param tqrepaintAllPanels urcuje ze ma prebarvit vsechny prvky panelu.
*
* @since 0.1
**/
- void repaintAnalogPanels (bool repaintFrequencyPanels, bool repaintVoltagePanels, bool repaintAllPanels);
+ void tqrepaintAnalogPanels (bool tqrepaintFrequencyPanels, bool tqrepaintVoltagePanels, bool tqrepaintAllPanels);
@@ -127,7 +128,7 @@ public:
/**
- * Changes type of digital processing of pointer and repaints it.
+ * Changes type of digital processing of pointer and tqrepaints it.
* Zmeni zpusob digitalniho zpracovani rucucky a prekresli ji
*
* @since 0.1
@@ -151,7 +152,7 @@ public:
*
* @since 0.1
**/
- void setAnalogBG(QPalette aPanelPalette);
+ void setAnalogBG(TQPalette aPanelPalette);
@@ -160,7 +161,7 @@ public:
*
* @since 0.1
**/
- virtual QSize sizeHint (void);
+ virtual TQSize tqsizeHint (void);
public slots:
@@ -170,7 +171,7 @@ public slots:
*
* @since 0.1
**/
- void slotSetPanelsFont(QFont newFont);
+ void slotSetPanelsFont(TQFont newFont);
private:
@@ -192,7 +193,7 @@ private:
/*********** private vars *******************/
- QLabel* m_analogArea;
+ TQLabel* m_analogArea;
analogPanelRecordsDef* m_analogPanels;
@@ -201,7 +202,7 @@ private:
KNutVarData* m_analogRecords;
- QPalette m_aPanelPalette;
+ TQPalette m_aPanelPalette;
int m_widthArea;
int m_heightArea;