summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui.h
blob: e97fabffc5a8df17c359ab3baafff2c6fdf7962b (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/****************************************************************************
** 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 MultiMeterSettingsWidget::init()
{
  m_lowerLimit->setValidator(new KDoubleValidator(m_lowerLimit));
  m_upperLimit->setValidator(new KDoubleValidator(m_upperLimit));

  m_title->setFocus();
}

TQString MultiMeterSettingsWidget::title()
{
    return m_title->text();
}


bool MultiMeterSettingsWidget::showUnit()
{
    return m_showUnit->isChecked();
}


bool MultiMeterSettingsWidget::lowerLimitActive()
{
    return m_lowerLimitActive->isChecked();
}


double MultiMeterSettingsWidget::lowerLimit()
{
    return m_lowerLimit->text().toDouble();
}


bool MultiMeterSettingsWidget::upperLimitActive()
{
    return m_upperLimitActive->isChecked();
}


double MultiMeterSettingsWidget::upperLimit()
{
    return m_upperLimit->text().toDouble();
}


TQColor MultiMeterSettingsWidget::normalDigitColor()
{
    return m_normalDigitColor->color();
}


TQColor MultiMeterSettingsWidget::alarmDigitColor()
{
    return m_alarmDigitColor->color();
}


TQColor MultiMeterSettingsWidget::meterBackgroundColor()
{
    return m_backgroundColor->color();
}


void MultiMeterSettingsWidget::setTitle( const TQString &s )
{
    m_title->setText(s);
}


void MultiMeterSettingsWidget::setShowUnit( bool b )
{
    m_showUnit->setChecked(b);
}


void MultiMeterSettingsWidget::setLowerLimitActive( bool b )
{
    m_lowerLimitActive->setChecked(b);
}


void MultiMeterSettingsWidget::setLowerLimit( double d )
{
    m_lowerLimit->setText(TQString("%1").arg(d));
}


void MultiMeterSettingsWidget::setUpperLimitActive( bool b )
{
    m_upperLimitActive->setChecked(b);
}


void MultiMeterSettingsWidget::setUpperLimit( double d )
{
    m_upperLimit->setText(TQString("%1").arg(d));
}


void MultiMeterSettingsWidget::setNormalDigitColor( const TQColor &c )
{
    m_normalDigitColor->setColor(c);
}


void MultiMeterSettingsWidget::setAlarmDigitColor( const TQColor &c )
{
    m_alarmDigitColor->setColor(c);
}


void MultiMeterSettingsWidget::setMeterBackgroundColor( const TQColor &c )
{
    m_backgroundColor->setColor(c);
}