author | harlekin <harlekin> | 2002-10-27 16:24:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-27 16:24:16 (UTC) |
commit | 417d7bd0d307921b4540e99b8f52d10a03729153 (patch) (unidiff) | |
tree | 25d2ccf03282fc494c8a9e17ace70ad52b990a70 | |
parent | 1d1fdae1ff88ed6f1e331cbbab59fc978c04b370 (diff) | |
download | opie-417d7bd0d307921b4540e99b8f52d10a03729153.zip opie-417d7bd0d307921b4540e99b8f52d10a03729153.tar.gz opie-417d7bd0d307921b4540e99b8f52d10a03729153.tar.bz2 |
next try for light and power gui
-rw-r--r-- | core/settings/light-and-power/light.cpp | 107 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 682 |
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 | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <qcombobox.h> | 44 | #include <qcombobox.h> |
45 | #include <qgroupbox.h> | 45 | #include <qgroupbox.h> |
46 | #include <qspinbox.h> | 46 | #include <qspinbox.h> |
47 | #include <qpushbutton.h> | ||
47 | #include <qlistbox.h> | 48 | #include <qlistbox.h> |
48 | #include <qdir.h> | 49 | #include <qdir.h> |
49 | #if QT_VERSION >= 300 | 50 | #if QT_VERSION >= 300 |
@@ -58,19 +59,18 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
58 | : LightSettingsBase( parent, name, TRUE, fl ) | 59 | : LightSettingsBase( parent, name, TRUE, fl ) |
59 | { | 60 | { |
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 | } |
75 | 75 | ||
76 | Config config( "qpe" ); | 76 | Config config( "qpe" ); |
@@ -80,28 +80,54 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
80 | 80 | ||
81 | // battery spinboxes | 81 | // battery spinboxes |
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 ); |
87 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) | 97 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) |
88 | interval_suspend->setValue( interval ); | 98 | interval_suspend->setValue( interval ); |
89 | 99 | ||
90 | // ac spinboxes | 100 | // ac spinboxes |
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 ); |
96 | if ( interval > 3600 ) { | 116 | if ( interval > 3600 ) { |
97 | interval /= 1000; // compatibility (was millisecs) | 117 | interval /= 1000; // compatibility (was millisecs) |
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 | ||
101 | 125 | ||
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 ); |
106 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); | 132 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); |
107 | initbright = config.readNumEntry("Brightness",255); | 133 | initbright = config.readNumEntry("Brightness",255); |
@@ -112,10 +138,7 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
112 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); | 138 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); |
113 | 139 | ||
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 ( ); |
120 | initbright_ac = config.readNumEntry("BrightnessAC",255); | 143 | initbright_ac = config.readNumEntry("BrightnessAC",255); |
121 | brightness_ac_3->setMaxValue( maxbright_ac ); | 144 | brightness_ac_3->setMaxValue( maxbright_ac ); |
@@ -129,10 +152,10 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
129 | config.setGroup( "Ipaqlightsensor" ); | 152 | config.setGroup( "Ipaqlightsensor" ); |
130 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); | 153 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); |
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 | ||
137 | // advanced settings | 160 | // advanced settings |
138 | Config conf("apm"); | 161 | Config conf("apm"); |
@@ -141,8 +164,6 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
141 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); | 164 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); |
142 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); | 165 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); |
143 | 166 | ||
144 | |||
145 | |||
146 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); | 167 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); |
147 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); | 168 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); |
148 | } | 169 | } |
@@ -152,7 +173,7 @@ LightSettings::~LightSettings() | |||
152 | } | 173 | } |
153 | 174 | ||
154 | void LightSettings::slotSliderTicks( int steps ) { | 175 | void LightSettings::slotSliderTicks( int steps ) { |
155 | LightMinValueSlider->setTickInterval( steps ); | 176 | // LightMinValueSlider->setTickInterval( steps ); |
156 | } | 177 | } |
157 | 178 | ||
158 | static void set_fl(int bright) | 179 | static void set_fl(int bright) |
@@ -171,21 +192,22 @@ void LightSettings::reject() | |||
171 | 192 | ||
172 | void LightSettings::accept() | 193 | void LightSettings::accept() |
173 | { | 194 | { |
174 | if ( qApp->focusWidget() ) | 195 | if ( qApp->focusWidget() ) { |
175 | qApp->focusWidget()->clearFocus(); | 196 | qApp->focusWidget()->clearFocus(); |
197 | } | ||
176 | 198 | ||
177 | applyBrightness(); | 199 | applyBrightness(); |
178 | 200 | ||
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(); |
183 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 205 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
184 | e << i_dim << i_lightoff << i_suspend; | 206 | e << i_dim << i_lightoff << i_suspend; |
185 | 207 | ||
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(); |
190 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); | 212 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); |
191 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; | 213 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; |
@@ -194,8 +216,8 @@ void LightSettings::accept() | |||
194 | config.setGroup( "Screensaver" ); | 216 | config.setGroup( "Screensaver" ); |
195 | 217 | ||
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() ); |
200 | config.writeEntry( "Interval_Dim", interval_dim->value() ); | 222 | config.writeEntry( "Interval_Dim", interval_dim->value() ); |
201 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); | 223 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); |
@@ -204,10 +226,10 @@ void LightSettings::accept() | |||
204 | ( brightness->value() ) * 255 / brightness->maxValue() ); | 226 | ( brightness->value() ) * 255 / brightness->maxValue() ); |
205 | 227 | ||
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() ); |
212 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); | 234 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); |
213 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); | 235 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); |
@@ -216,19 +238,14 @@ void LightSettings::accept() | |||
216 | 238 | ||
217 | 239 | ||
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 | } |
233 | 250 | ||
234 | config.write(); | 251 | config.write(); |
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 | |||
@@ -11,11 +11,18 @@ | |||
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>411</width> | 14 | <width>403</width> |
15 | <height>532</height> | 15 | <height>532</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>sizePolicy</name> | ||
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> |
20 | <string>Light and Power Settings</string> | 27 | <string>Light and Power Settings</string> |
21 | </property> | 28 | </property> |
@@ -102,26 +109,36 @@ | |||
102 | <class>QLayoutWidget</class> | 109 | <class>QLayoutWidget</class> |
103 | <property stdset="1"> | 110 | <property stdset="1"> |
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> |
107 | <grid> | 120 | <grid> |
108 | <property stdset="1"> | 121 | <property stdset="1"> |
109 | <name>margin</name> | 122 | <name>margin</name> |
110 | <number>0</number> | 123 | <number>3</number> |
111 | </property> | 124 | </property> |
112 | <property stdset="1"> | 125 | <property stdset="1"> |
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> |
118 | <property stdset="1"> | 131 | <property stdset="1"> |
119 | <name>name</name> | 132 | <name>name</name> |
120 | <cstring>interval_dim</cstring> | 133 | <cstring>interval_lightoff</cstring> |
121 | </property> | 134 | </property> |
122 | <property stdset="1"> | 135 | <property stdset="1"> |
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> |
126 | <property stdset="1"> | 143 | <property stdset="1"> |
127 | <name>buttonSymbols</name> | 144 | <name>buttonSymbols</name> |
@@ -137,40 +154,51 @@ | |||
137 | </property> | 154 | </property> |
138 | <property stdset="1"> | 155 | <property stdset="1"> |
139 | <name>lineStep</name> | 156 | <name>lineStep</name> |
140 | <number>15</number> | 157 | <number>10</number> |
141 | </property> | 158 | </property> |
142 | </widget> | 159 | </widget> |
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> |
149 | <property stdset="1"> | 177 | <property stdset="1"> |
150 | <name>sizePolicy</name> | 178 | <name>sizePolicy</name> |
151 | <sizepolicy> | 179 | <sizepolicy> |
152 | <hsizetype>1</hsizetype> | 180 | <hsizetype>7</hsizetype> |
153 | <vsizetype>0</vsizetype> | 181 | <vsizetype>1</vsizetype> |
154 | </sizepolicy> | 182 | </sizepolicy> |
155 | </property> | 183 | </property> |
156 | <property stdset="1"> | 184 | <property stdset="1"> |
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> |
167 | <property stdset="1"> | 191 | <property stdset="1"> |
168 | <name>name</name> | 192 | <name>name</name> |
169 | <cstring>interval_suspend</cstring> | 193 | <cstring>interval_dim</cstring> |
170 | </property> | 194 | </property> |
171 | <property stdset="1"> | 195 | <property stdset="1"> |
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> |
175 | <property stdset="1"> | 203 | <property stdset="1"> |
176 | <name>buttonSymbols</name> | 204 | <name>buttonSymbols</name> |
@@ -186,18 +214,22 @@ | |||
186 | </property> | 214 | </property> |
187 | <property stdset="1"> | 215 | <property stdset="1"> |
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> |
194 | <property stdset="1"> | 222 | <property stdset="1"> |
195 | <name>name</name> | 223 | <name>name</name> |
196 | <cstring>interval_lightoff</cstring> | 224 | <cstring>interval_suspend</cstring> |
197 | </property> | 225 | </property> |
198 | <property stdset="1"> | 226 | <property stdset="1"> |
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> |
202 | <property stdset="1"> | 234 | <property stdset="1"> |
203 | <name>buttonSymbols</name> | 235 | <name>buttonSymbols</name> |
@@ -213,29 +245,7 @@ | |||
213 | </property> | 245 | </property> |
214 | <property stdset="1"> | 246 | <property stdset="1"> |
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> |
240 | </widget> | 250 | </widget> |
241 | <widget row="2" column="0" > | 251 | <widget row="2" column="0" > |
@@ -301,7 +311,7 @@ | |||
301 | </property> | 311 | </property> |
302 | <property stdset="1"> | 312 | <property stdset="1"> |
303 | <name>lineStep</name> | 313 | <name>lineStep</name> |
304 | <number>16</number> | 314 | <number>1</number> |
305 | </property> | 315 | </property> |
306 | <property stdset="1"> | 316 | <property stdset="1"> |
307 | <name>pageStep</name> | 317 | <name>pageStep</name> |
@@ -414,47 +424,48 @@ | |||
414 | </widget> | 424 | </widget> |
415 | </hbox> | 425 | </hbox> |
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> |
459 | </vbox> | 470 | </vbox> |
460 | </widget> | 471 | </widget> |
@@ -533,37 +544,36 @@ | |||
533 | <class>QLayoutWidget</class> | 544 | <class>QLayoutWidget</class> |
534 | <property stdset="1"> | 545 | <property stdset="1"> |
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> |
538 | <grid> | 555 | <grid> |
539 | <property stdset="1"> | 556 | <property stdset="1"> |
540 | <name>margin</name> | 557 | <name>margin</name> |
541 | <number>0</number> | 558 | <number>3</number> |
542 | </property> | 559 | </property> |
543 | <property stdset="1"> | 560 | <property stdset="1"> |
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> |
560 | <property stdset="1"> | 566 | <property stdset="1"> |
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> |
564 | <property stdset="1"> | 570 | <property stdset="1"> |
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> |
568 | <property stdset="1"> | 578 | <property stdset="1"> |
569 | <name>buttonSymbols</name> | 579 | <name>buttonSymbols</name> |
@@ -579,7 +589,25 @@ | |||
579 | </property> | 589 | </property> |
580 | <property stdset="1"> | 590 | <property stdset="1"> |
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> |
584 | </widget> | 612 | </widget> |
585 | <widget row="2" column="1" > | 613 | <widget row="2" column="1" > |
@@ -590,7 +618,11 @@ | |||
590 | </property> | 618 | </property> |
591 | <property stdset="1"> | 619 | <property stdset="1"> |
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> |
595 | <property stdset="1"> | 627 | <property stdset="1"> |
596 | <name>buttonSymbols</name> | 628 | <name>buttonSymbols</name> |
@@ -606,18 +638,33 @@ | |||
606 | </property> | 638 | </property> |
607 | <property stdset="1"> | 639 | <property stdset="1"> |
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> |
614 | <property stdset="1"> | 657 | <property stdset="1"> |
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> |
618 | <property stdset="1"> | 661 | <property stdset="1"> |
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> |
622 | <property stdset="1"> | 669 | <property stdset="1"> |
623 | <name>buttonSymbols</name> | 670 | <name>buttonSymbols</name> |
@@ -633,52 +680,19 @@ | |||
633 | </property> | 680 | </property> |
634 | <property stdset="1"> | 681 | <property stdset="1"> |
635 | <name>lineStep</name> | 682 | <name>lineStep</name> |
636 | <number>15</number> | 683 | <number>10</number> |
637 | </property> | 684 | </property> |
638 | </widget> | 685 | </widget> |
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> |
652 | <property stdset="1"> | 692 | <property stdset="1"> |
653 | <name>text</name> | 693 | <name>text</name> |
654 | <string>Light off after</string> | 694 | <string>Light off after</string> |
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> |
683 | </grid> | 697 | </grid> |
684 | </widget> | 698 | </widget> |
@@ -693,17 +707,6 @@ | |||
693 | <string>Deactivate LCD only (does not suspend)</string> | 707 | <string>Deactivate LCD only (does not suspend)</string> |
694 | </property> | 708 | </property> |
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> |
708 | </widget> | 711 | </widget> |
709 | <widget> | 712 | <widget> |
@@ -860,47 +863,48 @@ | |||
860 | </widget> | 863 | </widget> |
861 | </hbox> | 864 | </hbox> |
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> |
905 | </vbox> | 909 | </vbox> |
906 | </widget> | 910 | </widget> |
@@ -965,7 +969,7 @@ | |||
965 | <vbox> | 969 | <vbox> |
966 | <property stdset="1"> | 970 | <property stdset="1"> |
967 | <name>margin</name> | 971 | <name>margin</name> |
968 | <number>4</number> | 972 | <number>3</number> |
969 | </property> | 973 | </property> |
970 | <property stdset="1"> | 974 | <property stdset="1"> |
971 | <name>spacing</name> | 975 | <name>spacing</name> |
@@ -977,14 +981,20 @@ | |||
977 | <name>name</name> | 981 | <name>name</name> |
978 | <cstring>Layout18</cstring> | 982 | <cstring>Layout18</cstring> |
979 | </property> | 983 | </property> |
984 | <property> | ||
985 | <name>layoutMargin</name> | ||
986 | </property> | ||
987 | <property> | ||
988 | <name>layoutSpacing</name> | ||
989 | </property> | ||
980 | <grid> | 990 | <grid> |
981 | <property stdset="1"> | 991 | <property stdset="1"> |
982 | <name>margin</name> | 992 | <name>margin</name> |
983 | <number>0</number> | 993 | <number>3</number> |
984 | </property> | 994 | </property> |
985 | <property stdset="1"> | 995 | <property stdset="1"> |
986 | <name>spacing</name> | 996 | <name>spacing</name> |
987 | <number>6</number> | 997 | <number>3</number> |
988 | </property> | 998 | </property> |
989 | <widget row="0" column="0" > | 999 | <widget row="0" column="0" > |
990 | <class>QLabel</class> | 1000 | <class>QLabel</class> |
@@ -993,9 +1003,15 @@ | |||
993 | <cstring>TextLabel1</cstring> | 1003 | <cstring>TextLabel1</cstring> |
994 | </property> | 1004 | </property> |
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> |
998 | interval</string> | ||
999 | </property> | 1015 | </property> |
1000 | <property stdset="1"> | 1016 | <property stdset="1"> |
1001 | <name>alignment</name> | 1017 | <name>alignment</name> |
@@ -1036,7 +1052,7 @@ interval</string> | |||
1036 | </property> | 1052 | </property> |
1037 | <property stdset="1"> | 1053 | <property stdset="1"> |
1038 | <name>suffix</name> | 1054 | <name>suffix</name> |
1039 | <string> seconds</string> | 1055 | <string> sec</string> |
1040 | </property> | 1056 | </property> |
1041 | <property stdset="1"> | 1057 | <property stdset="1"> |
1042 | <name>maxValue</name> | 1058 | <name>maxValue</name> |
@@ -1085,218 +1101,36 @@ interval</string> | |||
1085 | <cstring>TextLabel2</cstring> | 1101 | <cstring>TextLabel2</cstring> |
1086 | </property> | 1102 | </property> |
1087 | <property stdset="1"> | 1103 | <property stdset="1"> |
1088 | <name>text</name> | 1104 | <name>sizePolicy</name> |
1089 | <string>very low battery | 1105 | <sizepolicy> |
1090 | warning 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 | ||
1102 | warning 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> |
1155 | <property stdset="1"> | 1110 | <property stdset="1"> |
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> |
1247 | <property stdset="1"> | 1117 | <property stdset="1"> |
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> |
1283 | <property stdset="1"> | 1128 | <property stdset="1"> |
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> |
1301 | </vbox> | 1135 | </vbox> |
1302 | </widget> | 1136 | </widget> |
@@ -1340,67 +1174,9 @@ warning at</string> | |||
1340 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> | 1174 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> |
1341 | </image> | 1175 | </image> |
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> |
1405 | <tabstop>interval_suspend</tabstop> | 1181 | <tabstop>interval_suspend</tabstop> |
1406 | <tabstop>brightness</tabstop> | 1182 | <tabstop>brightness</tabstop> |