summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/SensorLoggerDlgWidget.ui.h
blob: afe0767e97b98f4ef88d7d11ef687bad147eef9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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));
}