summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp17
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui22
-rw-r--r--core/settings/light-and-power/settings.h1
3 files changed, 34 insertions, 6 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 8721a95..1a94209 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -1,258 +1,265 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21// redone by Maximilian Reiss <harlekin@handhelds.org> 21// redone by Maximilian Reiss <harlekin@handhelds.org>
22 22
23#include "settings.h" 23#include "settings.h"
24 24
25#include <qpe/global.h> 25#include <qpe/global.h>
26#include <qpe/fontmanager.h> 26#include <qpe/fontmanager.h>
27#include <qpe/config.h> 27#include <qpe/config.h>
28#include <qpe/applnk.h> 28#include <qpe/applnk.h>
29#include <qpe/qpeapplication.h> 29#include <qpe/qpeapplication.h>
30#include <qpe/power.h> 30#include <qpe/power.h>
31#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 31#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
32#include <qpe/qcopenvelope_qws.h> 32#include <qpe/qcopenvelope_qws.h>
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 <qlistbox.h> 47#include <qlistbox.h>
48#include <qdir.h> 48#include <qdir.h>
49#if QT_VERSION >= 300 49#if QT_VERSION >= 300
50#include <qstylefactory.h> 50#include <qstylefactory.h>
51#endif 51#endif
52 52
53#include <opie/odevice.h> 53#include <opie/odevice.h>
54 54
55using namespace Opie; 55using namespace Opie;
56 56
57LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) 57LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
58 : LightSettingsBase( parent, name, TRUE, fl ) 58 : LightSettingsBase( parent, name, TRUE, fl )
59{ 59{
60 60
61 if ( ODevice::inst()->model() == Model_iPAQ_H31xx || 61 if ( ODevice::inst()->model() == Model_iPAQ_H31xx ||
62 ODevice::inst()->model() == Model_iPAQ_H36xx || 62 ODevice::inst()->model() == Model_iPAQ_H36xx ||
63 ODevice::inst()->model() == Model_iPAQ_H37xx || 63 ODevice::inst()->model() == Model_iPAQ_H37xx ||
64 ODevice::inst()->model() == Model_iPAQ_H38xx ) { 64 ODevice::inst()->model() == Model_iPAQ_H38xx ) {
65 // Not supported yet - hide until implemented 65 // Not supported yet - hide until implemented
66 IpaqGroupBox->setEnabled( false ); 66 IpaqGroupBox->setEnabled( false );
67 IpaqGroupBoxAC->setEnabled( false ); 67 IpaqGroupBoxAC->setEnabled( false );
68 LightSensorGroupBox->setEnabled( false ); 68 LightSensorGroupBox->setEnabled( false );
69 } else { 69 } else {
70 // if ipaq no need to show the sensor box 70 // if ipaq no need to show the sensor box
71 IpaqGroupBox->hide(); 71 IpaqGroupBox->hide();
72 IpaqGroupBoxAC->hide(); 72 IpaqGroupBoxAC->hide();
73 LightSensorGroupBox->hide(); 73 LightSensorGroupBox->hide();
74 } 74 }
75 75
76 Config config( "qpe" ); 76 Config config( "qpe" );
77 77
78 config.setGroup( "Screensaver" ); 78 config.setGroup( "Screensaver" );
79 79
80 int interval; 80 int interval;
81 81
82 // battery spinboxes 82 // battery spinboxes
83 interval = config.readNumEntry( "Interval_Dim", 20 ); 83 interval = config.readNumEntry( "Interval_Dim", 20 );
84 interval_dim->setValue( interval ); 84 interval_dim->setValue( interval );
85 interval = config.readNumEntry( "Interval_LightOff", 30 ); 85 interval = config.readNumEntry( "Interval_LightOff", 30 );
86 interval_lightoff->setValue( interval ); 86 interval_lightoff->setValue( interval );
87 interval = config.readNumEntry( "Interval", 60 ); 87 interval = config.readNumEntry( "Interval", 60 );
88 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) 88 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs)
89 interval_suspend->setValue( interval ); 89 interval_suspend->setValue( interval );
90 90
91 // ac spinboxes 91 // ac spinboxes
92 interval = config.readNumEntry( "Interval_DimAC", 20 ); 92 interval = config.readNumEntry( "Interval_DimAC", 20 );
93 interval_dim_ac_3->setValue( interval ); 93 interval_dim_ac_3->setValue( interval );
94 interval = config.readNumEntry( "Interval_LightOffAC", 30 ); 94 interval = config.readNumEntry( "Interval_LightOffAC", 30 );
95 interval_lightoff_ac_3->setValue( interval ); 95 interval_lightoff_ac_3->setValue( interval );
96 interval = config.readNumEntry( "IntervalAC", 60 ); 96 interval = config.readNumEntry( "IntervalAC", 60 );
97 if ( interval > 3600 ) { 97 if ( interval > 3600 ) {
98 interval /= 1000; // compatibility (was millisecs) 98 interval /= 1000; // compatibility (was millisecs)
99 } 99 }
100 interval_suspend_ac_3->setValue( interval ); 100 interval_suspend_ac_3->setValue( interval );
101 101
102 102
103 // battery check and slider 103 // battery check and slider
104 screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); 104 screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 );
105 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); 105 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 );
106 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 106 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
107 int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); 107 int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( );
108 initbright = config.readNumEntry("Brightness",255); 108 initbright = config.readNumEntry("Brightness",255);
109 brightness->setMaxValue( maxbright ); 109 brightness->setMaxValue( maxbright );
110 brightness->setTickInterval( QMAX(1,maxbright/16) ); 110 brightness->setTickInterval( QMAX(1,maxbright/16) );
111 brightness->setLineStep( QMAX(1,maxbright/16) ); 111 brightness->setLineStep( QMAX(1,maxbright/16) );
112 brightness->setPageStep( QMAX(1,maxbright/16) ); 112 brightness->setPageStep( QMAX(1,maxbright/16) );
113 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); 113 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 );
114 114
115 // ac check and slider 115 // ac check and slider
116 screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 ); 116 screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 );
117 screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 ); 117 screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 );
118 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); 118 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 );
119 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); 119 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( );
120 initbright_ac = config.readNumEntry("BrightnessAC",255); 120 initbright_ac = config.readNumEntry("BrightnessAC",255);
121 brightness_ac_3->setMaxValue( maxbright_ac ); 121 brightness_ac_3->setMaxValue( maxbright_ac );
122 brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); 122 brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) );
123 brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); 123 brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) );
124 brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); 124 brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) );
125 brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); 125 brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 );
126 126
127 // advanced settings 127 // advanced settings
128 config.setGroup( "APM" ); 128 config.setGroup( "APM" );
129 warnintervalBox->setValue( config.readNumEntry("check_interval", 10000)/1000 ); 129 warnintervalBox->setValue( config.readNumEntry("check_interval", 10000)/1000 );
130 lowSpinBox->setValue( config.readNumEntry("power_verylow", 10 ) ); 130 lowSpinBox->setValue( config.readNumEntry("power_verylow", 10 ) );
131 criticalSpinBox->setValue( config.readNumEntry("power_critical", 5 ) ); 131 criticalSpinBox->setValue( config.readNumEntry("power_critical", 5 ) );
132 132
133 // ipaq sensor 133 // ipaq sensor
134 config.setGroup( "Ipaq_light_sensor" ); 134 config.setGroup( "Ipaq_light_sensor" );
135 auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); 135 auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 );
136 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); 136 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 );
137 LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); 137 LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) );
138 LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); 138 LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) );
139 connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; 139 connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ;
140 LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); 140 LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) );
141 141
142 connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness())); 142 connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness()));
143 connect(brightness_ac_3, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness())); 143 connect(brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) );
144} 144}
145 145
146LightSettings::~LightSettings() 146LightSettings::~LightSettings()
147{ 147{
148} 148}
149 149
150void LightSettings::slotSliderTicks( int steps ) { 150void LightSettings::slotSliderTicks( int steps ) {
151 LightMinValueSlider->setTickInterval( steps ); 151 LightMinValueSlider->setTickInterval( steps );
152} 152}
153 153
154static void set_fl(int bright) 154static void set_fl(int bright)
155{ 155{
156 qDebug( QString("BRIGHT !! : %1").arg( bright ) );
156 QCopEnvelope e("QPE/System", "setBacklight(int)" ); 157 QCopEnvelope e("QPE/System", "setBacklight(int)" );
157 e << bright; 158 e << bright;
158} 159}
159 160
160void LightSettings::reject() 161void LightSettings::reject()
161{ 162{
162 set_fl(initbright); 163 set_fl(initbright);
163 164
164 QDialog::reject(); 165 QDialog::reject();
165} 166}
166 167
167void LightSettings::accept() 168void LightSettings::accept()
168{ 169{
169 if ( qApp->focusWidget() ) 170 if ( qApp->focusWidget() )
170 qApp->focusWidget()->clearFocus(); 171 qApp->focusWidget()->clearFocus();
171 172
172 applyBrightness(); 173 applyBrightness();
173 174
174 // bat 175 // bat
175 int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); 176 int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0);
176 int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); 177 int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0);
177 int i_suspend = interval_suspend->value(); 178 int i_suspend = interval_suspend->value();
178 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); 179 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" );
179 e << i_dim << i_lightoff << i_suspend; 180 e << i_dim << i_lightoff << i_suspend;
180 181
181 // ac 182 // ac
182 int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); 183 int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0);
183 int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); 184 int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0);
184 int i_suspend_ac = interval_suspend_ac_3->value(); 185 int i_suspend_ac = interval_suspend_ac_3->value();
185 QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); 186 QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" );
186 e << i_dim_ac << i_lightoff_ac << i_suspend_ac; 187 e << i_dim_ac << i_lightoff_ac << i_suspend_ac;
187 188
188 Config config( "qpe" ); 189 Config config( "qpe" );
189 config.setGroup( "Screensaver" ); 190 config.setGroup( "Screensaver" );
190 191
191 // bat 192 // bat
192 config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); 193 config.writeEntry( "Dim", (int)screensaver_dim->isChecked() );
193 config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); 194 config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() );
194 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); 195 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() );
195 config.writeEntry( "Interval_Dim", interval_dim->value() ); 196 config.writeEntry( "Interval_Dim", interval_dim->value() );
196 config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); 197 config.writeEntry( "Interval_LightOff", interval_lightoff->value() );
197 config.writeEntry( "Interval", interval_suspend->value() ); 198 config.writeEntry( "Interval", interval_suspend->value() );
198 config.writeEntry( "Brightness", 199 config.writeEntry( "Brightness",
199 (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); 200 (brightness->maxValue()-brightness->value())*255/brightness->maxValue() );
200 201
201 // ac 202 // ac
202 config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); 203 config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() );
203 config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); 204 config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() );
204 config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); 205 config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() );
205 config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); 206 config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() );
206 config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); 207 config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() );
207 config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); 208 config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() );
208 config.writeEntry( "BrightnessAC", 209 config.writeEntry( "BrightnessAC",
209 (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() ); 210 (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() );
210 211
211 // advanced 212 // advanced
212 config.setGroup( "APM" ); 213 config.setGroup( "APM" );
213 config.writeEntry( "check_interval", warnintervalBox->value()*1000 ); 214 config.writeEntry( "check_interval", warnintervalBox->value()*1000 );
214 config.writeEntry( "power_verylow", lowSpinBox->value() ); 215 config.writeEntry( "power_verylow", lowSpinBox->value() );
215 config.writeEntry( "power_critical", criticalSpinBox->value() ); 216 config.writeEntry( "power_critical", criticalSpinBox->value() );
216 QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); 217 QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()");
217 218
218 219
219 // only make ipaq light sensor entries in config file if on an ipaq 220 // only make ipaq light sensor entries in config file if on an ipaq
220 if ( ODevice::inst()->model() == Model_iPAQ_H31xx || 221 if ( ODevice::inst()->model() == Model_iPAQ_H31xx ||
221 ODevice::inst()->model() == Model_iPAQ_H36xx || 222 ODevice::inst()->model() == Model_iPAQ_H36xx ||
222 ODevice::inst()->model() == Model_iPAQ_H37xx || 223 ODevice::inst()->model() == Model_iPAQ_H37xx ||
223 ODevice::inst()->model() == Model_iPAQ_H38xx ) { 224 ODevice::inst()->model() == Model_iPAQ_H38xx ) {
224 225
225 // ipaq sensor 226 // ipaq sensor
226 config.setGroup( "Ipaq_light_sensor" ); 227 config.setGroup( "Ipaq_light_sensor" );
227 228
228 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); 229 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() );
229 config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); 230 config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() );
230 config.writeEntry( "Steps", LightStepSpin->value() ); 231 config.writeEntry( "Steps", LightStepSpin->value() );
231 config.writeEntry( "MinValue", LightMinValueSlider->value() ); 232 config.writeEntry( "MinValue", LightMinValueSlider->value() );
232 config.writeEntry( "Shift", LightShiftSpin->value() ); 233 config.writeEntry( "Shift", LightShiftSpin->value() );
233 } 234 }
234 235
235 config.write(); 236 config.write();
236 237
237 QDialog::accept(); 238 QDialog::accept();
238} 239}
239 240
240void LightSettings::applyBrightness() 241void LightSettings::applyBrightness()
241{ 242{
243 if ( !PowerStatus::Online ) {
244 int bright = ( brightness->value() ) * 255 / brightness->maxValue();
245 set_fl(bright);
246 }
247}
248
249void LightSettings::applyBrightnessAC()
250{
251 qDebug( QString("SLIDER : %1").arg( brightness_ac_3->value() ) );
242 // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting 252 // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting
243 if ( PowerStatus::Online ) { 253 if ( PowerStatus::Online ) {
244 int bright = (brightness_ac_3->maxValue() - brightness_ac_3->value())*255 / brightness_ac_3->maxValue(); 254 int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue();
245 set_fl(bright);
246 } else {
247 int bright = (brightness->maxValue()-brightness->value())*255 / brightness->maxValue();
248 set_fl(bright); 255 set_fl(bright);
249 } 256 }
250} 257}
251 258
252 259
253 260
254void LightSettings::done(int r) 261void LightSettings::done(int r)
255{ 262{
256 QDialog::done(r); 263 QDialog::done(r);
257 close ( ); 264 close ( );
258} 265}
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index fd85017..5e62626 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -1,502 +1,506 @@
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>419</width> 14 <width>415</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>caption</name> 19 <name>caption</name>
20 <string>Light and Power Settings</string> 20 <string>Light and Power Settings</string>
21 </property> 21 </property>
22 <property stdset="1"> 22 <property stdset="1">
23 <name>sizeGripEnabled</name> 23 <name>sizeGripEnabled</name>
24 <bool>false</bool> 24 <bool>false</bool>
25 </property> 25 </property>
26 <property> 26 <property>
27 <name>layoutMargin</name> 27 <name>layoutMargin</name>
28 </property> 28 </property>
29 <property> 29 <property>
30 <name>layoutSpacing</name> 30 <name>layoutSpacing</name>
31 </property> 31 </property>
32 <vbox> 32 <vbox>
33 <property stdset="1"> 33 <property stdset="1">
34 <name>margin</name> 34 <name>margin</name>
35 <number>3</number> 35 <number>3</number>
36 </property> 36 </property>
37 <property stdset="1"> 37 <property stdset="1">
38 <name>spacing</name> 38 <name>spacing</name>
39 <number>3</number> 39 <number>3</number>
40 </property> 40 </property>
41 <widget> 41 <widget>
42 <class>QTabWidget</class> 42 <class>QTabWidget</class>
43 <property stdset="1"> 43 <property stdset="1">
44 <name>name</name> 44 <name>name</name>
45 <cstring>TabWidget3</cstring> 45 <cstring>TabWidget3</cstring>
46 </property> 46 </property>
47 <property> 47 <property>
48 <name>layoutMargin</name> 48 <name>layoutMargin</name>
49 </property> 49 </property>
50 <property> 50 <property>
51 <name>layoutSpacing</name> 51 <name>layoutSpacing</name>
52 </property> 52 </property>
53 <widget> 53 <widget>
54 <class>QWidget</class> 54 <class>QWidget</class>
55 <property stdset="1"> 55 <property stdset="1">
56 <name>name</name> 56 <name>name</name>
57 <cstring>tab</cstring> 57 <cstring>tab</cstring>
58 </property> 58 </property>
59 <attribute> 59 <attribute>
60 <name>title</name> 60 <name>title</name>
61 <string>on Battery</string> 61 <string>on Battery</string>
62 </attribute> 62 </attribute>
63 <vbox> 63 <vbox>
64 <property stdset="1"> 64 <property stdset="1">
65 <name>margin</name> 65 <name>margin</name>
66 <number>3</number> 66 <number>3</number>
67 </property> 67 </property>
68 <property stdset="1"> 68 <property stdset="1">
69 <name>spacing</name> 69 <name>spacing</name>
70 <number>3</number> 70 <number>3</number>
71 </property> 71 </property>
72 <widget> 72 <widget>
73 <class>QGroupBox</class> 73 <class>QGroupBox</class>
74 <property stdset="1"> 74 <property stdset="1">
75 <name>name</name> 75 <name>name</name>
76 <cstring>GroupBox3</cstring> 76 <cstring>GroupBox3</cstring>
77 </property> 77 </property>
78 <property stdset="1"> 78 <property stdset="1">
79 <name>enabled</name> 79 <name>enabled</name>
80 <bool>true</bool> 80 <bool>true</bool>
81 </property> 81 </property>
82 <property stdset="1"> 82 <property stdset="1">
83 <name>title</name> 83 <name>title</name>
84 <string>General Settings</string> 84 <string>General Settings</string>
85 </property> 85 </property>
86 <property> 86 <property>
87 <name>layoutMargin</name> 87 <name>layoutMargin</name>
88 </property> 88 </property>
89 <property> 89 <property>
90 <name>layoutSpacing</name> 90 <name>layoutSpacing</name>
91 </property> 91 </property>
92 <vbox> 92 <vbox>
93 <property stdset="1"> 93 <property stdset="1">
94 <name>margin</name> 94 <name>margin</name>
95 <number>3</number> 95 <number>3</number>
96 </property> 96 </property>
97 <property stdset="1"> 97 <property stdset="1">
98 <name>spacing</name> 98 <name>spacing</name>
99 <number>3</number> 99 <number>3</number>
100 </property> 100 </property>
101 <widget> 101 <widget>
102 <class>QLayoutWidget</class> 102 <class>QLayoutWidget</class>
103 <property stdset="1"> 103 <property stdset="1">
104 <name>name</name> 104 <name>name</name>
105 <cstring>Layout8</cstring> 105 <cstring>Layout8</cstring>
106 </property> 106 </property>
107 <grid> 107 <grid>
108 <property stdset="1"> 108 <property stdset="1">
109 <name>margin</name> 109 <name>margin</name>
110 <number>0</number> 110 <number>0</number>
111 </property> 111 </property>
112 <property stdset="1"> 112 <property stdset="1">
113 <name>spacing</name> 113 <name>spacing</name>
114 <number>6</number> 114 <number>6</number>
115 </property> 115 </property>
116 <widget row="0" column="1" > 116 <widget row="0" column="1" >
117 <class>QSpinBox</class> 117 <class>QSpinBox</class>
118 <property stdset="1"> 118 <property stdset="1">
119 <name>name</name> 119 <name>name</name>
120 <cstring>interval_dim</cstring> 120 <cstring>interval_dim</cstring>
121 </property> 121 </property>
122 <property stdset="1"> 122 <property stdset="1">
123 <name>suffix</name> 123 <name>suffix</name>
124 <string> seconds</string> 124 <string> seconds</string>
125 </property> 125 </property>
126 <property stdset="1"> 126 <property stdset="1">
127 <name>buttonSymbols</name> 127 <name>buttonSymbols</name>
128 <enum>PlusMinus</enum> 128 <enum>PlusMinus</enum>
129 </property> 129 </property>
130 <property stdset="1"> 130 <property stdset="1">
131 <name>maxValue</name> 131 <name>maxValue</name>
132 <number>3600</number> 132 <number>3600</number>
133 </property> 133 </property>
134 <property stdset="1"> 134 <property stdset="1">
135 <name>minValue</name> 135 <name>minValue</name>
136 <number>10</number> 136 <number>10</number>
137 </property> 137 </property>
138 <property stdset="1"> 138 <property stdset="1">
139 <name>lineStep</name> 139 <name>lineStep</name>
140 <number>15</number> 140 <number>15</number>
141 </property> 141 </property>
142 </widget> 142 </widget>
143 <widget row="1" column="0" > 143 <widget row="1" column="0" >
144 <class>QCheckBox</class> 144 <class>QCheckBox</class>
145 <property stdset="1"> 145 <property stdset="1">
146 <name>name</name> 146 <name>name</name>
147 <cstring>screensaver_lightoff</cstring> 147 <cstring>screensaver_lightoff</cstring>
148 </property> 148 </property>
149 <property stdset="1"> 149 <property stdset="1">
150 <name>sizePolicy</name> 150 <name>sizePolicy</name>
151 <sizepolicy> 151 <sizepolicy>
152 <hsizetype>1</hsizetype> 152 <hsizetype>1</hsizetype>
153 <vsizetype>0</vsizetype> 153 <vsizetype>0</vsizetype>
154 </sizepolicy> 154 </sizepolicy>
155 </property> 155 </property>
156 <property stdset="1"> 156 <property stdset="1">
157 <name>text</name> 157 <name>text</name>
158 <string>Light off after</string> 158 <string>Light off after</string>
159 </property> 159 </property>
160 <property stdset="1"> 160 <property stdset="1">
161 <name>checked</name> 161 <name>checked</name>
162 <bool>true</bool> 162 <bool>true</bool>
163 </property> 163 </property>
164 </widget> 164 </widget>
165 <widget row="2" column="1" > 165 <widget row="2" column="1" >
166 <class>QSpinBox</class> 166 <class>QSpinBox</class>
167 <property stdset="1"> 167 <property stdset="1">
168 <name>name</name> 168 <name>name</name>
169 <cstring>interval_suspend</cstring> 169 <cstring>interval_suspend</cstring>
170 </property> 170 </property>
171 <property stdset="1"> 171 <property stdset="1">
172 <name>suffix</name> 172 <name>suffix</name>
173 <string> seconds</string> 173 <string> seconds</string>
174 </property> 174 </property>
175 <property stdset="1"> 175 <property stdset="1">
176 <name>buttonSymbols</name> 176 <name>buttonSymbols</name>
177 <enum>PlusMinus</enum> 177 <enum>PlusMinus</enum>
178 </property> 178 </property>
179 <property stdset="1"> 179 <property stdset="1">
180 <name>maxValue</name> 180 <name>maxValue</name>
181 <number>3600</number> 181 <number>3600</number>
182 </property> 182 </property>
183 <property stdset="1"> 183 <property stdset="1">
184 <name>minValue</name> 184 <name>minValue</name>
185 <number>10</number> 185 <number>10</number>
186 </property> 186 </property>
187 <property stdset="1"> 187 <property stdset="1">
188 <name>lineStep</name> 188 <name>lineStep</name>
189 <number>15</number> 189 <number>15</number>
190 </property> 190 </property>
191 </widget> 191 </widget>
192 <widget row="1" column="1" > 192 <widget row="1" column="1" >
193 <class>QSpinBox</class> 193 <class>QSpinBox</class>
194 <property stdset="1"> 194 <property stdset="1">
195 <name>name</name> 195 <name>name</name>
196 <cstring>interval_lightoff</cstring> 196 <cstring>interval_lightoff</cstring>
197 </property> 197 </property>
198 <property stdset="1"> 198 <property stdset="1">
199 <name>suffix</name> 199 <name>suffix</name>
200 <string> seconds</string> 200 <string> seconds</string>
201 </property> 201 </property>
202 <property stdset="1"> 202 <property stdset="1">
203 <name>buttonSymbols</name> 203 <name>buttonSymbols</name>
204 <enum>PlusMinus</enum> 204 <enum>PlusMinus</enum>
205 </property> 205 </property>
206 <property stdset="1"> 206 <property stdset="1">
207 <name>maxValue</name> 207 <name>maxValue</name>
208 <number>3600</number> 208 <number>3600</number>
209 </property> 209 </property>
210 <property stdset="1"> 210 <property stdset="1">
211 <name>minValue</name> 211 <name>minValue</name>
212 <number>10</number> 212 <number>10</number>
213 </property> 213 </property>
214 <property stdset="1"> 214 <property stdset="1">
215 <name>lineStep</name> 215 <name>lineStep</name>
216 <number>15</number> 216 <number>15</number>
217 </property> 217 </property>
218 </widget> 218 </widget>
219 <widget row="0" column="0" > 219 <widget row="0" column="0" >
220 <class>QCheckBox</class> 220 <class>QCheckBox</class>
221 <property stdset="1"> 221 <property stdset="1">
222 <name>name</name> 222 <name>name</name>
223 <cstring>screensaver_dim</cstring> 223 <cstring>screensaver_dim</cstring>
224 </property> 224 </property>
225 <property stdset="1"> 225 <property stdset="1">
226 <name>sizePolicy</name> 226 <name>sizePolicy</name>
227 <sizepolicy> 227 <sizepolicy>
228 <hsizetype>1</hsizetype> 228 <hsizetype>1</hsizetype>
229 <vsizetype>0</vsizetype> 229 <vsizetype>0</vsizetype>
230 </sizepolicy> 230 </sizepolicy>
231 </property> 231 </property>
232 <property stdset="1"> 232 <property stdset="1">
233 <name>text</name> 233 <name>text</name>
234 <string>Dim light after</string> 234 <string>Dim light after</string>
235 </property> 235 </property>
236 <property stdset="1"> 236 <property stdset="1">
237 <name>checked</name> 237 <name>checked</name>
238 <bool>true</bool> 238 <bool>true</bool>
239 </property> 239 </property>
240 </widget> 240 </widget>
241 <widget row="2" column="0" > 241 <widget row="2" column="0" >
242 <class>QLabel</class> 242 <class>QLabel</class>
243 <property stdset="1"> 243 <property stdset="1">
244 <name>name</name> 244 <name>name</name>
245 <cstring>TextLabel1_2</cstring> 245 <cstring>TextLabel1_2</cstring>
246 </property> 246 </property>
247 <property stdset="1"> 247 <property stdset="1">
248 <name>text</name> 248 <name>text</name>
249 <string>Suspend after</string> 249 <string>Suspend after</string>
250 </property> 250 </property>
251 </widget> 251 </widget>
252 </grid> 252 </grid>
253 </widget> 253 </widget>
254 <widget> 254 <widget>
255 <class>QCheckBox</class> 255 <class>QCheckBox</class>
256 <property stdset="1"> 256 <property stdset="1">
257 <name>name</name> 257 <name>name</name>
258 <cstring>LcdOffOnly</cstring> 258 <cstring>LcdOffOnly</cstring>
259 </property> 259 </property>
260 <property stdset="1"> 260 <property stdset="1">
261 <name>text</name> 261 <name>text</name>
262 <string>Deactivate LCD only (does not suspend)</string> 262 <string>Deactivate LCD only (does not suspend)</string>
263 </property> 263 </property>
264 </widget> 264 </widget>
265 </vbox> 265 </vbox>
266 </widget> 266 </widget>
267 <widget> 267 <widget>
268 <class>QGroupBox</class> 268 <class>QGroupBox</class>
269 <property stdset="1"> 269 <property stdset="1">
270 <name>name</name> 270 <name>name</name>
271 <cstring>GroupBox9</cstring> 271 <cstring>GroupBox9</cstring>
272 </property> 272 </property>
273 <property stdset="1"> 273 <property stdset="1">
274 <name>title</name> 274 <name>title</name>
275 <string>Backlight</string> 275 <string>Backlight</string>
276 </property> 276 </property>
277 <property> 277 <property>
278 <name>layoutMargin</name> 278 <name>layoutMargin</name>
279 </property> 279 </property>
280 <property> 280 <property>
281 <name>layoutSpacing</name> 281 <name>layoutSpacing</name>
282 </property> 282 </property>
283 <vbox> 283 <vbox>
284 <property stdset="1"> 284 <property stdset="1">
285 <name>margin</name> 285 <name>margin</name>
286 <number>3</number> 286 <number>3</number>
287 </property> 287 </property>
288 <property stdset="1"> 288 <property stdset="1">
289 <name>spacing</name> 289 <name>spacing</name>
290 <number>3</number> 290 <number>3</number>
291 </property> 291 </property>
292 <widget> 292 <widget>
293 <class>QSlider</class> 293 <class>QSlider</class>
294 <property stdset="1"> 294 <property stdset="1">
295 <name>name</name> 295 <name>name</name>
296 <cstring>brightness</cstring> 296 <cstring>brightness</cstring>
297 </property> 297 </property>
298 <property stdset="1"> 298 <property stdset="1">
299 <name>maxValue</name> 299 <name>maxValue</name>
300 <number>255</number> 300 <number>255</number>
301 </property> 301 </property>
302 <property stdset="1"> 302 <property stdset="1">
303 <name>lineStep</name> 303 <name>lineStep</name>
304 <number>16</number> 304 <number>16</number>
305 </property> 305 </property>
306 <property stdset="1"> 306 <property stdset="1">
307 <name>pageStep</name> 307 <name>pageStep</name>
308 <number>16</number> 308 <number>16</number>
309 </property> 309 </property>
310 <property stdset="1"> 310 <property stdset="1">
311 <name>tracking</name>
312 <bool>true</bool>
313 </property>
314 <property stdset="1">
311 <name>orientation</name> 315 <name>orientation</name>
312 <enum>Horizontal</enum> 316 <enum>Horizontal</enum>
313 </property> 317 </property>
314 <property stdset="1"> 318 <property stdset="1">
315 <name>tickmarks</name> 319 <name>tickmarks</name>
316 <enum>Right</enum> 320 <enum>Right</enum>
317 </property> 321 </property>
318 <property stdset="1"> 322 <property stdset="1">
319 <name>tickInterval</name> 323 <name>tickInterval</name>
320 <number>32</number> 324 <number>32</number>
321 </property> 325 </property>
322 </widget> 326 </widget>
323 <widget> 327 <widget>
324 <class>QLayoutWidget</class> 328 <class>QLayoutWidget</class>
325 <property stdset="1"> 329 <property stdset="1">
326 <name>name</name> 330 <name>name</name>
327 <cstring>Layout10</cstring> 331 <cstring>Layout10</cstring>
328 </property> 332 </property>
329 <hbox> 333 <hbox>
330 <property stdset="1"> 334 <property stdset="1">
331 <name>margin</name> 335 <name>margin</name>
332 <number>0</number> 336 <number>0</number>
333 </property> 337 </property>
334 <property stdset="1"> 338 <property stdset="1">
335 <name>spacing</name> 339 <name>spacing</name>
336 <number>6</number> 340 <number>6</number>
337 </property> 341 </property>
338 <widget> 342 <widget>
339 <class>QLabel</class> 343 <class>QLabel</class>
340 <property stdset="1"> 344 <property stdset="1">
341 <name>name</name> 345 <name>name</name>
342 <cstring>PixmapLabel2</cstring> 346 <cstring>PixmapLabel2</cstring>
343 </property> 347 </property>
344 <property stdset="1"> 348 <property stdset="1">
345 <name>pixmap</name> 349 <name>pixmap</name>
346 <pixmap>image0</pixmap> 350 <pixmap>image0</pixmap>
347 </property> 351 </property>
348 <property stdset="1"> 352 <property stdset="1">
349 <name>scaledContents</name> 353 <name>scaledContents</name>
350 <bool>false</bool> 354 <bool>false</bool>
351 </property> 355 </property>
352 </widget> 356 </widget>
353 <widget> 357 <widget>
354 <class>QLabel</class> 358 <class>QLabel</class>
355 <property stdset="1"> 359 <property stdset="1">
356 <name>name</name> 360 <name>name</name>
357 <cstring>TextLabel4</cstring> 361 <cstring>TextLabel4</cstring>
358 </property> 362 </property>
359 <property stdset="1"> 363 <property stdset="1">
360 <name>text</name> 364 <name>text</name>
361 <string>Off</string> 365 <string>Off</string>
362 </property> 366 </property>
363 </widget> 367 </widget>
364 <spacer> 368 <spacer>
365 <property> 369 <property>
366 <name>name</name> 370 <name>name</name>
367 <cstring>Spacer2</cstring> 371 <cstring>Spacer2</cstring>
368 </property> 372 </property>
369 <property stdset="1"> 373 <property stdset="1">
370 <name>orientation</name> 374 <name>orientation</name>
371 <enum>Horizontal</enum> 375 <enum>Horizontal</enum>
372 </property> 376 </property>
373 <property stdset="1"> 377 <property stdset="1">
374 <name>sizeType</name> 378 <name>sizeType</name>
375 <enum>Expanding</enum> 379 <enum>Expanding</enum>
376 </property> 380 </property>
377 <property> 381 <property>
378 <name>sizeHint</name> 382 <name>sizeHint</name>
379 <size> 383 <size>
380 <width>20</width> 384 <width>20</width>
381 <height>20</height> 385 <height>20</height>
382 </size> 386 </size>
383 </property> 387 </property>
384 </spacer> 388 </spacer>
385 <widget> 389 <widget>
386 <class>QLabel</class> 390 <class>QLabel</class>
387 <property stdset="1"> 391 <property stdset="1">
388 <name>name</name> 392 <name>name</name>
389 <cstring>TextLabel5</cstring> 393 <cstring>TextLabel5</cstring>
390 </property> 394 </property>
391 <property stdset="1"> 395 <property stdset="1">
392 <name>text</name> 396 <name>text</name>
393 <string>Full</string> 397 <string>Full</string>
394 </property> 398 </property>
395 </widget> 399 </widget>
396 <widget> 400 <widget>
397 <class>QLabel</class> 401 <class>QLabel</class>
398 <property stdset="1"> 402 <property stdset="1">
399 <name>name</name> 403 <name>name</name>
400 <cstring>PixmapLabel1</cstring> 404 <cstring>PixmapLabel1</cstring>
401 </property> 405 </property>
402 <property stdset="1"> 406 <property stdset="1">
403 <name>pixmap</name> 407 <name>pixmap</name>
404 <pixmap>image1</pixmap> 408 <pixmap>image1</pixmap>
405 </property> 409 </property>
406 <property stdset="1"> 410 <property stdset="1">
407 <name>scaledContents</name> 411 <name>scaledContents</name>
408 <bool>false</bool> 412 <bool>false</bool>
409 </property> 413 </property>
410 </widget> 414 </widget>
411 </hbox> 415 </hbox>
412 </widget> 416 </widget>
413 </vbox> 417 </vbox>
414 </widget> 418 </widget>
415 <widget> 419 <widget>
416 <class>QGroupBox</class> 420 <class>QGroupBox</class>
417 <property stdset="1"> 421 <property stdset="1">
418 <name>name</name> 422 <name>name</name>
419 <cstring>IpaqGroupBox</cstring> 423 <cstring>IpaqGroupBox</cstring>
420 </property> 424 </property>
421 <property stdset="1"> 425 <property stdset="1">
422 <name>title</name> 426 <name>title</name>
423 <string>iPAQ</string> 427 <string>iPAQ</string>
424 </property> 428 </property>
425 <property> 429 <property>
426 <name>layoutMargin</name> 430 <name>layoutMargin</name>
427 </property> 431 </property>
428 <property> 432 <property>
429 <name>layoutSpacing</name> 433 <name>layoutSpacing</name>
430 </property> 434 </property>
431 <vbox> 435 <vbox>
432 <property stdset="1"> 436 <property stdset="1">
433 <name>margin</name> 437 <name>margin</name>
434 <number>3</number> 438 <number>3</number>
435 </property> 439 </property>
436 <property stdset="1"> 440 <property stdset="1">
437 <name>spacing</name> 441 <name>spacing</name>
438 <number>3</number> 442 <number>3</number>
439 </property> 443 </property>
440 <widget> 444 <widget>
441 <class>QCheckBox</class> 445 <class>QCheckBox</class>
442 <property stdset="1"> 446 <property stdset="1">
443 <name>name</name> 447 <name>name</name>
444 <cstring>auto_brightness</cstring> 448 <cstring>auto_brightness</cstring>
445 </property> 449 </property>
446 <property stdset="1"> 450 <property stdset="1">
447 <name>text</name> 451 <name>text</name>
448 <string>Use light sensor</string> 452 <string>Use light sensor</string>
449 </property> 453 </property>
450 <property> 454 <property>
451 <name>whatsThis</name> 455 <name>whatsThis</name>
452 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> 456 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string>
453 </property> 457 </property>
454 </widget> 458 </widget>
455 </vbox> 459 </vbox>
456 </widget> 460 </widget>
457 <spacer> 461 <spacer>
458 <property> 462 <property>
459 <name>name</name> 463 <name>name</name>
460 <cstring>Spacer4</cstring> 464 <cstring>Spacer4</cstring>
461 </property> 465 </property>
462 <property stdset="1"> 466 <property stdset="1">
463 <name>orientation</name> 467 <name>orientation</name>
464 <enum>Vertical</enum> 468 <enum>Vertical</enum>
465 </property> 469 </property>
466 <property stdset="1"> 470 <property stdset="1">
467 <name>sizeType</name> 471 <name>sizeType</name>
468 <enum>Expanding</enum> 472 <enum>Expanding</enum>
469 </property> 473 </property>
470 <property> 474 <property>
471 <name>sizeHint</name> 475 <name>sizeHint</name>
472 <size> 476 <size>
473 <width>20</width> 477 <width>20</width>
474 <height>20</height> 478 <height>20</height>
475 </size> 479 </size>
476 </property> 480 </property>
477 </spacer> 481 </spacer>
478 </vbox> 482 </vbox>
479 </widget> 483 </widget>
480 <widget> 484 <widget>
481 <class>QWidget</class> 485 <class>QWidget</class>
482 <property stdset="1"> 486 <property stdset="1">
483 <name>name</name> 487 <name>name</name>
484 <cstring>tab</cstring> 488 <cstring>tab</cstring>
485 </property> 489 </property>
486 <attribute> 490 <attribute>
487 <name>title</name> 491 <name>title</name>
488 <string>on AC</string> 492 <string>on AC</string>
489 </attribute> 493 </attribute>
490 <vbox> 494 <vbox>
491 <property stdset="1"> 495 <property stdset="1">
492 <name>margin</name> 496 <name>margin</name>
493 <number>3</number> 497 <number>3</number>
494 </property> 498 </property>
495 <property stdset="1"> 499 <property stdset="1">
496 <name>spacing</name> 500 <name>spacing</name>
497 <number>3</number> 501 <number>3</number>
498 </property> 502 </property>
499 <widget> 503 <widget>
500 <class>QGroupBox</class> 504 <class>QGroupBox</class>
501 <property stdset="1"> 505 <property stdset="1">
502 <name>name</name> 506 <name>name</name>
@@ -534,396 +538,408 @@
534 <grid> 538 <grid>
535 <property stdset="1"> 539 <property stdset="1">
536 <name>margin</name> 540 <name>margin</name>
537 <number>0</number> 541 <number>0</number>
538 </property> 542 </property>
539 <property stdset="1"> 543 <property stdset="1">
540 <name>spacing</name> 544 <name>spacing</name>
541 <number>6</number> 545 <number>6</number>
542 </property> 546 </property>
543 <widget row="2" column="0" > 547 <widget row="2" column="0" >
544 <class>QLabel</class> 548 <class>QLabel</class>
545 <property stdset="1"> 549 <property stdset="1">
546 <name>name</name> 550 <name>name</name>
547 <cstring>TextLabel1_2_2_3</cstring> 551 <cstring>TextLabel1_2_2_3</cstring>
548 </property> 552 </property>
549 <property stdset="1"> 553 <property stdset="1">
550 <name>text</name> 554 <name>text</name>
551 <string>Suspend after</string> 555 <string>Suspend after</string>
552 </property> 556 </property>
553 </widget> 557 </widget>
554 <widget row="0" column="1" > 558 <widget row="0" column="1" >
555 <class>QSpinBox</class> 559 <class>QSpinBox</class>
556 <property stdset="1"> 560 <property stdset="1">
557 <name>name</name> 561 <name>name</name>
558 <cstring>interval_dim_ac_3</cstring> 562 <cstring>interval_dim_ac_3</cstring>
559 </property> 563 </property>
560 <property stdset="1"> 564 <property stdset="1">
561 <name>suffix</name> 565 <name>suffix</name>
562 <string> seconds</string> 566 <string> seconds</string>
563 </property> 567 </property>
564 <property stdset="1"> 568 <property stdset="1">
565 <name>buttonSymbols</name> 569 <name>buttonSymbols</name>
566 <enum>PlusMinus</enum> 570 <enum>PlusMinus</enum>
567 </property> 571 </property>
568 <property stdset="1"> 572 <property stdset="1">
569 <name>maxValue</name> 573 <name>maxValue</name>
570 <number>3600</number> 574 <number>3600</number>
571 </property> 575 </property>
572 <property stdset="1"> 576 <property stdset="1">
573 <name>minValue</name> 577 <name>minValue</name>
574 <number>10</number> 578 <number>10</number>
575 </property> 579 </property>
576 <property stdset="1"> 580 <property stdset="1">
577 <name>lineStep</name> 581 <name>lineStep</name>
578 <number>15</number> 582 <number>15</number>
579 </property> 583 </property>
580 </widget> 584 </widget>
581 <widget row="2" column="1" > 585 <widget row="2" column="1" >
582 <class>QSpinBox</class> 586 <class>QSpinBox</class>
583 <property stdset="1"> 587 <property stdset="1">
584 <name>name</name> 588 <name>name</name>
585 <cstring>interval_suspend_ac_3</cstring> 589 <cstring>interval_suspend_ac_3</cstring>
586 </property> 590 </property>
587 <property stdset="1"> 591 <property stdset="1">
588 <name>suffix</name> 592 <name>suffix</name>
589 <string> seconds</string> 593 <string> seconds</string>
590 </property> 594 </property>
591 <property stdset="1"> 595 <property stdset="1">
592 <name>buttonSymbols</name> 596 <name>buttonSymbols</name>
593 <enum>PlusMinus</enum> 597 <enum>PlusMinus</enum>
594 </property> 598 </property>
595 <property stdset="1"> 599 <property stdset="1">
596 <name>maxValue</name> 600 <name>maxValue</name>
597 <number>3600</number> 601 <number>3600</number>
598 </property> 602 </property>
599 <property stdset="1"> 603 <property stdset="1">
600 <name>minValue</name> 604 <name>minValue</name>
601 <number>10</number> 605 <number>10</number>
602 </property> 606 </property>
603 <property stdset="1"> 607 <property stdset="1">
604 <name>lineStep</name> 608 <name>lineStep</name>
605 <number>15</number> 609 <number>15</number>
606 </property> 610 </property>
607 </widget> 611 </widget>
608 <widget row="1" column="1" > 612 <widget row="1" column="1" >
609 <class>QSpinBox</class> 613 <class>QSpinBox</class>
610 <property stdset="1"> 614 <property stdset="1">
611 <name>name</name> 615 <name>name</name>
612 <cstring>interval_lightoff_ac_3</cstring> 616 <cstring>interval_lightoff_ac_3</cstring>
613 </property> 617 </property>
614 <property stdset="1"> 618 <property stdset="1">
615 <name>suffix</name> 619 <name>suffix</name>
616 <string> seconds</string> 620 <string> seconds</string>
617 </property> 621 </property>
618 <property stdset="1"> 622 <property stdset="1">
619 <name>buttonSymbols</name> 623 <name>buttonSymbols</name>
620 <enum>PlusMinus</enum> 624 <enum>PlusMinus</enum>
621 </property> 625 </property>
622 <property stdset="1"> 626 <property stdset="1">
623 <name>maxValue</name> 627 <name>maxValue</name>
624 <number>3600</number> 628 <number>3600</number>
625 </property> 629 </property>
626 <property stdset="1"> 630 <property stdset="1">
627 <name>minValue</name> 631 <name>minValue</name>
628 <number>10</number> 632 <number>10</number>
629 </property> 633 </property>
630 <property stdset="1"> 634 <property stdset="1">
631 <name>lineStep</name> 635 <name>lineStep</name>
632 <number>15</number> 636 <number>15</number>
633 </property> 637 </property>
634 </widget> 638 </widget>
635 <widget row="1" column="0" > 639 <widget row="1" column="0" >
636 <class>QCheckBox</class> 640 <class>QCheckBox</class>
637 <property stdset="1"> 641 <property stdset="1">
638 <name>name</name> 642 <name>name</name>
639 <cstring>screensaver_lightoff_ac_3</cstring> 643 <cstring>screensaver_lightoff_ac_3</cstring>
640 </property> 644 </property>
641 <property stdset="1"> 645 <property stdset="1">
642 <name>sizePolicy</name> 646 <name>sizePolicy</name>
643 <sizepolicy> 647 <sizepolicy>
644 <hsizetype>1</hsizetype> 648 <hsizetype>1</hsizetype>
645 <vsizetype>0</vsizetype> 649 <vsizetype>0</vsizetype>
646 </sizepolicy> 650 </sizepolicy>
647 </property> 651 </property>
648 <property stdset="1"> 652 <property stdset="1">
649 <name>text</name> 653 <name>text</name>
650 <string>Light off after</string> 654 <string>Light off after</string>
651 </property> 655 </property>
652 <property stdset="1"> 656 <property stdset="1">
653 <name>checked</name> 657 <name>checked</name>
654 <bool>true</bool> 658 <bool>true</bool>
655 </property> 659 </property>
656 </widget> 660 </widget>
657 <widget row="0" column="0" > 661 <widget row="0" column="0" >
658 <class>QCheckBox</class> 662 <class>QCheckBox</class>
659 <property stdset="1"> 663 <property stdset="1">
660 <name>name</name> 664 <name>name</name>
661 <cstring>screensaver_dim_ac_3</cstring> 665 <cstring>screensaver_dim_ac_3</cstring>
662 </property> 666 </property>
663 <property stdset="1"> 667 <property stdset="1">
664 <name>sizePolicy</name> 668 <name>sizePolicy</name>
665 <sizepolicy> 669 <sizepolicy>
666 <hsizetype>1</hsizetype> 670 <hsizetype>1</hsizetype>
667 <vsizetype>0</vsizetype> 671 <vsizetype>0</vsizetype>
668 </sizepolicy> 672 </sizepolicy>
669 </property> 673 </property>
670 <property stdset="1"> 674 <property stdset="1">
671 <name>text</name> 675 <name>text</name>
672 <string>Dim light after</string> 676 <string>Dim light after</string>
673 </property> 677 </property>
674 <property stdset="1"> 678 <property stdset="1">
675 <name>checked</name> 679 <name>checked</name>
676 <bool>true</bool> 680 <bool>true</bool>
677 </property> 681 </property>
678 </widget> 682 </widget>
679 </grid> 683 </grid>
680 </widget> 684 </widget>
681 <widget> 685 <widget>
682 <class>QCheckBox</class> 686 <class>QCheckBox</class>
683 <property stdset="1"> 687 <property stdset="1">
684 <name>name</name> 688 <name>name</name>
685 <cstring>LcdOffOnly_2_3</cstring> 689 <cstring>LcdOffOnly_2_3</cstring>
686 </property> 690 </property>
687 <property stdset="1"> 691 <property stdset="1">
688 <name>text</name> 692 <name>text</name>
689 <string>Deactivate LCD only (does not suspend)</string> 693 <string>Deactivate LCD only (does not suspend)</string>
690 </property> 694 </property>
691 </widget> 695 </widget>
692 </vbox> 696 </vbox>
693 </widget> 697 </widget>
694 <widget> 698 <widget>
695 <class>QGroupBox</class> 699 <class>QGroupBox</class>
696 <property stdset="1"> 700 <property stdset="1">
697 <name>name</name> 701 <name>name</name>
698 <cstring>GroupBox8</cstring> 702 <cstring>GroupBox8</cstring>
699 </property> 703 </property>
700 <property stdset="1"> 704 <property stdset="1">
701 <name>title</name> 705 <name>title</name>
702 <string>Backlight</string> 706 <string>Backlight</string>
703 </property> 707 </property>
704 <property> 708 <property>
705 <name>layoutMargin</name> 709 <name>layoutMargin</name>
706 </property> 710 </property>
707 <property> 711 <property>
708 <name>layoutSpacing</name> 712 <name>layoutSpacing</name>
709 </property> 713 </property>
710 <vbox> 714 <vbox>
711 <property stdset="1"> 715 <property stdset="1">
712 <name>margin</name> 716 <name>margin</name>
713 <number>3</number> 717 <number>3</number>
714 </property> 718 </property>
715 <property stdset="1"> 719 <property stdset="1">
716 <name>spacing</name> 720 <name>spacing</name>
717 <number>3</number> 721 <number>3</number>
718 </property> 722 </property>
719 <widget> 723 <widget>
720 <class>QSlider</class> 724 <class>QSlider</class>
721 <property stdset="1"> 725 <property stdset="1">
722 <name>name</name> 726 <name>name</name>
723 <cstring>brightness_ac_3</cstring> 727 <cstring>brightness_ac_3</cstring>
724 </property> 728 </property>
725 <property stdset="1"> 729 <property stdset="1">
730 <name>minValue</name>
731 <number>0</number>
732 </property>
733 <property stdset="1">
726 <name>maxValue</name> 734 <name>maxValue</name>
727 <number>255</number> 735 <number>255</number>
728 </property> 736 </property>
729 <property stdset="1"> 737 <property stdset="1">
730 <name>lineStep</name> 738 <name>lineStep</name>
731 <number>16</number> 739 <number>16</number>
732 </property> 740 </property>
733 <property stdset="1"> 741 <property stdset="1">
734 <name>pageStep</name> 742 <name>pageStep</name>
735 <number>16</number> 743 <number>16</number>
736 </property> 744 </property>
737 <property stdset="1"> 745 <property stdset="1">
746 <name>value</name>
747 <number>255</number>
748 </property>
749 <property stdset="1">
750 <name>tracking</name>
751 <bool>true</bool>
752 </property>
753 <property stdset="1">
738 <name>orientation</name> 754 <name>orientation</name>
739 <enum>Horizontal</enum> 755 <enum>Horizontal</enum>
740 </property> 756 </property>
741 <property stdset="1"> 757 <property stdset="1">
742 <name>tickmarks</name> 758 <name>tickmarks</name>
743 <enum>Right</enum> 759 <enum>Right</enum>
744 </property> 760 </property>
745 <property stdset="1"> 761 <property stdset="1">
746 <name>tickInterval</name> 762 <name>tickInterval</name>
747 <number>32</number> 763 <number>32</number>
748 </property> 764 </property>
749 </widget> 765 </widget>
750 <widget> 766 <widget>
751 <class>QLayoutWidget</class> 767 <class>QLayoutWidget</class>
752 <property stdset="1"> 768 <property stdset="1">
753 <name>name</name> 769 <name>name</name>
754 <cstring>Layout20</cstring> 770 <cstring>Layout20</cstring>
755 </property> 771 </property>
756 <hbox> 772 <hbox>
757 <property stdset="1"> 773 <property stdset="1">
758 <name>margin</name> 774 <name>margin</name>
759 <number>0</number> 775 <number>0</number>
760 </property> 776 </property>
761 <property stdset="1"> 777 <property stdset="1">
762 <name>spacing</name> 778 <name>spacing</name>
763 <number>6</number> 779 <number>6</number>
764 </property> 780 </property>
765 <widget> 781 <widget>
766 <class>QLabel</class> 782 <class>QLabel</class>
767 <property stdset="1"> 783 <property stdset="1">
768 <name>name</name> 784 <name>name</name>
769 <cstring>PixmapLabel2_2_3</cstring> 785 <cstring>PixmapLabel2_2_3</cstring>
770 </property> 786 </property>
771 <property stdset="1"> 787 <property stdset="1">
772 <name>pixmap</name> 788 <name>pixmap</name>
773 <pixmap>image2</pixmap> 789 <pixmap>image2</pixmap>
774 </property> 790 </property>
775 <property stdset="1"> 791 <property stdset="1">
776 <name>scaledContents</name> 792 <name>scaledContents</name>
777 <bool>false</bool> 793 <bool>false</bool>
778 </property> 794 </property>
779 </widget> 795 </widget>
780 <widget> 796 <widget>
781 <class>QLabel</class> 797 <class>QLabel</class>
782 <property stdset="1"> 798 <property stdset="1">
783 <name>name</name> 799 <name>name</name>
784 <cstring>TextLabel6</cstring> 800 <cstring>TextLabel6</cstring>
785 </property> 801 </property>
786 <property stdset="1"> 802 <property stdset="1">
787 <name>text</name> 803 <name>text</name>
788 <string>Off</string> 804 <string>Off</string>
789 </property> 805 </property>
790 </widget> 806 </widget>
791 <spacer> 807 <spacer>
792 <property> 808 <property>
793 <name>name</name> 809 <name>name</name>
794 <cstring>Spacer3</cstring> 810 <cstring>Spacer3</cstring>
795 </property> 811 </property>
796 <property stdset="1"> 812 <property stdset="1">
797 <name>orientation</name> 813 <name>orientation</name>
798 <enum>Horizontal</enum> 814 <enum>Horizontal</enum>
799 </property> 815 </property>
800 <property stdset="1"> 816 <property stdset="1">
801 <name>sizeType</name> 817 <name>sizeType</name>
802 <enum>Expanding</enum> 818 <enum>Expanding</enum>
803 </property> 819 </property>
804 <property> 820 <property>
805 <name>sizeHint</name> 821 <name>sizeHint</name>
806 <size> 822 <size>
807 <width>20</width> 823 <width>20</width>
808 <height>20</height> 824 <height>20</height>
809 </size> 825 </size>
810 </property> 826 </property>
811 </spacer> 827 </spacer>
812 <widget> 828 <widget>
813 <class>QLabel</class> 829 <class>QLabel</class>
814 <property stdset="1"> 830 <property stdset="1">
815 <name>name</name> 831 <name>name</name>
816 <cstring>TextLabel7</cstring> 832 <cstring>TextLabel7</cstring>
817 </property> 833 </property>
818 <property stdset="1"> 834 <property stdset="1">
819 <name>text</name> 835 <name>text</name>
820 <string>Full</string> 836 <string>Full</string>
821 </property> 837 </property>
822 </widget> 838 </widget>
823 <widget> 839 <widget>
824 <class>QLabel</class> 840 <class>QLabel</class>
825 <property stdset="1"> 841 <property stdset="1">
826 <name>name</name> 842 <name>name</name>
827 <cstring>PixmapLabel1_2_3</cstring> 843 <cstring>PixmapLabel1_2_3</cstring>
828 </property> 844 </property>
829 <property stdset="1"> 845 <property stdset="1">
830 <name>pixmap</name> 846 <name>pixmap</name>
831 <pixmap>image1</pixmap> 847 <pixmap>image1</pixmap>
832 </property> 848 </property>
833 <property stdset="1"> 849 <property stdset="1">
834 <name>scaledContents</name> 850 <name>scaledContents</name>
835 <bool>false</bool> 851 <bool>false</bool>
836 </property> 852 </property>
837 </widget> 853 </widget>
838 </hbox> 854 </hbox>
839 </widget> 855 </widget>
840 </vbox> 856 </vbox>
841 </widget> 857 </widget>
842 <widget> 858 <widget>
843 <class>QGroupBox</class> 859 <class>QGroupBox</class>
844 <property stdset="1"> 860 <property stdset="1">
845 <name>name</name> 861 <name>name</name>
846 <cstring>IpaqGroupBoxAC</cstring> 862 <cstring>IpaqGroupBoxAC</cstring>
847 </property> 863 </property>
848 <property stdset="1"> 864 <property stdset="1">
849 <name>title</name> 865 <name>title</name>
850 <string>iPAQ</string> 866 <string>iPAQ</string>
851 </property> 867 </property>
852 <property> 868 <property>
853 <name>layoutMargin</name> 869 <name>layoutMargin</name>
854 </property> 870 </property>
855 <property> 871 <property>
856 <name>layoutSpacing</name> 872 <name>layoutSpacing</name>
857 </property> 873 </property>
858 <vbox> 874 <vbox>
859 <property stdset="1"> 875 <property stdset="1">
860 <name>margin</name> 876 <name>margin</name>
861 <number>3</number> 877 <number>3</number>
862 </property> 878 </property>
863 <property stdset="1"> 879 <property stdset="1">
864 <name>spacing</name> 880 <name>spacing</name>
865 <number>3</number> 881 <number>3</number>
866 </property> 882 </property>
867 <widget> 883 <widget>
868 <class>QCheckBox</class> 884 <class>QCheckBox</class>
869 <property stdset="1"> 885 <property stdset="1">
870 <name>name</name> 886 <name>name</name>
871 <cstring>auto_brightness_ac_3</cstring> 887 <cstring>auto_brightness_ac_3</cstring>
872 </property> 888 </property>
873 <property stdset="1"> 889 <property stdset="1">
874 <name>text</name> 890 <name>text</name>
875 <string>Use light sensor</string> 891 <string>Use light sensor</string>
876 </property> 892 </property>
877 <property> 893 <property>
878 <name>whatsThis</name> 894 <name>whatsThis</name>
879 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> 895 <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string>
880 </property> 896 </property>
881 </widget> 897 </widget>
882 </vbox> 898 </vbox>
883 </widget> 899 </widget>
884 <spacer> 900 <spacer>
885 <property> 901 <property>
886 <name>name</name> 902 <name>name</name>
887 <cstring>Spacer5</cstring> 903 <cstring>Spacer5</cstring>
888 </property> 904 </property>
889 <property stdset="1"> 905 <property stdset="1">
890 <name>orientation</name> 906 <name>orientation</name>
891 <enum>Vertical</enum> 907 <enum>Vertical</enum>
892 </property> 908 </property>
893 <property stdset="1"> 909 <property stdset="1">
894 <name>sizeType</name> 910 <name>sizeType</name>
895 <enum>Expanding</enum> 911 <enum>Expanding</enum>
896 </property> 912 </property>
897 <property> 913 <property>
898 <name>sizeHint</name> 914 <name>sizeHint</name>
899 <size> 915 <size>
900 <width>20</width> 916 <width>20</width>
901 <height>20</height> 917 <height>20</height>
902 </size> 918 </size>
903 </property> 919 </property>
904 </spacer> 920 </spacer>
905 </vbox> 921 </vbox>
906 </widget> 922 </widget>
907 <widget> 923 <widget>
908 <class>QWidget</class> 924 <class>QWidget</class>
909 <property stdset="1"> 925 <property stdset="1">
910 <name>name</name> 926 <name>name</name>
911 <cstring>tab</cstring> 927 <cstring>tab</cstring>
912 </property> 928 </property>
913 <attribute> 929 <attribute>
914 <name>title</name> 930 <name>title</name>
915 <string>Advanced Settings</string> 931 <string>Advanced Settings</string>
916 </attribute> 932 </attribute>
917 <vbox> 933 <vbox>
918 <property stdset="1"> 934 <property stdset="1">
919 <name>margin</name> 935 <name>margin</name>
920 <number>3</number> 936 <number>3</number>
921 </property> 937 </property>
922 <property stdset="1"> 938 <property stdset="1">
923 <name>spacing</name> 939 <name>spacing</name>
924 <number>3</number> 940 <number>3</number>
925 </property> 941 </property>
926 <widget> 942 <widget>
927 <class>QGroupBox</class> 943 <class>QGroupBox</class>
928 <property stdset="1"> 944 <property stdset="1">
929 <name>name</name> 945 <name>name</name>
@@ -1018,322 +1034,326 @@ interval</string>
1018 <property stdset="1"> 1034 <property stdset="1">
1019 <name>maxValue</name> 1035 <name>maxValue</name>
1020 <number>60</number> 1036 <number>60</number>
1021 </property> 1037 </property>
1022 <property stdset="1"> 1038 <property stdset="1">
1023 <name>minValue</name> 1039 <name>minValue</name>
1024 <number>5</number> 1040 <number>5</number>
1025 </property> 1041 </property>
1026 <property> 1042 <property>
1027 <name>whatsThis</name> 1043 <name>whatsThis</name>
1028 <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string> 1044 <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string>
1029 </property> 1045 </property>
1030 </widget> 1046 </widget>
1031 <widget row="2" column="1" > 1047 <widget row="2" column="1" >
1032 <class>QSpinBox</class> 1048 <class>QSpinBox</class>
1033 <property stdset="1"> 1049 <property stdset="1">
1034 <name>name</name> 1050 <name>name</name>
1035 <cstring>criticalSpinBox</cstring> 1051 <cstring>criticalSpinBox</cstring>
1036 </property> 1052 </property>
1037 <property stdset="1"> 1053 <property stdset="1">
1038 <name>prefix</name> 1054 <name>prefix</name>
1039 <string></string> 1055 <string></string>
1040 </property> 1056 </property>
1041 <property stdset="1"> 1057 <property stdset="1">
1042 <name>suffix</name> 1058 <name>suffix</name>
1043 <string> %</string> 1059 <string> %</string>
1044 </property> 1060 </property>
1045 <property stdset="1"> 1061 <property stdset="1">
1046 <name>maxValue</name> 1062 <name>maxValue</name>
1047 <number>80</number> 1063 <number>80</number>
1048 </property> 1064 </property>
1049 <property stdset="1"> 1065 <property stdset="1">
1050 <name>minValue</name> 1066 <name>minValue</name>
1051 <number>2</number> 1067 <number>2</number>
1052 </property> 1068 </property>
1053 <property> 1069 <property>
1054 <name>whatsThis</name> 1070 <name>whatsThis</name>
1055 <string>At what battery level should the critical power warning pop up</string> 1071 <string>At what battery level should the critical power warning pop up</string>
1056 </property> 1072 </property>
1057 </widget> 1073 </widget>
1058 <widget row="1" column="0" > 1074 <widget row="1" column="0" >
1059 <class>QLabel</class> 1075 <class>QLabel</class>
1060 <property stdset="1"> 1076 <property stdset="1">
1061 <name>name</name> 1077 <name>name</name>
1062 <cstring>TextLabel2</cstring> 1078 <cstring>TextLabel2</cstring>
1063 </property> 1079 </property>
1064 <property stdset="1"> 1080 <property stdset="1">
1065 <name>text</name> 1081 <name>text</name>
1066 <string>very low battery 1082 <string>very low battery
1067warning at</string> 1083warning at</string>
1068 </property> 1084 </property>
1069 </widget> 1085 </widget>
1070 <widget row="2" column="0" > 1086 <widget row="2" column="0" >
1071 <class>QLabel</class> 1087 <class>QLabel</class>
1072 <property stdset="1"> 1088 <property stdset="1">
1073 <name>name</name> 1089 <name>name</name>
1074 <cstring>TextLabel3</cstring> 1090 <cstring>TextLabel3</cstring>
1075 </property> 1091 </property>
1076 <property stdset="1"> 1092 <property stdset="1">
1077 <name>text</name> 1093 <name>text</name>
1078 <string>critical power 1094 <string>critical power
1079warning at</string> 1095warning at</string>
1080 </property> 1096 </property>
1081 </widget> 1097 </widget>
1082 </grid> 1098 </grid>
1083 </widget> 1099 </widget>
1084 </vbox> 1100 </vbox>
1085 </widget> 1101 </widget>
1086 <widget> 1102 <widget>
1087 <class>QGroupBox</class> 1103 <class>QGroupBox</class>
1088 <property stdset="1"> 1104 <property stdset="1">
1089 <name>name</name> 1105 <name>name</name>
1090 <cstring>LightSensorGroupBox</cstring> 1106 <cstring>LightSensorGroupBox</cstring>
1091 </property> 1107 </property>
1092 <property stdset="1"> 1108 <property stdset="1">
1093 <name>title</name> 1109 <name>title</name>
1094 <string>iPAQ Light Sensor (127 steps)</string> 1110 <string>iPAQ Light Sensor (127 steps)</string>
1095 </property> 1111 </property>
1096 <property> 1112 <property>
1097 <name>layoutMargin</name> 1113 <name>layoutMargin</name>
1098 </property> 1114 </property>
1099 <property> 1115 <property>
1100 <name>layoutSpacing</name> 1116 <name>layoutSpacing</name>
1101 </property> 1117 </property>
1102 <vbox> 1118 <vbox>
1103 <property stdset="1"> 1119 <property stdset="1">
1104 <name>margin</name> 1120 <name>margin</name>
1105 <number>3</number> 1121 <number>3</number>
1106 </property> 1122 </property>
1107 <property stdset="1"> 1123 <property stdset="1">
1108 <name>spacing</name> 1124 <name>spacing</name>
1109 <number>3</number> 1125 <number>3</number>
1110 </property> 1126 </property>
1111 <widget> 1127 <widget>
1112 <class>QLayoutWidget</class> 1128 <class>QLayoutWidget</class>
1113 <property stdset="1"> 1129 <property stdset="1">
1114 <name>name</name> 1130 <name>name</name>
1115 <cstring>Layout7</cstring> 1131 <cstring>Layout7</cstring>
1116 </property> 1132 </property>
1117 <hbox> 1133 <hbox>
1118 <property stdset="1"> 1134 <property stdset="1">
1119 <name>margin</name> 1135 <name>margin</name>
1120 <number>0</number> 1136 <number>0</number>
1121 </property> 1137 </property>
1122 <property stdset="1"> 1138 <property stdset="1">
1123 <name>spacing</name> 1139 <name>spacing</name>
1124 <number>6</number> 1140 <number>6</number>
1125 </property> 1141 </property>
1126 <widget> 1142 <widget>
1127 <class>QLabel</class> 1143 <class>QLabel</class>
1128 <property stdset="1"> 1144 <property stdset="1">
1129 <name>name</name> 1145 <name>name</name>
1130 <cstring>TextLabel9</cstring> 1146 <cstring>TextLabel9</cstring>
1131 </property> 1147 </property>
1132 <property stdset="1"> 1148 <property stdset="1">
1133 <name>text</name> 1149 <name>text</name>
1134 <string>Steps</string> 1150 <string>Steps</string>
1135 </property> 1151 </property>
1136 </widget> 1152 </widget>
1137 <widget> 1153 <widget>
1138 <class>QSpinBox</class> 1154 <class>QSpinBox</class>
1139 <property stdset="1"> 1155 <property stdset="1">
1140 <name>name</name> 1156 <name>name</name>
1141 <cstring>LightStepSpin</cstring> 1157 <cstring>LightStepSpin</cstring>
1142 </property> 1158 </property>
1143 <property stdset="1"> 1159 <property stdset="1">
1144 <name>maxValue</name> 1160 <name>maxValue</name>
1145 <number>126</number> 1161 <number>126</number>
1146 </property> 1162 </property>
1147 <property stdset="1"> 1163 <property stdset="1">
1148 <name>minValue</name> 1164 <name>minValue</name>
1149 <number>1</number> 1165 <number>1</number>
1150 </property> 1166 </property>
1151 <property> 1167 <property>
1152 <name>whatsThis</name> 1168 <name>whatsThis</name>
1153 <string>How many different steps should be handled by the light sensor. Values between 1 and 126 are allowed.</string> 1169 <string>How many different steps should be handled by the light sensor. Values between 1 and 126 are allowed.</string>
1154 </property> 1170 </property>
1155 </widget> 1171 </widget>
1156 </hbox> 1172 </hbox>
1157 </widget> 1173 </widget>
1158 <widget> 1174 <widget>
1159 <class>QLabel</class> 1175 <class>QLabel</class>
1160 <property stdset="1"> 1176 <property stdset="1">
1161 <name>name</name> 1177 <name>name</name>
1162 <cstring>TextLabel10</cstring> 1178 <cstring>TextLabel10</cstring>
1163 </property> 1179 </property>
1164 <property stdset="1"> 1180 <property stdset="1">
1165 <name>text</name> 1181 <name>text</name>
1166 <string>Minimum value to turn display on</string> 1182 <string>Minimum value to turn display on</string>
1167 </property> 1183 </property>
1168 </widget> 1184 </widget>
1169 <widget> 1185 <widget>
1170 <class>QLayoutWidget</class> 1186 <class>QLayoutWidget</class>
1171 <property stdset="1"> 1187 <property stdset="1">
1172 <name>name</name> 1188 <name>name</name>
1173 <cstring>Layout9</cstring> 1189 <cstring>Layout9</cstring>
1174 </property> 1190 </property>
1175 <hbox> 1191 <hbox>
1176 <property stdset="1"> 1192 <property stdset="1">
1177 <name>margin</name> 1193 <name>margin</name>
1178 <number>0</number> 1194 <number>0</number>
1179 </property> 1195 </property>
1180 <property stdset="1"> 1196 <property stdset="1">
1181 <name>spacing</name> 1197 <name>spacing</name>
1182 <number>6</number> 1198 <number>6</number>
1183 </property> 1199 </property>
1184 <widget> 1200 <widget>
1185 <class>QLabel</class> 1201 <class>QLabel</class>
1186 <property stdset="1"> 1202 <property stdset="1">
1187 <name>name</name> 1203 <name>name</name>
1188 <cstring>PixmapLabel2_2</cstring> 1204 <cstring>PixmapLabel2_2</cstring>
1189 </property> 1205 </property>
1190 <property stdset="1"> 1206 <property stdset="1">
1191 <name>pixmap</name> 1207 <name>pixmap</name>
1192 <pixmap>image0</pixmap> 1208 <pixmap>image0</pixmap>
1193 </property> 1209 </property>
1194 <property stdset="1"> 1210 <property stdset="1">
1195 <name>scaledContents</name> 1211 <name>scaledContents</name>
1196 <bool>false</bool> 1212 <bool>false</bool>
1197 </property> 1213 </property>
1198 </widget> 1214 </widget>
1199 <widget> 1215 <widget>
1200 <class>QSlider</class> 1216 <class>QSlider</class>
1201 <property stdset="1"> 1217 <property stdset="1">
1202 <name>name</name> 1218 <name>name</name>
1203 <cstring>LightMinValueSlider</cstring> 1219 <cstring>LightMinValueSlider</cstring>
1204 </property> 1220 </property>
1205 <property stdset="1"> 1221 <property stdset="1">
1206 <name>maxValue</name> 1222 <name>maxValue</name>
1207 <number>127</number> 1223 <number>127</number>
1208 </property> 1224 </property>
1209 <property stdset="1"> 1225 <property stdset="1">
1226 <name>tracking</name>
1227 <bool>false</bool>
1228 </property>
1229 <property stdset="1">
1210 <name>orientation</name> 1230 <name>orientation</name>
1211 <enum>Horizontal</enum> 1231 <enum>Horizontal</enum>
1212 </property> 1232 </property>
1213 <property stdset="1"> 1233 <property stdset="1">
1214 <name>tickmarks</name> 1234 <name>tickmarks</name>
1215 <enum>Right</enum> 1235 <enum>Right</enum>
1216 </property> 1236 </property>
1217 </widget> 1237 </widget>
1218 <widget> 1238 <widget>
1219 <class>QLabel</class> 1239 <class>QLabel</class>
1220 <property stdset="1"> 1240 <property stdset="1">
1221 <name>name</name> 1241 <name>name</name>
1222 <cstring>PixmapLabel1_2</cstring> 1242 <cstring>PixmapLabel1_2</cstring>
1223 </property> 1243 </property>
1224 <property stdset="1"> 1244 <property stdset="1">
1225 <name>pixmap</name> 1245 <name>pixmap</name>
1226 <pixmap>image1</pixmap> 1246 <pixmap>image1</pixmap>
1227 </property> 1247 </property>
1228 <property stdset="1"> 1248 <property stdset="1">
1229 <name>scaledContents</name> 1249 <name>scaledContents</name>
1230 <bool>false</bool> 1250 <bool>false</bool>
1231 </property> 1251 </property>
1232 </widget> 1252 </widget>
1233 </hbox> 1253 </hbox>
1234 </widget> 1254 </widget>
1235 <widget> 1255 <widget>
1236 <class>QLayoutWidget</class> 1256 <class>QLayoutWidget</class>
1237 <property stdset="1"> 1257 <property stdset="1">
1238 <name>name</name> 1258 <name>name</name>
1239 <cstring>Layout8</cstring> 1259 <cstring>Layout8</cstring>
1240 </property> 1260 </property>
1241 <hbox> 1261 <hbox>
1242 <property stdset="1"> 1262 <property stdset="1">
1243 <name>margin</name> 1263 <name>margin</name>
1244 <number>0</number> 1264 <number>0</number>
1245 </property> 1265 </property>
1246 <property stdset="1"> 1266 <property stdset="1">
1247 <name>spacing</name> 1267 <name>spacing</name>
1248 <number>6</number> 1268 <number>6</number>
1249 </property> 1269 </property>
1250 <widget> 1270 <widget>
1251 <class>QLabel</class> 1271 <class>QLabel</class>
1252 <property stdset="1"> 1272 <property stdset="1">
1253 <name>name</name> 1273 <name>name</name>
1254 <cstring>TextLabel11</cstring> 1274 <cstring>TextLabel11</cstring>
1255 </property> 1275 </property>
1256 <property stdset="1"> 1276 <property stdset="1">
1257 <name>text</name> 1277 <name>text</name>
1258 <string>Shift</string> 1278 <string>Shift</string>
1259 </property> 1279 </property>
1260 </widget> 1280 </widget>
1261 <widget> 1281 <widget>
1262 <class>QSpinBox</class> 1282 <class>QSpinBox</class>
1263 <property stdset="1"> 1283 <property stdset="1">
1264 <name>name</name> 1284 <name>name</name>
1265 <cstring>LightShiftSpin</cstring> 1285 <cstring>LightShiftSpin</cstring>
1266 </property> 1286 </property>
1267 <property stdset="1"> 1287 <property stdset="1">
1268 <name>maxValue</name> 1288 <name>maxValue</name>
1269 <number>126</number> 1289 <number>126</number>
1270 </property> 1290 </property>
1271 </widget> 1291 </widget>
1272 </hbox> 1292 </hbox>
1273 </widget> 1293 </widget>
1274 </vbox> 1294 </vbox>
1275 </widget> 1295 </widget>
1276 <spacer> 1296 <spacer>
1277 <property> 1297 <property>
1278 <name>name</name> 1298 <name>name</name>
1279 <cstring>Spacer1</cstring> 1299 <cstring>Spacer1</cstring>
1280 </property> 1300 </property>
1281 <property stdset="1"> 1301 <property stdset="1">
1282 <name>orientation</name> 1302 <name>orientation</name>
1283 <enum>Vertical</enum> 1303 <enum>Vertical</enum>
1284 </property> 1304 </property>
1285 <property stdset="1"> 1305 <property stdset="1">
1286 <name>sizeType</name> 1306 <name>sizeType</name>
1287 <enum>Expanding</enum> 1307 <enum>Expanding</enum>
1288 </property> 1308 </property>
1289 <property> 1309 <property>
1290 <name>sizeHint</name> 1310 <name>sizeHint</name>
1291 <size> 1311 <size>
1292 <width>20</width> 1312 <width>20</width>
1293 <height>20</height> 1313 <height>20</height>
1294 </size> 1314 </size>
1295 </property> 1315 </property>
1296 </spacer> 1316 </spacer>
1297 </vbox> 1317 </vbox>
1298 </widget> 1318 </widget>
1299 </widget> 1319 </widget>
1300 </vbox> 1320 </vbox>
1301</widget> 1321</widget>
1302<images> 1322<images>
1303 <image> 1323 <image>
1304 <name>image0</name> 1324 <name>image0</name>
1305 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data> 1325 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data>
1306 </image> 1326 </image>
1307 <image> 1327 <image>
1308 <name>image1</name> 1328 <name>image1</name>
1309 <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> 1329 <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data>
1310 </image> 1330 </image>
1311 <image> 1331 <image>
1312 <name>image2</name> 1332 <name>image2</name>
1313 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> 1333 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data>
1314 </image> 1334 </image>
1315</images> 1335</images>
1316<connections> 1336<connections>
1317 <connection> 1337 <connection>
1318 <sender>screensaver_dim</sender> 1338 <sender>screensaver_dim</sender>
1319 <signal>toggled(bool)</signal> 1339 <signal>toggled(bool)</signal>
1320 <receiver>interval_dim</receiver> 1340 <receiver>interval_dim</receiver>
1321 <slot>setEnabled(bool)</slot> 1341 <slot>setEnabled(bool)</slot>
1322 </connection> 1342 </connection>
1323 <connection> 1343 <connection>
1324 <sender>screensaver_lightoff</sender> 1344 <sender>screensaver_lightoff</sender>
1325 <signal>toggled(bool)</signal> 1345 <signal>toggled(bool)</signal>
1326 <receiver>interval_lightoff</receiver> 1346 <receiver>interval_lightoff</receiver>
1327 <slot>setEnabled(bool)</slot> 1347 <slot>setEnabled(bool)</slot>
1328 </connection> 1348 </connection>
1329</connections> 1349</connections>
1330<tabstops> 1350<tabstops>
1331 <tabstop>auto_brightness</tabstop> 1351 <tabstop>auto_brightness</tabstop>
1332 <tabstop>screensaver_dim</tabstop> 1352 <tabstop>screensaver_dim</tabstop>
1333 <tabstop>interval_dim</tabstop> 1353 <tabstop>interval_dim</tabstop>
1334 <tabstop>screensaver_lightoff</tabstop> 1354 <tabstop>screensaver_lightoff</tabstop>
1335 <tabstop>interval_lightoff</tabstop> 1355 <tabstop>interval_lightoff</tabstop>
1336 <tabstop>interval_suspend</tabstop> 1356 <tabstop>interval_suspend</tabstop>
1337 <tabstop>brightness</tabstop> 1357 <tabstop>brightness</tabstop>
1338</tabstops> 1358</tabstops>
1339</UI> 1359</UI>
diff --git a/core/settings/light-and-power/settings.h b/core/settings/light-and-power/settings.h
index 77f90d6..adfd735 100644
--- a/core/settings/light-and-power/settings.h
+++ b/core/settings/light-and-power/settings.h
@@ -1,54 +1,55 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#ifndef SETTINGS_H 20#ifndef SETTINGS_H
21#define SETTINGS_H 21#define SETTINGS_H
22 22
23 23
24#include <qstrlist.h> 24#include <qstrlist.h>
25#include <qasciidict.h> 25#include <qasciidict.h>
26#include "lightsettingsbase.h" 26#include "lightsettingsbase.h"
27 27
28 28
29class LightSettings : public LightSettingsBase 29class LightSettings : public LightSettingsBase
30{ 30{
31 Q_OBJECT 31 Q_OBJECT
32 32
33public: 33public:
34 LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 34 LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
35 ~LightSettings(); 35 ~LightSettings();
36 36
37protected: 37protected:
38 void accept(); 38 void accept();
39 void reject(); 39 void reject();
40 40
41 void done ( int r ); 41 void done ( int r );
42 42
43private slots: 43private slots:
44 void applyBrightness(); 44 void applyBrightness();
45 void applyBrightnessAC();
45 void slotSliderTicks( int steps ); 46 void slotSliderTicks( int steps );
46 47
47private: 48private:
48 int initbright; 49 int initbright;
49 int initbright_ac; 50 int initbright_ac;
50}; 51};
51 52
52 53
53#endif // SETTINGS_H 54#endif // SETTINGS_H
54 55