summaryrefslogtreecommitdiffstats
path: root/src/knutprefdlg.cpp
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/knutprefdlg.cpp
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/knutprefdlg.cpp')
-rw-r--r--src/knutprefdlg.cpp242
1 files changed, 121 insertions, 121 deletions
diff --git a/src/knutprefdlg.cpp b/src/knutprefdlg.cpp
index 68ce4ce..5acdefb 100644
--- a/src/knutprefdlg.cpp
+++ b/src/knutprefdlg.cpp
@@ -22,14 +22,14 @@
#include <kiconloader.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qfont.h>
-#include <qlabel.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqfont.h>
+#include <tqlabel.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
#include <stdio.h>
@@ -41,8 +41,8 @@
KNutPrefDlg::KNutPrefDlg(KNutUpsData* const upsData, KNutVarData* const analogData, KNutVarData::SettingDataDef* const settingData,
- const QString upsName, QWidget* parent, const char* name, const bool modal)
- :KDialogBase(IconList, i18n("Preferences"),Help|Default|Apply|Ok|Cancel,Ok, parent, name, modal, true),
+ const TQString upsName, TQWidget* tqparent, const char* name, const bool modal)
+ :KDialogBase(IconList, i18n("Preferences"),Help|Default|Apply|Ok|Cancel,Ok, tqparent, name, modal, true),
m_activeUpsName (upsName), m_myUpsData(upsData), m_myAnalogData(analogData), m_settingData(settingData) {
setName( "UpsMemberDlg" );
@@ -210,7 +210,7 @@ void KNutPrefDlg::slotNewUps () {
// pridame data do okenka
m_listBox2->insertItem(upsRecord.name);
// pokud pridame prvni prekreslime hlavni okno
- // when adds the first sameone, will repaint window
+ // when adds the first sameone, will tqrepaint window
m_checked = true;
if (m_myUpsData->getCount() ==1 ) m_checkedActiveUps = true;
}
@@ -505,38 +505,38 @@ void KNutPrefDlg::initSetting () {
m_mSetPix = UserIcon ("knc_mset");
- QFrame *page = addPage( i18n("Setting"),i18n("Main Setting"),m_mSetPix);
- QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
+ TQFrame *page = addPage( i18n("Setting"),i18n("Main Setting"),m_mSetPix);
+ TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
- QGroupBox *dataBox = new QGroupBox (page ,"dataBox");
- QGridLayout *dataLayout = new QGridLayout (dataBox,5,2,spacingHint());
- dataBox->setFrameStyle(QFrame::NoFrame);
+ TQGroupBox *dataBox = new TQGroupBox (page ,"dataBox");
+ TQGridLayout *dataLayout = new TQGridLayout (dataBox,5,2,spacingHint());
+ dataBox->setFrameStyle(TQFrame::NoFrame);
setTopLayout->addWidget(dataBox);
- QButtonGroup *VFGroup = new QButtonGroup(i18n("Voltage/Frequency"),page,"VFGroup");
- QGridLayout *setVoltFreqLayout = new QGridLayout (VFGroup, 4 , 2,spacingHint () );
+ TQButtonGroup *VFGroup = new TQButtonGroup(i18n("Voltage/Frequency"),page,"VFGroup");
+ TQGridLayout *setVoltFreqLayout = new TQGridLayout (VFGroup, 4 , 2,spacingHint () );
- m_xfer = new QCheckBox (i18n("&Use High-Low XFER"),VFGroup,"m_xfer");
+ m_xfer = new TQCheckBox (i18n("&Use High-Low XFER"),VFGroup,"m_xfer");
- QLabel *initSettingLabel1 = new QLabel(i18n("Number of columns :"),dataBox,"label1");
- m_numberOfColumns = new QSpinBox(knc::MinCols,knc::MaxCols,1,dataBox);
+ TQLabel *initSettingLabel1 = new TQLabel(i18n("Number of columns :"),dataBox,"label1");
+ m_numberOfColumns = new TQSpinBox(knc::MinCols,knc::MaxCols,1,dataBox);
- QLabel *initSettingLabel2 = new QLabel(i18n("Use custom background color"),dataBox,"label2");
- m_checkBoxCbc = new QCheckBox ("",dataBox,"checboxcbc");
+ TQLabel *initSettingLabel2 = new TQLabel(i18n("Use custom background color"),dataBox,"label2");
+ m_checkBoxCbc = new TQCheckBox ("",dataBox,"checboxcbc");
- m_mainBackgroundColorLabel = new QLabel(i18n("Color of background :"),dataBox,"label3");
+ m_mainBackgroundColorLabel = new TQLabel(i18n("Color of background :"),dataBox,"label3");
m_BGButton = new KColorButton (dataBox);
m_BGButton->setColor (m_settingData->mainBackgroundColor);
- QLabel *initSettingLabel4 = new QLabel(i18n("Use dialog \"Are you sure\""),dataBox,"m_areYouSureLabel");
- m_checkBoxAys = new QCheckBox ("",dataBox,"checboxays");
+ TQLabel *initSettingLabel4 = new TQLabel(i18n("Use dialog \"Are you sure\""),dataBox,"m_areYouSureLabel");
+ m_checkBoxAys = new TQCheckBox ("",dataBox,"checboxays");
- QLabel *initSettingLabel5 = new QLabel(i18n("Use Main window when program is started"),dataBox,"initSettingLabel5");
-// m_checkBoxMW = new QCheckBox ("",dataBox,"checboxmv");
+ TQLabel *initSettingLabel5 = new TQLabel(i18n("Use Main window when program is started"),dataBox,"initSettingLabel5");
+// m_checkBoxMW = new TQCheckBox ("",dataBox,"checboxmv");
- QLabel *initSettingLabel6 = new QLabel(i18n("Show message window, when program reports error"),dataBox,"initSettingLabel6");
- m_checkBoxMesW = new QCheckBox ("",dataBox,"checboxer");
+ TQLabel *initSettingLabel6 = new TQLabel(i18n("Show message window, when program reports error"),dataBox,"initSettingLabel6");
+ m_checkBoxMesW = new TQCheckBox ("",dataBox,"checboxer");
m_comboBoxMainWindow = new KComboBox (dataBox);
m_comboBoxMainWindow->insertItem (i18n("Yes"));
m_comboBoxMainWindow->insertItem (i18n("No"));
@@ -544,17 +544,17 @@ void KNutPrefDlg::initSetting () {
- m_voltageGroup = new QButtonGroup(i18n("Nominal Input Voltage"),VFGroup,"voltageGroup");
- QGridLayout *voltLayout = new QGridLayout (m_voltageGroup, 3 , 1,spacingHint () );
+ m_voltageGroup = new TQButtonGroup(i18n("Nominal Input Voltage"),VFGroup,"voltageGroup");
+ TQGridLayout *voltLayout = new TQGridLayout (m_voltageGroup, 3 , 1,spacingHint () );
- m_vRadioButton1 = new QRadioButton(i18n("&230 V"), m_voltageGroup, "vRadioButton1" );
- m_vRadioButton2 = new QRadioButton(i18n("&120 V"), m_voltageGroup, "vRadioButton2" );
+ m_vRadioButton1 = new TQRadioButton(i18n("&230 V"), m_voltageGroup, "vRadioButton1" );
+ m_vRadioButton2 = new TQRadioButton(i18n("&120 V"), m_voltageGroup, "vRadioButton2" );
- m_frequencyGroup = new QButtonGroup(i18n("Nominal Input Frequency"),VFGroup,"frequencyGroup");
- QGridLayout *freqLayout = new QGridLayout (m_frequencyGroup, 3 , 1,spacingHint () );
+ m_frequencyGroup = new TQButtonGroup(i18n("Nominal Input Frequency"),VFGroup,"frequencyGroup");
+ TQGridLayout *freqLayout = new TQGridLayout (m_frequencyGroup, 3 , 1,spacingHint () );
- m_fRadioButton1 = new QRadioButton(i18n("&50 Hz"), m_frequencyGroup, "fRadioButton1" );
- m_fRadioButton2 = new QRadioButton(i18n("&60 Hz"), m_frequencyGroup, "fRadioButton2" );
+ m_fRadioButton1 = new TQRadioButton(i18n("&50 Hz"), m_frequencyGroup, "fRadioButton1" );
+ m_fRadioButton2 = new TQRadioButton(i18n("&60 Hz"), m_frequencyGroup, "fRadioButton2" );
dataLayout->addWidget (initSettingLabel1,0,0);
dataLayout->addWidget (m_numberOfColumns,0,1);
@@ -612,105 +612,105 @@ void KNutPrefDlg::initSetting () {
m_xfer->setChecked(m_settingData->lowHighXfer);
m_voltageGroup->setEnabled(!m_settingData->lowHighXfer);
m_frequencyGroup->setEnabled(!m_settingData->lowHighXfer);
- connect (m_xfer,SIGNAL(toggled(bool)),this,SLOT(slotEnableVoltage(bool)));
- connect (m_xfer,SIGNAL(toggled(bool)),this,SLOT(slotEnableFrequency(bool)));
+ connect (m_xfer,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableVoltage(bool)));
+ connect (m_xfer,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableFrequency(bool)));
m_checkBoxCbc->setChecked(m_settingData->customBColor);
m_BGButton->setColor(m_settingData->mainBackgroundColor);
m_BGButton->setEnabled(m_settingData->customBColor);
m_mainBackgroundColorLabel->setEnabled(m_settingData->customBColor);
- connect (m_checkBoxCbc,SIGNAL(toggled(bool)),this,SLOT(slotUseCustomBColor(bool)));
+ connect (m_checkBoxCbc,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotUseCustomBColor(bool)));
}
void KNutPrefDlg::initUps () {
m_upsesPix = UserIcon ("knc_upses");
- QFrame *page = addPage( i18n("UPS"),i18n("UPS Setting"),m_upsesPix);
- QHBoxLayout *upsTopLayout = new QHBoxLayout( page, 0, spacingHint (),"upsTopLayout" );
+ TQFrame *page = addPage( i18n("UPS"),i18n("UPS Setting"),m_upsesPix);
+ TQHBoxLayout *upsTopLayout = new TQHBoxLayout( page, 0, spacingHint (),"upsTopLayout" );
// makes box for names of UPS's / Vytvorime box pro jmena UPS-ek
m_listBox2 = new KListBox( page, "ListBox2" );
- m_listBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, m_listBox2->sizePolicy().hasHeightForWidth() ) );
- m_listBox2->setFrameShape( QListBox::StyledPanel );
- m_listBox2->setFrameShadow( QListBox::Sunken );
+ m_listBox2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, m_listBox2->sizePolicy().hasHeightForWidth() ) );
+ m_listBox2->setFrameShape( TQListBox::StyledPanel );
+ m_listBox2->setFrameShadow( TQListBox::Sunken );
m_listBox2->setMinimumSize (100,100);
// sets listbox
for (int i=0; i < m_myUpsData->getCount (); i++) m_listBox2->insertItem (m_myUpsData->getName(i));
- //includes listbox into horizontal layout on the first place
+ //includes listbox into horizontal tqlayout on the first place
upsTopLayout->addWidget( m_listBox2, 20 );
- // makes vertical layout and includes it in horizontal layout into the second place
- QVBoxLayout *upsLayout = new QVBoxLayout( upsTopLayout, spacingHint (),"upsLayout" );
+ // makes vertical tqlayout and includes it in horizontal tqlayout into the second place
+ TQVBoxLayout *upsLayout = new TQVBoxLayout( upsTopLayout, spacingHint (),"upsLayout" );
// vytvorime tlacitka
KPushButton *newButton = new KPushButton (i18n("&Add"),page);
KPushButton *editButton = new KPushButton (i18n("&Edit"),page);
KPushButton *deleteButton = new KPushButton (i18n("&Delete"),page);
- // includes buttons into layout / vlozime tlacitka do layoutu
+ // includes buttons into tqlayout / vlozime tlacitka do tqlayoutu
upsLayout->addWidget( newButton );
upsLayout->addWidget( editButton );
upsLayout->addWidget( deleteButton );
upsLayout->addStretch( 10 );
- connect (newButton,SIGNAL(clicked()),this,SLOT(slotNewUps()));
- connect (editButton,SIGNAL(clicked()),this,SLOT(slotEditUps()));
- connect (deleteButton,SIGNAL(clicked()),this,SLOT(slotDeleteUps()));
- connect (m_listBox2,SIGNAL(doubleClicked(QListBoxItem*, const QPoint&)),this,SLOT(slotEditUps()));
+ connect (newButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotNewUps()));
+ connect (editButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotEditUps()));
+ connect (deleteButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(slotDeleteUps()));
+ connect (m_listBox2,TQT_SIGNAL(doubleClicked(TQListBoxItem*, const TQPoint&)),this,TQT_SLOT(slotEditUps()));
}
void KNutPrefDlg::initDock () {
m_dockPix = UserIcon ("knc_dock");
- QFrame *page = addPage( i18n("Dock bar"),i18n("Docking Setting"),m_dockPix);
+ TQFrame *page = addPage( i18n("Dock bar"),i18n("Docking Setting"),m_dockPix);
- QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
+ TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
- QButtonGroup *typeGroup = new QButtonGroup(i18n("Type of dock's showing"),page,"typeGroup");
- QGridLayout *typeLayout = new QGridLayout (typeGroup,2,2,spacingHint());
+ TQButtonGroup *typeGroup = new TQButtonGroup(i18n("Type of dock's showing"),page,"typeGroup");
+ TQGridLayout *typeLayout = new TQGridLayout (typeGroup,2,2,spacingHint());
setTopLayout->addWidget(typeGroup);
- QGroupBox *infoBox = new QGroupBox (i18n("Items of tooltip"),page ,"infoBox");
- QGridLayout *infoLayout = new QGridLayout (infoBox,8,1,spacingHint());
+ TQGroupBox *infoBox = new TQGroupBox (i18n("Items of tooltip"),page ,"infoBox");
+ TQGridLayout *infoLayout = new TQGridLayout (infoBox,8,1,spacingHint());
setTopLayout->addWidget(infoBox);
- QGridLayout *colorLayout = new QGridLayout (10,1,spacingHint(),"colorLayout");
+ TQGridLayout *colorLayout = new TQGridLayout (10,1,spacingHint(),"colorLayout");
setTopLayout->addLayout(colorLayout);
- m_iconRadioButton1 = new QRadioButton(i18n("&Picture"), typeGroup, "iconRadioButton1" );
- m_iconRadioButton2 = new QRadioButton(i18n("&General"), typeGroup, "iconRadioButton2" );
+ m_iconRadioButton1 = new TQRadioButton(i18n("&Picture"), typeGroup, "iconRadioButton1" );
+ m_iconRadioButton2 = new TQRadioButton(i18n("&General"), typeGroup, "iconRadioButton2" );
- m_checkBoxTTMFR = new QCheckBox (i18n("M&anufacturer"),infoBox);
+ m_checkBoxTTMFR = new TQCheckBox (i18n("M&anufacturer"),infoBox);
m_checkBoxTTMFR->setChecked((m_settingData->toolTipFlags) & KNutDock::TTMFR);
- m_checkBoxTTModel = new QCheckBox (i18n("M&odel"),infoBox);
+ m_checkBoxTTModel = new TQCheckBox (i18n("M&odel"),infoBox);
m_checkBoxTTModel->setChecked((m_settingData->toolTipFlags) & KNutDock::TTModel);
- m_checkBoxTTSerial = new QCheckBox (i18n("&Serial"),infoBox);
+ m_checkBoxTTSerial = new TQCheckBox (i18n("&Serial"),infoBox);
m_checkBoxTTSerial->setChecked((m_settingData->toolTipFlags) & KNutDock::TTSerial);
- m_checkBoxTTFirm = new QCheckBox (i18n("&Firm. rev."),infoBox);
+ m_checkBoxTTFirm = new TQCheckBox (i18n("&Firm. rev."),infoBox);
m_checkBoxTTFirm->setChecked((m_settingData->toolTipFlags) & KNutDock::TTFirm);
- m_checkBoxTTRun = new QCheckBox (i18n("&Runtime"),infoBox);
+ m_checkBoxTTRun = new TQCheckBox (i18n("&Runtime"),infoBox);
m_checkBoxTTRun->setChecked((m_settingData->toolTipFlags) & KNutDock::TTRun);
- m_checkBoxTTCharge = new QCheckBox (i18n("&Battery Charge"),infoBox);
+ m_checkBoxTTCharge = new TQCheckBox (i18n("&Battery Charge"),infoBox);
m_checkBoxTTCharge->setChecked((m_settingData->toolTipFlags) & KNutDock::TTCharge);
- m_checkBoxTTLoad = new QCheckBox (i18n("&UPS Load"),infoBox);
+ m_checkBoxTTLoad = new TQCheckBox (i18n("&UPS Load"),infoBox);
m_checkBoxTTLoad->setChecked((m_settingData->toolTipFlags) & KNutDock::TTLoad);
- m_iconDockLabel = new QLabel(i18n("Use custom icon's background color"),page,"label1");
- m_checkBoxCbi = new QCheckBox ("",page,"checboxcbpc");
+ m_iconDockLabel = new TQLabel(i18n("Use custom icon's background color"),page,"label1");
+ m_checkBoxCbi = new TQCheckBox ("",page,"checboxcbpc");
- m_dockBackgroundColorLabel = new QLabel(i18n("Color of icon's background :"),page,"label12");
+ m_dockBackgroundColorLabel = new TQLabel(i18n("Color of icon's background :"),page,"label12");
m_BGIButton = new KColorButton (page);
typeLayout->addRowSpacing (0 ,fontMetrics().lineSpacing() );
@@ -755,8 +755,8 @@ void KNutPrefDlg::initDock () {
setTopLayout->addStretch( 20 );
- connect (m_checkBoxCbi,SIGNAL(toggled(bool)),this,SLOT(slotUseCustomBIconColor(bool)));
- connect (m_iconRadioButton1,SIGNAL(toggled(bool)),this,SLOT(slotSetPictureKI(bool)));
+ connect (m_checkBoxCbi,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotUseCustomBIconColor(bool)));
+ connect (m_iconRadioButton1,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotSetPictureKI(bool)));
}
@@ -765,57 +765,57 @@ void KNutPrefDlg::initPanel () {
m_panelPix = UserIcon ("knc_panel");
-// QFrame *page = addPage( i18n("Panel"),i18n("Panel Setting"),DesktopIcon("panel_settings"));
- QFrame *page = addPage( i18n("Panel"),i18n("Panel Setting"),m_panelPix);
+// TQFrame *page = addPage( i18n("Panel"),i18n("Panel Setting"),DesktopIcon("panel_settings"));
+ TQFrame *page = addPage( i18n("Panel"),i18n("Panel Setting"),m_panelPix);
- QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
+ TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
- QGroupBox *infoBox = new QGroupBox (page ,"infoBox");
- QGridLayout *infoLayout = new QGridLayout (infoBox,10,1,spacingHint());
+ TQGroupBox *infoBox = new TQGroupBox (page ,"infoBox");
+ TQGridLayout *infoLayout = new TQGridLayout (infoBox,10,1,spacingHint());
setTopLayout->addWidget(infoBox);
- QGridLayout *colorLayout = new QGridLayout (10,1,spacingHint(),"colorLayout");
+ TQGridLayout *colorLayout = new TQGridLayout (10,1,spacingHint(),"colorLayout");
setTopLayout->addLayout(colorLayout);
// vytvorime widgety - Nazev Zatrhavaci box
//makes widgets - name checkbox
- m_checkBoxOver = new QCheckBox (i18n("UPS &Overload"),infoBox);
+ m_checkBoxOver = new TQCheckBox (i18n("UPS &Overload"),infoBox);
m_checkBoxOver->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBOver);
- m_checkBoxBL = new QCheckBox (i18n("UPS &Battery low"),infoBox);
+ m_checkBoxBL = new TQCheckBox (i18n("UPS &Battery low"),infoBox);
m_checkBoxBL->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBBattLow);
- m_checkBoxRB = new QCheckBox (i18n("R&eplace battery"),infoBox);
+ m_checkBoxRB = new TQCheckBox (i18n("R&eplace battery"),infoBox);
m_checkBoxRB->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBRepBatt);
- m_checkBoxCal = new QCheckBox (i18n("Ups &calibration"),infoBox);
+ m_checkBoxCal = new TQCheckBox (i18n("Ups &calibration"),infoBox);
m_checkBoxCal->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBCal);
- m_checkBoxMFRM = new QCheckBox (i18n("&Manufac. + Model"),infoBox);
+ m_checkBoxMFRM = new TQCheckBox (i18n("&Manufac. + Model"),infoBox);
m_checkBoxMFRM->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBMFRMod);
- m_checkBoxMFR = new QCheckBox (i18n("M&anufacturer"),infoBox);
+ m_checkBoxMFR = new TQCheckBox (i18n("M&anufacturer"),infoBox);
m_checkBoxMFR->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBMFR);
- m_checkBoxModel = new QCheckBox (i18n("M&odel"),infoBox);
+ m_checkBoxModel = new TQCheckBox (i18n("M&odel"),infoBox);
m_checkBoxModel->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBModel);
- m_checkBoxSerial = new QCheckBox (i18n("&Serial"),infoBox);
+ m_checkBoxSerial = new TQCheckBox (i18n("&Serial"),infoBox);
m_checkBoxSerial->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBSerial);
- m_checkBoxFirm = new QCheckBox (i18n("&Firm. rev."),infoBox);
+ m_checkBoxFirm = new TQCheckBox (i18n("&Firm. rev."),infoBox);
m_checkBoxFirm->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBFirm);
- m_checkBoxRun = new QCheckBox (i18n("&Runtime"),infoBox);
+ m_checkBoxRun = new TQCheckBox (i18n("&Runtime"),infoBox);
m_checkBoxRun->setChecked((m_settingData->panelFlags) & KNutFrontPanel::PBRun);
- QLabel *initPanelLabel1 = new QLabel(i18n("Use custom background color"),page,"label1");
- m_checkBoxCbpc = new QCheckBox ("",page,"checboxcbpc");
+ TQLabel *initPanelLabel1 = new TQLabel(i18n("Use custom background color"),page,"label1");
+ m_checkBoxCbpc = new TQCheckBox ("",page,"checboxcbpc");
- m_panelBackgroundColorLabel = new QLabel(i18n("Color of background :"),page,"m_panelBackgroundColorLabel");
+ m_panelBackgroundColorLabel = new TQLabel(i18n("Color of background :"),page,"m_panelBackgroundColorLabel");
m_BGPButton = new KColorButton (page);
// includes widgets
@@ -842,20 +842,20 @@ void KNutPrefDlg::initPanel () {
m_BGPButton->setEnabled(m_settingData->customBPanelColor);
m_panelBackgroundColorLabel->setEnabled(m_settingData->customBPanelColor);
m_panelBackgroundColorLabel->setEnabled(m_settingData->customBPanelColor);
- connect (m_checkBoxCbpc,SIGNAL(toggled(bool)),this,SLOT(slotUseCustomBPanelColor(bool)));
+ connect (m_checkBoxCbpc,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotUseCustomBPanelColor(bool)));
}
void KNutPrefDlg::initFonts () {
- QFrame *page = addPage( i18n("Fonts"),i18n("Setting Fonts"),DesktopIcon("fonts"));
+ TQFrame *page = addPage( i18n("Fonts"),i18n("Setting Fonts"),DesktopIcon("fonts"));
- QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
- QHBoxLayout *setSysLayout = new QHBoxLayout( setTopLayout, spacingHint (), "setTypeLayout" );
- QHBoxLayout *setTypeLayout = new QHBoxLayout( setTopLayout, spacingHint (), "setTypeLayout" );
- QHBoxLayout *setFontLayout = new QHBoxLayout( setTopLayout, spacingHint (), "setFontLayout" );
+ TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
+ TQHBoxLayout *setSysLayout = new TQHBoxLayout( setTopLayout, spacingHint (), "setTypeLayout" );
+ TQHBoxLayout *setTypeLayout = new TQHBoxLayout( setTopLayout, spacingHint (), "setTypeLayout" );
+ TQHBoxLayout *setFontLayout = new TQHBoxLayout( setTopLayout, spacingHint (), "setFontLayout" );
- m_customFont = new QCheckBox (i18n("&Use custom font"),page);
+ m_customFont = new TQCheckBox (i18n("&Use custom font"),page);
setSysLayout->addWidget ( m_customFont ,10);
setSysLayout->addStretch( 10 );
@@ -878,39 +878,39 @@ void KNutPrefDlg::initFonts () {
m_settingFont = MAIN_PANEL_FONT; // sets font for Main Panel / nastavujeme font pro Main Panel
m_fontWidget->setFont(m_mPanelFont);
m_fontWidget->setEnabled(m_settingData->customFont);
- connect (panelFonts,SIGNAL(activated(int)),this,SLOT(slotChangeSettingFont(int)));
- connect (m_customFont,SIGNAL(toggled(bool)),m_fontWidget,SLOT(setEnabled(bool)));
+ connect (panelFonts,TQT_SIGNAL(activated(int)),this,TQT_SLOT(slotChangeSettingFont(int)));
+ connect (m_customFont,TQT_SIGNAL(toggled(bool)),m_fontWidget,TQT_SLOT(setEnabled(bool)));
}
void KNutPrefDlg::initAnalog () {
m_analogPix = UserIcon ("knc_analog");
- QFrame *page = addPage( i18n("Analog"),i18n("Setting Analog panel"),m_analogPix);
-// QFrame *page = addPage( i18n("Analog"),i18n("Setting Analog panel"),DesktopIcon("ksysguard"));
- QVBoxLayout *setTopLayout = new QVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
- QGridLayout *setColorLayout = new QGridLayout( 9,2, spacingHint(),"setColorLayout");
+ TQFrame *page = addPage( i18n("Analog"),i18n("Setting Analog panel"),m_analogPix);
+// TQFrame *page = addPage( i18n("Analog"),i18n("Setting Analog panel"),DesktopIcon("ksysguard"));
+ TQVBoxLayout *setTopLayout = new TQVBoxLayout( page, 10, spacingHint (), "setTopLayout" );
+ TQGridLayout *setColorLayout = new TQGridLayout( 9,2, spacingHint(),"setColorLayout");
setTopLayout->addLayout(setColorLayout);
setTopLayout->addStretch( 20 );
- QLabel *initAnalogLabel1 = new QLabel(i18n("Use custom background color"),page,"initAnalogLabel1");
- m_checkBoxCbac = new QCheckBox ("",page,"checboxcbac");
- m_analogBackgroundColorLabel = new QLabel(i18n("Color of background :"),page,"m_backgroundColorLabel");
+ TQLabel *initAnalogLabel1 = new TQLabel(i18n("Use custom background color"),page,"initAnalogLabel1");
+ m_checkBoxCbac = new TQCheckBox ("",page,"checboxcbac");
+ m_analogBackgroundColorLabel = new TQLabel(i18n("Color of background :"),page,"m_backgroundColorLabel");
m_BGAButton = new KColorButton (page);
- QLabel *initAnalogLabel12 = new QLabel(i18n("Use custom other colors"),page,"label12");
- m_checkBoxCoac = new QCheckBox ("",page,"checboxcoac");
- m_analogPointerColorLabel = new QLabel(i18n("Color of pointer :"),page,"m_analogPointerColorLabel");
+ TQLabel *initAnalogLabel12 = new TQLabel(i18n("Use custom other colors"),page,"label12");
+ m_checkBoxCoac = new TQCheckBox ("",page,"checboxcoac");
+ m_analogPointerColorLabel = new TQLabel(i18n("Color of pointer :"),page,"m_analogPointerColorLabel");
m_AFingerButton = new KColorButton (page);
- m_analogOKColorLabel = new QLabel(i18n("Color of OK range :"),page,"label7");
+ m_analogOKColorLabel = new TQLabel(i18n("Color of OK range :"),page,"label7");
m_AOKButton = new KColorButton (page);
- m_analogWarningColorLabel = new QLabel(i18n("Color of warning range :"),page,"label8");
+ m_analogWarningColorLabel = new TQLabel(i18n("Color of warning range :"),page,"label8");
m_AWarnningButton = new KColorButton (page);
- m_analogErrorColorLabel= new QLabel(i18n("Color of error range :"),page,"label9");
+ m_analogErrorColorLabel= new TQLabel(i18n("Color of error range :"),page,"label9");
m_AErrorButton = new KColorButton (page);
- m_analogScaleColorLabel = new QLabel(i18n("Color of scale :"),page,"label10");
+ m_analogScaleColorLabel = new TQLabel(i18n("Color of scale :"),page,"label10");
m_AScaleButton = new KColorButton (page);
- m_analogFontColorLabel = new QLabel(i18n("Color of font :"),page,"label11");
+ m_analogFontColorLabel = new TQLabel(i18n("Color of font :"),page,"label11");
m_AFontButton = new KColorButton (page);
- m_digitalProcessingLabel = new QLabel(i18n("Digital processing of pointers :"),page,"label12");
+ m_digitalProcessingLabel = new TQLabel(i18n("Digital processing of pointers :"),page,"label12");
m_digitalProcesingOfPointers = new KComboBox (page);
@@ -970,8 +970,8 @@ void KNutPrefDlg::initAnalog () {
m_digitalProcesingOfPointers->setCurrentItem(m_settingData->typeDigitalProcessing);
- connect (m_checkBoxCbac,SIGNAL(toggled(bool)),this,SLOT(slotUseCustomBAnalogColor(bool)));
- connect (m_checkBoxCoac,SIGNAL(toggled(bool)),this,SLOT(slotUseCustomOAnalogColor(bool)));
+ connect (m_checkBoxCbac,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotUseCustomBAnalogColor(bool)));
+ connect (m_checkBoxCoac,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotUseCustomOAnalogColor(bool)));
}