summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/SensorDisplayLib/MultiMeterSettingsWidget.ui.h
blob: 81d6e73f68da6c8e670168831d573f0a9c609240 (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();
}

QString 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();
}


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


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


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


void MultiMeterSettingsWidget::setTitle( const QString &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(QString("%1").arg(d));
}


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


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


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


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


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