-rw-r--r-- | core/settings/light-and-power/light.cpp | 16 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 14 |
2 files changed, 15 insertions, 15 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index d2618d9..bf94a21 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -33,154 +33,154 @@ | |||
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #include <qlabel.h> | 35 | #include <qlabel.h> |
36 | #include <qcheckbox.h> | 36 | #include <qcheckbox.h> |
37 | #include <qradiobutton.h> | 37 | #include <qradiobutton.h> |
38 | #include <qtabwidget.h> | 38 | #include <qtabwidget.h> |
39 | #include <qslider.h> | 39 | #include <qslider.h> |
40 | #include <qfile.h> | 40 | #include <qfile.h> |
41 | #include <qtextstream.h> | 41 | #include <qtextstream.h> |
42 | #include <qdatastream.h> | 42 | #include <qdatastream.h> |
43 | #include <qmessagebox.h> | 43 | #include <qmessagebox.h> |
44 | #include <qcombobox.h> | 44 | #include <qcombobox.h> |
45 | #include <qgroupbox.h> | 45 | #include <qgroupbox.h> |
46 | #include <qspinbox.h> | 46 | #include <qspinbox.h> |
47 | #include <qpushbutton.h> | 47 | #include <qpushbutton.h> |
48 | #include <qlistbox.h> | 48 | #include <qlistbox.h> |
49 | #include <qdir.h> | 49 | #include <qdir.h> |
50 | #if QT_VERSION >= 300 | 50 | #if QT_VERSION >= 300 |
51 | #include <qstylefactory.h> | 51 | #include <qstylefactory.h> |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #include <opie/odevice.h> | 54 | #include <opie/odevice.h> |
55 | 55 | ||
56 | using namespace Opie; | 56 | using namespace Opie; |
57 | 57 | ||
58 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | 58 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) |
59 | : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp ) | 59 | : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp ) |
60 | { | 60 | { |
61 | 61 | ||
62 | if ( ODevice::inst()->hasLightSensor() ) { | 62 | if ( ODevice::inst()->hasLightSensor() ) { |
63 | // Not supported yet - hide until implemented | 63 | // Not supported yet - hide until implemented |
64 | CalibrateLightSensor->setEnabled( false ); | 64 | CalibrateLightSensor->setEnabled( false ); |
65 | CalibrateLightSensorAC->setEnabled( false ); | 65 | CalibrateLightSensorAC->setEnabled( false ); |
66 | } else { | 66 | } else { |
67 | // if ipaq no need to show the sensor box | 67 | // if ipaq no need to show the sensor box |
68 | auto_brightness->hide(); | 68 | auto_brightness->hide(); |
69 | CalibrateLightSensor->hide(); | 69 | CalibrateLightSensor->hide(); |
70 | auto_brightness_ac_3->hide(); | 70 | auto_brightness_ac_3->hide(); |
71 | CalibrateLightSensorAC->hide(); | 71 | CalibrateLightSensorAC->hide(); |
72 | } | 72 | } |
73 | 73 | ||
74 | Config config( "apm" ); | 74 | Config config( "apm" ); |
75 | config.setGroup( "Battery" ); | 75 | config.setGroup( "Battery" ); |
76 | 76 | ||
77 | int interval; | 77 | int interval; |
78 | // battery spinboxes | 78 | // battery spinboxes |
79 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 79 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
80 | if ( config.readNumEntry("Dim",1) == 0 ) { | 80 | if ( config.readNumEntry("Dim",1) == 0 ) { |
81 | interval_dim->setSpecialValueText( tr("never") ); | 81 | interval_dim->setValue( 0 ); |
82 | } else { | 82 | } else { |
83 | interval_dim->setValue( interval ); | 83 | interval_dim->setValue( interval ); |
84 | } | 84 | } |
85 | 85 | ||
86 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 86 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
87 | if ( config.readNumEntry("LightOff",1) == 0 ) { | 87 | if ( config.readNumEntry("LightOff",1) == 0 ) { |
88 | interval_lightoff->setSpecialValueText( tr("never") ); | 88 | interval_lightoff->setValue( 0 ); |
89 | } else { | 89 | } else { |
90 | interval_lightoff->setValue( interval ); | 90 | interval_lightoff->setValue( interval ); |
91 | } | 91 | } |
92 | 92 | ||
93 | interval = config.readNumEntry( "Interval", 60 ); | 93 | interval = config.readNumEntry( "Interval", 60 ); |
94 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) | 94 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) |
95 | 95 | ||
96 | if ( config.readNumEntry("NoApm", 0) == 0 ) { | 96 | if ( config.readNumEntry("NoApm", 0 ) == 1 ) { |
97 | interval_suspend->setSpecialValueText( tr("never") ); | 97 | interval_suspend->setValue( 0 ); |
98 | } else { | 98 | } else { |
99 | interval_suspend->setValue( interval ); | 99 | interval_suspend->setValue( interval ); |
100 | } | 100 | } |
101 | 101 | ||
102 | // battery check and slider | 102 | // battery check and slider |
103 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); | 103 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); |
104 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); | 104 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); |
105 | initbright = config.readNumEntry("Brightness",255); | 105 | initbright = config.readNumEntry("Brightness",255); |
106 | brightness->setMaxValue( maxbright ); | 106 | brightness->setMaxValue( maxbright ); |
107 | brightness->setTickInterval( QMAX(1,maxbright/16) ); | 107 | brightness->setTickInterval( QMAX(1,maxbright/16) ); |
108 | brightness->setLineStep( QMAX(1,maxbright/16) ); | 108 | brightness->setLineStep( QMAX(1,maxbright/16) ); |
109 | brightness->setPageStep( QMAX(1,maxbright/16) ); | 109 | brightness->setPageStep( QMAX(1,maxbright/16) ); |
110 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); | 110 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); |
111 | 111 | ||
112 | // light sensor | 112 | // light sensor |
113 | auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); | 113 | auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | config.setGroup( "AC" ); | 117 | config.setGroup( "AC" ); |
118 | // ac spinboxes | 118 | // ac spinboxes |
119 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 119 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
120 | if ( config.readNumEntry("Dim",1) == 0 ) { | 120 | if ( config.readNumEntry("Dim",1) == 0 ) { |
121 | interval_dim_ac_3->setSpecialValueText( tr("never") ); | 121 | interval_dim_ac_3->setValue( 0 ); |
122 | } else { | 122 | } else { |
123 | interval_dim_ac_3->setValue( interval ); | 123 | interval_dim_ac_3->setValue( interval ); |
124 | } | 124 | } |
125 | 125 | ||
126 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 126 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
127 | if ( config.readNumEntry("LightOff",1) == 0 ) { | 127 | if ( config.readNumEntry("LightOff",1) == 0 ) { |
128 | interval_lightoff_ac_3->setSpecialValueText( tr("never") ); | 128 | interval_lightoff_ac_3->setValue( 0 ); |
129 | } else { | 129 | } else { |
130 | interval_lightoff_ac_3->setValue( interval ); | 130 | interval_lightoff_ac_3->setValue( interval ); |
131 | } | 131 | } |
132 | 132 | ||
133 | interval = config.readNumEntry( "Interval", 60 ); | 133 | interval = config.readNumEntry( "Interval", 60 ); |
134 | if ( interval > 3600 ) { | 134 | if ( interval > 3600 ) { |
135 | interval /= 1000; // compatibility (was millisecs) | 135 | interval /= 1000; // compatibility (was millisecs) |
136 | } | 136 | } |
137 | if ( config.readNumEntry("NoApm", 0) == 0 ) { | 137 | if ( config.readNumEntry("NoApm", 1) == 1 ) { |
138 | interval_suspend_ac_3->setSpecialValueText( tr("never") ); | 138 | interval_suspend_ac_3->setValue( 0 ); |
139 | } else { | 139 | } else { |
140 | interval_suspend_ac_3->setValue( interval ); | 140 | interval_suspend_ac_3->setValue( interval ); |
141 | } | 141 | } |
142 | 142 | ||
143 | // ac check and slider | 143 | // ac check and slider |
144 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); | 144 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); |
145 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); | 145 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); |
146 | initbright_ac = config.readNumEntry("Brightness",255); | 146 | initbright_ac = config.readNumEntry("Brightness",255); |
147 | brightness_ac_3->setMaxValue( maxbright_ac ); | 147 | brightness_ac_3->setMaxValue( maxbright_ac ); |
148 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); | 148 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); |
149 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); | 149 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); |
150 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); | 150 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); |
151 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); | 151 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); |
152 | 152 | ||
153 | // light sensor | 153 | // light sensor |
154 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensor",0) != 0 ); | 154 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensor",0) != 0 ); |
155 | 155 | ||
156 | 156 | ||
157 | //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); | 157 | //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); |
158 | //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); | 158 | //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); |
159 | //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; | 159 | //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; |
160 | //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); | 160 | //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); |
161 | 161 | ||
162 | // advanced settings | 162 | // advanced settings |
163 | config.setGroup( "Warnings" ); | 163 | config.setGroup( "Warnings" ); |
164 | warnintervalBox->setValue( config.readNumEntry("checkinterval", 10000)/1000 ); | 164 | warnintervalBox->setValue( config.readNumEntry("checkinterval", 10000)/1000 ); |
165 | lowSpinBox->setValue( config.readNumEntry("powerverylow", 10 ) ); | 165 | lowSpinBox->setValue( config.readNumEntry("powerverylow", 10 ) ); |
166 | criticalSpinBox->setValue( config.readNumEntry("powercritical", 5 ) ); | 166 | criticalSpinBox->setValue( config.readNumEntry("powercritical", 5 ) ); |
167 | 167 | ||
168 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); | 168 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); |
169 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); | 169 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); |
170 | } | 170 | } |
171 | 171 | ||
172 | LightSettings::~LightSettings() { | 172 | LightSettings::~LightSettings() { |
173 | } | 173 | } |
174 | 174 | ||
175 | void LightSettings::slotSliderTicks( int steps ) { | 175 | void LightSettings::slotSliderTicks( int steps ) { |
176 | // LightMinValueSlider->setTickInterval( steps ); | 176 | // LightMinValueSlider->setTickInterval( steps ); |
177 | } | 177 | } |
178 | 178 | ||
179 | static void set_fl(int bright) | 179 | static void set_fl(int bright) |
180 | { | 180 | { |
181 | qDebug ( QString( "Brightness" ).arg( bright ) ); | 181 | qDebug ( QString( "Brightness" ).arg( bright ) ); |
182 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 182 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
183 | e << bright; | 183 | e << bright; |
184 | } | 184 | } |
185 | 185 | ||
186 | void LightSettings::reject() | 186 | void LightSettings::reject() |
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index effa460..f41e5a6 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -1,62 +1,62 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>LightSettingsBase</class> | 2 | <class>LightSettingsBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>LightSettingsBase</cstring> | 7 | <cstring>LightSettingsBase</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>403</width> | 14 | <width>399</width> |
15 | <height>532</height> | 15 | <height>532</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>sizePolicy</name> | 19 | <name>sizePolicy</name> |
20 | <sizepolicy> | 20 | <sizepolicy> |
21 | <hsizetype>7</hsizetype> | 21 | <hsizetype>7</hsizetype> |
22 | <vsizetype>5</vsizetype> | 22 | <vsizetype>5</vsizetype> |
23 | </sizepolicy> | 23 | </sizepolicy> |
24 | </property> | 24 | </property> |
25 | <property stdset="1"> | 25 | <property stdset="1"> |
26 | <name>caption</name> | 26 | <name>caption</name> |
27 | <string>Light and Power Settings</string> | 27 | <string>Light and Power Settings</string> |
28 | </property> | 28 | </property> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>sizeGripEnabled</name> | 30 | <name>sizeGripEnabled</name> |
31 | <bool>false</bool> | 31 | <bool>false</bool> |
32 | </property> | 32 | </property> |
33 | <property> | 33 | <property> |
34 | <name>layoutMargin</name> | 34 | <name>layoutMargin</name> |
35 | </property> | 35 | </property> |
36 | <property> | 36 | <property> |
37 | <name>layoutSpacing</name> | 37 | <name>layoutSpacing</name> |
38 | </property> | 38 | </property> |
39 | <vbox> | 39 | <vbox> |
40 | <property stdset="1"> | 40 | <property stdset="1"> |
41 | <name>margin</name> | 41 | <name>margin</name> |
42 | <number>3</number> | 42 | <number>3</number> |
43 | </property> | 43 | </property> |
44 | <property stdset="1"> | 44 | <property stdset="1"> |
45 | <name>spacing</name> | 45 | <name>spacing</name> |
46 | <number>3</number> | 46 | <number>3</number> |
47 | </property> | 47 | </property> |
48 | <widget> | 48 | <widget> |
49 | <class>QTabWidget</class> | 49 | <class>QTabWidget</class> |
50 | <property stdset="1"> | 50 | <property stdset="1"> |
51 | <name>name</name> | 51 | <name>name</name> |
52 | <cstring>TabWidget3</cstring> | 52 | <cstring>TabWidget3</cstring> |
53 | </property> | 53 | </property> |
54 | <property> | 54 | <property> |
55 | <name>layoutMargin</name> | 55 | <name>layoutMargin</name> |
56 | </property> | 56 | </property> |
57 | <property> | 57 | <property> |
58 | <name>layoutSpacing</name> | 58 | <name>layoutSpacing</name> |
59 | </property> | 59 | </property> |
60 | <widget> | 60 | <widget> |
61 | <class>QWidget</class> | 61 | <class>QWidget</class> |
62 | <property stdset="1"> | 62 | <property stdset="1"> |
@@ -105,188 +105,188 @@ | |||
105 | <name>spacing</name> | 105 | <name>spacing</name> |
106 | <number>3</number> | 106 | <number>3</number> |
107 | </property> | 107 | </property> |
108 | <widget> | 108 | <widget> |
109 | <class>QLayoutWidget</class> | 109 | <class>QLayoutWidget</class> |
110 | <property stdset="1"> | 110 | <property stdset="1"> |
111 | <name>name</name> | 111 | <name>name</name> |
112 | <cstring>Layout11</cstring> | 112 | <cstring>Layout11</cstring> |
113 | </property> | 113 | </property> |
114 | <property> | 114 | <property> |
115 | <name>layoutMargin</name> | 115 | <name>layoutMargin</name> |
116 | </property> | 116 | </property> |
117 | <property> | 117 | <property> |
118 | <name>layoutSpacing</name> | 118 | <name>layoutSpacing</name> |
119 | </property> | 119 | </property> |
120 | <grid> | 120 | <grid> |
121 | <property stdset="1"> | 121 | <property stdset="1"> |
122 | <name>margin</name> | 122 | <name>margin</name> |
123 | <number>3</number> | 123 | <number>3</number> |
124 | </property> | 124 | </property> |
125 | <property stdset="1"> | 125 | <property stdset="1"> |
126 | <name>spacing</name> | 126 | <name>spacing</name> |
127 | <number>3</number> | 127 | <number>3</number> |
128 | </property> | 128 | </property> |
129 | <widget row="1" column="1" > | 129 | <widget row="1" column="1" > |
130 | <class>QSpinBox</class> | 130 | <class>QSpinBox</class> |
131 | <property stdset="1"> | 131 | <property stdset="1"> |
132 | <name>name</name> | 132 | <name>name</name> |
133 | <cstring>interval_lightoff</cstring> | 133 | <cstring>interval_lightoff</cstring> |
134 | </property> | 134 | </property> |
135 | <property stdset="1"> | 135 | <property stdset="1"> |
136 | <name>suffix</name> | 136 | <name>suffix</name> |
137 | <string> sec</string> | 137 | <string> sec</string> |
138 | </property> | 138 | </property> |
139 | <property stdset="1"> | 139 | <property stdset="1"> |
140 | <name>specialValueText</name> | 140 | <name>specialValueText</name> |
141 | <string>never</string> | 141 | <string>never</string> |
142 | </property> | 142 | </property> |
143 | <property stdset="1"> | 143 | <property stdset="1"> |
144 | <name>buttonSymbols</name> | 144 | <name>buttonSymbols</name> |
145 | <enum>PlusMinus</enum> | 145 | <enum>PlusMinus</enum> |
146 | </property> | 146 | </property> |
147 | <property stdset="1"> | 147 | <property stdset="1"> |
148 | <name>maxValue</name> | 148 | <name>maxValue</name> |
149 | <number>3600</number> | 149 | <number>3600</number> |
150 | </property> | 150 | </property> |
151 | <property stdset="1"> | 151 | <property stdset="1"> |
152 | <name>minValue</name> | 152 | <name>minValue</name> |
153 | <number>10</number> | 153 | <number>0</number> |
154 | </property> | 154 | </property> |
155 | <property stdset="1"> | 155 | <property stdset="1"> |
156 | <name>lineStep</name> | 156 | <name>lineStep</name> |
157 | <number>10</number> | 157 | <number>10</number> |
158 | </property> | 158 | </property> |
159 | </widget> | 159 | </widget> |
160 | <widget row="1" column="0" > | 160 | <widget row="1" column="0" > |
161 | <class>QLabel</class> | 161 | <class>QLabel</class> |
162 | <property stdset="1"> | 162 | <property stdset="1"> |
163 | <name>name</name> | 163 | <name>name</name> |
164 | <cstring>TextLabel2_2</cstring> | 164 | <cstring>TextLabel2_2</cstring> |
165 | </property> | 165 | </property> |
166 | <property stdset="1"> | 166 | <property stdset="1"> |
167 | <name>text</name> | 167 | <name>text</name> |
168 | <string>Light off after</string> | 168 | <string>Light off after</string> |
169 | </property> | 169 | </property> |
170 | </widget> | 170 | </widget> |
171 | <widget row="0" column="0" > | 171 | <widget row="0" column="0" > |
172 | <class>QLabel</class> | 172 | <class>QLabel</class> |
173 | <property stdset="1"> | 173 | <property stdset="1"> |
174 | <name>name</name> | 174 | <name>name</name> |
175 | <cstring>TextLabel1_3</cstring> | 175 | <cstring>TextLabel1_3</cstring> |
176 | </property> | 176 | </property> |
177 | <property stdset="1"> | 177 | <property stdset="1"> |
178 | <name>sizePolicy</name> | 178 | <name>sizePolicy</name> |
179 | <sizepolicy> | 179 | <sizepolicy> |
180 | <hsizetype>7</hsizetype> | 180 | <hsizetype>7</hsizetype> |
181 | <vsizetype>1</vsizetype> | 181 | <vsizetype>1</vsizetype> |
182 | </sizepolicy> | 182 | </sizepolicy> |
183 | </property> | 183 | </property> |
184 | <property stdset="1"> | 184 | <property stdset="1"> |
185 | <name>text</name> | 185 | <name>text</name> |
186 | <string>Dim light after</string> | 186 | <string>Dim light after</string> |
187 | </property> | 187 | </property> |
188 | </widget> | 188 | </widget> |
189 | <widget row="0" column="1" > | 189 | <widget row="0" column="1" > |
190 | <class>QSpinBox</class> | 190 | <class>QSpinBox</class> |
191 | <property stdset="1"> | 191 | <property stdset="1"> |
192 | <name>name</name> | 192 | <name>name</name> |
193 | <cstring>interval_dim</cstring> | 193 | <cstring>interval_dim</cstring> |
194 | </property> | 194 | </property> |
195 | <property stdset="1"> | 195 | <property stdset="1"> |
196 | <name>suffix</name> | 196 | <name>suffix</name> |
197 | <string> sec</string> | 197 | <string> sec</string> |
198 | </property> | 198 | </property> |
199 | <property stdset="1"> | 199 | <property stdset="1"> |
200 | <name>specialValueText</name> | 200 | <name>specialValueText</name> |
201 | <string>never</string> | 201 | <string>never</string> |
202 | </property> | 202 | </property> |
203 | <property stdset="1"> | 203 | <property stdset="1"> |
204 | <name>buttonSymbols</name> | 204 | <name>buttonSymbols</name> |
205 | <enum>PlusMinus</enum> | 205 | <enum>PlusMinus</enum> |
206 | </property> | 206 | </property> |
207 | <property stdset="1"> | 207 | <property stdset="1"> |
208 | <name>maxValue</name> | 208 | <name>maxValue</name> |
209 | <number>3600</number> | 209 | <number>3600</number> |
210 | </property> | 210 | </property> |
211 | <property stdset="1"> | 211 | <property stdset="1"> |
212 | <name>minValue</name> | 212 | <name>minValue</name> |
213 | <number>10</number> | 213 | <number>0</number> |
214 | </property> | 214 | </property> |
215 | <property stdset="1"> | 215 | <property stdset="1"> |
216 | <name>lineStep</name> | 216 | <name>lineStep</name> |
217 | <number>10</number> | 217 | <number>10</number> |
218 | </property> | 218 | </property> |
219 | </widget> | 219 | </widget> |
220 | <widget row="2" column="1" > | 220 | <widget row="2" column="1" > |
221 | <class>QSpinBox</class> | 221 | <class>QSpinBox</class> |
222 | <property stdset="1"> | 222 | <property stdset="1"> |
223 | <name>name</name> | 223 | <name>name</name> |
224 | <cstring>interval_suspend</cstring> | 224 | <cstring>interval_suspend</cstring> |
225 | </property> | 225 | </property> |
226 | <property stdset="1"> | 226 | <property stdset="1"> |
227 | <name>suffix</name> | 227 | <name>suffix</name> |
228 | <string> sec</string> | 228 | <string> sec</string> |
229 | </property> | 229 | </property> |
230 | <property stdset="1"> | 230 | <property stdset="1"> |
231 | <name>specialValueText</name> | 231 | <name>specialValueText</name> |
232 | <string>never</string> | 232 | <string>never</string> |
233 | </property> | 233 | </property> |
234 | <property stdset="1"> | 234 | <property stdset="1"> |
235 | <name>buttonSymbols</name> | 235 | <name>buttonSymbols</name> |
236 | <enum>PlusMinus</enum> | 236 | <enum>PlusMinus</enum> |
237 | </property> | 237 | </property> |
238 | <property stdset="1"> | 238 | <property stdset="1"> |
239 | <name>maxValue</name> | 239 | <name>maxValue</name> |
240 | <number>3600</number> | 240 | <number>3600</number> |
241 | </property> | 241 | </property> |
242 | <property stdset="1"> | 242 | <property stdset="1"> |
243 | <name>minValue</name> | 243 | <name>minValue</name> |
244 | <number>10</number> | 244 | <number>0</number> |
245 | </property> | 245 | </property> |
246 | <property stdset="1"> | 246 | <property stdset="1"> |
247 | <name>lineStep</name> | 247 | <name>lineStep</name> |
248 | <number>10</number> | 248 | <number>10</number> |
249 | </property> | 249 | </property> |
250 | </widget> | 250 | </widget> |
251 | <widget row="2" column="0" > | 251 | <widget row="2" column="0" > |
252 | <class>QLabel</class> | 252 | <class>QLabel</class> |
253 | <property stdset="1"> | 253 | <property stdset="1"> |
254 | <name>name</name> | 254 | <name>name</name> |
255 | <cstring>TextLabel1_2</cstring> | 255 | <cstring>TextLabel1_2</cstring> |
256 | </property> | 256 | </property> |
257 | <property stdset="1"> | 257 | <property stdset="1"> |
258 | <name>text</name> | 258 | <name>text</name> |
259 | <string>Suspend after</string> | 259 | <string>Suspend after</string> |
260 | </property> | 260 | </property> |
261 | </widget> | 261 | </widget> |
262 | </grid> | 262 | </grid> |
263 | </widget> | 263 | </widget> |
264 | <widget> | 264 | <widget> |
265 | <class>QCheckBox</class> | 265 | <class>QCheckBox</class> |
266 | <property stdset="1"> | 266 | <property stdset="1"> |
267 | <name>name</name> | 267 | <name>name</name> |
268 | <cstring>LcdOffOnly</cstring> | 268 | <cstring>LcdOffOnly</cstring> |
269 | </property> | 269 | </property> |
270 | <property stdset="1"> | 270 | <property stdset="1"> |
271 | <name>text</name> | 271 | <name>text</name> |
272 | <string>Deactivate LCD only (does not suspend)</string> | 272 | <string>Deactivate LCD only (does not suspend)</string> |
273 | </property> | 273 | </property> |
274 | </widget> | 274 | </widget> |
275 | </vbox> | 275 | </vbox> |
276 | </widget> | 276 | </widget> |
277 | <widget> | 277 | <widget> |
278 | <class>QGroupBox</class> | 278 | <class>QGroupBox</class> |
279 | <property stdset="1"> | 279 | <property stdset="1"> |
280 | <name>name</name> | 280 | <name>name</name> |
281 | <cstring>GroupBox9</cstring> | 281 | <cstring>GroupBox9</cstring> |
282 | </property> | 282 | </property> |
283 | <property stdset="1"> | 283 | <property stdset="1"> |
284 | <name>title</name> | 284 | <name>title</name> |
285 | <string>Backlight</string> | 285 | <string>Backlight</string> |
286 | </property> | 286 | </property> |
287 | <property> | 287 | <property> |
288 | <name>layoutMargin</name> | 288 | <name>layoutMargin</name> |
289 | </property> | 289 | </property> |
290 | <property> | 290 | <property> |
291 | <name>layoutSpacing</name> | 291 | <name>layoutSpacing</name> |
292 | </property> | 292 | </property> |
@@ -548,188 +548,188 @@ | |||
548 | <name>spacing</name> | 548 | <name>spacing</name> |
549 | <number>3</number> | 549 | <number>3</number> |
550 | </property> | 550 | </property> |
551 | <widget> | 551 | <widget> |
552 | <class>QLayoutWidget</class> | 552 | <class>QLayoutWidget</class> |
553 | <property stdset="1"> | 553 | <property stdset="1"> |
554 | <name>name</name> | 554 | <name>name</name> |
555 | <cstring>Layout14</cstring> | 555 | <cstring>Layout14</cstring> |
556 | </property> | 556 | </property> |
557 | <property> | 557 | <property> |
558 | <name>layoutMargin</name> | 558 | <name>layoutMargin</name> |
559 | </property> | 559 | </property> |
560 | <property> | 560 | <property> |
561 | <name>layoutSpacing</name> | 561 | <name>layoutSpacing</name> |
562 | </property> | 562 | </property> |
563 | <grid> | 563 | <grid> |
564 | <property stdset="1"> | 564 | <property stdset="1"> |
565 | <name>margin</name> | 565 | <name>margin</name> |
566 | <number>3</number> | 566 | <number>3</number> |
567 | </property> | 567 | </property> |
568 | <property stdset="1"> | 568 | <property stdset="1"> |
569 | <name>spacing</name> | 569 | <name>spacing</name> |
570 | <number>3</number> | 570 | <number>3</number> |
571 | </property> | 571 | </property> |
572 | <widget row="1" column="1" > | 572 | <widget row="1" column="1" > |
573 | <class>QSpinBox</class> | 573 | <class>QSpinBox</class> |
574 | <property stdset="1"> | 574 | <property stdset="1"> |
575 | <name>name</name> | 575 | <name>name</name> |
576 | <cstring>interval_lightoff_ac_3</cstring> | 576 | <cstring>interval_lightoff_ac_3</cstring> |
577 | </property> | 577 | </property> |
578 | <property stdset="1"> | 578 | <property stdset="1"> |
579 | <name>suffix</name> | 579 | <name>suffix</name> |
580 | <string> sec</string> | 580 | <string> sec</string> |
581 | </property> | 581 | </property> |
582 | <property stdset="1"> | 582 | <property stdset="1"> |
583 | <name>specialValueText</name> | 583 | <name>specialValueText</name> |
584 | <string>never</string> | 584 | <string>never</string> |
585 | </property> | 585 | </property> |
586 | <property stdset="1"> | 586 | <property stdset="1"> |
587 | <name>buttonSymbols</name> | 587 | <name>buttonSymbols</name> |
588 | <enum>PlusMinus</enum> | 588 | <enum>PlusMinus</enum> |
589 | </property> | 589 | </property> |
590 | <property stdset="1"> | 590 | <property stdset="1"> |
591 | <name>maxValue</name> | 591 | <name>maxValue</name> |
592 | <number>3600</number> | 592 | <number>3600</number> |
593 | </property> | 593 | </property> |
594 | <property stdset="1"> | 594 | <property stdset="1"> |
595 | <name>minValue</name> | 595 | <name>minValue</name> |
596 | <number>10</number> | 596 | <number>0</number> |
597 | </property> | 597 | </property> |
598 | <property stdset="1"> | 598 | <property stdset="1"> |
599 | <name>lineStep</name> | 599 | <name>lineStep</name> |
600 | <number>10</number> | 600 | <number>10</number> |
601 | </property> | 601 | </property> |
602 | </widget> | 602 | </widget> |
603 | <widget row="0" column="0" > | 603 | <widget row="0" column="0" > |
604 | <class>QLabel</class> | 604 | <class>QLabel</class> |
605 | <property stdset="1"> | 605 | <property stdset="1"> |
606 | <name>name</name> | 606 | <name>name</name> |
607 | <cstring>TextLabel1_3_2</cstring> | 607 | <cstring>TextLabel1_3_2</cstring> |
608 | </property> | 608 | </property> |
609 | <property stdset="1"> | 609 | <property stdset="1"> |
610 | <name>sizePolicy</name> | 610 | <name>sizePolicy</name> |
611 | <sizepolicy> | 611 | <sizepolicy> |
612 | <hsizetype>7</hsizetype> | 612 | <hsizetype>7</hsizetype> |
613 | <vsizetype>1</vsizetype> | 613 | <vsizetype>1</vsizetype> |
614 | </sizepolicy> | 614 | </sizepolicy> |
615 | </property> | 615 | </property> |
616 | <property stdset="1"> | 616 | <property stdset="1"> |
617 | <name>text</name> | 617 | <name>text</name> |
618 | <string>Dim light after</string> | 618 | <string>Dim light after</string> |
619 | </property> | 619 | </property> |
620 | </widget> | 620 | </widget> |
621 | <widget row="2" column="1" > | 621 | <widget row="2" column="1" > |
622 | <class>QSpinBox</class> | 622 | <class>QSpinBox</class> |
623 | <property stdset="1"> | 623 | <property stdset="1"> |
624 | <name>name</name> | 624 | <name>name</name> |
625 | <cstring>interval_suspend_ac_3</cstring> | 625 | <cstring>interval_suspend_ac_3</cstring> |
626 | </property> | 626 | </property> |
627 | <property stdset="1"> | 627 | <property stdset="1"> |
628 | <name>suffix</name> | 628 | <name>suffix</name> |
629 | <string> sec</string> | 629 | <string> sec</string> |
630 | </property> | 630 | </property> |
631 | <property stdset="1"> | 631 | <property stdset="1"> |
632 | <name>specialValueText</name> | 632 | <name>specialValueText</name> |
633 | <string>never</string> | 633 | <string>never</string> |
634 | </property> | 634 | </property> |
635 | <property stdset="1"> | 635 | <property stdset="1"> |
636 | <name>buttonSymbols</name> | 636 | <name>buttonSymbols</name> |
637 | <enum>PlusMinus</enum> | 637 | <enum>PlusMinus</enum> |
638 | </property> | 638 | </property> |
639 | <property stdset="1"> | 639 | <property stdset="1"> |
640 | <name>maxValue</name> | 640 | <name>maxValue</name> |
641 | <number>3600</number> | 641 | <number>3600</number> |
642 | </property> | 642 | </property> |
643 | <property stdset="1"> | 643 | <property stdset="1"> |
644 | <name>minValue</name> | 644 | <name>minValue</name> |
645 | <number>10</number> | 645 | <number>0</number> |
646 | </property> | 646 | </property> |
647 | <property stdset="1"> | 647 | <property stdset="1"> |
648 | <name>lineStep</name> | 648 | <name>lineStep</name> |
649 | <number>10</number> | 649 | <number>10</number> |
650 | </property> | 650 | </property> |
651 | </widget> | 651 | </widget> |
652 | <widget row="2" column="0" > | 652 | <widget row="2" column="0" > |
653 | <class>QLabel</class> | 653 | <class>QLabel</class> |
654 | <property stdset="1"> | 654 | <property stdset="1"> |
655 | <name>name</name> | 655 | <name>name</name> |
656 | <cstring>TextLabel1_2_2_3</cstring> | 656 | <cstring>TextLabel1_2_2_3</cstring> |
657 | </property> | 657 | </property> |
658 | <property stdset="1"> | 658 | <property stdset="1"> |
659 | <name>text</name> | 659 | <name>text</name> |
660 | <string>Suspend after</string> | 660 | <string>Suspend after</string> |
661 | </property> | 661 | </property> |
662 | </widget> | 662 | </widget> |
663 | <widget row="0" column="1" > | 663 | <widget row="0" column="1" > |
664 | <class>QSpinBox</class> | 664 | <class>QSpinBox</class> |
665 | <property stdset="1"> | 665 | <property stdset="1"> |
666 | <name>name</name> | 666 | <name>name</name> |
667 | <cstring>interval_dim_ac_3</cstring> | 667 | <cstring>interval_dim_ac_3</cstring> |
668 | </property> | 668 | </property> |
669 | <property stdset="1"> | 669 | <property stdset="1"> |
670 | <name>suffix</name> | 670 | <name>suffix</name> |
671 | <string> sec</string> | 671 | <string> sec</string> |
672 | </property> | 672 | </property> |
673 | <property stdset="1"> | 673 | <property stdset="1"> |
674 | <name>specialValueText</name> | 674 | <name>specialValueText</name> |
675 | <string>never</string> | 675 | <string>never</string> |
676 | </property> | 676 | </property> |
677 | <property stdset="1"> | 677 | <property stdset="1"> |
678 | <name>buttonSymbols</name> | 678 | <name>buttonSymbols</name> |
679 | <enum>PlusMinus</enum> | 679 | <enum>PlusMinus</enum> |
680 | </property> | 680 | </property> |
681 | <property stdset="1"> | 681 | <property stdset="1"> |
682 | <name>maxValue</name> | 682 | <name>maxValue</name> |
683 | <number>3600</number> | 683 | <number>3600</number> |
684 | </property> | 684 | </property> |
685 | <property stdset="1"> | 685 | <property stdset="1"> |
686 | <name>minValue</name> | 686 | <name>minValue</name> |
687 | <number>10</number> | 687 | <number>0</number> |
688 | </property> | 688 | </property> |
689 | <property stdset="1"> | 689 | <property stdset="1"> |
690 | <name>lineStep</name> | 690 | <name>lineStep</name> |
691 | <number>10</number> | 691 | <number>10</number> |
692 | </property> | 692 | </property> |
693 | </widget> | 693 | </widget> |
694 | <widget row="1" column="0" > | 694 | <widget row="1" column="0" > |
695 | <class>QLabel</class> | 695 | <class>QLabel</class> |
696 | <property stdset="1"> | 696 | <property stdset="1"> |
697 | <name>name</name> | 697 | <name>name</name> |
698 | <cstring>TextLabel2_2_2</cstring> | 698 | <cstring>TextLabel2_2_2</cstring> |
699 | </property> | 699 | </property> |
700 | <property stdset="1"> | 700 | <property stdset="1"> |
701 | <name>text</name> | 701 | <name>text</name> |
702 | <string>Light off after</string> | 702 | <string>Light off after</string> |
703 | </property> | 703 | </property> |
704 | </widget> | 704 | </widget> |
705 | </grid> | 705 | </grid> |
706 | </widget> | 706 | </widget> |
707 | <widget> | 707 | <widget> |
708 | <class>QCheckBox</class> | 708 | <class>QCheckBox</class> |
709 | <property stdset="1"> | 709 | <property stdset="1"> |
710 | <name>name</name> | 710 | <name>name</name> |
711 | <cstring>LcdOffOnly_2_3</cstring> | 711 | <cstring>LcdOffOnly_2_3</cstring> |
712 | </property> | 712 | </property> |
713 | <property stdset="1"> | 713 | <property stdset="1"> |
714 | <name>text</name> | 714 | <name>text</name> |
715 | <string>Deactivate LCD only (does not suspend)</string> | 715 | <string>Deactivate LCD only (does not suspend)</string> |
716 | </property> | 716 | </property> |
717 | </widget> | 717 | </widget> |
718 | </vbox> | 718 | </vbox> |
719 | </widget> | 719 | </widget> |
720 | <widget> | 720 | <widget> |
721 | <class>QGroupBox</class> | 721 | <class>QGroupBox</class> |
722 | <property stdset="1"> | 722 | <property stdset="1"> |
723 | <name>name</name> | 723 | <name>name</name> |
724 | <cstring>GroupBox8</cstring> | 724 | <cstring>GroupBox8</cstring> |
725 | </property> | 725 | </property> |
726 | <property stdset="1"> | 726 | <property stdset="1"> |
727 | <name>title</name> | 727 | <name>title</name> |
728 | <string>Backlight</string> | 728 | <string>Backlight</string> |
729 | </property> | 729 | </property> |
730 | <property> | 730 | <property> |
731 | <name>layoutMargin</name> | 731 | <name>layoutMargin</name> |
732 | </property> | 732 | </property> |
733 | <property> | 733 | <property> |
734 | <name>layoutSpacing</name> | 734 | <name>layoutSpacing</name> |
735 | </property> | 735 | </property> |