summaryrefslogtreecommitdiffstats
path: root/src/knutmainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/knutmainwindow.h')
-rw-r--r--src/knutmainwindow.h61
1 files changed, 31 insertions, 30 deletions
diff --git a/src/knutmainwindow.h b/src/knutmainwindow.h
index 01b9815..542de06 100644
--- a/src/knutmainwindow.h
+++ b/src/knutmainwindow.h
@@ -37,18 +37,18 @@
//#include <kprogress.h>
-#include <qwidget.h>
-#include <qdatetime.h>
-//#include <qprogressbar.h>
+#include <tqwidget.h>
+#include <tqdatetime.h>
+//#include <tqprogressbar.h>
-class QString;
-class QStringList;
-class QLabel;
-class QPalette;
-class QSplitter;
+class TQString;
+class TQStringList;
+class TQLabel;
+class TQPalette;
+class TQSplitter;
class KProgress;
-//class QProgressBar;
+//class TQProgressBar;
/**
@@ -61,24 +61,25 @@ class KProgress;
*/
class KNutMainWindow : public KMainWindow {
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor - makes main window.
* Konstruktor - vytvori hlavni okno.
*
- * @param tListKNutEvent pointer on QStringList contain text information about events (drop connection, switch ..)
+ * @param tListKNutEvent pointer on TQStringList contain text information about events (drop connection, switch ..)
* @param tActiveUpsInfo pointer on data about active UPS
* @param tSettingData pointer on basic data of program (background color, intercircle, pointers...,fonts..)
* @param tAnalogRecords pointer in class which works with data about UPS
- * @param tListKNutEvent ukazatel na QStringList obsahuje textove udaje o udalostech (ztrata spojeni, prepnuti atd.)
+ * @param tListKNutEvent ukazatel na TQStringList obsahuje textove udaje o udalostech (ztrata spojeni, prepnuti atd.)
* @param tActiveUpsInfo ukazatel na data o aktivni UPS
* @param tSettingData ukazatel na zakladni data programu (barvy pozadi, mezikruzi, rucicky ... ,fonty atd )
* @param tAnalogRecords ukazatel na tridu ktera pracuje s daty o upsekach
*
* @since 0.3.1
**/
- KNutMainWindow(QStringList* tListKNutEvent, KNutVarData::upsInfoDef* tActiveUpsInfo, KNutVarData::SettingDataDef* tSettingData, KNutUpsData* tUpsRecords, KNutVarData* tAnalogRecords, QWidget* parent=0,const char *name=0);
+ KNutMainWindow(TQStringList* tListKNutEvent, KNutVarData::upsInfoDef* tActiveUpsInfo, KNutVarData::SettingDataDef* tSettingData, KNutUpsData* tUpsRecords, KNutVarData* tAnalogRecords, TQWidget* tqparent=0,const char *name=0);
/**
* Destructor
@@ -93,23 +94,23 @@ class KNutMainWindow : public KMainWindow {
*
* @since 0.1.2
**/
- void repaintPanel(void);
+ void tqrepaintPanel(void);
/**
* Repaints analog panels based on their status.
* Prekresli analogove panely na zaklade jejich stavu.
- * @param run = TRUE makes immediately repaint of panel
+ * @param run = TRUE makes immediately tqrepaint of panel
*
* @since 0.3.1
**/
- void repaintAnalogs ( bool run = true);
+ void tqrepaintAnalogs ( bool run = true);
/**
* Da prikaz k prekresleni analogovych panelu, hlavniho panelu a nastavi jejich hodnoty na
* zaklade XFer hodnot.
- * Give command to repaint analog panels, main panel and sets their values based on XFer values
- * @param run = TRUE makes immediately repaint of analog panels
+ * Give command to tqrepaint analog panels, main panel and sets their values based on XFer values
+ * @param run = TRUE makes immediately tqrepaint of analog panels
*
* @since 0.3.1
**/
@@ -127,7 +128,7 @@ class KNutMainWindow : public KMainWindow {
*
* @since 0.1
**/
- void addComboStatusItem (const QString text, const QString name = QString::null);
+ void addComboStatusItem (const TQString text, const TQString name = TQString());
/**
* Rebuilds main panel based on value changeSetting.
@@ -151,7 +152,7 @@ class KNutMainWindow : public KMainWindow {
*
* @since 0.1
**/
- void setCombo(QString name);
+ void setCombo(TQString name);
/**
* Nastavi vsechny panely na nulovo hodnotu
@@ -207,7 +208,7 @@ class KNutMainWindow : public KMainWindow {
*
* @since 0.1
**/
- void UPSChanged (QString);
+ void UPSChanged (TQString);
/**
* This signal is emited when request for viewing preferences window was ordered from menu.
@@ -270,7 +271,7 @@ class KNutMainWindow : public KMainWindow {
void endApplication();
protected:
- void closeEvent( QCloseEvent *e );
+ void closeEvent( TQCloseEvent *e );
@@ -282,9 +283,9 @@ class KNutMainWindow : public KMainWindow {
void slotPrintUPSVars(void);
void slotInstComms(void);
void slotRWVars(void);
- void slotChangeRWVars ( QString );
+ void slotChangeRWVars ( TQString );
void slotCloseKnutClient (void);
- void slotChangeUPS (const QString &name);
+ void slotChangeUPS (const TQString &name);
void slotConfigureKeys(void);
void slotRefreshConnection(void);
@@ -307,7 +308,7 @@ class KNutMainWindow : public KMainWindow {
/************** private vars **************************/
// Nazvy promenych UPS cislovany jsou od 0 do 10 "NONE", "UTILITY", "BATTPCT", "UPSTEMP", "ACFREQ", "LOADPCT", "AMBTEMP", "AMBHUMID", "BATTVOLT", "OUTVOLT", "CURRENT"
- QStringList* m_listKNutEvent;
+ TQStringList* m_listKNutEvent;
KNutVarData::upsInfoDef* m_activeUpsInfo; // values for selected ups / hodnoty pro vybrane ups
KNutVarData::SettingDataDef* m_settingData; // v teto strukture jsou ulozeny promene ktere nastavuji konfiguraci
KNutUpsData* m_upsRecords;
@@ -319,27 +320,27 @@ class KNutMainWindow : public KMainWindow {
KToggleAction *m_descriptionAction;
- QLabel* m_area; // main arrea, on its will server main panel and analog panels
+ TQLabel* m_area; // main arrea, on its will server main panel and analog panels
// hlavni plocha na ni umistime panel a analogove ukazatele
- QSplitter* m_mainSplit;
+ TQSplitter* m_mainSplit;
KNutFrontPanel* m_frontPanel;
// nactene hodnoty promenych UPS, tyto promene se ctou jen jednou
// readly values of UPS's variables, these varieables is read only once
- QString m_manufacturer, m_upsModel, m_serial, m_firmrev;
+ TQString m_manufacturer, m_upsModel, m_serial, m_firmrev;
bool m_existLowHighXfer;
float m_lowXfer, m_highXfer;
- QPalette m_mainPalette, m_areaPalette, m_mPanelPalette, m_aPanelPalette;
+ TQPalette m_mainPalette, m_areaPalette, m_mPanelPalette, m_aPanelPalette;
- // Combo a pomocne struktury pro dolni radku
+ // Combo a potqmocne struktury pro dolni radku
// Combo and help structures for bottom line.
KComboBox *m_infoCombo;
KNutPanelMeter* m_panelMeter;
KProgress* m_connectProggresBar;
- QString m_progressFormatString;
+ TQString m_progressFormatString;
};
#endif