summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h')
-rw-r--r--ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h b/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h
new file mode 100644
index 000000000..afe0767e9
--- /dev/null
+++ b/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h
@@ -0,0 +1,89 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you wish to add, delete or rename functions or slots use
+** Qt Designer which will update this file, preserving your code. Create an
+** init() function in place of a constructor, and a destroy() function in
+** place of a destructor.
+*****************************************************************************/
+
+void SensorLoggerDlgWidget::init()
+{
+ m_lowerLimit->setValidator(new KDoubleValidator(m_lowerLimit));
+ m_upperLimit->setValidator(new KDoubleValidator(m_upperLimit));
+ m_timerInterval->setRange(1, 99, 1, true);
+
+ m_fileName->setFocus();
+}
+
+
+QString SensorLoggerDlgWidget::fileName()
+{
+ return m_fileName->url();
+}
+
+
+int SensorLoggerDlgWidget::timerInterval()
+{
+ return m_timerInterval->value();
+}
+
+
+bool SensorLoggerDlgWidget::lowerLimitActive()
+{
+ return m_lowerLimitActive->isChecked();
+}
+
+
+double SensorLoggerDlgWidget::lowerLimit()
+{
+ return m_lowerLimit->text().toDouble();
+}
+
+
+bool SensorLoggerDlgWidget::upperLimitActive()
+{
+ return m_upperLimitActive->isChecked();
+}
+
+
+double SensorLoggerDlgWidget::upperLimit()
+{
+ return m_upperLimit->text().toDouble();
+}
+
+
+void SensorLoggerDlgWidget::setFileName( const QString &url )
+{
+ m_fileName->setURL(url);
+}
+
+
+void SensorLoggerDlgWidget::setTimerInterval( int i )
+{
+ m_timerInterval->setValue(i);
+}
+
+
+void SensorLoggerDlgWidget::setLowerLimitActive( bool b )
+{
+ m_lowerLimitActive->setChecked(b);
+}
+
+
+void SensorLoggerDlgWidget::setLowerLimit( double d )
+{
+ m_lowerLimit->setText(QString("%1").arg(d));
+}
+
+
+void SensorLoggerDlgWidget::setUpperLimitActive( bool b )
+{
+ m_upperLimitActive->setChecked(b);
+}
+
+
+void SensorLoggerDlgWidget::setUpperLimit( double d )
+{
+ m_upperLimit->setText(QString("%1").arg(d));
+}