summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-17 03:19:16 (UTC)
committer llornkcor <llornkcor>2002-04-17 03:19:16 (UTC)
commit530f334d28c6156c4a50ba072b6d638a507c9686 (patch) (unidiff)
treee364ab2ccce7c4c4e76cbdba1629ccf5d07e1a80
parent2d9c872bd5ae7eb5c42a7e9954cec793db0ea729 (diff)
downloadopie-530f334d28c6156c4a50ba072b6d638a507c9686.zip
opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.gz
opie-530f334d28c6156c4a50ba072b6d638a507c9686.tar.bz2
LCD only off on suspend patch
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp2
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui63
2 files changed, 39 insertions, 26 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 24e1fab..960a165 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -1,133 +1,135 @@
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#include "settings.h" 20#include "settings.h"
21 21
22#include <qpe/global.h> 22#include <qpe/global.h>
23#include <qpe/fontmanager.h> 23#include <qpe/fontmanager.h>
24#include <qpe/config.h> 24#include <qpe/config.h>
25#include <qpe/applnk.h> 25#include <qpe/applnk.h>
26#include <qpe/qpeapplication.h> 26#include <qpe/qpeapplication.h>
27#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 27#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
28#include <qpe/qcopenvelope_qws.h> 28#include <qpe/qcopenvelope_qws.h>
29#endif 29#endif
30 30
31#include <qlabel.h> 31#include <qlabel.h>
32#include <qcheckbox.h> 32#include <qcheckbox.h>
33#include <qradiobutton.h> 33#include <qradiobutton.h>
34#include <qtabwidget.h> 34#include <qtabwidget.h>
35#include <qslider.h> 35#include <qslider.h>
36#include <qfile.h> 36#include <qfile.h>
37#include <qtextstream.h> 37#include <qtextstream.h>
38#include <qdatastream.h> 38#include <qdatastream.h>
39#include <qmessagebox.h> 39#include <qmessagebox.h>
40#include <qcombobox.h> 40#include <qcombobox.h>
41#include <qspinbox.h> 41#include <qspinbox.h>
42#include <qlistbox.h> 42#include <qlistbox.h>
43#include <qdir.h> 43#include <qdir.h>
44#if QT_VERSION >= 300 44#if QT_VERSION >= 300
45#include <qstylefactory.h> 45#include <qstylefactory.h>
46#endif 46#endif
47 47
48extern int qpe_sysBrightnessSteps(); 48extern int qpe_sysBrightnessSteps();
49 49
50LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) 50LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
51 : LightSettingsBase( parent, name, TRUE, fl ) 51 : LightSettingsBase( parent, name, TRUE, fl )
52{ 52{
53 // Not supported 53 // Not supported
54 auto_brightness->hide(); 54 auto_brightness->hide();
55 55
56 Config config( "qpe" ); 56 Config config( "qpe" );
57 57
58 config.setGroup( "Screensaver" ); 58 config.setGroup( "Screensaver" );
59 59
60 int interval; 60 int interval;
61 interval = config.readNumEntry( "Interval_Dim", 30 ); 61 interval = config.readNumEntry( "Interval_Dim", 30 );
62 interval_dim->setValue( interval ); 62 interval_dim->setValue( interval );
63 interval = config.readNumEntry( "Interval_LightOff", 20 ); 63 interval = config.readNumEntry( "Interval_LightOff", 20 );
64 interval_lightoff->setValue( interval ); 64 interval_lightoff->setValue( interval );
65 interval = config.readNumEntry( "Interval", 60 ); 65 interval = config.readNumEntry( "Interval", 60 );
66 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) 66 if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs)
67 interval_suspend->setValue( interval ); 67 interval_suspend->setValue( interval );
68 68
69 screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); 69 screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 );
70 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); 70 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 );
71 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
71 int maxbright = qpe_sysBrightnessSteps(); 72 int maxbright = qpe_sysBrightnessSteps();
72 initbright = config.readNumEntry("Brightness",255); 73 initbright = config.readNumEntry("Brightness",255);
73 brightness->setMaxValue( maxbright ); 74 brightness->setMaxValue( maxbright );
74 brightness->setTickInterval( QMAX(1,maxbright/16) ); 75 brightness->setTickInterval( QMAX(1,maxbright/16) );
75 brightness->setLineStep( QMAX(1,maxbright/16) ); 76 brightness->setLineStep( QMAX(1,maxbright/16) );
76 brightness->setPageStep( QMAX(1,maxbright/16) ); 77 brightness->setPageStep( QMAX(1,maxbright/16) );
77 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); 78 brightness->setValue( (maxbright*255 - initbright*maxbright)/255 );
78 79
79 connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness())); 80 connect(brightness, SIGNAL(valueChanged(int)), this, SLOT(applyBrightness()));
80} 81}
81 82
82LightSettings::~LightSettings() 83LightSettings::~LightSettings()
83{ 84{
84} 85}
85 86
86static void set_fl(int bright) 87static void set_fl(int bright)
87{ 88{
88 QCopEnvelope e("QPE/System", "setBacklight(int)" ); 89 QCopEnvelope e("QPE/System", "setBacklight(int)" );
89 e << bright; 90 e << bright;
90} 91}
91 92
92void LightSettings::reject() 93void LightSettings::reject()
93{ 94{
94 set_fl(initbright); 95 set_fl(initbright);
95 96
96 QDialog::reject(); 97 QDialog::reject();
97} 98}
98 99
99void LightSettings::accept() 100void LightSettings::accept()
100{ 101{
101 if ( qApp->focusWidget() ) 102 if ( qApp->focusWidget() )
102 qApp->focusWidget()->clearFocus(); 103 qApp->focusWidget()->clearFocus();
103 104
104 applyBrightness(); 105 applyBrightness();
105 106
106 int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); 107 int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0);
107 int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); 108 int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0);
108 int i_suspend = interval_suspend->value(); 109 int i_suspend = interval_suspend->value();
109 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); 110 QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" );
110 e << i_dim << i_lightoff << i_suspend; 111 e << i_dim << i_lightoff << i_suspend;
111 112
112 Config config( "qpe" ); 113 Config config( "qpe" );
113 config.setGroup( "Screensaver" ); 114 config.setGroup( "Screensaver" );
114 config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); 115 config.writeEntry( "Dim", (int)screensaver_dim->isChecked() );
115 config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); 116 config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() );
117 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() );
116 config.writeEntry( "Interval_Dim", interval_dim->value() ); 118 config.writeEntry( "Interval_Dim", interval_dim->value() );
117 config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); 119 config.writeEntry( "Interval_LightOff", interval_lightoff->value() );
118 config.writeEntry( "Interval", interval_suspend->value() ); 120 config.writeEntry( "Interval", interval_suspend->value() );
119 config.writeEntry( "Brightness", 121 config.writeEntry( "Brightness",
120 (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); 122 (brightness->maxValue()-brightness->value())*255/brightness->maxValue() );
121 config.write(); 123 config.write();
122 124
123 QDialog::accept(); 125 QDialog::accept();
124} 126}
125 127
126void LightSettings::applyBrightness() 128void LightSettings::applyBrightness()
127{ 129{
128 int bright = (brightness->maxValue()-brightness->value())*255 130 int bright = (brightness->maxValue()-brightness->value())*255
129 / brightness->maxValue(); 131 / brightness->maxValue();
130 set_fl(bright); 132 set_fl(bright);
131} 133}
132 134
133 135
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index 47775f7..f2a4552 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -1,471 +1,482 @@
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>256</width> 14 <width>269</width>
15 <height>316</height> 15 <height>317</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 Settings</string> 20 <string>Light Settings</string>
21 </property> 21 </property>
22 <property> 22 <property>
23 <name>layoutMargin</name> 23 <name>layoutMargin</name>
24 </property> 24 </property>
25 <vbox> 25 <vbox>
26 <property stdset="1"> 26 <property stdset="1">
27 <name>margin</name> 27 <name>margin</name>
28 <number>7</number> 28 <number>7</number>
29 </property> 29 </property>
30 <property stdset="1"> 30 <property stdset="1">
31 <name>spacing</name> 31 <name>spacing</name>
32 <number>6</number> 32 <number>6</number>
33 </property> 33 </property>
34 <widget> 34 <widget>
35 <class>QCheckBox</class> 35 <class>QCheckBox</class>
36 <property stdset="1"> 36 <property stdset="1">
37 <name>name</name> 37 <name>name</name>
38 <cstring>auto_brightness</cstring> 38 <cstring>auto_brightness</cstring>
39 </property> 39 </property>
40 <property stdset="1"> 40 <property stdset="1">
41 <name>text</name> 41 <name>text</name>
42 <string>Adjust to environment</string> 42 <string>Adjust to environment</string>
43 </property> 43 </property>
44 <property> 44 <property>
45 <name>whatsThis</name> 45 <name>whatsThis</name>
46 <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> 46 <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>
47 </property> 47 </property>
48 </widget> 48 </widget>
49 <widget> 49 <widget>
50 <class>QGroupBox</class> 50 <class>QGroupBox</class>
51 <property stdset="1"> 51 <property stdset="1">
52 <name>name</name> 52 <name>name</name>
53 <cstring>GroupBox3</cstring> 53 <cstring>GroupBox3</cstring>
54 </property> 54 </property>
55 <property stdset="1"> 55 <property stdset="1">
56 <name>title</name> 56 <name>title</name>
57 <string>Power saving</string> 57 <string>Power saving</string>
58 </property> 58 </property>
59 <property> 59 <property>
60 <name>layoutMargin</name> 60 <name>layoutMargin</name>
61 </property> 61 </property>
62 <property> 62 <property>
63 <name>layoutSpacing</name> 63 <name>layoutSpacing</name>
64 </property> 64 </property>
65 <grid> 65 <grid>
66 <property stdset="1"> 66 <property stdset="1">
67 <name>margin</name> 67 <name>margin</name>
68 <number>6</number> 68 <number>11</number>
69 </property> 69 </property>
70 <property stdset="1"> 70 <property stdset="1">
71 <name>spacing</name> 71 <name>spacing</name>
72 <number>3</number> 72 <number>6</number>
73 </property> 73 </property>
74 <widget row="1" column="1" > 74 <widget row="1" column="1" >
75 <class>QSpinBox</class> 75 <class>QSpinBox</class>
76 <property stdset="1"> 76 <property stdset="1">
77 <name>name</name> 77 <name>name</name>
78 <cstring>interval_lightoff</cstring> 78 <cstring>interval_lightoff</cstring>
79 </property> 79 </property>
80 <property stdset="1"> 80 <property stdset="1">
81 <name>suffix</name> 81 <name>suffix</name>
82 <string> seconds</string> 82 <string> seconds</string>
83 </property> 83 </property>
84 <property stdset="1"> 84 <property stdset="1">
85 <name>buttonSymbols</name> 85 <name>buttonSymbols</name>
86 <enum>PlusMinus</enum> 86 <enum>PlusMinus</enum>
87 </property> 87 </property>
88 <property stdset="1"> 88 <property stdset="1">
89 <name>maxValue</name> 89 <name>maxValue</name>
90 <number>3600</number> 90 <number>3600</number>
91 </property> 91 </property>
92 <property stdset="1"> 92 <property stdset="1">
93 <name>minValue</name> 93 <name>minValue</name>
94 <number>10</number> 94 <number>10</number>
95 </property> 95 </property>
96 <property stdset="1"> 96 <property stdset="1">
97 <name>lineStep</name> 97 <name>lineStep</name>
98 <number>15</number> 98 <number>15</number>
99 </property> 99 </property>
100 </widget> 100 </widget>
101 <widget row="2" column="1" > 101 <widget row="2" column="1" >
102 <class>QSpinBox</class> 102 <class>QSpinBox</class>
103 <property stdset="1"> 103 <property stdset="1">
104 <name>name</name> 104 <name>name</name>
105 <cstring>interval_suspend</cstring> 105 <cstring>interval_suspend</cstring>
106 </property> 106 </property>
107 <property stdset="1"> 107 <property stdset="1">
108 <name>suffix</name> 108 <name>suffix</name>
109 <string> seconds</string> 109 <string> seconds</string>
110 </property> 110 </property>
111 <property stdset="1"> 111 <property stdset="1">
112 <name>buttonSymbols</name> 112 <name>buttonSymbols</name>
113 <enum>PlusMinus</enum> 113 <enum>PlusMinus</enum>
114 </property> 114 </property>
115 <property stdset="1"> 115 <property stdset="1">
116 <name>maxValue</name> 116 <name>maxValue</name>
117 <number>3600</number> 117 <number>3600</number>
118 </property> 118 </property>
119 <property stdset="1"> 119 <property stdset="1">
120 <name>minValue</name> 120 <name>minValue</name>
121 <number>10</number> 121 <number>10</number>
122 </property> 122 </property>
123 <property stdset="1"> 123 <property stdset="1">
124 <name>lineStep</name> 124 <name>lineStep</name>
125 <number>15</number> 125 <number>15</number>
126 </property> 126 </property>
127 </widget> 127 </widget>
128 <widget row="1" column="0" >
129 <class>QCheckBox</class>
130 <property stdset="1">
131 <name>name</name>
132 <cstring>screensaver_lightoff</cstring>
133 </property>
134 <property stdset="1">
135 <name>sizePolicy</name>
136 <sizepolicy>
137 <hsizetype>1</hsizetype>
138 <vsizetype>0</vsizetype>
139 </sizepolicy>
140 </property>
141 <property stdset="1">
142 <name>text</name>
143 <string>Light off after</string>
144 </property>
145 <property stdset="1">
146 <name>checked</name>
147 <bool>true</bool>
148 </property>
149 </widget>
150 <widget row="0" column="0" > 128 <widget row="0" column="0" >
151 <class>QCheckBox</class> 129 <class>QCheckBox</class>
152 <property stdset="1"> 130 <property stdset="1">
153 <name>name</name> 131 <name>name</name>
154 <cstring>screensaver_dim</cstring> 132 <cstring>screensaver_dim</cstring>
155 </property> 133 </property>
156 <property stdset="1"> 134 <property stdset="1">
157 <name>sizePolicy</name> 135 <name>sizePolicy</name>
158 <sizepolicy> 136 <sizepolicy>
159 <hsizetype>1</hsizetype> 137 <hsizetype>1</hsizetype>
160 <vsizetype>0</vsizetype> 138 <vsizetype>0</vsizetype>
161 </sizepolicy> 139 </sizepolicy>
162 </property> 140 </property>
163 <property stdset="1"> 141 <property stdset="1">
164 <name>text</name> 142 <name>text</name>
165 <string>Dim light after</string> 143 <string>Dim light after</string>
166 </property> 144 </property>
167 <property stdset="1"> 145 <property stdset="1">
168 <name>checked</name> 146 <name>checked</name>
169 <bool>true</bool> 147 <bool>true</bool>
170 </property> 148 </property>
171 </widget> 149 </widget>
172 <widget row="0" column="1" > 150 <widget row="0" column="1" >
173 <class>QSpinBox</class> 151 <class>QSpinBox</class>
174 <property stdset="1"> 152 <property stdset="1">
175 <name>name</name> 153 <name>name</name>
176 <cstring>interval_dim</cstring> 154 <cstring>interval_dim</cstring>
177 </property> 155 </property>
178 <property stdset="1"> 156 <property stdset="1">
179 <name>suffix</name> 157 <name>suffix</name>
180 <string> seconds</string> 158 <string> seconds</string>
181 </property> 159 </property>
182 <property stdset="1"> 160 <property stdset="1">
183 <name>buttonSymbols</name> 161 <name>buttonSymbols</name>
184 <enum>PlusMinus</enum> 162 <enum>PlusMinus</enum>
185 </property> 163 </property>
186 <property stdset="1"> 164 <property stdset="1">
187 <name>maxValue</name> 165 <name>maxValue</name>
188 <number>3600</number> 166 <number>3600</number>
189 </property> 167 </property>
190 <property stdset="1"> 168 <property stdset="1">
191 <name>minValue</name> 169 <name>minValue</name>
192 <number>10</number> 170 <number>10</number>
193 </property> 171 </property>
194 <property stdset="1"> 172 <property stdset="1">
195 <name>lineStep</name> 173 <name>lineStep</name>
196 <number>15</number> 174 <number>15</number>
197 </property> 175 </property>
198 </widget> 176 </widget>
199 <widget row="2" column="0" > 177 <widget row="2" column="0" >
200 <class>QLabel</class> 178 <class>QLabel</class>
201 <property stdset="1"> 179 <property stdset="1">
202 <name>name</name> 180 <name>name</name>
203 <cstring>TextLabel1_2</cstring> 181 <cstring>TextLabel1_2</cstring>
204 </property> 182 </property>
205 <property stdset="1"> 183 <property stdset="1">
206 <name>text</name> 184 <name>text</name>
207 <string>Suspend after</string> 185 <string>Suspend after</string>
208 </property> 186 </property>
209 </widget> 187 </widget>
188 <widget row="3" column="0" rowspan="1" colspan="2" >
189 <class>QCheckBox</class>
190 <property stdset="1">
191 <name>name</name>
192 <cstring>LcdOffOnly</cstring>
193 </property>
194 <property stdset="1">
195 <name>text</name>
196 <string>Only deactivate LCD during Suspend</string>
197 </property>
198 </widget>
199 <widget row="1" column="0" >
200 <class>QCheckBox</class>
201 <property stdset="1">
202 <name>name</name>
203 <cstring>screensaver_lightoff</cstring>
204 </property>
205 <property stdset="1">
206 <name>sizePolicy</name>
207 <sizepolicy>
208 <hsizetype>1</hsizetype>
209 <vsizetype>0</vsizetype>
210 </sizepolicy>
211 </property>
212 <property stdset="1">
213 <name>text</name>
214 <string>Light off after</string>
215 </property>
216 <property stdset="1">
217 <name>checked</name>
218 <bool>true</bool>
219 </property>
220 </widget>
210 </grid> 221 </grid>
211 </widget> 222 </widget>
212 <widget> 223 <widget>
213 <class>QLayoutWidget</class> 224 <class>QLayoutWidget</class>
214 <property stdset="1"> 225 <property stdset="1">
215 <name>name</name> 226 <name>name</name>
216 <cstring>Layout18</cstring> 227 <cstring>Layout18</cstring>
217 </property> 228 </property>
218 <property> 229 <property>
219 <name>layoutMargin</name> 230 <name>layoutMargin</name>
220 </property> 231 </property>
221 <hbox> 232 <hbox>
222 <property stdset="1"> 233 <property stdset="1">
223 <name>margin</name> 234 <name>margin</name>
224 <number>0</number> 235 <number>0</number>
225 </property> 236 </property>
226 <property stdset="1"> 237 <property stdset="1">
227 <name>spacing</name> 238 <name>spacing</name>
228 <number>6</number> 239 <number>6</number>
229 </property> 240 </property>
230 <widget> 241 <widget>
231 <class>QSlider</class> 242 <class>QSlider</class>
232 <property stdset="1"> 243 <property stdset="1">
233 <name>name</name> 244 <name>name</name>
234 <cstring>brightness</cstring> 245 <cstring>brightness</cstring>
235 </property> 246 </property>
236 <property stdset="1"> 247 <property stdset="1">
237 <name>maxValue</name> 248 <name>maxValue</name>
238 <number>255</number> 249 <number>255</number>
239 </property> 250 </property>
240 <property stdset="1"> 251 <property stdset="1">
241 <name>lineStep</name> 252 <name>lineStep</name>
242 <number>16</number> 253 <number>16</number>
243 </property> 254 </property>
244 <property stdset="1"> 255 <property stdset="1">
245 <name>pageStep</name> 256 <name>pageStep</name>
246 <number>16</number> 257 <number>16</number>
247 </property> 258 </property>
248 <property stdset="1"> 259 <property stdset="1">
249 <name>orientation</name> 260 <name>orientation</name>
250 <enum>Vertical</enum> 261 <enum>Vertical</enum>
251 </property> 262 </property>
252 <property stdset="1"> 263 <property stdset="1">
253 <name>tickmarks</name> 264 <name>tickmarks</name>
254 <enum>Right</enum> 265 <enum>Right</enum>
255 </property> 266 </property>
256 <property stdset="1"> 267 <property stdset="1">
257 <name>tickInterval</name> 268 <name>tickInterval</name>
258 <number>32</number> 269 <number>32</number>
259 </property> 270 </property>
260 </widget> 271 </widget>
261 <widget> 272 <widget>
262 <class>QLayoutWidget</class> 273 <class>QLayoutWidget</class>
263 <property stdset="1"> 274 <property stdset="1">
264 <name>name</name> 275 <name>name</name>
265 <cstring>Layout16</cstring> 276 <cstring>Layout16</cstring>
266 </property> 277 </property>
267 <property> 278 <property>
268 <name>layoutSpacing</name> 279 <name>layoutSpacing</name>
269 </property> 280 </property>
270 <vbox> 281 <vbox>
271 <property stdset="1"> 282 <property stdset="1">
272 <name>margin</name> 283 <name>margin</name>
273 <number>0</number> 284 <number>0</number>
274 </property> 285 </property>
275 <property stdset="1"> 286 <property stdset="1">
276 <name>spacing</name> 287 <name>spacing</name>
277 <number>0</number> 288 <number>0</number>
278 </property> 289 </property>
279 <widget> 290 <widget>
280 <class>QLayoutWidget</class> 291 <class>QLayoutWidget</class>
281 <property stdset="1"> 292 <property stdset="1">
282 <name>name</name> 293 <name>name</name>
283 <cstring>Layout10</cstring> 294 <cstring>Layout10</cstring>
284 </property> 295 </property>
285 <hbox> 296 <hbox>
286 <property stdset="1"> 297 <property stdset="1">
287 <name>margin</name> 298 <name>margin</name>
288 <number>0</number> 299 <number>0</number>
289 </property> 300 </property>
290 <property stdset="1"> 301 <property stdset="1">
291 <name>spacing</name> 302 <name>spacing</name>
292 <number>6</number> 303 <number>6</number>
293 </property> 304 </property>
294 <widget> 305 <widget>
295 <class>QLabel</class> 306 <class>QLabel</class>
296 <property stdset="1"> 307 <property stdset="1">
297 <name>name</name> 308 <name>name</name>
298 <cstring>PixmapLabel1</cstring> 309 <cstring>PixmapLabel1</cstring>
299 </property> 310 </property>
300 <property stdset="1"> 311 <property stdset="1">
301 <name>pixmap</name> 312 <name>pixmap</name>
302 <pixmap>image0</pixmap> 313 <pixmap>image0</pixmap>
303 </property> 314 </property>
304 <property stdset="1"> 315 <property stdset="1">
305 <name>scaledContents</name> 316 <name>scaledContents</name>
306 <bool>false</bool> 317 <bool>false</bool>
307 </property> 318 </property>
308 </widget> 319 </widget>
309 <widget> 320 <widget>
310 <class>QLabel</class> 321 <class>QLabel</class>
311 <property stdset="1"> 322 <property stdset="1">
312 <name>name</name> 323 <name>name</name>
313 <cstring>TextLabel1</cstring> 324 <cstring>TextLabel1</cstring>
314 </property> 325 </property>
315 <property stdset="1"> 326 <property stdset="1">
316 <name>text</name> 327 <name>text</name>
317 <string>Bright</string> 328 <string>Bright</string>
318 </property> 329 </property>
319 </widget> 330 </widget>
320 <spacer> 331 <spacer>
321 <property> 332 <property>
322 <name>name</name> 333 <name>name</name>
323 <cstring>Spacer3</cstring> 334 <cstring>Spacer3</cstring>
324 </property> 335 </property>
325 <property stdset="1"> 336 <property stdset="1">
326 <name>orientation</name> 337 <name>orientation</name>
327 <enum>Horizontal</enum> 338 <enum>Horizontal</enum>
328 </property> 339 </property>
329 <property stdset="1"> 340 <property stdset="1">
330 <name>sizeType</name> 341 <name>sizeType</name>
331 <enum>Expanding</enum> 342 <enum>Expanding</enum>
332 </property> 343 </property>
333 <property> 344 <property>
334 <name>sizeHint</name> 345 <name>sizeHint</name>
335 <size> 346 <size>
336 <width>20</width> 347 <width>20</width>
337 <height>20</height> 348 <height>20</height>
338 </size> 349 </size>
339 </property> 350 </property>
340 </spacer> 351 </spacer>
341 </hbox> 352 </hbox>
342 </widget> 353 </widget>
343 <widget> 354 <widget>
344 <class>QLabel</class> 355 <class>QLabel</class>
345 <property stdset="1"> 356 <property stdset="1">
346 <name>name</name> 357 <name>name</name>
347 <cstring>TextLabel3</cstring> 358 <cstring>TextLabel3</cstring>
348 </property> 359 </property>
349 <property stdset="1"> 360 <property stdset="1">
350 <name>sizePolicy</name> 361 <name>sizePolicy</name>
351 <sizepolicy> 362 <sizepolicy>
352 <hsizetype>5</hsizetype> 363 <hsizetype>5</hsizetype>
353 <vsizetype>7</vsizetype> 364 <vsizetype>7</vsizetype>
354 </sizepolicy> 365 </sizepolicy>
355 </property> 366 </property>
356 <property stdset="1"> 367 <property stdset="1">
357 <name>text</name> 368 <name>text</name>
358 <string>&lt;blockquote&gt;The brighter the screen light, the more battery power is used.&lt;/blockquote&gt;</string> 369 <string>&lt;blockquote&gt;The brighter the screen light, the more battery power is used.&lt;/blockquote&gt;</string>
359 </property> 370 </property>
360 </widget> 371 </widget>
361 <widget> 372 <widget>
362 <class>QLayoutWidget</class> 373 <class>QLayoutWidget</class>
363 <property stdset="1"> 374 <property stdset="1">
364 <name>name</name> 375 <name>name</name>
365 <cstring>Layout9</cstring> 376 <cstring>Layout9</cstring>
366 </property> 377 </property>
367 <hbox> 378 <hbox>
368 <property stdset="1"> 379 <property stdset="1">
369 <name>margin</name> 380 <name>margin</name>
370 <number>0</number> 381 <number>0</number>
371 </property> 382 </property>
372 <property stdset="1"> 383 <property stdset="1">
373 <name>spacing</name> 384 <name>spacing</name>
374 <number>6</number> 385 <number>6</number>
375 </property> 386 </property>
376 <widget> 387 <widget>
377 <class>QLabel</class> 388 <class>QLabel</class>
378 <property stdset="1"> 389 <property stdset="1">
379 <name>name</name> 390 <name>name</name>
380 <cstring>PixmapLabel2</cstring> 391 <cstring>PixmapLabel2</cstring>
381 </property> 392 </property>
382 <property stdset="1"> 393 <property stdset="1">
383 <name>pixmap</name> 394 <name>pixmap</name>
384 <pixmap>image1</pixmap> 395 <pixmap>image1</pixmap>
385 </property> 396 </property>
386 <property stdset="1"> 397 <property stdset="1">
387 <name>scaledContents</name> 398 <name>scaledContents</name>
388 <bool>false</bool> 399 <bool>false</bool>
389 </property> 400 </property>
390 </widget> 401 </widget>
391 <widget> 402 <widget>
392 <class>QLabel</class> 403 <class>QLabel</class>
393 <property stdset="1"> 404 <property stdset="1">
394 <name>name</name> 405 <name>name</name>
395 <cstring>TextLabel2</cstring> 406 <cstring>TextLabel2</cstring>
396 </property> 407 </property>
397 <property stdset="1"> 408 <property stdset="1">
398 <name>text</name> 409 <name>text</name>
399 <string>Off</string> 410 <string>Off</string>
400 </property> 411 </property>
401 <property stdset="1"> 412 <property stdset="1">
402 <name>alignment</name> 413 <name>alignment</name>
403 <set>AlignVCenter|AlignLeft</set> 414 <set>AlignVCenter|AlignLeft</set>
404 </property> 415 </property>
405 <property> 416 <property>
406 <name>vAlign</name> 417 <name>vAlign</name>
407 </property> 418 </property>
408 </widget> 419 </widget>
409 <spacer> 420 <spacer>
410 <property> 421 <property>
411 <name>name</name> 422 <name>name</name>
412 <cstring>Spacer2</cstring> 423 <cstring>Spacer2</cstring>
413 </property> 424 </property>
414 <property stdset="1"> 425 <property stdset="1">
415 <name>orientation</name> 426 <name>orientation</name>
416 <enum>Horizontal</enum> 427 <enum>Horizontal</enum>
417 </property> 428 </property>
418 <property stdset="1"> 429 <property stdset="1">
419 <name>sizeType</name> 430 <name>sizeType</name>
420 <enum>Expanding</enum> 431 <enum>Expanding</enum>
421 </property> 432 </property>
422 <property> 433 <property>
423 <name>sizeHint</name> 434 <name>sizeHint</name>
424 <size> 435 <size>
425 <width>20</width> 436 <width>20</width>
426 <height>20</height> 437 <height>20</height>
427 </size> 438 </size>
428 </property> 439 </property>
429 </spacer> 440 </spacer>
430 </hbox> 441 </hbox>
431 </widget> 442 </widget>
432 </vbox> 443 </vbox>
433 </widget> 444 </widget>
434 </hbox> 445 </hbox>
435 </widget> 446 </widget>
436 </vbox> 447 </vbox>
437</widget> 448</widget>
438<images> 449<images>
439 <image> 450 <image>
440 <name>image0</name> 451 <name>image0</name>
441 <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> 452 <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data>
442 </image> 453 </image>
443 <image> 454 <image>
444 <name>image1</name> 455 <name>image1</name>
445 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> 456 <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data>
446 </image> 457 </image>
447</images> 458</images>
448<connections> 459<connections>
449 <connection> 460 <connection>
450 <sender>screensaver_dim</sender> 461 <sender>screensaver_dim</sender>
451 <signal>toggled(bool)</signal> 462 <signal>toggled(bool)</signal>
452 <receiver>interval_dim</receiver> 463 <receiver>interval_dim</receiver>
453 <slot>setEnabled(bool)</slot> 464 <slot>setEnabled(bool)</slot>
454 </connection> 465 </connection>
455 <connection> 466 <connection>
456 <sender>screensaver_lightoff</sender> 467 <sender>screensaver_lightoff</sender>
457 <signal>toggled(bool)</signal> 468 <signal>toggled(bool)</signal>
458 <receiver>interval_lightoff</receiver> 469 <receiver>interval_lightoff</receiver>
459 <slot>setEnabled(bool)</slot> 470 <slot>setEnabled(bool)</slot>
460 </connection> 471 </connection>
461</connections> 472</connections>
462<tabstops> 473<tabstops>
463 <tabstop>auto_brightness</tabstop> 474 <tabstop>auto_brightness</tabstop>
464 <tabstop>screensaver_dim</tabstop> 475 <tabstop>screensaver_dim</tabstop>
465 <tabstop>interval_dim</tabstop> 476 <tabstop>interval_dim</tabstop>
466 <tabstop>screensaver_lightoff</tabstop> 477 <tabstop>screensaver_lightoff</tabstop>
467 <tabstop>interval_lightoff</tabstop> 478 <tabstop>interval_lightoff</tabstop>
468 <tabstop>interval_suspend</tabstop> 479 <tabstop>interval_suspend</tabstop>
469 <tabstop>brightness</tabstop> 480 <tabstop>brightness</tabstop>
470</tabstops> 481</tabstops>
471</UI> 482</UI>