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 | |||
@@ -42,55 +42,51 @@ | |||
42 | #include <qdatastream.h> | 42 | #include <qdatastream.h> |
43 | #include <qmessagebox.h> | 43 | #include <qmessagebox.h> |
44 | #include <qcombobox.h> | 44 | #include <qcombobox.h> |
45 | #include <qgroupbox.h> | 45 | #include <qgroupbox.h> |
46 | #include <qspinbox.h> | 46 | #include <qspinbox.h> |
47 | #include <qpushbutton.h> | 47 | #include <qpushbutton.h> |
48 | #include <qlistbox.h> | 48 | #include <qlistbox.h> |
49 | #include <qdir.h> | 49 | #include <qdir.h> |
50 | #if QT_VERSION >= 300 | 50 | #if QT_VERSION >= 300 |
51 | #include <qstylefactory.h> | 51 | #include <qstylefactory.h> |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #include <opie/odevice.h> | 54 | #include <opie/odevice.h> |
55 | 55 | ||
56 | using namespace Opie; | 56 | 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 | { |
61 | 61 | ||
62 | if ( ODevice::inst()->hasLightSensor() ) { | 62 | if ( ODevice::inst()->hasLightSensor() ) { |
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 ); |
68 | } else { | 66 | } else { |
69 | // if ipaq no need to show the sensor box | 67 | // if ipaq no need to show the sensor box |
70 | auto_brightness->hide(); | 68 | auto_brightness->hide(); |
71 | CalibrateLightSensor->hide(); | 69 | CalibrateLightSensor->hide(); |
72 | auto_brightness_ac_3->hide(); | 70 | auto_brightness_ac_3->hide(); |
73 | CalibrateLightSensorAC->hide(); | 71 | CalibrateLightSensorAC->hide(); |
74 | } | 72 | } |
75 | 73 | ||
76 | Config config( "qpe" ); | 74 | Config config( "qpe" ); |
77 | config.setGroup( "Screensaver" ); | 75 | config.setGroup( "Screensaver" ); |
78 | |||
79 | int interval; | 76 | int interval; |
80 | |||
81 | // battery spinboxes | 77 | // battery spinboxes |
82 | interval = config.readNumEntry( "Interval_Dim", 20 ); | 78 | interval = config.readNumEntry( "Interval_Dim", 20 ); |
83 | if ( config.readNumEntry("Dim",1) == 0 ) { | 79 | if ( config.readNumEntry("Dim",1) == 0 ) { |
84 | interval_dim->setSpecialValueText( tr("never") ); | 80 | interval_dim->setSpecialValueText( tr("never") ); |
85 | } else { | 81 | } else { |
86 | interval_dim->setValue( interval ); | 82 | interval_dim->setValue( interval ); |
87 | } | 83 | } |
88 | 84 | ||
89 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 85 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
90 | if ( config.readNumEntry("LightOff",1) == 0 ) { | 86 | if ( config.readNumEntry("LightOff",1) == 0 ) { |
91 | interval_lightoff->setSpecialValueText( tr("never") ); | 87 | interval_lightoff->setSpecialValueText( tr("never") ); |
92 | } else { | 88 | } else { |
93 | interval_lightoff->setValue( interval ); | 89 | interval_lightoff->setValue( interval ); |
94 | } | 90 | } |
95 | 91 | ||
96 | interval = config.readNumEntry( "Interval", 60 ); | 92 | interval = config.readNumEntry( "Interval", 60 ); |
@@ -111,95 +107,89 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | |||
111 | } else { | 107 | } else { |
112 | interval_lightoff_ac_3->setValue( interval ); | 108 | interval_lightoff_ac_3->setValue( interval ); |
113 | } | 109 | } |
114 | 110 | ||
115 | interval = config.readNumEntry( "IntervalAC", 60 ); | 111 | interval = config.readNumEntry( "IntervalAC", 60 ); |
116 | if ( interval > 3600 ) { | 112 | if ( interval > 3600 ) { |
117 | interval /= 1000; // compatibility (was millisecs) | 113 | interval /= 1000; // compatibility (was millisecs) |
118 | } | 114 | } |
119 | if ( config.readNumEntry("NoApmAC", 0) == 0 ) { | 115 | if ( config.readNumEntry("NoApmAC", 0) == 0 ) { |
120 | interval_suspend_ac_3->setSpecialValueText( tr("never") ); | 116 | interval_suspend_ac_3->setSpecialValueText( tr("never") ); |
121 | } else { | 117 | } else { |
122 | interval_suspend_ac_3->setValue( interval ); | 118 | interval_suspend_ac_3->setValue( interval ); |
123 | } | 119 | } |
124 | 120 | ||
125 | 121 | ||
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 ); |
132 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); | 124 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); |
133 | initbright = config.readNumEntry("Brightness",255); | 125 | initbright = config.readNumEntry("Brightness",255); |
134 | brightness->setMaxValue( maxbright ); | 126 | brightness->setMaxValue( maxbright ); |
135 | brightness->setTickInterval( QMAX(1,maxbright/16) ); | 127 | brightness->setTickInterval( QMAX(1,maxbright/16) ); |
136 | brightness->setLineStep( QMAX(1,maxbright/16) ); | 128 | brightness->setLineStep( QMAX(1,maxbright/16) ); |
137 | brightness->setPageStep( QMAX(1,maxbright/16) ); | 129 | brightness->setPageStep( QMAX(1,maxbright/16) ); |
138 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); | 130 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); |
139 | 131 | ||
140 | // ac check and slider | 132 | // ac check and slider |
141 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); | 133 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); |
142 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); | 134 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); |
143 | initbright_ac = config.readNumEntry("BrightnessAC",255); | 135 | initbright_ac = config.readNumEntry("BrightnessAC",255); |
144 | brightness_ac_3->setMaxValue( maxbright_ac ); | 136 | brightness_ac_3->setMaxValue( maxbright_ac ); |
145 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); | 137 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); |
146 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); | 138 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); |
147 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); | 139 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); |
148 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); | 140 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); |
149 | 141 | ||
150 | 142 | ||
151 | // ipaq sensor | 143 | // ipaq sensor |
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 ) ); |
156 | //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); | 148 | //LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); |
157 | //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; | 149 | //connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; |
158 | //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); | 150 | //LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); |
159 | 151 | ||
160 | // advanced settings | 152 | // advanced settings |
161 | Config conf("apm"); | 153 | Config conf("apm"); |
162 | conf.setGroup( "warnings" ); | 154 | conf.setGroup( "warnings" ); |
163 | warnintervalBox->setValue( conf.readNumEntry("checkinterval", 10000)/1000 ); | 155 | warnintervalBox->setValue( conf.readNumEntry("checkinterval", 10000)/1000 ); |
164 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); | 156 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); |
165 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); | 157 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); |
166 | 158 | ||
167 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); | 159 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); |
168 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); | 160 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); |
169 | } | 161 | } |
170 | 162 | ||
171 | LightSettings::~LightSettings() | 163 | LightSettings::~LightSettings() { |
172 | { | ||
173 | } | 164 | } |
174 | 165 | ||
175 | void LightSettings::slotSliderTicks( int steps ) { | 166 | void LightSettings::slotSliderTicks( int steps ) { |
176 | // LightMinValueSlider->setTickInterval( steps ); | 167 | // LightMinValueSlider->setTickInterval( steps ); |
177 | } | 168 | } |
178 | 169 | ||
179 | static void set_fl(int bright) | 170 | static void set_fl(int bright) |
180 | { | 171 | { |
181 | qDebug ( QString( "Brightness" ).arg( bright ) ); | 172 | qDebug ( QString( "Brightness" ).arg( bright ) ); |
182 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 173 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
183 | e << bright; | 174 | e << bright; |
184 | } | 175 | } |
185 | 176 | ||
186 | void LightSettings::reject() | 177 | void LightSettings::reject() |
187 | { | 178 | { |
188 | set_fl(initbright); | 179 | set_fl(initbright); |
189 | |||
190 | QDialog::reject(); | 180 | QDialog::reject(); |
191 | } | 181 | } |
192 | 182 | ||
193 | void LightSettings::accept() | 183 | void LightSettings::accept() |
194 | { | 184 | { |
195 | if ( qApp->focusWidget() ) { | 185 | if ( qApp->focusWidget() ) { |
196 | qApp->focusWidget()->clearFocus(); | 186 | qApp->focusWidget()->clearFocus(); |
197 | } | 187 | } |
198 | 188 | ||
199 | applyBrightness(); | 189 | applyBrightness(); |
200 | 190 | ||
201 | // bat | 191 | // bat |
202 | int i_dim = ( !( interval_dim->specialValueText() == tr("never") ) ? interval_dim->value() : 0); | 192 | int i_dim = ( !( interval_dim->specialValueText() == tr("never") ) ? interval_dim->value() : 0); |
203 | int i_lightoff = ( !( interval_lightoff->specialValueText() == tr("never") ) ? interval_lightoff->value() : 0); | 193 | int i_lightoff = ( !( interval_lightoff->specialValueText() == tr("never") ) ? interval_lightoff->value() : 0); |
204 | int i_suspend = interval_suspend->value(); | 194 | int i_suspend = interval_suspend->value(); |
205 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 195 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
@@ -271,18 +261,18 @@ void LightSettings::applyBrightness() | |||
271 | } | 261 | } |
272 | 262 | ||
273 | void LightSettings::applyBrightnessAC() | 263 | void LightSettings::applyBrightnessAC() |
274 | { | 264 | { |
275 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting | 265 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting |
276 | if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { | 266 | if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { |
277 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); | 267 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); |
278 | set_fl(bright); | 268 | set_fl(bright); |
279 | } | 269 | } |
280 | } | 270 | } |
281 | 271 | ||
282 | 272 | ||
283 | 273 | ||
284 | void LightSettings::done(int r) | 274 | void LightSettings::done(int r) |
285 | { | 275 | { |
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 | |||
@@ -320,32 +320,36 @@ | |||
320 | <property stdset="1"> | 320 | <property stdset="1"> |
321 | <name>tracking</name> | 321 | <name>tracking</name> |
322 | <bool>true</bool> | 322 | <bool>true</bool> |
323 | </property> | 323 | </property> |
324 | <property stdset="1"> | 324 | <property stdset="1"> |
325 | <name>orientation</name> | 325 | <name>orientation</name> |
326 | <enum>Horizontal</enum> | 326 | <enum>Horizontal</enum> |
327 | </property> | 327 | </property> |
328 | <property stdset="1"> | 328 | <property stdset="1"> |
329 | <name>tickmarks</name> | 329 | <name>tickmarks</name> |
330 | <enum>Right</enum> | 330 | <enum>Right</enum> |
331 | </property> | 331 | </property> |
332 | <property stdset="1"> | 332 | <property stdset="1"> |
333 | <name>tickInterval</name> | 333 | <name>tickInterval</name> |
334 | <number>32</number> | 334 | <number>32</number> |
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> |
337 | <widget> | 341 | <widget> |
338 | <class>QLayoutWidget</class> | 342 | <class>QLayoutWidget</class> |
339 | <property stdset="1"> | 343 | <property stdset="1"> |
340 | <name>name</name> | 344 | <name>name</name> |
341 | <cstring>Layout10</cstring> | 345 | <cstring>Layout10</cstring> |
342 | </property> | 346 | </property> |
343 | <hbox> | 347 | <hbox> |
344 | <property stdset="1"> | 348 | <property stdset="1"> |
345 | <name>margin</name> | 349 | <name>margin</name> |
346 | <number>0</number> | 350 | <number>0</number> |
347 | </property> | 351 | </property> |
348 | <property stdset="1"> | 352 | <property stdset="1"> |
349 | <name>spacing</name> | 353 | <name>spacing</name> |
350 | <number>6</number> | 354 | <number>6</number> |
351 | </property> | 355 | </property> |
@@ -451,32 +455,36 @@ | |||
451 | </property> | 455 | </property> |
452 | <property> | 456 | <property> |
453 | <name>whatsThis</name> | 457 | <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> | 458 | <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> | 459 | </property> |
456 | </widget> | 460 | </widget> |
457 | <widget> | 461 | <widget> |
458 | <class>QPushButton</class> | 462 | <class>QPushButton</class> |
459 | <property stdset="1"> | 463 | <property stdset="1"> |
460 | <name>name</name> | 464 | <name>name</name> |
461 | <cstring>CalibrateLightSensor</cstring> | 465 | <cstring>CalibrateLightSensor</cstring> |
462 | </property> | 466 | </property> |
463 | <property stdset="1"> | 467 | <property stdset="1"> |
464 | <name>text</name> | 468 | <name>text</name> |
465 | <string>Calibrate</string> | 469 | <string>Calibrate</string> |
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> |
468 | </hbox> | 476 | </hbox> |
469 | </widget> | 477 | </widget> |
470 | </vbox> | 478 | </vbox> |
471 | </widget> | 479 | </widget> |
472 | <spacer> | 480 | <spacer> |
473 | <property> | 481 | <property> |
474 | <name>name</name> | 482 | <name>name</name> |
475 | <cstring>Spacer4</cstring> | 483 | <cstring>Spacer4</cstring> |
476 | </property> | 484 | </property> |
477 | <property stdset="1"> | 485 | <property stdset="1"> |
478 | <name>orientation</name> | 486 | <name>orientation</name> |
479 | <enum>Vertical</enum> | 487 | <enum>Vertical</enum> |
480 | </property> | 488 | </property> |
481 | <property stdset="1"> | 489 | <property stdset="1"> |
482 | <name>sizeType</name> | 490 | <name>sizeType</name> |
@@ -759,32 +767,36 @@ | |||
759 | <property stdset="1"> | 767 | <property stdset="1"> |
760 | <name>value</name> | 768 | <name>value</name> |
761 | <number>255</number> | 769 | <number>255</number> |
762 | </property> | 770 | </property> |
763 | <property stdset="1"> | 771 | <property stdset="1"> |
764 | <name>tracking</name> | 772 | <name>tracking</name> |
765 | <bool>true</bool> | 773 | <bool>true</bool> |
766 | </property> | 774 | </property> |
767 | <property stdset="1"> | 775 | <property stdset="1"> |
768 | <name>orientation</name> | 776 | <name>orientation</name> |
769 | <enum>Horizontal</enum> | 777 | <enum>Horizontal</enum> |
770 | </property> | 778 | </property> |
771 | <property stdset="1"> | 779 | <property stdset="1"> |
772 | <name>tickmarks</name> | 780 | <name>tickmarks</name> |
773 | <enum>Right</enum> | 781 | <enum>Right</enum> |
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> |
776 | <widget> | 788 | <widget> |
777 | <class>QLayoutWidget</class> | 789 | <class>QLayoutWidget</class> |
778 | <property stdset="1"> | 790 | <property stdset="1"> |
779 | <name>name</name> | 791 | <name>name</name> |
780 | <cstring>Layout20</cstring> | 792 | <cstring>Layout20</cstring> |
781 | </property> | 793 | </property> |
782 | <hbox> | 794 | <hbox> |
783 | <property stdset="1"> | 795 | <property stdset="1"> |
784 | <name>margin</name> | 796 | <name>margin</name> |
785 | <number>0</number> | 797 | <number>0</number> |
786 | </property> | 798 | </property> |
787 | <property stdset="1"> | 799 | <property stdset="1"> |
788 | <name>spacing</name> | 800 | <name>spacing</name> |
789 | <number>6</number> | 801 | <number>6</number> |
790 | </property> | 802 | </property> |
@@ -890,32 +902,36 @@ | |||
890 | </property> | 902 | </property> |
891 | <property> | 903 | <property> |
892 | <name>whatsThis</name> | 904 | <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> | 905 | <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> | 906 | </property> |
895 | </widget> | 907 | </widget> |
896 | <widget> | 908 | <widget> |
897 | <class>QPushButton</class> | 909 | <class>QPushButton</class> |
898 | <property stdset="1"> | 910 | <property stdset="1"> |
899 | <name>name</name> | 911 | <name>name</name> |
900 | <cstring>CalibrateLightSensorAC</cstring> | 912 | <cstring>CalibrateLightSensorAC</cstring> |
901 | </property> | 913 | </property> |
902 | <property stdset="1"> | 914 | <property stdset="1"> |
903 | <name>text</name> | 915 | <name>text</name> |
904 | <string>Calibrate</string> | 916 | <string>Calibrate</string> |
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> |
907 | </hbox> | 923 | </hbox> |
908 | </widget> | 924 | </widget> |
909 | </vbox> | 925 | </vbox> |
910 | </widget> | 926 | </widget> |
911 | <spacer> | 927 | <spacer> |
912 | <property> | 928 | <property> |
913 | <name>name</name> | 929 | <name>name</name> |
914 | <cstring>Spacer5</cstring> | 930 | <cstring>Spacer5</cstring> |
915 | </property> | 931 | </property> |
916 | <property stdset="1"> | 932 | <property stdset="1"> |
917 | <name>orientation</name> | 933 | <name>orientation</name> |
918 | <enum>Vertical</enum> | 934 | <enum>Vertical</enum> |
919 | </property> | 935 | </property> |
920 | <property stdset="1"> | 936 | <property stdset="1"> |
921 | <name>sizeType</name> | 937 | <name>sizeType</name> |
@@ -1161,24 +1177,123 @@ | |||
1161 | </vbox> | 1177 | </vbox> |
1162 | </widget> | 1178 | </widget> |
1163 | <images> | 1179 | <images> |
1164 | <image> | 1180 | <image> |
1165 | <name>image0</name> | 1181 | <name>image0</name> |
1166 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data> | 1182 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data> |
1167 | </image> | 1183 | </image> |
1168 | <image> | 1184 | <image> |
1169 | <name>image1</name> | 1185 | <name>image1</name> |
1170 | <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> | 1186 | <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> |
1171 | </image> | 1187 | </image> |
1172 | <image> | 1188 | <image> |
1173 | <name>image2</name> | 1189 | <name>image2</name> |
1174 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> | 1190 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> |
1175 | </image> | 1191 | </image> |
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> |
1180 | <tabstop>interval_lightoff</tabstop> | 1281 | <tabstop>interval_lightoff</tabstop> |
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> |
1184 | </UI> | 1299 | </UI> |