diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:37:06 +0000 |
commit | 968af1d235ac30d737991b269156bee5dc99d318 (patch) | |
tree | 19b118fa5380087e10cb728be545760791ce0676 /src/knutfrontpanel.h | |
parent | aea4882f3b37f17c5b56bc77667e683c52254c30 (diff) | |
download | knutclient-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/knutfrontpanel.h')
-rwxr-xr-x | src/knutfrontpanel.h | 115 |
1 files changed, 58 insertions, 57 deletions
diff --git a/src/knutfrontpanel.h b/src/knutfrontpanel.h index 42242ed..9f63a5b 100755 --- a/src/knutfrontpanel.h +++ b/src/knutfrontpanel.h @@ -20,7 +20,7 @@ #include <kled.h> -#include <qframe.h> +#include <tqframe.h> /** @@ -28,14 +28,14 @@ */ -class QFont; -class QPalette; -class QColor; -class QLCDNumber; -class QLabel; -class QVBoxLayout; -class QHBoxLayout; -class QGroupBox; +class TQFont; +class TQPalette; +class TQColor; +class TQLCDNumber; +class TQLabel; +class TQVBoxLayout; +class TQHBoxLayout; +class TQGroupBox; /** @@ -47,8 +47,9 @@ class QGroupBox; * @short Main panel * @version 0.7.0 */ -class KNutFrontPanel : public QFrame { +class KNutFrontPanel : public TQFrame { Q_OBJECT + TQ_OBJECT public: @@ -86,7 +87,7 @@ enum panelBulb { * @param panelFonts Odkaz na fonts ktery se ma pouzit pro vykreslovani, pokud je = 0 (nula) pouzije se systemovy font pri aplikaci. * @since 0.8 */ - KNutFrontPanel( QPalette* const paletteIn, QWidget *parent = 0, const unsigned int flags = DefaultPanelFlags, QFont* const panelFonts = 0L ,const char *name = 0); + KNutFrontPanel( TQPalette* const paletteIn, TQWidget *tqparent = 0, const unsigned int flags = DefaultPanelFlags, TQFont* const panelFonts = 0L ,const char *name = 0); /** * Destruktor @@ -142,7 +143,7 @@ enum panelBulb { * * @since 0.2 */ -void setAllNameUps(const QString panelUpsAllName); +void setAllNameUps(const TQString panelUpsAllName); /** * Shows name of UPS on panel. @@ -153,7 +154,7 @@ void setAllNameUps(const QString panelUpsAllName); * * @since 0.3 */ - void setNameUps(const QString panelUpsName ); + void setNameUps(const TQString panelUpsName ); /** * Zobrazi na panelu jmeno vyrobce UPS-ky. @@ -164,7 +165,7 @@ void setAllNameUps(const QString panelUpsAllName); * * @since 0.2 */ - void setMFRUps(const QString panelUpsFRM ); + void setMFRUps(const TQString panelUpsFRM ); /** * Shows serial number of UPS on panel. @@ -175,7 +176,7 @@ void setAllNameUps(const QString panelUpsAllName); * * @since 0.2 */ - void setSerialUps(const QString panelUpsSerial ); + void setSerialUps(const TQString panelUpsSerial ); /** * Zobrazi na panelu verzi firmwaru cislo UPS-ky. @@ -184,7 +185,7 @@ void setAllNameUps(const QString panelUpsAllName); * * @since 0.2 */ - void setFirmRevUps(const QString upsPanelFormRev ); + void setFirmRevUps(const TQString upsPanelFormRev ); /** * Offs bulbs on panel. / Cleans panel. @@ -218,14 +219,14 @@ void setAllNameUps(const QString panelUpsAllName); /** * Sets palette. - * Nastavi paletu (palette). Predefinovana funkce from QWidget. + * Nastavi paletu (palette). Predefinovana funkce from TQWidget. * * @param Palette which mail panel is painted. * @param Paleta kterou ma byt vykreslen hlavni panel * * @since 0.1 */ - void setPalette (const QPalette & ); + void setPalette (const TQPalette & ); public slots: @@ -237,7 +238,7 @@ void setAllNameUps(const QString panelUpsAllName); * * @since 0.2 */ - void slotSetPanelFont(QFont newPanelFont); + void slotSetPanelFont(TQFont newPanelFont); private: @@ -269,23 +270,23 @@ void setAllNameUps(const QString panelUpsAllName); void changePanelFont (void); - QLabel* m_textLabel1; - QLabel* m_textLabel2; - QLabel* m_textLabel3; - QLabel* m_textLabel4; - QLabel* m_textLabel5; - QLabel* m_textLabel6; - QLabel* m_textLabel7; - QLabel* m_textLabel8; - QLabel* m_textLabel9; - QLabel* m_textLabel10; - QLabel* m_textLabel11; + TQLabel* m_textLabel1; + TQLabel* m_textLabel2; + TQLabel* m_textLabel3; + TQLabel* m_textLabel4; + TQLabel* m_textLabel5; + TQLabel* m_textLabel6; + TQLabel* m_textLabel7; + TQLabel* m_textLabel8; + TQLabel* m_textLabel9; + TQLabel* m_textLabel10; + TQLabel* m_textLabel11; - QLabel* m_textLabelManufac; - QLabel* m_textLabelName; - QLabel* m_textLabelSerial; - QLabel* m_textLabelFirm; - QLabel* m_textLabelRun; + TQLabel* m_textLabelManufac; + TQLabel* m_textLabelName; + TQLabel* m_textLabelSerial; + TQLabel* m_textLabelFirm; + TQLabel* m_textLabelRun; KLed* m_frameOL; @@ -295,38 +296,38 @@ void setAllNameUps(const QString panelUpsAllName); KLed* m_frameRB; KLed* m_frameCAL; - QLCDNumber* m_LCDNumber1; - QPalette m_LCDPaletteOk, m_LCDPaletteErr; - QPalette m_bulbsPalette; + TQLCDNumber* m_LCDNumber1; + TQPalette m_LCDPaletteOk, m_LCDPaletteErr; + TQPalette m_bulbsPalette; - QColor m_upsOkColor, m_upsErrorColor, m_upsBackColor, m_helpColor; + TQColor m_upsOkColor, m_upsErrorColor, m_upsBackColor, m_helpColor; - QFont m_panelFont; // font pro header - QFont m_panelBoldFont; // font for date + TQFont m_panelFont; // font pro header + TQFont m_panelBoldFont; // font for date unsigned int m_panelFlags; // selects which of rows will be shown/ urcuji ktera radka bude rozsvicena 1 OL, 2 OB, 3 OVER, 4 RB, CAL 5 ... - QPalette m_myPalette; + TQPalette m_myPalette; - QGroupBox* m_bulbsGroupBox; - QGroupBox* m_messGroupBox; - QGroupBox* m_valGroupBox; + TQGroupBox* m_bulbsGroupBox; + TQGroupBox* m_messGroupBox; + TQGroupBox* m_valGroupBox; bool m_typeOfLCDColor; - QVBoxLayout* m_mainLayout; - - QHBoxLayout* m_OLayout; - QHBoxLayout* m_LBLayout; - QHBoxLayout* m_RBLayout; - QHBoxLayout* m_CALLayout; - QHBoxLayout* m_manufacModelLayout; - QHBoxLayout* m_manufacLayout; - QHBoxLayout* m_nameLayout; - QHBoxLayout* m_serialLayout; - QHBoxLayout* m_firmLayout; - QHBoxLayout* m_runLayout; + TQVBoxLayout* m_mainLayout; + + TQHBoxLayout* m_OLayout; + TQHBoxLayout* m_LBLayout; + TQHBoxLayout* m_RBLayout; + TQHBoxLayout* m_CALLayout; + TQHBoxLayout* m_manufacModelLayout; + TQHBoxLayout* m_manufacLayout; + TQHBoxLayout* m_nameLayout; + TQHBoxLayout* m_serialLayout; + TQHBoxLayout* m_firmLayout; + TQHBoxLayout* m_runLayout; }; #endif |