author | harlekin <harlekin> | 2002-10-27 16:55:45 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-27 16:55:45 (UTC) |
commit | 27a2748d4a5893a888b19d3ed453be29cac0d75b (patch) (unidiff) | |
tree | c9fdf0333553ab90c0f017d45e57992a63035079 | |
parent | 417d7bd0d307921b4540e99b8f52d10a03729153 (diff) | |
download | opie-27a2748d4a5893a888b19d3ed453be29cac0d75b.zip opie-27a2748d4a5893a888b19d3ed453be29cac0d75b.tar.gz opie-27a2748d4a5893a888b19d3ed453be29cac0d75b.tar.bz2 |
some whatsthis and further updates ( disabling dim when on light sensor)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 22 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 117 |
2 files changed, 122 insertions, 17 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 97120f2..77c6b40 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -57,4 +57,4 @@ using namespace Opie; | |||
57 | 57 | ||
58 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | 58 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) |
59 | : LightSettingsBase( parent, name, TRUE, fl ) | 59 | : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp ) |
60 | { | 60 | { |
@@ -63,5 +63,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
63 | // Not supported yet - hide until implemented | 63 | // Not supported yet - hide until implemented |
64 | auto_brightness->setEnabled( false ); | ||
65 | CalibrateLightSensor->setEnabled( false ); | 64 | CalibrateLightSensor->setEnabled( false ); |
66 | auto_brightness_ac_3->setEnabled( false ); | ||
67 | CalibrateLightSensorAC->setEnabled( false ); | 65 | CalibrateLightSensorAC->setEnabled( false ); |
@@ -77,5 +75,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
77 | config.setGroup( "Screensaver" ); | 75 | config.setGroup( "Screensaver" ); |
78 | |||
79 | int interval; | 76 | int interval; |
80 | |||
81 | // battery spinboxes | 77 | // battery spinboxes |
@@ -126,6 +122,2 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
126 | // battery check and slider | 122 | // battery check and slider |
127 | |||
128 | |||
129 | |||
130 | |||
131 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); | 123 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); |
@@ -152,4 +144,4 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
152 | config.setGroup( "Ipaqlightsensor" ); | 144 | config.setGroup( "Ipaqlightsensor" ); |
153 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); | 145 | auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 ); |
154 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); | 146 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",0) != 0 ); |
155 | //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); | 147 | //LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); |
@@ -170,4 +162,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
170 | 162 | ||
171 | LightSettings::~LightSettings() | 163 | LightSettings::~LightSettings() { |
172 | { | ||
173 | } | 164 | } |
@@ -188,3 +179,2 @@ void LightSettings::reject() | |||
188 | set_fl(initbright); | 179 | set_fl(initbright); |
189 | |||
190 | QDialog::reject(); | 180 | QDialog::reject(); |
@@ -286,3 +276,3 @@ void LightSettings::done(int r) | |||
286 | QDialog::done(r); | 276 | QDialog::done(r); |
287 | close ( ); | 277 | close (); |
288 | } | 278 | } |
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index fee5c2c..effa460 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -335,2 +335,6 @@ | |||
335 | </property> | 335 | </property> |
336 | <property> | ||
337 | <name>whatsThis</name> | ||
338 | <string>set a fix value for backlight</string> | ||
339 | </property> | ||
336 | </widget> | 340 | </widget> |
@@ -466,2 +470,6 @@ | |||
466 | </property> | 470 | </property> |
471 | <property> | ||
472 | <name>whatsThis</name> | ||
473 | <string>Advanced settings for light sensor handling</string> | ||
474 | </property> | ||
467 | </widget> | 475 | </widget> |
@@ -774,2 +782,6 @@ | |||
774 | </property> | 782 | </property> |
783 | <property> | ||
784 | <name>whatsThis</name> | ||
785 | <string>set a fix value for backlight</string> | ||
786 | </property> | ||
775 | </widget> | 787 | </widget> |
@@ -905,2 +917,6 @@ | |||
905 | </property> | 917 | </property> |
918 | <property> | ||
919 | <name>whatsThis</name> | ||
920 | <string>Advanced settings for light sensor handling</string> | ||
921 | </property> | ||
906 | </widget> | 922 | </widget> |
@@ -1176,4 +1192,89 @@ | |||
1176 | </images> | 1192 | </images> |
1193 | <connections> | ||
1194 | <connection> | ||
1195 | <sender>auto_brightness</sender> | ||
1196 | <signal>toggled(bool)</signal> | ||
1197 | <receiver>brightness</receiver> | ||
1198 | <slot>setDisabled(bool)</slot> | ||
1199 | </connection> | ||
1200 | <connection> | ||
1201 | <sender>auto_brightness_ac_3</sender> | ||
1202 | <signal>toggled(bool)</signal> | ||
1203 | <receiver>brightness_ac_3</receiver> | ||
1204 | <slot>setDisabled(bool)</slot> | ||
1205 | </connection> | ||
1206 | <connection> | ||
1207 | <sender>auto_brightness_ac_3</sender> | ||
1208 | <signal>toggled(bool)</signal> | ||
1209 | <receiver>TextLabel1_3_2</receiver> | ||
1210 | <slot>setDisabled(bool)</slot> | ||
1211 | </connection> | ||
1212 | <connection> | ||
1213 | <sender>auto_brightness</sender> | ||
1214 | <signal>toggled(bool)</signal> | ||
1215 | <receiver>TextLabel1_3</receiver> | ||
1216 | <slot>setDisabled(bool)</slot> | ||
1217 | </connection> | ||
1218 | <connection> | ||
1219 | <sender>auto_brightness</sender> | ||
1220 | <signal>toggled(bool)</signal> | ||
1221 | <receiver>interval_dim</receiver> | ||
1222 | <slot>setDisabled(bool)</slot> | ||
1223 | </connection> | ||
1224 | <connection> | ||
1225 | <sender>auto_brightness_ac_3</sender> | ||
1226 | <signal>toggled(bool)</signal> | ||
1227 | <receiver>interval_dim_ac_3</receiver> | ||
1228 | <slot>setDisabled(bool)</slot> | ||
1229 | </connection> | ||
1230 | <connection> | ||
1231 | <sender>auto_brightness</sender> | ||
1232 | <signal>toggled(bool)</signal> | ||
1233 | <receiver>PixmapLabel2</receiver> | ||
1234 | <slot>setDisabled(bool)</slot> | ||
1235 | </connection> | ||
1236 | <connection> | ||
1237 | <sender>auto_brightness</sender> | ||
1238 | <signal>toggled(bool)</signal> | ||
1239 | <receiver>TextLabel4</receiver> | ||
1240 | <slot>setDisabled(bool)</slot> | ||
1241 | </connection> | ||
1242 | <connection> | ||
1243 | <sender>auto_brightness</sender> | ||
1244 | <signal>toggled(bool)</signal> | ||
1245 | <receiver>TextLabel5</receiver> | ||
1246 | <slot>setDisabled(bool)</slot> | ||
1247 | </connection> | ||
1248 | <connection> | ||
1249 | <sender>auto_brightness</sender> | ||
1250 | <signal>toggled(bool)</signal> | ||
1251 | <receiver>PixmapLabel1</receiver> | ||
1252 | <slot>setDisabled(bool)</slot> | ||
1253 | </connection> | ||
1254 | <connection> | ||
1255 | <sender>auto_brightness_ac_3</sender> | ||
1256 | <signal>toggled(bool)</signal> | ||
1257 | <receiver>PixmapLabel2_2_3</receiver> | ||
1258 | <slot>setDisabled(bool)</slot> | ||
1259 | </connection> | ||
1260 | <connection> | ||
1261 | <sender>auto_brightness_ac_3</sender> | ||
1262 | <signal>toggled(bool)</signal> | ||
1263 | <receiver>TextLabel6</receiver> | ||
1264 | <slot>setDisabled(bool)</slot> | ||
1265 | </connection> | ||
1266 | <connection> | ||
1267 | <sender>auto_brightness_ac_3</sender> | ||
1268 | <signal>toggled(bool)</signal> | ||
1269 | <receiver>TextLabel7</receiver> | ||
1270 | <slot>setDisabled(bool)</slot> | ||
1271 | </connection> | ||
1272 | <connection> | ||
1273 | <sender>auto_brightness_ac_3</sender> | ||
1274 | <signal>toggled(bool)</signal> | ||
1275 | <receiver>PixmapLabel1_2_3</receiver> | ||
1276 | <slot>setDisabled(bool)</slot> | ||
1277 | </connection> | ||
1278 | </connections> | ||
1177 | <tabstops> | 1279 | <tabstops> |
1178 | <tabstop>auto_brightness</tabstop> | ||
1179 | <tabstop>interval_dim</tabstop> | 1280 | <tabstop>interval_dim</tabstop> |
@@ -1181,3 +1282,17 @@ | |||
1181 | <tabstop>interval_suspend</tabstop> | 1282 | <tabstop>interval_suspend</tabstop> |
1283 | <tabstop>LcdOffOnly</tabstop> | ||
1182 | <tabstop>brightness</tabstop> | 1284 | <tabstop>brightness</tabstop> |
1285 | <tabstop>auto_brightness</tabstop> | ||
1286 | <tabstop>CalibrateLightSensor</tabstop> | ||
1287 | <tabstop>TabWidget3</tabstop> | ||
1288 | <tabstop>interval_lightoff_ac_3</tabstop> | ||
1289 | <tabstop>interval_suspend_ac_3</tabstop> | ||
1290 | <tabstop>interval_dim_ac_3</tabstop> | ||
1291 | <tabstop>LcdOffOnly_2_3</tabstop> | ||
1292 | <tabstop>brightness_ac_3</tabstop> | ||
1293 | <tabstop>auto_brightness_ac_3</tabstop> | ||
1294 | <tabstop>CalibrateLightSensorAC</tabstop> | ||
1295 | <tabstop>lowSpinBox</tabstop> | ||
1296 | <tabstop>warnintervalBox</tabstop> | ||
1297 | <tabstop>criticalSpinBox</tabstop> | ||
1183 | </tabstops> | 1298 | </tabstops> |