author | harlekin <harlekin> | 2002-10-23 21:54:29 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-23 21:54:29 (UTC) |
commit | 482c5cfe8b3653888ba97716a1b29dae05200d70 (patch) (unidiff) | |
tree | 2faa98d5f15ac51ad604d58fe467dc9237c4bfc3 | |
parent | 4beb812466bd2be3946664d566cd9d9bb73d7894 (diff) | |
download | opie-482c5cfe8b3653888ba97716a1b29dae05200d70.zip opie-482c5cfe8b3653888ba97716a1b29dae05200d70.tar.gz opie-482c5cfe8b3653888ba97716a1b29dae05200d70.tar.bz2 |
new option for ac - disable all handling
-rw-r--r-- | core/settings/light-and-power/light.cpp | 7 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 55 |
2 files changed, 58 insertions, 4 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 0193a7b..04d2249 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -22,249 +22,250 @@ | |||
22 | 22 | ||
23 | #include "settings.h" | 23 | #include "settings.h" |
24 | 24 | ||
25 | #include <qpe/global.h> | 25 | #include <qpe/global.h> |
26 | #include <qpe/fontmanager.h> | 26 | #include <qpe/fontmanager.h> |
27 | #include <qpe/config.h> | 27 | #include <qpe/config.h> |
28 | #include <qpe/applnk.h> | 28 | #include <qpe/applnk.h> |
29 | #include <qpe/qpeapplication.h> | 29 | #include <qpe/qpeapplication.h> |
30 | #include <qpe/power.h> | 30 | #include <qpe/power.h> |
31 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 31 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
32 | #include <qpe/qcopenvelope_qws.h> | 32 | #include <qpe/qcopenvelope_qws.h> |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | #include <qlabel.h> | 35 | #include <qlabel.h> |
36 | #include <qcheckbox.h> | 36 | #include <qcheckbox.h> |
37 | #include <qradiobutton.h> | 37 | #include <qradiobutton.h> |
38 | #include <qtabwidget.h> | 38 | #include <qtabwidget.h> |
39 | #include <qslider.h> | 39 | #include <qslider.h> |
40 | #include <qfile.h> | 40 | #include <qfile.h> |
41 | #include <qtextstream.h> | 41 | #include <qtextstream.h> |
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 <qlistbox.h> | 47 | #include <qlistbox.h> |
48 | #include <qdir.h> | 48 | #include <qdir.h> |
49 | #if QT_VERSION >= 300 | 49 | #if QT_VERSION >= 300 |
50 | #include <qstylefactory.h> | 50 | #include <qstylefactory.h> |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #include <opie/odevice.h> | 53 | #include <opie/odevice.h> |
54 | 54 | ||
55 | using namespace Opie; | 55 | using namespace Opie; |
56 | 56 | ||
57 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) | 57 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) |
58 | : LightSettingsBase( parent, name, TRUE, fl ) | 58 | : LightSettingsBase( parent, name, TRUE, fl ) |
59 | { | 59 | { |
60 | 60 | ||
61 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || | 61 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || |
62 | ODevice::inst()->model() == Model_iPAQ_H36xx || | 62 | ODevice::inst()->model() == Model_iPAQ_H36xx || |
63 | ODevice::inst()->model() == Model_iPAQ_H37xx || | 63 | ODevice::inst()->model() == Model_iPAQ_H37xx || |
64 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { | 64 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { |
65 | // Not supported yet - hide until implemented | 65 | // Not supported yet - hide until implemented |
66 | IpaqGroupBox->setEnabled( false ); | 66 | IpaqGroupBox->setEnabled( false ); |
67 | IpaqGroupBoxAC->setEnabled( false ); | 67 | IpaqGroupBoxAC->setEnabled( false ); |
68 | LightSensorGroupBox->setEnabled( false ); | 68 | LightSensorGroupBox->setEnabled( false ); |
69 | } else { | 69 | } else { |
70 | // if ipaq no need to show the sensor box | 70 | // if ipaq no need to show the sensor box |
71 | IpaqGroupBox->hide(); | 71 | IpaqGroupBox->hide(); |
72 | IpaqGroupBoxAC->hide(); | 72 | IpaqGroupBoxAC->hide(); |
73 | LightSensorGroupBox->hide(); | 73 | LightSensorGroupBox->hide(); |
74 | } | 74 | } |
75 | 75 | ||
76 | Config config( "qpe" ); | 76 | Config config( "qpe" ); |
77 | config.setGroup( "Screensaver" ); | 77 | config.setGroup( "Screensaver" ); |
78 | 78 | ||
79 | int interval; | 79 | int interval; |
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 | interval_dim->setValue( interval ); |
84 | interval = config.readNumEntry( "Interval_LightOff", 30 ); | 84 | interval = config.readNumEntry( "Interval_LightOff", 30 ); |
85 | interval_lightoff->setValue( interval ); | 85 | interval_lightoff->setValue( interval ); |
86 | interval = config.readNumEntry( "Interval", 60 ); | 86 | interval = config.readNumEntry( "Interval", 60 ); |
87 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) | 87 | if ( interval > 3600 ) interval /= 1000; // compatibility (was millisecs) |
88 | interval_suspend->setValue( interval ); | 88 | interval_suspend->setValue( interval ); |
89 | 89 | ||
90 | // ac spinboxes | 90 | // ac spinboxes |
91 | interval = config.readNumEntry( "Interval_DimAC", 20 ); | 91 | interval = config.readNumEntry( "Interval_DimAC", 20 ); |
92 | interval_dim_ac_3->setValue( interval ); | 92 | interval_dim_ac_3->setValue( interval ); |
93 | interval = config.readNumEntry( "Interval_LightOffAC", 30 ); | 93 | interval = config.readNumEntry( "Interval_LightOffAC", 30 ); |
94 | interval_lightoff_ac_3->setValue( interval ); | 94 | interval_lightoff_ac_3->setValue( interval ); |
95 | interval = config.readNumEntry( "IntervalAC", 60 ); | 95 | interval = config.readNumEntry( "IntervalAC", 60 ); |
96 | if ( interval > 3600 ) { | 96 | if ( interval > 3600 ) { |
97 | interval /= 1000; // compatibility (was millisecs) | 97 | interval /= 1000; // compatibility (was millisecs) |
98 | } | 98 | } |
99 | interval_suspend_ac_3->setValue( interval ); | 99 | interval_suspend_ac_3->setValue( interval ); |
100 | 100 | ||
101 | 101 | ||
102 | // battery check and slider | 102 | // battery check and slider |
103 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); | 103 | screensaver_dim->setChecked( config.readNumEntry("Dim",1) != 0 ); |
104 | screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); | 104 | screensaver_lightoff->setChecked( config.readNumEntry("LightOff",1) != 0 ); |
105 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); | 105 | LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); |
106 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); | 106 | int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); |
107 | initbright = config.readNumEntry("Brightness",255); | 107 | initbright = config.readNumEntry("Brightness",255); |
108 | brightness->setMaxValue( maxbright ); | 108 | brightness->setMaxValue( maxbright ); |
109 | brightness->setTickInterval( QMAX(1,maxbright/16) ); | 109 | brightness->setTickInterval( QMAX(1,maxbright/16) ); |
110 | brightness->setLineStep( QMAX(1,maxbright/16) ); | 110 | brightness->setLineStep( QMAX(1,maxbright/16) ); |
111 | brightness->setPageStep( QMAX(1,maxbright/16) ); | 111 | brightness->setPageStep( QMAX(1,maxbright/16) ); |
112 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); | 112 | brightness->setValue( (maxbright*255 - initbright*maxbright)/255 ); |
113 | 113 | ||
114 | // ac check and slider | 114 | // ac check and slider |
115 | screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 ); | 115 | screensaver_dim_ac_3->setChecked( config.readNumEntry("DimAC",1) != 0 ); |
116 | screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 ); | 116 | screensaver_lightoff_ac_3->setChecked( config.readNumEntry("LightOffAC",1) != 0 ); |
117 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); | 117 | LcdOffOnly_2_3->setChecked( config.readNumEntry("LcdOffOnlyAC",0) != 0 ); |
118 | noApmAC->setChecked( config.readNumEntry("NoApmAC",0) != 0 ); | ||
118 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); | 119 | int maxbright_ac = ODevice::inst ( )-> displayBrightnessResolution ( ); |
119 | initbright_ac = config.readNumEntry("BrightnessAC",255); | 120 | initbright_ac = config.readNumEntry("BrightnessAC",255); |
120 | brightness_ac_3->setMaxValue( maxbright_ac ); | 121 | brightness_ac_3->setMaxValue( maxbright_ac ); |
121 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); | 122 | brightness_ac_3->setTickInterval( QMAX(1,maxbright_ac/16) ); |
122 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); | 123 | brightness_ac_3->setLineStep( QMAX(1,maxbright_ac/16) ); |
123 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); | 124 | brightness_ac_3->setPageStep( QMAX(1,maxbright_ac/16) ); |
124 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); | 125 | brightness_ac_3->setValue( (maxbright_ac*255 - initbright_ac*maxbright_ac)/255 ); |
125 | 126 | ||
126 | 127 | ||
127 | // ipaq sensor | 128 | // ipaq sensor |
128 | config.setGroup( "Ipaq_light_sensor" ); | 129 | config.setGroup( "Ipaqlightsensor" ); |
129 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); | 130 | auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 ); |
130 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); | 131 | auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 ); |
131 | LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); | 132 | LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) ); |
132 | LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); | 133 | LightMinValueSlider->setValue( config.readNumEntry("MinValue", 70 ) ); |
133 | connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; | 134 | connect( LightStepSpin, SIGNAL( valueChanged( int ) ), this, SLOT( slotSliderTicks( int ) ) ) ; |
134 | LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); | 135 | LightShiftSpin->setValue( config.readNumEntry("Shift", 0 ) ); |
135 | 136 | ||
136 | // advanced settings | 137 | // advanced settings |
137 | Config conf("apm"); | 138 | Config conf("apm"); |
138 | conf.setGroup( "warnings" ); | 139 | conf.setGroup( "warnings" ); |
139 | warnintervalBox->setValue( conf.readNumEntry("checkinterval", 10000)/1000 ); | 140 | warnintervalBox->setValue( conf.readNumEntry("checkinterval", 10000)/1000 ); |
140 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); | 141 | lowSpinBox->setValue( conf.readNumEntry("powerverylow", 10 ) ); |
141 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); | 142 | criticalSpinBox->setValue( conf.readNumEntry("powercritical", 5 ) ); |
142 | 143 | ||
143 | 144 | ||
144 | 145 | ||
145 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); | 146 | connect( brightness, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightness() ) ); |
146 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); | 147 | connect( brightness_ac_3, SIGNAL( valueChanged(int) ), this, SLOT( applyBrightnessAC() ) ); |
147 | } | 148 | } |
148 | 149 | ||
149 | LightSettings::~LightSettings() | 150 | LightSettings::~LightSettings() |
150 | { | 151 | { |
151 | } | 152 | } |
152 | 153 | ||
153 | void LightSettings::slotSliderTicks( int steps ) { | 154 | void LightSettings::slotSliderTicks( int steps ) { |
154 | LightMinValueSlider->setTickInterval( steps ); | 155 | LightMinValueSlider->setTickInterval( steps ); |
155 | } | 156 | } |
156 | 157 | ||
157 | static void set_fl(int bright) | 158 | static void set_fl(int bright) |
158 | { | 159 | { |
159 | qDebug ( QString( "Brightness" ).arg( bright ) ); | 160 | qDebug ( QString( "Brightness" ).arg( bright ) ); |
160 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 161 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
161 | e << bright; | 162 | e << bright; |
162 | } | 163 | } |
163 | 164 | ||
164 | void LightSettings::reject() | 165 | void LightSettings::reject() |
165 | { | 166 | { |
166 | set_fl(initbright); | 167 | set_fl(initbright); |
167 | 168 | ||
168 | QDialog::reject(); | 169 | QDialog::reject(); |
169 | } | 170 | } |
170 | 171 | ||
171 | void LightSettings::accept() | 172 | void LightSettings::accept() |
172 | { | 173 | { |
173 | if ( qApp->focusWidget() ) | 174 | if ( qApp->focusWidget() ) |
174 | qApp->focusWidget()->clearFocus(); | 175 | qApp->focusWidget()->clearFocus(); |
175 | 176 | ||
176 | applyBrightness(); | 177 | applyBrightness(); |
177 | 178 | ||
178 | // bat | 179 | // bat |
179 | int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); | 180 | int i_dim = (screensaver_dim->isChecked() ? interval_dim->value() : 0); |
180 | int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); | 181 | int i_lightoff = (screensaver_lightoff->isChecked() ? interval_lightoff->value() : 0); |
181 | int i_suspend = interval_suspend->value(); | 182 | int i_suspend = interval_suspend->value(); |
182 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); | 183 | QCopEnvelope e("QPE/System", "setScreenSaverIntervals(int,int,int)" ); |
183 | e << i_dim << i_lightoff << i_suspend; | 184 | e << i_dim << i_lightoff << i_suspend; |
184 | 185 | ||
185 | // ac | 186 | // ac |
186 | int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); | 187 | int i_dim_ac = (screensaver_dim_ac_3->isChecked() ? interval_dim_ac_3->value() : 0); |
187 | int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); | 188 | int i_lightoff_ac = (screensaver_lightoff_ac_3->isChecked() ? interval_lightoff_ac_3->value() : 0); |
188 | int i_suspend_ac = interval_suspend_ac_3->value(); | 189 | int i_suspend_ac = interval_suspend_ac_3->value(); |
189 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); | 190 | QCopEnvelope e_ac("QPE/System", "setScreenSaverIntervalsAC(int,int,int)" ); |
190 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; | 191 | e << i_dim_ac << i_lightoff_ac << i_suspend_ac; |
191 | 192 | ||
192 | Config config( "qpe" ); | 193 | Config config( "qpe" ); |
193 | config.setGroup( "Screensaver" ); | 194 | config.setGroup( "Screensaver" ); |
194 | 195 | ||
195 | // bat | 196 | // bat |
196 | config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); | 197 | config.writeEntry( "Dim", (int)screensaver_dim->isChecked() ); |
197 | config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); | 198 | config.writeEntry( "LightOff", (int)screensaver_lightoff->isChecked() ); |
198 | config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); | 199 | config.writeEntry( "LcdOffOnly", (int)LcdOffOnly->isChecked() ); |
199 | config.writeEntry( "Interval_Dim", interval_dim->value() ); | 200 | config.writeEntry( "Interval_Dim", interval_dim->value() ); |
200 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); | 201 | config.writeEntry( "Interval_LightOff", interval_lightoff->value() ); |
201 | config.writeEntry( "Interval", interval_suspend->value() ); | 202 | config.writeEntry( "Interval", interval_suspend->value() ); |
202 | config.writeEntry( "Brightness", | 203 | config.writeEntry( "Brightness", |
203 | ( brightness->value() ) * 255 / brightness->maxValue() ); | 204 | ( brightness->value() ) * 255 / brightness->maxValue() ); |
204 | 205 | ||
205 | // ac | 206 | // ac |
206 | config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); | 207 | config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() ); |
207 | config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); | 208 | config.writeEntry( "LightOffAC", (int)screensaver_lightoff_ac_3->isChecked() ); |
208 | config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); | 209 | config.writeEntry( "LcdOffOnlyAC", (int)LcdOffOnly_2_3->isChecked() ); |
210 | config.writeEntry( "NoAPmAC", (int)noApmAC->isChecked() ); | ||
209 | config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); | 211 | config.writeEntry( "Interval_DimAC", interval_dim_ac_3->value() ); |
210 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); | 212 | config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() ); |
211 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); | 213 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); |
212 | config.writeEntry( "BrightnessAC", | 214 | config.writeEntry( "BrightnessAC", |
213 | ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() ); | 215 | ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() ); |
214 | 216 | ||
215 | 217 | ||
216 | // only make ipaq light sensor entries in config file if on an ipaq | 218 | // only make ipaq light sensor entries in config file if on an ipaq |
217 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || | 219 | if ( ODevice::inst()->model() == Model_iPAQ_H31xx || |
218 | ODevice::inst()->model() == Model_iPAQ_H36xx || | 220 | ODevice::inst()->model() == Model_iPAQ_H36xx || |
219 | ODevice::inst()->model() == Model_iPAQ_H37xx || | 221 | ODevice::inst()->model() == Model_iPAQ_H37xx || |
220 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { | 222 | ODevice::inst()->model() == Model_iPAQ_H38xx ) { |
221 | 223 | ||
222 | // ipaq sensor | 224 | // ipaq sensor |
223 | config.setGroup( "Ipaq_light_sensor" ); | 225 | config.setGroup( "Ipaqlightsensor" ); |
224 | 226 | ||
225 | config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); | 227 | config.writeEntry( "LightSensor", (int)auto_brightness->isChecked() ); |
226 | config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); | 228 | config.writeEntry( "LightSensorAC", (int)auto_brightness_ac_3->isChecked() ); |
227 | config.writeEntry( "Steps", LightStepSpin->value() ); | 229 | config.writeEntry( "Steps", LightStepSpin->value() ); |
228 | config.writeEntry( "MinValue", LightMinValueSlider->value() ); | 230 | config.writeEntry( "MinValue", LightMinValueSlider->value() ); |
229 | config.writeEntry( "Shift", LightShiftSpin->value() ); | 231 | config.writeEntry( "Shift", LightShiftSpin->value() ); |
230 | } | 232 | } |
231 | 233 | ||
232 | config.write(); | 234 | config.write(); |
233 | 235 | ||
234 | // advanced | 236 | // advanced |
235 | Config conf("apm"); | 237 | Config conf("apm"); |
236 | conf.setGroup( "Warnings" ); | 238 | conf.setGroup( "Warnings" ); |
237 | conf.writeEntry( "check_interval", warnintervalBox->value()*1000 ); | 239 | conf.writeEntry( "check_interval", warnintervalBox->value()*1000 ); |
238 | conf.writeEntry( "power_verylow", lowSpinBox->value() ); | 240 | conf.writeEntry( "power_verylow", lowSpinBox->value() ); |
239 | conf.writeEntry( "power_critical", criticalSpinBox->value() ); | 241 | conf.writeEntry( "power_critical", criticalSpinBox->value() ); |
240 | QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); | 242 | QCopEnvelope e_warn("QPE/System", "reloadPowerWarnSettings()"); |
241 | conf.write(); | 243 | conf.write(); |
242 | 244 | ||
243 | |||
244 | QDialog::accept(); | 245 | QDialog::accept(); |
245 | } | 246 | } |
246 | 247 | ||
247 | void LightSettings::applyBrightness() | 248 | void LightSettings::applyBrightness() |
248 | { | 249 | { |
249 | if ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) { | 250 | if ( PowerStatusManager::readStatus().acStatus() != PowerStatus::Online ) { |
250 | int bright = ( brightness->value() ) * 255 / brightness->maxValue(); | 251 | int bright = ( brightness->value() ) * 255 / brightness->maxValue(); |
251 | set_fl(bright); | 252 | set_fl(bright); |
252 | } | 253 | } |
253 | } | 254 | } |
254 | 255 | ||
255 | void LightSettings::applyBrightnessAC() | 256 | void LightSettings::applyBrightnessAC() |
256 | { | 257 | { |
257 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting | 258 | // if ac is attached, set directly that sliders setting, else the "on battery" sliders setting |
258 | if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { | 259 | if ( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ) { |
259 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); | 260 | int bright = ( brightness_ac_3->value() ) * 255 / brightness_ac_3->maxValue(); |
260 | set_fl(bright); | 261 | set_fl(bright); |
261 | } | 262 | } |
262 | } | 263 | } |
263 | 264 | ||
264 | 265 | ||
265 | 266 | ||
266 | void LightSettings::done(int r) | 267 | void LightSettings::done(int r) |
267 | { | 268 | { |
268 | QDialog::done(r); | 269 | QDialog::done(r); |
269 | close ( ); | 270 | close ( ); |
270 | } | 271 | } |
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index be096ac..2d0457f 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -1,110 +1,110 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>LightSettingsBase</class> | 2 | <class>LightSettingsBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QDialog</class> | 4 | <class>QDialog</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>LightSettingsBase</cstring> | 7 | <cstring>LightSettingsBase</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>415</width> | 14 | <width>411</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>caption</name> | 19 | <name>caption</name> |
20 | <string>Light and Power Settings</string> | 20 | <string>Light and Power Settings</string> |
21 | </property> | 21 | </property> |
22 | <property stdset="1"> | 22 | <property stdset="1"> |
23 | <name>sizeGripEnabled</name> | 23 | <name>sizeGripEnabled</name> |
24 | <bool>false</bool> | 24 | <bool>false</bool> |
25 | </property> | 25 | </property> |
26 | <property> | 26 | <property> |
27 | <name>layoutMargin</name> | 27 | <name>layoutMargin</name> |
28 | </property> | 28 | </property> |
29 | <property> | 29 | <property> |
30 | <name>layoutSpacing</name> | 30 | <name>layoutSpacing</name> |
31 | </property> | 31 | </property> |
32 | <vbox> | 32 | <vbox> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>margin</name> | 34 | <name>margin</name> |
35 | <number>3</number> | 35 | <number>3</number> |
36 | </property> | 36 | </property> |
37 | <property stdset="1"> | 37 | <property stdset="1"> |
38 | <name>spacing</name> | 38 | <name>spacing</name> |
39 | <number>3</number> | 39 | <number>3</number> |
40 | </property> | 40 | </property> |
41 | <widget> | 41 | <widget> |
42 | <class>QTabWidget</class> | 42 | <class>QTabWidget</class> |
43 | <property stdset="1"> | 43 | <property stdset="1"> |
44 | <name>name</name> | 44 | <name>name</name> |
45 | <cstring>TabWidget3</cstring> | 45 | <cstring>TabWidget3</cstring> |
46 | </property> | 46 | </property> |
47 | <property> | 47 | <property> |
48 | <name>layoutMargin</name> | 48 | <name>layoutMargin</name> |
49 | </property> | 49 | </property> |
50 | <property> | 50 | <property> |
51 | <name>layoutSpacing</name> | 51 | <name>layoutSpacing</name> |
52 | </property> | 52 | </property> |
53 | <widget> | 53 | <widget> |
54 | <class>QWidget</class> | 54 | <class>QWidget</class> |
55 | <property stdset="1"> | 55 | <property stdset="1"> |
56 | <name>name</name> | 56 | <name>name</name> |
57 | <cstring>tab</cstring> | 57 | <cstring>tab</cstring> |
58 | </property> | 58 | </property> |
59 | <attribute> | 59 | <attribute> |
60 | <name>title</name> | 60 | <name>title</name> |
61 | <string>on Battery</string> | 61 | <string>on Battery</string> |
62 | </attribute> | 62 | </attribute> |
63 | <vbox> | 63 | <vbox> |
64 | <property stdset="1"> | 64 | <property stdset="1"> |
65 | <name>margin</name> | 65 | <name>margin</name> |
66 | <number>3</number> | 66 | <number>3</number> |
67 | </property> | 67 | </property> |
68 | <property stdset="1"> | 68 | <property stdset="1"> |
69 | <name>spacing</name> | 69 | <name>spacing</name> |
70 | <number>3</number> | 70 | <number>3</number> |
71 | </property> | 71 | </property> |
72 | <widget> | 72 | <widget> |
73 | <class>QGroupBox</class> | 73 | <class>QGroupBox</class> |
74 | <property stdset="1"> | 74 | <property stdset="1"> |
75 | <name>name</name> | 75 | <name>name</name> |
76 | <cstring>GroupBox3</cstring> | 76 | <cstring>GroupBox3</cstring> |
77 | </property> | 77 | </property> |
78 | <property stdset="1"> | 78 | <property stdset="1"> |
79 | <name>enabled</name> | 79 | <name>enabled</name> |
80 | <bool>true</bool> | 80 | <bool>true</bool> |
81 | </property> | 81 | </property> |
82 | <property stdset="1"> | 82 | <property stdset="1"> |
83 | <name>title</name> | 83 | <name>title</name> |
84 | <string>General Settings</string> | 84 | <string>General Settings</string> |
85 | </property> | 85 | </property> |
86 | <property> | 86 | <property> |
87 | <name>layoutMargin</name> | 87 | <name>layoutMargin</name> |
88 | </property> | 88 | </property> |
89 | <property> | 89 | <property> |
90 | <name>layoutSpacing</name> | 90 | <name>layoutSpacing</name> |
91 | </property> | 91 | </property> |
92 | <vbox> | 92 | <vbox> |
93 | <property stdset="1"> | 93 | <property stdset="1"> |
94 | <name>margin</name> | 94 | <name>margin</name> |
95 | <number>3</number> | 95 | <number>3</number> |
96 | </property> | 96 | </property> |
97 | <property stdset="1"> | 97 | <property stdset="1"> |
98 | <name>spacing</name> | 98 | <name>spacing</name> |
99 | <number>3</number> | 99 | <number>3</number> |
100 | </property> | 100 | </property> |
101 | <widget> | 101 | <widget> |
102 | <class>QLayoutWidget</class> | 102 | <class>QLayoutWidget</class> |
103 | <property stdset="1"> | 103 | <property stdset="1"> |
104 | <name>name</name> | 104 | <name>name</name> |
105 | <cstring>Layout8</cstring> | 105 | <cstring>Layout8</cstring> |
106 | </property> | 106 | </property> |
107 | <grid> | 107 | <grid> |
108 | <property stdset="1"> | 108 | <property stdset="1"> |
109 | <name>margin</name> | 109 | <name>margin</name> |
110 | <number>0</number> | 110 | <number>0</number> |
@@ -600,192 +600,203 @@ | |||
600 | <name>maxValue</name> | 600 | <name>maxValue</name> |
601 | <number>3600</number> | 601 | <number>3600</number> |
602 | </property> | 602 | </property> |
603 | <property stdset="1"> | 603 | <property stdset="1"> |
604 | <name>minValue</name> | 604 | <name>minValue</name> |
605 | <number>10</number> | 605 | <number>10</number> |
606 | </property> | 606 | </property> |
607 | <property stdset="1"> | 607 | <property stdset="1"> |
608 | <name>lineStep</name> | 608 | <name>lineStep</name> |
609 | <number>15</number> | 609 | <number>15</number> |
610 | </property> | 610 | </property> |
611 | </widget> | 611 | </widget> |
612 | <widget row="1" column="1" > | 612 | <widget row="1" column="1" > |
613 | <class>QSpinBox</class> | 613 | <class>QSpinBox</class> |
614 | <property stdset="1"> | 614 | <property stdset="1"> |
615 | <name>name</name> | 615 | <name>name</name> |
616 | <cstring>interval_lightoff_ac_3</cstring> | 616 | <cstring>interval_lightoff_ac_3</cstring> |
617 | </property> | 617 | </property> |
618 | <property stdset="1"> | 618 | <property stdset="1"> |
619 | <name>suffix</name> | 619 | <name>suffix</name> |
620 | <string> seconds</string> | 620 | <string> seconds</string> |
621 | </property> | 621 | </property> |
622 | <property stdset="1"> | 622 | <property stdset="1"> |
623 | <name>buttonSymbols</name> | 623 | <name>buttonSymbols</name> |
624 | <enum>PlusMinus</enum> | 624 | <enum>PlusMinus</enum> |
625 | </property> | 625 | </property> |
626 | <property stdset="1"> | 626 | <property stdset="1"> |
627 | <name>maxValue</name> | 627 | <name>maxValue</name> |
628 | <number>3600</number> | 628 | <number>3600</number> |
629 | </property> | 629 | </property> |
630 | <property stdset="1"> | 630 | <property stdset="1"> |
631 | <name>minValue</name> | 631 | <name>minValue</name> |
632 | <number>10</number> | 632 | <number>10</number> |
633 | </property> | 633 | </property> |
634 | <property stdset="1"> | 634 | <property stdset="1"> |
635 | <name>lineStep</name> | 635 | <name>lineStep</name> |
636 | <number>15</number> | 636 | <number>15</number> |
637 | </property> | 637 | </property> |
638 | </widget> | 638 | </widget> |
639 | <widget row="1" column="0" > | 639 | <widget row="1" column="0" > |
640 | <class>QCheckBox</class> | 640 | <class>QCheckBox</class> |
641 | <property stdset="1"> | 641 | <property stdset="1"> |
642 | <name>name</name> | 642 | <name>name</name> |
643 | <cstring>screensaver_lightoff_ac_3</cstring> | 643 | <cstring>screensaver_lightoff_ac_3</cstring> |
644 | </property> | 644 | </property> |
645 | <property stdset="1"> | 645 | <property stdset="1"> |
646 | <name>sizePolicy</name> | 646 | <name>sizePolicy</name> |
647 | <sizepolicy> | 647 | <sizepolicy> |
648 | <hsizetype>1</hsizetype> | 648 | <hsizetype>1</hsizetype> |
649 | <vsizetype>0</vsizetype> | 649 | <vsizetype>0</vsizetype> |
650 | </sizepolicy> | 650 | </sizepolicy> |
651 | </property> | 651 | </property> |
652 | <property stdset="1"> | 652 | <property stdset="1"> |
653 | <name>text</name> | 653 | <name>text</name> |
654 | <string>Light off after</string> | 654 | <string>Light off after</string> |
655 | </property> | 655 | </property> |
656 | <property stdset="1"> | 656 | <property stdset="1"> |
657 | <name>checked</name> | 657 | <name>checked</name> |
658 | <bool>true</bool> | 658 | <bool>true</bool> |
659 | </property> | 659 | </property> |
660 | </widget> | 660 | </widget> |
661 | <widget row="0" column="0" > | 661 | <widget row="0" column="0" > |
662 | <class>QCheckBox</class> | 662 | <class>QCheckBox</class> |
663 | <property stdset="1"> | 663 | <property stdset="1"> |
664 | <name>name</name> | 664 | <name>name</name> |
665 | <cstring>screensaver_dim_ac_3</cstring> | 665 | <cstring>screensaver_dim_ac_3</cstring> |
666 | </property> | 666 | </property> |
667 | <property stdset="1"> | 667 | <property stdset="1"> |
668 | <name>sizePolicy</name> | 668 | <name>sizePolicy</name> |
669 | <sizepolicy> | 669 | <sizepolicy> |
670 | <hsizetype>1</hsizetype> | 670 | <hsizetype>1</hsizetype> |
671 | <vsizetype>0</vsizetype> | 671 | <vsizetype>0</vsizetype> |
672 | </sizepolicy> | 672 | </sizepolicy> |
673 | </property> | 673 | </property> |
674 | <property stdset="1"> | 674 | <property stdset="1"> |
675 | <name>text</name> | 675 | <name>text</name> |
676 | <string>Dim light after</string> | 676 | <string>Dim light after</string> |
677 | </property> | 677 | </property> |
678 | <property stdset="1"> | 678 | <property stdset="1"> |
679 | <name>checked</name> | 679 | <name>checked</name> |
680 | <bool>true</bool> | 680 | <bool>true</bool> |
681 | </property> | 681 | </property> |
682 | </widget> | 682 | </widget> |
683 | </grid> | 683 | </grid> |
684 | </widget> | 684 | </widget> |
685 | <widget> | 685 | <widget> |
686 | <class>QCheckBox</class> | 686 | <class>QCheckBox</class> |
687 | <property stdset="1"> | 687 | <property stdset="1"> |
688 | <name>name</name> | 688 | <name>name</name> |
689 | <cstring>LcdOffOnly_2_3</cstring> | 689 | <cstring>LcdOffOnly_2_3</cstring> |
690 | </property> | 690 | </property> |
691 | <property stdset="1"> | 691 | <property stdset="1"> |
692 | <name>text</name> | 692 | <name>text</name> |
693 | <string>Deactivate LCD only (does not suspend)</string> | 693 | <string>Deactivate LCD only (does not suspend)</string> |
694 | </property> | 694 | </property> |
695 | </widget> | 695 | </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> | ||
696 | </vbox> | 707 | </vbox> |
697 | </widget> | 708 | </widget> |
698 | <widget> | 709 | <widget> |
699 | <class>QGroupBox</class> | 710 | <class>QGroupBox</class> |
700 | <property stdset="1"> | 711 | <property stdset="1"> |
701 | <name>name</name> | 712 | <name>name</name> |
702 | <cstring>GroupBox8</cstring> | 713 | <cstring>GroupBox8</cstring> |
703 | </property> | 714 | </property> |
704 | <property stdset="1"> | 715 | <property stdset="1"> |
705 | <name>title</name> | 716 | <name>title</name> |
706 | <string>Backlight</string> | 717 | <string>Backlight</string> |
707 | </property> | 718 | </property> |
708 | <property> | 719 | <property> |
709 | <name>layoutMargin</name> | 720 | <name>layoutMargin</name> |
710 | </property> | 721 | </property> |
711 | <property> | 722 | <property> |
712 | <name>layoutSpacing</name> | 723 | <name>layoutSpacing</name> |
713 | </property> | 724 | </property> |
714 | <vbox> | 725 | <vbox> |
715 | <property stdset="1"> | 726 | <property stdset="1"> |
716 | <name>margin</name> | 727 | <name>margin</name> |
717 | <number>3</number> | 728 | <number>3</number> |
718 | </property> | 729 | </property> |
719 | <property stdset="1"> | 730 | <property stdset="1"> |
720 | <name>spacing</name> | 731 | <name>spacing</name> |
721 | <number>3</number> | 732 | <number>3</number> |
722 | </property> | 733 | </property> |
723 | <widget> | 734 | <widget> |
724 | <class>QSlider</class> | 735 | <class>QSlider</class> |
725 | <property stdset="1"> | 736 | <property stdset="1"> |
726 | <name>name</name> | 737 | <name>name</name> |
727 | <cstring>brightness_ac_3</cstring> | 738 | <cstring>brightness_ac_3</cstring> |
728 | </property> | 739 | </property> |
729 | <property stdset="1"> | 740 | <property stdset="1"> |
730 | <name>minValue</name> | 741 | <name>minValue</name> |
731 | <number>0</number> | 742 | <number>0</number> |
732 | </property> | 743 | </property> |
733 | <property stdset="1"> | 744 | <property stdset="1"> |
734 | <name>maxValue</name> | 745 | <name>maxValue</name> |
735 | <number>255</number> | 746 | <number>255</number> |
736 | </property> | 747 | </property> |
737 | <property stdset="1"> | 748 | <property stdset="1"> |
738 | <name>lineStep</name> | 749 | <name>lineStep</name> |
739 | <number>16</number> | 750 | <number>16</number> |
740 | </property> | 751 | </property> |
741 | <property stdset="1"> | 752 | <property stdset="1"> |
742 | <name>pageStep</name> | 753 | <name>pageStep</name> |
743 | <number>16</number> | 754 | <number>16</number> |
744 | </property> | 755 | </property> |
745 | <property stdset="1"> | 756 | <property stdset="1"> |
746 | <name>value</name> | 757 | <name>value</name> |
747 | <number>255</number> | 758 | <number>255</number> |
748 | </property> | 759 | </property> |
749 | <property stdset="1"> | 760 | <property stdset="1"> |
750 | <name>tracking</name> | 761 | <name>tracking</name> |
751 | <bool>true</bool> | 762 | <bool>true</bool> |
752 | </property> | 763 | </property> |
753 | <property stdset="1"> | 764 | <property stdset="1"> |
754 | <name>orientation</name> | 765 | <name>orientation</name> |
755 | <enum>Horizontal</enum> | 766 | <enum>Horizontal</enum> |
756 | </property> | 767 | </property> |
757 | <property stdset="1"> | 768 | <property stdset="1"> |
758 | <name>tickmarks</name> | 769 | <name>tickmarks</name> |
759 | <enum>Right</enum> | 770 | <enum>Right</enum> |
760 | </property> | 771 | </property> |
761 | </widget> | 772 | </widget> |
762 | <widget> | 773 | <widget> |
763 | <class>QLayoutWidget</class> | 774 | <class>QLayoutWidget</class> |
764 | <property stdset="1"> | 775 | <property stdset="1"> |
765 | <name>name</name> | 776 | <name>name</name> |
766 | <cstring>Layout20</cstring> | 777 | <cstring>Layout20</cstring> |
767 | </property> | 778 | </property> |
768 | <hbox> | 779 | <hbox> |
769 | <property stdset="1"> | 780 | <property stdset="1"> |
770 | <name>margin</name> | 781 | <name>margin</name> |
771 | <number>0</number> | 782 | <number>0</number> |
772 | </property> | 783 | </property> |
773 | <property stdset="1"> | 784 | <property stdset="1"> |
774 | <name>spacing</name> | 785 | <name>spacing</name> |
775 | <number>6</number> | 786 | <number>6</number> |
776 | </property> | 787 | </property> |
777 | <widget> | 788 | <widget> |
778 | <class>QLabel</class> | 789 | <class>QLabel</class> |
779 | <property stdset="1"> | 790 | <property stdset="1"> |
780 | <name>name</name> | 791 | <name>name</name> |
781 | <cstring>PixmapLabel2_2_3</cstring> | 792 | <cstring>PixmapLabel2_2_3</cstring> |
782 | </property> | 793 | </property> |
783 | <property stdset="1"> | 794 | <property stdset="1"> |
784 | <name>pixmap</name> | 795 | <name>pixmap</name> |
785 | <pixmap>image2</pixmap> | 796 | <pixmap>image2</pixmap> |
786 | </property> | 797 | </property> |
787 | <property stdset="1"> | 798 | <property stdset="1"> |
788 | <name>scaledContents</name> | 799 | <name>scaledContents</name> |
789 | <bool>false</bool> | 800 | <bool>false</bool> |
790 | </property> | 801 | </property> |
791 | </widget> | 802 | </widget> |
@@ -1249,107 +1260,149 @@ warning at</string> | |||
1249 | </hbox> | 1260 | </hbox> |
1250 | </widget> | 1261 | </widget> |
1251 | <widget> | 1262 | <widget> |
1252 | <class>QLayoutWidget</class> | 1263 | <class>QLayoutWidget</class> |
1253 | <property stdset="1"> | 1264 | <property stdset="1"> |
1254 | <name>name</name> | 1265 | <name>name</name> |
1255 | <cstring>Layout8</cstring> | 1266 | <cstring>Layout8</cstring> |
1256 | </property> | 1267 | </property> |
1257 | <hbox> | 1268 | <hbox> |
1258 | <property stdset="1"> | 1269 | <property stdset="1"> |
1259 | <name>margin</name> | 1270 | <name>margin</name> |
1260 | <number>0</number> | 1271 | <number>0</number> |
1261 | </property> | 1272 | </property> |
1262 | <property stdset="1"> | 1273 | <property stdset="1"> |
1263 | <name>spacing</name> | 1274 | <name>spacing</name> |
1264 | <number>6</number> | 1275 | <number>6</number> |
1265 | </property> | 1276 | </property> |
1266 | <widget> | 1277 | <widget> |
1267 | <class>QLabel</class> | 1278 | <class>QLabel</class> |
1268 | <property stdset="1"> | 1279 | <property stdset="1"> |
1269 | <name>name</name> | 1280 | <name>name</name> |
1270 | <cstring>TextLabel11</cstring> | 1281 | <cstring>TextLabel11</cstring> |
1271 | </property> | 1282 | </property> |
1272 | <property stdset="1"> | 1283 | <property stdset="1"> |
1273 | <name>text</name> | 1284 | <name>text</name> |
1274 | <string>Shift</string> | 1285 | <string>Shift</string> |
1275 | </property> | 1286 | </property> |
1276 | </widget> | 1287 | </widget> |
1277 | <widget> | 1288 | <widget> |
1278 | <class>QSpinBox</class> | 1289 | <class>QSpinBox</class> |
1279 | <property stdset="1"> | 1290 | <property stdset="1"> |
1280 | <name>name</name> | 1291 | <name>name</name> |
1281 | <cstring>LightShiftSpin</cstring> | 1292 | <cstring>LightShiftSpin</cstring> |
1282 | </property> | 1293 | </property> |
1283 | <property stdset="1"> | 1294 | <property stdset="1"> |
1284 | <name>maxValue</name> | 1295 | <name>maxValue</name> |
1285 | <number>126</number> | 1296 | <number>126</number> |
1286 | </property> | 1297 | </property> |
1287 | </widget> | 1298 | </widget> |
1288 | </hbox> | 1299 | </hbox> |
1289 | </widget> | 1300 | </widget> |
1290 | </vbox> | 1301 | </vbox> |
1291 | </widget> | 1302 | </widget> |
1292 | <spacer> | 1303 | <spacer> |
1293 | <property> | 1304 | <property> |
1294 | <name>name</name> | 1305 | <name>name</name> |
1295 | <cstring>Spacer1</cstring> | 1306 | <cstring>Spacer1</cstring> |
1296 | </property> | 1307 | </property> |
1297 | <property stdset="1"> | 1308 | <property stdset="1"> |
1298 | <name>orientation</name> | 1309 | <name>orientation</name> |
1299 | <enum>Vertical</enum> | 1310 | <enum>Vertical</enum> |
1300 | </property> | 1311 | </property> |
1301 | <property stdset="1"> | 1312 | <property stdset="1"> |
1302 | <name>sizeType</name> | 1313 | <name>sizeType</name> |
1303 | <enum>Expanding</enum> | 1314 | <enum>Expanding</enum> |
1304 | </property> | 1315 | </property> |
1305 | <property> | 1316 | <property> |
1306 | <name>sizeHint</name> | 1317 | <name>sizeHint</name> |
1307 | <size> | 1318 | <size> |
1308 | <width>20</width> | 1319 | <width>20</width> |
1309 | <height>20</height> | 1320 | <height>20</height> |
1310 | </size> | 1321 | </size> |
1311 | </property> | 1322 | </property> |
1312 | </spacer> | 1323 | </spacer> |
1313 | </vbox> | 1324 | </vbox> |
1314 | </widget> | 1325 | </widget> |
1315 | </widget> | 1326 | </widget> |
1316 | </vbox> | 1327 | </vbox> |
1317 | </widget> | 1328 | </widget> |
1318 | <images> | 1329 | <images> |
1319 | <image> | 1330 | <image> |
1320 | <name>image0</name> | 1331 | <name>image0</name> |
1321 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data> | 1332 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b324b364b06719340dcb434b36488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c004336518f</data> |
1322 | </image> | 1333 | </image> |
1323 | <image> | 1334 | <image> |
1324 | <name>image1</name> | 1335 | <name>image1</name> |
1325 | <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> | 1336 | <data format="XPM.GZ" length="439">789c6d8ec10ac2300c86ef7b8ad0ff36a4730777111f41f1288887b4b3e8610a3a0f22bebb6dd3d54d0ca5cdffe54f9aaaa4dd764d6555dc7beecf96ec896f54b68fae7bee0fab57a1ea86fc5950ad6685d2646973bd1c43ce3ec73c46903648e79a5624443a27d20cd2b9382704747e124382f11a7c5e30b364b957b331866331b3800c38f70282121c7c628367c098c1e0eb03121ccd4b46fcb0f80b26bb4833987f76b6d6f274de5fe6a1a031d30969f55e161fe4715f7b</data> |
1326 | </image> | 1337 | </image> |
1327 | <image> | 1338 | <image> |
1328 | <name>image2</name> | 1339 | <name>image2</name> |
1329 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> | 1340 | <data format="XPM.GZ" length="424">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523234530022130543251d2e253d856405bffcbc54105b19c856360003103711c4354b344b314b04719340dcb434b31488ac1e1a2020a6acac8c2ea60cc54862606ea232b218541b5810452c3111432c510f550c22886a1e482c115d0c2c88e6168818babaa4a42462c48082cae8e68102011a06b5d65c0041d3518e</data> |
1330 | </image> | 1341 | </image> |
1331 | </images> | 1342 | </images> |
1332 | <connections> | 1343 | <connections> |
1333 | <connection> | 1344 | <connection> |
1334 | <sender>screensaver_dim</sender> | 1345 | <sender>screensaver_dim</sender> |
1335 | <signal>toggled(bool)</signal> | 1346 | <signal>toggled(bool)</signal> |
1336 | <receiver>interval_dim</receiver> | 1347 | <receiver>interval_dim</receiver> |
1337 | <slot>setEnabled(bool)</slot> | 1348 | <slot>setEnabled(bool)</slot> |
1338 | </connection> | 1349 | </connection> |
1339 | <connection> | 1350 | <connection> |
1340 | <sender>screensaver_lightoff</sender> | 1351 | <sender>screensaver_lightoff</sender> |
1341 | <signal>toggled(bool)</signal> | 1352 | <signal>toggled(bool)</signal> |
1342 | <receiver>interval_lightoff</receiver> | 1353 | <receiver>interval_lightoff</receiver> |
1343 | <slot>setEnabled(bool)</slot> | 1354 | <slot>setEnabled(bool)</slot> |
1344 | </connection> | 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> | ||
1345 | </connections> | 1398 | </connections> |
1346 | <tabstops> | 1399 | <tabstops> |
1347 | <tabstop>auto_brightness</tabstop> | 1400 | <tabstop>auto_brightness</tabstop> |
1348 | <tabstop>screensaver_dim</tabstop> | 1401 | <tabstop>screensaver_dim</tabstop> |
1349 | <tabstop>interval_dim</tabstop> | 1402 | <tabstop>interval_dim</tabstop> |
1350 | <tabstop>screensaver_lightoff</tabstop> | 1403 | <tabstop>screensaver_lightoff</tabstop> |
1351 | <tabstop>interval_lightoff</tabstop> | 1404 | <tabstop>interval_lightoff</tabstop> |
1352 | <tabstop>interval_suspend</tabstop> | 1405 | <tabstop>interval_suspend</tabstop> |
1353 | <tabstop>brightness</tabstop> | 1406 | <tabstop>brightness</tabstop> |
1354 | </tabstops> | 1407 | </tabstops> |
1355 | </UI> | 1408 | </UI> |