summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-10-27 16:24:16 (UTC)
committer harlekin <harlekin>2002-10-27 16:24:16 (UTC)
commit417d7bd0d307921b4540e99b8f52d10a03729153 (patch) (unidiff)
tree25d2ccf03282fc494c8a9e17ace70ad52b990a70
parent1d1fdae1ff88ed6f1e331cbbab59fc978c04b370 (diff)
downloadopie-417d7bd0d307921b4540e99b8f52d10a03729153.zip
opie-417d7bd0d307921b4540e99b8f52d10a03729153.tar.gz
opie-417d7bd0d307921b4540e99b8f52d10a03729153.tar.bz2
next try for light and power gui
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp107
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui682
2 files changed, 291 insertions, 498 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 04d2249..97120f2 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -46,2 +46,3 @@
46#include <qspinbox.h> 46#include <qspinbox.h>
47#include <qpushbutton.h>
47#include <qlistbox.h> 48#include <qlistbox.h>
@@ -60,15 +61,14 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
60 61
61 if ( ODevice::inst()->model() == Model_iPAQ_H31xx || 62 if ( ODevice::inst()->hasLightSensor() ) {
62 ODevice::inst()->model() == Model_iPAQ_H36xx ||
63 ODevice::inst()->model() == Model_iPAQ_H37xx ||
64 ODevice::inst()->model() == Model_iPAQ_H38xx ) {
65 // Not supported yet - hide until implemented 63 // Not supported yet - hide until implemented
66 IpaqGroupBox->setEnabled( false ); 64 auto_brightness->setEnabled( false );
67 IpaqGroupBoxAC->setEnabled( false ); 65 CalibrateLightSensor->setEnabled( false );
68 LightSensorGroupBox->setEnabled( false ); 66 auto_brightness_ac_3->setEnabled( false );
67 CalibrateLightSensorAC->setEnabled( false );
69 } else { 68 } else {
70 // if ipaq no need to show the sensor box 69 // if ipaq no need to show the sensor box
71 IpaqGroupBox->hide(); 70 auto_brightness->hide();
72 IpaqGroupBoxAC->hide(); 71 CalibrateLightSensor->hide();
73 LightSensorGroupBox->hide(); 72 auto_brightness_ac_3->hide();
73 CalibrateLightSensorAC->hide();
74 } 74 }
@@ -82,5 +82,15 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
82 interval = config.readNumEntry( "Interval_Dim", 20 ); 82 interval = config.readNumEntry( "Interval_Dim", 20 );
83 interval_dim->setValue( interval ); 83 if ( config.readNumEntry("Dim",1) == 0 ) {
84 interval_dim->setSpecialValueText( tr("never") );
85 } else {
86 interval_dim->setValue( interval );
87 }
88
84 interval = config.readNumEntry( "Interval_LightOff", 30 ); 89 interval = config.readNumEntry( "Interval_LightOff", 30 );
85 interval_lightoff->setValue( interval ); 90 if ( config.readNumEntry("LightOff",1) == 0 ) {
91 interval_lightoff->setSpecialValueText( tr("never") );
92 } else {
93 interval_lightoff->setValue( interval );
94 }
95
86 interval = config.readNumEntry( "Interval", 60 ); 96 interval = config.readNumEntry( "Interval", 60 );
@@ -91,5 +101,15 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
91 interval = config.readNumEntry( "Interval_DimAC", 20 ); 101 interval = config.readNumEntry( "Interval_DimAC", 20 );
102 if ( config.readNumEntry("DimAC",1) == 0 ) {
103 interval_dim_ac_3->setSpecialValueText( tr("never") );
104 } else {
92 interval_dim_ac_3->setValue( interval ); 105 interval_dim_ac_3->setValue( interval );
106 }
107
93 interval = config.readNumEntry( "Interval_LightOffAC", 30 ); 108 interval = config.readNumEntry( "Interval_LightOffAC", 30 );
94 interval_lightoff_ac_3->setValue( interval ); 109 if ( config.readNumEntry("LightOffAC",1) == 0 ) {
110 interval_lightoff_ac_3->setSpecialValueText( tr("never") );
111 } else {
112 interval_lightoff_ac_3->setValue( interval );
113 }
114
95 interval = config.readNumEntry( "IntervalAC", 60 ); 115 interval = config.readNumEntry( "IntervalAC", 60 );
@@ -98,3 +118,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
98 } 118 }
99 interval_suspend_ac_3->setValue( interval ); 119 if ( config.readNumEntry("NoApmAC", 0) == 0 ) {
120 interval_suspend_ac_3->setSpecialValueText( tr("never") );
121 } else {
122 interval_suspend_ac_3->setValue( interval );
123 }
100 124
@@ -102,4 +126,6 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
102 // battery check and slider 126 // battery check and slider
103 screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); 127
104 screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); 128
129
130
105 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); 131 LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
@@ -114,6 +140,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
114 // ac check and slider 140 // ac check and slider
115 screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 );
116 screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 );
117 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); 141 LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 );
118 noApmAC->setChecked( config.readNumEntry("NoApmAC",0) != 0 );
119 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); 142 int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( );
@@ -131,6 +154,6 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
131 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); 154 auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 );
132 LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); 155 //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) );
133 LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); 156 //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) );
134 connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; 157 //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ;
135 LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); 158 //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) );
136 159
@@ -143,4 +166,2 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
143 166
144
145
146 connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); 167 connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) );
@@ -154,3 +175,3 @@ LightSettings::~LightSettings()
154void LightSettings::slotSliderTicks( int steps ) { 175void LightSettings::slotSliderTicks( int steps ) {
155 LightMinValueSlider->setTickInterval( steps ); 176// LightMinValueSlider->setTickInterval( steps );
156} 177}
@@ -173,4 +194,5 @@ void LightSettings::accept()
173{ 194{
174 if ( qApp->focusWidget() ) 195 if ( qApp->focusWidget() ) {
175 qApp->focusWidget()->clearFocus(); 196 qApp->focusWidget()->clearFocus();
197 }
176 198
@@ -179,4 +201,4 @@ void LightSettings::accept()
179 // bat 201 // bat
180 int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); 202 int i_dim = ( !( interval_dim->specialValueText() == tr("never") ) ? interval_dim->value() : 0);
181 int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); 203 int i_lightoff = ( !( interval_lightoff->specialValueText() == tr("never") ) ? interval_lightoff->value() : 0);
182 int i_suspend = interval_suspend->value(); 204 int i_suspend = interval_suspend->value();
@@ -186,4 +208,4 @@ void LightSettings::accept()
186 // ac 208 // ac
187 int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); 209 int i_dim_ac = ( !( interval_dim_ac_3->specialValueText() == tr("never") ) ? interval_dim_ac_3->value() : 0);
188 int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); 210 int i_lightoff_ac = ( !( interval_lightoff_ac_3->specialValueText() == tr("never") ) ? interval_lightoff_ac_3->value() : 0);
189 int i_suspend_ac = interval_suspend_ac_3->value(); 211 int i_suspend_ac = interval_suspend_ac_3->value();
@@ -196,4 +218,4 @@ void LightSettings::accept()
196 // bat 218 // bat
197 config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); 219 config.writeEntry( "Dim", interval_dim->specialValueText() == tr("never") );
198 config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); 220 config.writeEntry( "LightOff", interval_lightoff->specialValueText() == tr("never") );
199 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); 221 config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() );
@@ -206,6 +228,6 @@ void LightSettings::accept()
206 // ac 228 // ac
207 config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); 229 config.writeEntry( "DimAC", interval_dim_ac_3->specialValueText() == tr("never") );
208 config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); 230 config.writeEntry( "LightOffAC", interval_lightoff_ac_3->specialValueText() == tr("never") );
209 config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); 231 config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() );
210 config.writeEntry( "NoAPmAC", (int)noApmAC->isChecked() ); 232 config.writeEntry( "NoAPmAC", interval_suspend_ac_3->specialValueText() == tr("never") );
211 config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); 233 config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() );
@@ -218,15 +240,10 @@ void LightSettings::accept()
218 // only make ipaq light sensor entries in config file if on an ipaq 240 // only make ipaq light sensor entries in config file if on an ipaq
219 if ( ODevice::inst()->model() == Model_iPAQ_H31xx || 241 if ( ODevice::inst()->hasLightSensor() ) {
220 ODevice::inst()->model() == Model_iPAQ_H36xx ||
221 ODevice::inst()->model() == Model_iPAQ_H37xx ||
222 ODevice::inst()->model() == Model_iPAQ_H38xx ) {
223
224 // ipaq sensor 242 // ipaq sensor
225 config.setGroup( "Ipaqlightsensor" ); 243 config.setGroup( "Ipaqlightsensor" );
226
227 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); 244 config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() );
228 config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); 245 config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() );
229 config.writeEntry( "Steps", LightStepSpin->value() ); 246 //config.writeEntry( "Steps", LightStepSpin->value() );
230 config.writeEntry( "MinValue", LightMinValueSlider->value() ); 247 //onfig.writeEntry( "MinValue", LightMinValueSlider->value() );
231 config.writeEntry( "Shift", LightShiftSpin->value() ); 248 //config.writeEntry( "Shift", LightShiftSpin->value() );
232 } 249 }
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index 2d0457f..fee5c2c 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -13,3 +13,3 @@
13 <y>0</y> 13 <y>0</y>
14 <width>411</width> 14 <width>403</width>
15 <height>532</height> 15 <height>532</height>
@@ -18,2 +18,9 @@
18 <property stdset="1"> 18 <property stdset="1">
19 <name>sizePolicy</name>
20 <sizepolicy>
21 <hsizetype>7</hsizetype>
22 <vsizetype>5</vsizetype>
23 </sizepolicy>
24 </property>
25 <property stdset="1">
19 <name>caption</name> 26 <name>caption</name>
@@ -104,3 +111,9 @@
104 <name>name</name> 111 <name>name</name>
105 <cstring>Layout8</cstring> 112 <cstring>Layout11</cstring>
113 </property>
114 <property>
115 <name>layoutMargin</name>
116 </property>
117 <property>
118 <name>layoutSpacing</name>
106 </property> 119 </property>
@@ -109,3 +122,3 @@
109 <name>margin</name> 122 <name>margin</name>
110 <number>0</number> 123 <number>3</number>
111 </property> 124 </property>
@@ -113,5 +126,5 @@
113 <name>spacing</name> 126 <name>spacing</name>
114 <number>6</number> 127 <number>3</number>
115 </property> 128 </property>
116 <widget row="0" column="1" > 129 <widget row="1" column="1" >
117 <class>QSpinBox</class> 130 <class>QSpinBox</class>
@@ -119,3 +132,3 @@
119 <name>name</name> 132 <name>name</name>
120 <cstring>interval_dim</cstring> 133 <cstring>interval_lightoff</cstring>
121 </property> 134 </property>
@@ -123,3 +136,7 @@
123 <name>suffix</name> 136 <name>suffix</name>
124 <string> seconds</string> 137 <string> sec</string>
138 </property>
139 <property stdset="1">
140 <name>specialValueText</name>
141 <string>never</string>
125 </property> 142 </property>
@@ -139,3 +156,3 @@
139 <name>lineStep</name> 156 <name>lineStep</name>
140 <number>15</number> 157 <number>10</number>
141 </property> 158 </property>
@@ -143,6 +160,17 @@
143 <widget row="1" column="0" > 160 <widget row="1" column="0" >
144 <class>QCheckBox</class> 161 <class>QLabel</class>
145 <property stdset="1"> 162 <property stdset="1">
146 <name>name</name> 163 <name>name</name>
147 <cstring>screensaver_lightoff</cstring> 164 <cstring>TextLabel2_2</cstring>
165 </property>
166 <property stdset="1">
167 <name>text</name>
168 <string>Light off after</string>
169 </property>
170 </widget>
171 <widget row="0" column="0" >
172 <class>QLabel</class>
173 <property stdset="1">
174 <name>name</name>
175 <cstring>TextLabel1_3</cstring>
148 </property> 176 </property>
@@ -151,4 +179,4 @@
151 <sizepolicy> 179 <sizepolicy>
152 <hsizetype>1</hsizetype> 180 <hsizetype>7</hsizetype>
153 <vsizetype>0</vsizetype> 181 <vsizetype>1</vsizetype>
154 </sizepolicy> 182 </sizepolicy>
@@ -157,10 +185,6 @@
157 <name>text</name> 185 <name>text</name>
158 <string>Light off after</string> 186 <string>Dim light after</string>
159 </property>
160 <property stdset="1">
161 <name>checked</name>
162 <bool>true</bool>
163 </property> 187 </property>
164 </widget> 188 </widget>
165 <widget row="2" column="1" > 189 <widget row="0" column="1" >
166 <class>QSpinBox</class> 190 <class>QSpinBox</class>
@@ -168,3 +192,3 @@
168 <name>name</name> 192 <name>name</name>
169 <cstring>interval_suspend</cstring> 193 <cstring>interval_dim</cstring>
170 </property> 194 </property>
@@ -172,3 +196,7 @@
172 <name>suffix</name> 196 <name>suffix</name>
173 <string> seconds</string> 197 <string> sec</string>
198 </property>
199 <property stdset="1">
200 <name>specialValueText</name>
201 <string>never</string>
174 </property> 202 </property>
@@ -188,6 +216,6 @@
188 <name>lineStep</name> 216 <name>lineStep</name>
189 <number>15</number> 217 <number>10</number>
190 </property> 218 </property>
191 </widget> 219 </widget>
192 <widget row="1" column="1" > 220 <widget row="2" column="1" >
193 <class>QSpinBox</class> 221 <class>QSpinBox</class>
@@ -195,3 +223,3 @@
195 <name>name</name> 223 <name>name</name>
196 <cstring>interval_lightoff</cstring> 224 <cstring>interval_suspend</cstring>
197 </property> 225 </property>
@@ -199,3 +227,7 @@
199 <name>suffix</name> 227 <name>suffix</name>
200 <string> seconds</string> 228 <string> sec</string>
229 </property>
230 <property stdset="1">
231 <name>specialValueText</name>
232 <string>never</string>
201 </property> 233 </property>
@@ -215,25 +247,3 @@
215 <name>lineStep</name> 247 <name>lineStep</name>
216 <number>15</number> 248 <number>10</number>
217 </property>
218 </widget>
219 <widget row="0" column="0" >
220 <class>QCheckBox</class>
221 <property stdset="1">
222 <name>name</name>
223 <cstring>screensaver_dim</cstring>
224 </property>
225 <property stdset="1">
226 <name>sizePolicy</name>
227 <sizepolicy>
228 <hsizetype>1</hsizetype>
229 <vsizetype>0</vsizetype>
230 </sizepolicy>
231 </property>
232 <property stdset="1">
233 <name>text</name>
234 <string>Dim light after</string>
235 </property>
236 <property stdset="1">
237 <name>checked</name>
238 <bool>true</bool>
239 </property> 249 </property>
@@ -303,3 +313,3 @@
303 <name>lineStep</name> 313 <name>lineStep</name>
304 <number>16</number> 314 <number>1</number>
305 </property> 315 </property>
@@ -416,43 +426,44 @@
416 </widget> 426 </widget>
417 </vbox>
418 </widget>
419 <widget>
420 <class>QGroupBox</class>
421 <property stdset="1">
422 <name>name</name>
423 <cstring>IpaqGroupBox</cstring>
424 </property>
425 <property stdset="1">
426 <name>title</name>
427 <string>iPAQ</string>
428 </property>
429 <property>
430 <name>layoutMargin</name>
431 </property>
432 <property>
433 <name>layoutSpacing</name>
434 </property>
435 <vbox>
436 <property stdset="1">
437 <name>margin</name>
438 <number>3</number>
439 </property>
440 <property stdset="1">
441 <name>spacing</name>
442 <number>3</number>
443 </property>
444 <widget> 427 <widget>
445 <class>QCheckBox</class> 428 <class>QLayoutWidget</class>
446 <property stdset="1"> 429 <property stdset="1">
447 <name>name</name> 430 <name>name</name>
448 <cstring>auto_brightness</cstring> 431 <cstring>Layout9</cstring>
449 </property>
450 <property stdset="1">
451 <name>text</name>
452 <string>Use light sensor</string>
453 </property>
454 <property>
455 <name>whatsThis</name>
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>
457 </property> 432 </property>
433 <hbox>
434 <property stdset="1">
435 <name>margin</name>
436 <number>0</number>
437 </property>
438 <property stdset="1">
439 <name>spacing</name>
440 <number>6</number>
441 </property>
442 <widget>
443 <class>QCheckBox</class>
444 <property stdset="1">
445 <name>name</name>
446 <cstring>auto_brightness</cstring>
447 </property>
448 <property stdset="1">
449 <name>text</name>
450 <string>Use Light Sensor</string>
451 </property>
452 <property>
453 <name>whatsThis</name>
454 <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>
455 </property>
456 </widget>
457 <widget>
458 <class>QPushButton</class>
459 <property stdset="1">
460 <name>name</name>
461 <cstring>CalibrateLightSensor</cstring>
462 </property>
463 <property stdset="1">
464 <name>text</name>
465 <string>Calibrate</string>
466 </property>
467 </widget>
468 </hbox>
458 </widget> 469 </widget>
@@ -535,3 +546,9 @@
535 <name>name</name> 546 <name>name</name>
536 <cstring>Layout9_3</cstring> 547 <cstring>Layout14</cstring>
548 </property>
549 <property>
550 <name>layoutMargin</name>
551 </property>
552 <property>
553 <name>layoutSpacing</name>
537 </property> 554 </property>
@@ -540,3 +557,3 @@
540 <name>margin</name> 557 <name>margin</name>
541 <number>0</number> 558 <number>3</number>
542 </property> 559 </property>
@@ -544,16 +561,5 @@
544 <name>spacing</name> 561 <name>spacing</name>
545 <number>6</number> 562 <number>3</number>
546 </property> 563 </property>
547 <widget row="2" column="0" > 564 <widget row="1" column="1" >
548 <class>QLabel</class>
549 <property stdset="1">
550 <name>name</name>
551 <cstring>TextLabel1_2_2_3</cstring>
552 </property>
553 <property stdset="1">
554 <name>text</name>
555 <string>Suspend after</string>
556 </property>
557 </widget>
558 <widget row="0" column="1" >
559 <class>QSpinBox</class> 565 <class>QSpinBox</class>
@@ -561,3 +567,3 @@
561 <name>name</name> 567 <name>name</name>
562 <cstring>interval_dim_ac_3</cstring> 568 <cstring>interval_lightoff_ac_3</cstring>
563 </property> 569 </property>
@@ -565,3 +571,7 @@
565 <name>suffix</name> 571 <name>suffix</name>
566 <string> seconds</string> 572 <string> sec</string>
573 </property>
574 <property stdset="1">
575 <name>specialValueText</name>
576 <string>never</string>
567 </property> 577 </property>
@@ -581,3 +591,21 @@
581 <name>lineStep</name> 591 <name>lineStep</name>
582 <number>15</number> 592 <number>10</number>
593 </property>
594 </widget>
595 <widget row="0" column="0" >
596 <class>QLabel</class>
597 <property stdset="1">
598 <name>name</name>
599 <cstring>TextLabel1_3_2</cstring>
600 </property>
601 <property stdset="1">
602 <name>sizePolicy</name>
603 <sizepolicy>
604 <hsizetype>7</hsizetype>
605 <vsizetype>1</vsizetype>
606 </sizepolicy>
607 </property>
608 <property stdset="1">
609 <name>text</name>
610 <string>Dim light after</string>
583 </property> 611 </property>
@@ -592,3 +620,7 @@
592 <name>suffix</name> 620 <name>suffix</name>
593 <string> seconds</string> 621 <string> sec</string>
622 </property>
623 <property stdset="1">
624 <name>specialValueText</name>
625 <string>never</string>
594 </property> 626 </property>
@@ -608,6 +640,17 @@
608 <name>lineStep</name> 640 <name>lineStep</name>
609 <number>15</number> 641 <number>10</number>
610 </property> 642 </property>
611 </widget> 643 </widget>
612 <widget row="1" column="1" > 644 <widget row="2" column="0" >
645 <class>QLabel</class>
646 <property stdset="1">
647 <name>name</name>
648 <cstring>TextLabel1_2_2_3</cstring>
649 </property>
650 <property stdset="1">
651 <name>text</name>
652 <string>Suspend after</string>
653 </property>
654 </widget>
655 <widget row="0" column="1" >
613 <class>QSpinBox</class> 656 <class>QSpinBox</class>
@@ -615,3 +658,3 @@
615 <name>name</name> 658 <name>name</name>
616 <cstring>interval_lightoff_ac_3</cstring> 659 <cstring>interval_dim_ac_3</cstring>
617 </property> 660 </property>
@@ -619,3 +662,7 @@
619 <name>suffix</name> 662 <name>suffix</name>
620 <string> seconds</string> 663 <string> sec</string>
664 </property>
665 <property stdset="1">
666 <name>specialValueText</name>
667 <string>never</string>
621 </property> 668 </property>
@@ -635,3 +682,3 @@
635 <name>lineStep</name> 682 <name>lineStep</name>
636 <number>15</number> 683 <number>10</number>
637 </property> 684 </property>
@@ -639,13 +686,6 @@
639 <widget row="1" column="0" > 686 <widget row="1" column="0" >
640 <class>QCheckBox</class> 687 <class>QLabel</class>
641 <property stdset="1"> 688 <property stdset="1">
642 <name>name</name> 689 <name>name</name>
643 <cstring>screensaver_lightoff_ac_3</cstring> 690 <cstring>TextLabel2_2_2</cstring>
644 </property>
645 <property stdset="1">
646 <name>sizePolicy</name>
647 <sizepolicy>
648 <hsizetype>1</hsizetype>
649 <vsizetype>0</vsizetype>
650 </sizepolicy>
651 </property> 691 </property>
@@ -655,28 +695,2 @@
655 </property> 695 </property>
656 <property stdset="1">
657 <name>checked</name>
658 <bool>true</bool>
659 </property>
660 </widget>
661 <widget row="0" column="0" >
662 <class>QCheckBox</class>
663 <property stdset="1">
664 <name>name</name>
665 <cstring>screensaver_dim_ac_3</cstring>
666 </property>
667 <property stdset="1">
668 <name>sizePolicy</name>
669 <sizepolicy>
670 <hsizetype>1</hsizetype>
671 <vsizetype>0</vsizetype>
672 </sizepolicy>
673 </property>
674 <property stdset="1">
675 <name>text</name>
676 <string>Dim light after</string>
677 </property>
678 <property stdset="1">
679 <name>checked</name>
680 <bool>true</bool>
681 </property>
682 </widget> 696 </widget>
@@ -695,13 +709,2 @@
695 </widget> 709 </widget>
696 <widget>
697 <class>QCheckBox</class>
698 <property stdset="1">
699 <name>name</name>
700 <cstring>noApmAC</cstring>
701 </property>
702 <property stdset="1">
703 <name>text</name>
704 <string>No power saving features</string>
705 </property>
706 </widget>
707 </vbox> 710 </vbox>
@@ -862,43 +865,44 @@
862 </widget> 865 </widget>
863 </vbox>
864 </widget>
865 <widget>
866 <class>QGroupBox</class>
867 <property stdset="1">
868 <name>name</name>
869 <cstring>IpaqGroupBoxAC</cstring>
870 </property>
871 <property stdset="1">
872 <name>title</name>
873 <string>iPAQ</string>
874 </property>
875 <property>
876 <name>layoutMargin</name>
877 </property>
878 <property>
879 <name>layoutSpacing</name>
880 </property>
881 <vbox>
882 <property stdset="1">
883 <name>margin</name>
884 <number>3</number>
885 </property>
886 <property stdset="1">
887 <name>spacing</name>
888 <number>3</number>
889 </property>
890 <widget> 866 <widget>
891 <class>QCheckBox</class> 867 <class>QLayoutWidget</class>
892 <property stdset="1"> 868 <property stdset="1">
893 <name>name</name> 869 <name>name</name>
894 <cstring>auto_brightness_ac_3</cstring> 870 <cstring>Layout10</cstring>
895 </property>
896 <property stdset="1">
897 <name>text</name>
898 <string>Use light sensor</string>
899 </property>
900 <property>
901 <name>whatsThis</name>
902 <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>
903 </property> 871 </property>
872 <hbox>
873 <property stdset="1">
874 <name>margin</name>
875 <number>0</number>
876 </property>
877 <property stdset="1">
878 <name>spacing</name>
879 <number>6</number>
880 </property>
881 <widget>
882 <class>QCheckBox</class>
883 <property stdset="1">
884 <name>name</name>
885 <cstring>auto_brightness_ac_3</cstring>
886 </property>
887 <property stdset="1">
888 <name>text</name>
889 <string>Use Light Sensor</string>
890 </property>
891 <property>
892 <name>whatsThis</name>
893 <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>
894 </property>
895 </widget>
896 <widget>
897 <class>QPushButton</class>
898 <property stdset="1">
899 <name>name</name>
900 <cstring>CalibrateLightSensorAC</cstring>
901 </property>
902 <property stdset="1">
903 <name>text</name>
904 <string>Calibrate</string>
905 </property>
906 </widget>
907 </hbox>
904 </widget> 908 </widget>
@@ -967,3 +971,3 @@
967 <name>margin</name> 971 <name>margin</name>
968 <number>4</number> 972 <number>3</number>
969 </property> 973 </property>
@@ -979,2 +983,8 @@
979 </property> 983 </property>
984 <property>
985 <name>layoutMargin</name>
986 </property>
987 <property>
988 <name>layoutSpacing</name>
989 </property>
980 <grid> 990 <grid>
@@ -982,3 +992,3 @@
982 <name>margin</name> 992 <name>margin</name>
983 <number>0</number> 993 <number>3</number>
984 </property> 994 </property>
@@ -986,3 +996,3 @@
986 <name>spacing</name> 996 <name>spacing</name>
987 <number>6</number> 997 <number>3</number>
988 </property> 998 </property>
@@ -995,5 +1005,11 @@
995 <property stdset="1"> 1005 <property stdset="1">
1006 <name>sizePolicy</name>
1007 <sizepolicy>
1008 <hsizetype>7</hsizetype>
1009 <vsizetype>5</vsizetype>
1010 </sizepolicy>
1011 </property>
1012 <property stdset="1">
996 <name>text</name> 1013 <name>text</name>
997 <string>Low power warning 1014 <string>Low power warning interval</string>
998interval</string>
999 </property> 1015 </property>
@@ -1038,3 +1054,3 @@ interval</string>
1038 <name>suffix</name> 1054 <name>suffix</name>
1039 <string> seconds</string> 1055 <string> sec</string>
1040 </property> 1056 </property>
@@ -1087,68 +1103,7 @@ interval</string>
1087 <property stdset="1"> 1103 <property stdset="1">
1088 <name>text</name> 1104 <name>sizePolicy</name>
1089 <string>very low battery 1105 <sizepolicy>
1090warning at</string> 1106 <hsizetype>1</hsizetype>
1091 </property> 1107 <vsizetype>5</vsizetype>
1092 </widget> 1108 </sizepolicy>
1093 <widget row="2" column="0" >
1094 <class>QLabel</class>
1095 <property stdset="1">
1096 <name>name</name>
1097 <cstring>TextLabel3</cstring>
1098 </property>
1099 <property stdset="1">
1100 <name>text</name>
1101 <string>critical power
1102warning at</string>
1103 </property>
1104 </widget>
1105 </grid>
1106 </widget>
1107 </vbox>
1108 </widget>
1109 <widget>
1110 <class>QGroupBox</class>
1111 <property stdset="1">
1112 <name>name</name>
1113 <cstring>LightSensorGroupBox</cstring>
1114 </property>
1115 <property stdset="1">
1116 <name>title</name>
1117 <string>iPAQ Light Sensor (127 steps)</string>
1118 </property>
1119 <property>
1120 <name>layoutMargin</name>
1121 </property>
1122 <property>
1123 <name>layoutSpacing</name>
1124 </property>
1125 <vbox>
1126 <property stdset="1">
1127 <name>margin</name>
1128 <number>3</number>
1129 </property>
1130 <property stdset="1">
1131 <name>spacing</name>
1132 <number>3</number>
1133 </property>
1134 <widget>
1135 <class>QLayoutWidget</class>
1136 <property stdset="1">
1137 <name>name</name>
1138 <cstring>Layout7</cstring>
1139 </property>
1140 <hbox>
1141 <property stdset="1">
1142 <name>margin</name>
1143 <number>0</number>
1144 </property>
1145 <property stdset="1">
1146 <name>spacing</name>
1147 <number>6</number>
1148 </property>
1149 <widget>
1150 <class>QLabel</class>
1151 <property stdset="1">
1152 <name>name</name>
1153 <cstring>TextLabel9</cstring>
1154 </property> 1109 </property>
@@ -1156,91 +1111,6 @@ warning at</string>
1156 <name>text</name> 1111 <name>text</name>
1157 <string>Steps</string> 1112 <string>very low battery warning at</string>
1158 </property>
1159 </widget>
1160 <widget>
1161 <class>QSpinBox</class>
1162 <property stdset="1">
1163 <name>name</name>
1164 <cstring>LightStepSpin</cstring>
1165 </property>
1166 <property stdset="1">
1167 <name>maxValue</name>
1168 <number>126</number>
1169 </property>
1170 <property stdset="1">
1171 <name>minValue</name>
1172 <number>1</number>
1173 </property>
1174 <property>
1175 <name>whatsThis</name>
1176 <string>How many different steps should be handled by the light sensor. Values between 1 and 126 are allowed.</string>
1177 </property>
1178 </widget>
1179 </hbox>
1180 </widget>
1181 <widget>
1182 <class>QLabel</class>
1183 <property stdset="1">
1184 <name>name</name>
1185 <cstring>TextLabel10</cstring>
1186 </property>
1187 <property stdset="1">
1188 <name>text</name>
1189 <string>Minimum value to turn display on</string>
1190 </property>
1191 </widget>
1192 <widget>
1193 <class>QLayoutWidget</class>
1194 <property stdset="1">
1195 <name>name</name>
1196 <cstring>Layout9</cstring>
1197 </property>
1198 <hbox>
1199 <property stdset="1">
1200 <name>margin</name>
1201 <number>0</number>
1202 </property>
1203 <property stdset="1">
1204 <name>spacing</name>
1205 <number>6</number>
1206 </property>
1207 <widget>
1208 <class>QLabel</class>
1209 <property stdset="1">
1210 <name>name</name>
1211 <cstring>PixmapLabel2_2</cstring>
1212 </property>
1213 <property stdset="1">
1214 <name>pixmap</name>
1215 <pixmap>image0</pixmap>
1216 </property>
1217 <property stdset="1">
1218 <name>scaledContents</name>
1219 <bool>false</bool>
1220 </property> 1113 </property>
1221 </widget> 1114 </widget>
1222 <widget> 1115 <widget row="2" column="0" >
1223 <class>QSlider</class>
1224 <property stdset="1">
1225 <name>name</name>
1226 <cstring>LightMinValueSlider</cstring>
1227 </property>
1228 <property stdset="1">
1229 <name>maxValue</name>
1230 <number>127</number>
1231 </property>
1232 <property stdset="1">
1233 <name>tracking</name>
1234 <bool>false</bool>
1235 </property>
1236 <property stdset="1">
1237 <name>orientation</name>
1238 <enum>Horizontal</enum>
1239 </property>
1240 <property stdset="1">
1241 <name>tickmarks</name>
1242 <enum>Right</enum>
1243 </property>
1244 </widget>
1245 <widget>
1246 <class>QLabel</class> 1116 <class>QLabel</class>
@@ -1248,35 +1118,10 @@ warning at</string>
1248 <name>name</name> 1118 <name>name</name>
1249 <cstring>PixmapLabel1_2</cstring> 1119 <cstring>TextLabel3</cstring>
1250 </property>
1251 <property stdset="1">
1252 <name>pixmap</name>
1253 <pixmap>image1</pixmap>
1254 </property> 1120 </property>
1255 <property stdset="1"> 1121 <property stdset="1">
1256 <name>scaledContents</name> 1122 <name>sizePolicy</name>
1257 <bool>false</bool> 1123 <sizepolicy>
1258 </property> 1124 <hsizetype>1</hsizetype>
1259 </widget> 1125 <vsizetype>5</vsizetype>
1260 </hbox> 1126 </sizepolicy>
1261 </widget>
1262 <widget>
1263 <class>QLayoutWidget</class>
1264 <property stdset="1">
1265 <name>name</name>
1266 <cstring>Layout8</cstring>
1267 </property>
1268 <hbox>
1269 <property stdset="1">
1270 <name>margin</name>
1271 <number>0</number>
1272 </property>
1273 <property stdset="1">
1274 <name>spacing</name>
1275 <number>6</number>
1276 </property>
1277 <widget>
1278 <class>QLabel</class>
1279 <property stdset="1">
1280 <name>name</name>
1281 <cstring>TextLabel11</cstring>
1282 </property> 1127 </property>
@@ -1284,17 +1129,6 @@ warning at</string>
1284 <name>text</name> 1129 <name>text</name>
1285 <string>Shift</string> 1130 <string>critical power warning at</string>
1286 </property>
1287 </widget>
1288 <widget>
1289 <class>QSpinBox</class>
1290 <property stdset="1">
1291 <name>name</name>
1292 <cstring>LightShiftSpin</cstring>
1293 </property>
1294 <property stdset="1">
1295 <name>maxValue</name>
1296 <number>126</number>
1297 </property> 1131 </property>
1298 </widget> 1132 </widget>
1299 </hbox> 1133 </grid>
1300 </widget> 1134 </widget>
@@ -1342,63 +1176,5 @@ warning at</string>
1342</images> 1176</images>
1343<connections>
1344 <connection>
1345 <sender>screensaver_dim</sender>
1346 <signal>toggled(bool)</signal>
1347 <receiver>interval_dim</receiver>
1348 <slot>setEnabled(bool)</slot>
1349 </connection>
1350 <connection>
1351 <sender>screensaver_lightoff</sender>
1352 <signal>toggled(bool)</signal>
1353 <receiver>interval_lightoff</receiver>
1354 <slot>setEnabled(bool)</slot>
1355 </connection>
1356 <connection>
1357 <sender>noApmAC</sender>
1358 <signal>toggled(bool)</signal>
1359 <receiver>screensaver_dim_ac_3</receiver>
1360 <slot>setDisabled(bool)</slot>
1361 </connection>
1362 <connection>
1363 <sender>noApmAC</sender>
1364 <signal>toggled(bool)</signal>
1365 <receiver>interval_dim_ac_3</receiver>
1366 <slot>setDisabled(bool)</slot>
1367 </connection>
1368 <connection>
1369 <sender>noApmAC</sender>
1370 <signal>toggled(bool)</signal>
1371 <receiver>screensaver_lightoff_ac_3</receiver>
1372 <slot>setDisabled(bool)</slot>
1373 </connection>
1374 <connection>
1375 <sender>noApmAC</sender>
1376 <signal>toggled(bool)</signal>
1377 <receiver>interval_lightoff_ac_3</receiver>
1378 <slot>setDisabled(bool)</slot>
1379 </connection>
1380 <connection>
1381 <sender>noApmAC</sender>
1382 <signal>toggled(bool)</signal>
1383 <receiver>interval_suspend_ac_3</receiver>
1384 <slot>setDisabled(bool)</slot>
1385 </connection>
1386 <connection>
1387 <sender>noApmAC</sender>
1388 <signal>toggled(bool)</signal>
1389 <receiver>LcdOffOnly_2_3</receiver>
1390 <slot>setDisabled(bool)</slot>
1391 </connection>
1392 <connection>
1393 <sender>noApmAC</sender>
1394 <signal>toggled(bool)</signal>
1395 <receiver>TextLabel1_2_2_3</receiver>
1396 <slot>setDisabled(bool)</slot>
1397 </connection>
1398</connections>
1399<tabstops> 1177<tabstops>
1400 <tabstop>auto_brightness</tabstop> 1178 <tabstop>auto_brightness</tabstop>
1401 <tabstop>screensaver_dim</tabstop>
1402 <tabstop>interval_dim</tabstop> 1179 <tabstop>interval_dim</tabstop>
1403 <tabstop>screensaver_lightoff</tabstop>
1404 <tabstop>interval_lightoff</tabstop> 1180 <tabstop>interval_lightoff</tabstop>