-rw-r--r-- | core/settings/light-and-power/light.cpp | 3 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 17 |
2 files changed, 17 insertions, 3 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 424a64c..1c61787 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -1,313 +1,316 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. Copyright (c) 2002 Maximilian Reiss <harlekin@handhelds.org> | 3 | =. Copyright (c) 2002 Maximilian Reiss <harlekin@handhelds.org> |
4 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> | 4 | .=l. Copyright (c) 2002 Robert Griebl <sandman@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "light.h" | 29 | #include "light.h" |
30 | #include "sensor.h" | 30 | #include "sensor.h" |
31 | 31 | ||
32 | /* OPIE */ | 32 | /* OPIE */ |
33 | #include <opie2/odevice.h> | 33 | #include <opie2/odevice.h> |
34 | #include <opie2/odebug.h> | 34 | #include <opie2/odebug.h> |
35 | 35 | ||
36 | #include <qpe/config.h> | 36 | #include <qpe/config.h> |
37 | #include <qpe/power.h> | 37 | #include <qpe/power.h> |
38 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 38 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
39 | #include <qpe/qcopenvelope_qws.h> | 39 | #include <qpe/qcopenvelope_qws.h> |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | /* QT */ | 42 | /* QT */ |
43 | #include <qlabel.h> | 43 | #include <qlabel.h> |
44 | #include <qcheckbox.h> | 44 | #include <qcheckbox.h> |
45 | #include <qtabwidget.h> | 45 | #include <qtabwidget.h> |
46 | #include <qslider.h> | 46 | #include <qslider.h> |
47 | #include <qspinbox.h> | 47 | #include <qspinbox.h> |
48 | #include <qpushbutton.h> | 48 | #include <qpushbutton.h> |
49 | #include <qgroupbox.h> | 49 | #include <qgroupbox.h> |
50 | #include <qcombobox.h> | 50 | #include <qcombobox.h> |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | using namespace Opie::Core; | 54 | using namespace Opie::Core; |
55 | 55 | ||
56 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | 56 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) |
57 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) | 57 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) |
58 | { | 58 | { |
59 | m_bres = ODevice::inst ( )-> displayBrightnessResolution ( ); | 59 | m_bres = ODevice::inst ( )-> displayBrightnessResolution ( ); |
60 | m_cres = ODevice::inst ( )-> displayContrastResolution ( ); | 60 | m_cres = ODevice::inst ( )-> displayContrastResolution ( ); |
61 | 61 | ||
62 | // check whether to show the light sensor stuff | 62 | // check whether to show the light sensor stuff |
63 | 63 | ||
64 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { | 64 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { |
65 | auto_brightness-> hide ( ); | 65 | auto_brightness-> hide ( ); |
66 | CalibrateLightSensor-> hide ( ); | 66 | CalibrateLightSensor-> hide ( ); |
67 | auto_brightness_ac-> hide ( ); | 67 | auto_brightness_ac-> hide ( ); |
68 | CalibrateLightSensor_ac-> hide ( ); | 68 | CalibrateLightSensor_ac-> hide ( ); |
69 | } | 69 | } |
70 | 70 | ||
71 | // check whether to show the contrast stuff | 71 | // check whether to show the contrast stuff |
72 | 72 | ||
73 | if (m_cres) { | 73 | if (m_cres) { |
74 | GroupLight->setTitle(tr("Backlight && Contrast")); | 74 | GroupLight->setTitle(tr("Backlight && Contrast")); |
75 | GroupLight_ac->setTitle(GroupLight->title()); | 75 | GroupLight_ac->setTitle(GroupLight->title()); |
76 | } else { | 76 | } else { |
77 | contrast->hide(); | 77 | contrast->hide(); |
78 | contrast_ac->hide(); | 78 | contrast_ac->hide(); |
79 | } | 79 | } |
80 | 80 | ||
81 | // check whether to show the cpu frequency stuff | 81 | // check whether to show the cpu frequency stuff |
82 | 82 | ||
83 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); | 83 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); |
84 | if ( freq.count() ) { | 84 | if ( freq.count() ) { |
85 | frequency->insertStrList( freq ); | 85 | frequency->insertStrList( freq ); |
86 | frequency_ac->insertStrList( freq ); | 86 | frequency_ac->insertStrList( freq ); |
87 | } else { | 87 | } else { |
88 | frequencyLabel->hide(); | 88 | frequencyLabel->hide(); |
89 | frequency->hide(); | 89 | frequency->hide(); |
90 | frequencyLabel_ac->hide(); | 90 | frequencyLabel_ac->hide(); |
91 | frequency_ac->hide(); | 91 | frequency_ac->hide(); |
92 | } | 92 | } |
93 | 93 | ||
94 | // check whether to show the hinge action stuff | 94 | // check whether to show the hinge action stuff |
95 | 95 | ||
96 | if ( !ODevice::inst()->hasHingeSensor() ) { | 96 | if ( !ODevice::inst()->hasHingeSensor() ) { |
97 | closeHingeLabel->hide(); | 97 | closeHingeLabel->hide(); |
98 | closeHingeAction->hide(); | 98 | closeHingeAction->hide(); |
99 | closeHingeLabel_ac->hide(); | 99 | closeHingeLabel_ac->hide(); |
100 | closeHingeAction_ac->hide(); | 100 | closeHingeAction_ac->hide(); |
101 | } | 101 | } |
102 | 102 | ||
103 | Config config ( "apm" ); | 103 | Config config ( "apm" ); |
104 | config. setGroup ( "Battery" ); | 104 | config. setGroup ( "Battery" ); |
105 | 105 | ||
106 | // battery spinboxes | 106 | // battery spinboxes |
107 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 20 )); | 107 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 20 )); |
108 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 30 )); | 108 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 30 )); |
109 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); | 109 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); |
110 | 110 | ||
111 | // battery check and slider | 111 | // battery check and slider |
112 | LcdOffOnly->setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 112 | LcdOffOnly->setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
113 | 113 | ||
114 | // CPU frequency | 114 | // CPU frequency |
115 | frequency->setCurrentItem( config.readNumEntry("Freq", 0) ); | 115 | frequency->setCurrentItem( config.readNumEntry("Freq", 0) ); |
116 | 116 | ||
117 | // hinge action | 117 | // hinge action |
118 | closeHingeAction->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); | 118 | closeHingeAction->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); |
119 | 119 | ||
120 | int bright = config. readNumEntry ( "Brightness", 127 ); | 120 | int bright = config. readNumEntry ( "Brightness", 127 ); |
121 | int contr = m_oldcontrast = config. readNumEntry ( "Contrast", 127 ); | 121 | int contr = m_oldcontrast = config. readNumEntry ( "Contrast", 127 ); |
122 | brightness-> setTickInterval ( QMAX( 16, 256 / m_bres )); | 122 | brightness-> setTickInterval ( QMAX( 16, 256 / m_bres )); |
123 | brightness-> setLineStep ( QMAX( 1, 256 / m_bres )); | 123 | brightness-> setLineStep ( QMAX( 1, 256 / m_bres )); |
124 | brightness-> setPageStep ( QMAX( 1, 256 / m_bres )); | 124 | brightness-> setPageStep ( QMAX( 1, 256 / m_bres )); |
125 | brightness-> setValue ( bright ); | 125 | brightness-> setValue ( bright ); |
126 | 126 | ||
127 | // | ||
127 | if (m_cres) { | 128 | if (m_cres) { |
128 | contrast-> setTickInterval ( QMAX( 16, 256 / m_cres )); | 129 | contrast-> setTickInterval ( QMAX( 16, 256 / m_cres )); |
129 | contrast-> setLineStep ( QMAX( 1, 256 / m_cres )); | 130 | contrast-> setLineStep ( QMAX( 1, 256 / m_cres )); |
130 | contrast-> setPageStep ( QMAX( 1, 256 / m_cres )); | 131 | contrast-> setPageStep ( QMAX( 1, 256 / m_cres )); |
131 | contrast-> setValue ( contr ); | 132 | contrast-> setValue ( contr ); |
132 | } | 133 | } |
133 | 134 | ||
134 | // light sensor | 135 | // light sensor |
135 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 136 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
136 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); | 137 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); |
137 | 138 | ||
138 | config. setGroup ( "AC" ); | 139 | config. setGroup ( "AC" ); |
139 | 140 | ||
140 | // ac spinboxes | 141 | // ac spinboxes |
141 | interval_dim_ac-> setValue ( config. readNumEntry ( "Dim", 60 )); | 142 | interval_dim_ac-> setValue ( config. readNumEntry ( "Dim", 60 )); |
142 | interval_lightoff_ac-> setValue ( config. readNumEntry ( "LightOff", 120 )); | 143 | interval_lightoff_ac-> setValue ( config. readNumEntry ( "LightOff", 120 )); |
143 | interval_suspend_ac-> setValue ( config. readNumEntry ( "Suspend", 0 )); | 144 | interval_suspend_ac-> setValue ( config. readNumEntry ( "Suspend", 0 )); |
144 | 145 | ||
145 | // ac check and slider | 146 | // ac check and slider |
146 | LcdOffOnly_ac-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 147 | LcdOffOnly_ac-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
147 | 148 | ||
148 | // CPU frequency | 149 | // CPU frequency |
149 | frequency_ac->setCurrentItem( config.readNumEntry("Freq", 0) ); | 150 | frequency_ac->setCurrentItem( config.readNumEntry("Freq", 0) ); |
150 | 151 | ||
151 | // hinge action | 152 | // hinge action |
152 | closeHingeAction_ac->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); | 153 | closeHingeAction_ac->setCurrentItem( config.readNumEntry("CloseHingeAction", 0) ); |
153 | 154 | ||
154 | bright = config. readNumEntry ( "Brightness", 255 ); | 155 | bright = config. readNumEntry ( "Brightness", 255 ); |
155 | brightness_ac-> setTickInterval ( QMAX( 16, 256 / m_bres )); | 156 | brightness_ac-> setTickInterval ( QMAX( 16, 256 / m_bres )); |
156 | brightness_ac-> setLineStep ( QMAX( 1, 256 / m_bres )); | 157 | brightness_ac-> setLineStep ( QMAX( 1, 256 / m_bres )); |
157 | brightness_ac-> setPageStep ( QMAX( 1, 256 / m_bres )); | 158 | brightness_ac-> setPageStep ( QMAX( 1, 256 / m_bres )); |
158 | brightness_ac-> setValue ( bright ); | 159 | brightness_ac-> setValue ( bright ); |
159 | 160 | ||
160 | if (m_cres) { | 161 | if (m_cres) { |
161 | contr = config. readNumEntry ( "Contrast", 127); | 162 | contr = config. readNumEntry ( "Contrast", 127); |
162 | contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres )); | 163 | contrast_ac-> setTickInterval ( QMAX( 16, 256 / m_cres )); |
163 | contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres )); | 164 | contrast_ac-> setLineStep ( QMAX( 1, 256 / m_cres )); |
164 | contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres )); | 165 | contrast_ac-> setPageStep ( QMAX( 1, 256 / m_cres )); |
165 | contrast_ac-> setValue ( contr ); | 166 | contrast_ac-> setValue ( contr ); |
166 | } | 167 | } |
167 | 168 | ||
168 | // light sensor | 169 | // light sensor |
169 | auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 170 | auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
170 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); | 171 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); |
171 | 172 | ||
172 | // warnings | 173 | // warnings |
173 | config. setGroup ( "Warnings" ); | 174 | config. setGroup ( "Warnings" ); |
174 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); | 175 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); |
175 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); | 176 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); |
176 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); | 177 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); |
177 | 178 | ||
178 | m_resettimer = new QTimer ( this ); | 179 | m_resettimer = new QTimer ( this ); |
179 | connect ( m_resettimer, SIGNAL( timeout()), this, SLOT( resetBacklight())); | 180 | connect ( m_resettimer, SIGNAL( timeout()), this, SLOT( resetBacklight())); |
180 | 181 | ||
181 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { | 182 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { |
182 | tabs-> setCurrentPage ( 0 ); | 183 | tabs-> setCurrentPage ( 0 ); |
184 | brightness->setFocus(); | ||
183 | } | 185 | } |
184 | else { | 186 | else { |
185 | tabs-> setCurrentPage ( 1 ); | 187 | tabs-> setCurrentPage ( 1 ); |
188 | brightness_ac->setFocus(); | ||
186 | } | 189 | } |
187 | 190 | ||
188 | connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); | 191 | connect ( brightness, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); |
189 | connect ( brightness_ac, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); | 192 | connect ( brightness_ac, SIGNAL( valueChanged(int)), this, SLOT( setBacklight(int))); |
190 | if (m_cres) { | 193 | if (m_cres) { |
191 | connect ( contrast, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); | 194 | connect ( contrast, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); |
192 | connect ( contrast_ac, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); | 195 | connect ( contrast_ac, SIGNAL( valueChanged(int)), this, SLOT( setContrast(int))); |
193 | } | 196 | } |
194 | connect( frequency, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); | 197 | connect( frequency, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); |
195 | connect( frequency_ac, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); | 198 | connect( frequency_ac, SIGNAL( activated(int) ), this, SLOT( setFrequency(int) ) ); |
196 | connect( closeHingeAction, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); | 199 | connect( closeHingeAction, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); |
197 | connect( closeHingeAction_ac, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); | 200 | connect( closeHingeAction_ac, SIGNAL( activated(int) ), this, SLOT( setCloseHingeAction(int) ) ); |
198 | } | 201 | } |
199 | 202 | ||
200 | LightSettings::~LightSettings ( ) | 203 | LightSettings::~LightSettings ( ) |
201 | { | 204 | { |
202 | } | 205 | } |
203 | 206 | ||
204 | void LightSettings::calibrateSensor ( ) | 207 | void LightSettings::calibrateSensor ( ) |
205 | { | 208 | { |
206 | Sensor *s = new Sensor ( m_sensordata, this ); | 209 | Sensor *s = new Sensor ( m_sensordata, this ); |
207 | connect ( s, SIGNAL( viewBacklight(int)), this, SLOT( setBacklight(int))); | 210 | connect ( s, SIGNAL( viewBacklight(int)), this, SLOT( setBacklight(int))); |
208 | QPEApplication::execDialog( s ); | 211 | QPEApplication::execDialog( s ); |
209 | delete s; | 212 | delete s; |
210 | } | 213 | } |
211 | 214 | ||
212 | void LightSettings::calibrateSensorAC ( ) | 215 | void LightSettings::calibrateSensorAC ( ) |
213 | { | 216 | { |
214 | Sensor *s = new Sensor ( m_sensordata_ac, this ); | 217 | Sensor *s = new Sensor ( m_sensordata_ac, this ); |
215 | connect ( s, SIGNAL( viewBacklight(int)), this, SLOT( setBacklight(int))); | 218 | connect ( s, SIGNAL( viewBacklight(int)), this, SLOT( setBacklight(int))); |
216 | QPEApplication::execDialog ( s ); | 219 | QPEApplication::execDialog ( s ); |
217 | delete s; | 220 | delete s; |
218 | } | 221 | } |
219 | 222 | ||
220 | void LightSettings::setBacklight ( int bright ) | 223 | void LightSettings::setBacklight ( int bright ) |
221 | { | 224 | { |
222 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); | 225 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); |
223 | e << bright; | 226 | e << bright; |
224 | 227 | ||
225 | if ( bright != -1 ) { | 228 | if ( bright != -1 ) { |
226 | m_resettimer-> stop ( ); | 229 | m_resettimer-> stop ( ); |
227 | m_resettimer-> start ( 4000, true ); | 230 | m_resettimer-> start ( 4000, true ); |
228 | } | 231 | } |
229 | } | 232 | } |
230 | 233 | ||
231 | void LightSettings::setContrast ( int contr ) | 234 | void LightSettings::setContrast ( int contr ) |
232 | { | 235 | { |
233 | if (contr == -1) contr = m_oldcontrast; | 236 | if (contr == -1) contr = m_oldcontrast; |
234 | ODevice::inst ( )-> setDisplayContrast(contr); | 237 | ODevice::inst ( )-> setDisplayContrast(contr); |
235 | } | 238 | } |
236 | 239 | ||
237 | void LightSettings::setFrequency ( int index ) | 240 | void LightSettings::setFrequency ( int index ) |
238 | { | 241 | { |
239 | owarn << "LightSettings::setFrequency(" << index << ")" << oendl; | 242 | owarn << "LightSettings::setFrequency(" << index << ")" << oendl; |
240 | ODevice::inst ( )-> setCurrentCpuFrequency(index); | 243 | ODevice::inst ( )-> setCurrentCpuFrequency(index); |
241 | } | 244 | } |
242 | 245 | ||
243 | void LightSettings::resetBacklight ( ) | 246 | void LightSettings::resetBacklight ( ) |
244 | { | 247 | { |
245 | setBacklight ( -1 ); | 248 | setBacklight ( -1 ); |
246 | setContrast ( -1 ); | 249 | setContrast ( -1 ); |
247 | } | 250 | } |
248 | 251 | ||
249 | void LightSettings::setCloseHingeAction ( int index ) | 252 | void LightSettings::setCloseHingeAction ( int index ) |
250 | { | 253 | { |
251 | owarn << "LightSettings::setCloseHingeStatus(" << index << ")" << oendl; | 254 | owarn << "LightSettings::setCloseHingeStatus(" << index << ")" << oendl; |
252 | } | 255 | } |
253 | 256 | ||
254 | void LightSettings::accept ( ) | 257 | void LightSettings::accept ( ) |
255 | { | 258 | { |
256 | Config config ( "apm" ); | 259 | Config config ( "apm" ); |
257 | 260 | ||
258 | // bat | 261 | // bat |
259 | config. setGroup ( "Battery" ); | 262 | config. setGroup ( "Battery" ); |
260 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); | 263 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); |
261 | config. writeEntry ( "Dim", interval_dim-> value ( )); | 264 | config. writeEntry ( "Dim", interval_dim-> value ( )); |
262 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); | 265 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); |
263 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); | 266 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); |
264 | config. writeEntry ( "Brightness", brightness-> value () ); | 267 | config. writeEntry ( "Brightness", brightness-> value () ); |
265 | if (m_cres) | 268 | if (m_cres) |
266 | config. writeEntry ( "Contrast", contrast-> value () ); | 269 | config. writeEntry ( "Contrast", contrast-> value () ); |
267 | config. writeEntry ( "Freq", frequency->currentItem() ); | 270 | config. writeEntry ( "Freq", frequency->currentItem() ); |
268 | config. writeEntry ( "CloseHingeAction", closeHingeAction->currentItem() ); | 271 | config. writeEntry ( "CloseHingeAction", closeHingeAction->currentItem() ); |
269 | 272 | ||
270 | // ac | 273 | // ac |
271 | config. setGroup ( "AC" ); | 274 | config. setGroup ( "AC" ); |
272 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_ac-> isChecked ( )); | 275 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_ac-> isChecked ( )); |
273 | config. writeEntry ( "Dim", interval_dim_ac-> value ( )); | 276 | config. writeEntry ( "Dim", interval_dim_ac-> value ( )); |
274 | config. writeEntry ( "LightOff", interval_lightoff_ac-> value ( )); | 277 | config. writeEntry ( "LightOff", interval_lightoff_ac-> value ( )); |
275 | config. writeEntry ( "Suspend", interval_suspend_ac-> value ( )); | 278 | config. writeEntry ( "Suspend", interval_suspend_ac-> value ( )); |
276 | config. writeEntry ( "Brightness", brightness_ac-> value () ); | 279 | config. writeEntry ( "Brightness", brightness_ac-> value () ); |
277 | if (m_cres) | 280 | if (m_cres) |
278 | config. writeEntry ( "Contrast", contrast_ac-> value () ); | 281 | config. writeEntry ( "Contrast", contrast_ac-> value () ); |
279 | config. writeEntry ( "Freq", frequency_ac->currentItem() ); | 282 | config. writeEntry ( "Freq", frequency_ac->currentItem() ); |
280 | config. writeEntry ( "CloseHingeAction", closeHingeAction_ac->currentItem() ); | 283 | config. writeEntry ( "CloseHingeAction", closeHingeAction_ac->currentItem() ); |
281 | 284 | ||
282 | // only make light sensor stuff appear if the unit has a sensor | 285 | // only make light sensor stuff appear if the unit has a sensor |
283 | if ( ODevice::inst ( )-> hasLightSensor ( )) { | 286 | if ( ODevice::inst ( )-> hasLightSensor ( )) { |
284 | config. setGroup ( "Battery" ); | 287 | config. setGroup ( "Battery" ); |
285 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); | 288 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); |
286 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); | 289 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); |
287 | config. setGroup ( "AC" ); | 290 | config. setGroup ( "AC" ); |
288 | config. writeEntry ( "LightSensor", auto_brightness_ac->isChecked() ); | 291 | config. writeEntry ( "LightSensor", auto_brightness_ac->isChecked() ); |
289 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); | 292 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); |
290 | } | 293 | } |
291 | 294 | ||
292 | // advanced | 295 | // advanced |
293 | config. setGroup ( "Warnings" ); | 296 | config. setGroup ( "Warnings" ); |
294 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); | 297 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); |
295 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); | 298 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); |
296 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); | 299 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); |
297 | config. write ( ); | 300 | config. write ( ); |
298 | 301 | ||
299 | // notify the launcher | 302 | // notify the launcher |
300 | { | 303 | { |
301 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); | 304 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); |
302 | } | 305 | } |
303 | { | 306 | { |
304 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); | 307 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); |
305 | e << -1; | 308 | e << -1; |
306 | } | 309 | } |
307 | LightSettingsBase::accept ( ); | 310 | LightSettingsBase::accept ( ); |
308 | } | 311 | } |
309 | 312 | ||
310 | void LightSettings::done ( int r ) | 313 | void LightSettings::done ( int r ) |
311 | { | 314 | { |
312 | m_resettimer-> stop ( ); | 315 | m_resettimer-> stop ( ); |
313 | resetBacklight ( ); | 316 | resetBacklight ( ); |
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index 2af0331..1f1ff17 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -1,142 +1,142 @@ | |||
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>331</width> | 14 | <width>327</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> | 19 | <name>sizePolicy</name> |
20 | <sizepolicy> | 20 | <sizepolicy> |
21 | <hsizetype>7</hsizetype> | 21 | <hsizetype>7</hsizetype> |
22 | <vsizetype>5</vsizetype> | 22 | <vsizetype>5</vsizetype> |
23 | </sizepolicy> | 23 | </sizepolicy> |
24 | </property> | 24 | </property> |
25 | <property stdset="1"> | 25 | <property stdset="1"> |
26 | <name>caption</name> | 26 | <name>caption</name> |
27 | <string>Light and Power Settings</string> | 27 | <string>Light and Power Settings</string> |
28 | </property> | 28 | </property> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>sizeGripEnabled</name> | 30 | <name>sizeGripEnabled</name> |
31 | <bool>false</bool> | 31 | <bool>false</bool> |
32 | </property> | 32 | </property> |
33 | <property> | 33 | <property> |
34 | <name>layoutMargin</name> | 34 | <name>layoutMargin</name> |
35 | </property> | 35 | </property> |
36 | <property> | 36 | <property> |
37 | <name>layoutSpacing</name> | 37 | <name>layoutSpacing</name> |
38 | </property> | 38 | </property> |
39 | <vbox> | 39 | <vbox> |
40 | <property stdset="1"> | 40 | <property stdset="1"> |
41 | <name>margin</name> | 41 | <name>margin</name> |
42 | <number>3</number> | 42 | <number>3</number> |
43 | </property> | 43 | </property> |
44 | <property stdset="1"> | 44 | <property stdset="1"> |
45 | <name>spacing</name> | 45 | <name>spacing</name> |
46 | <number>3</number> | 46 | <number>3</number> |
47 | </property> | 47 | </property> |
48 | <widget> | 48 | <widget> |
49 | <class>QTabWidget</class> | 49 | <class>QTabWidget</class> |
50 | <property stdset="1"> | 50 | <property stdset="1"> |
51 | <name>name</name> | 51 | <name>name</name> |
52 | <cstring>tabs</cstring> | 52 | <cstring>tabs</cstring> |
53 | </property> | 53 | </property> |
54 | <property> | 54 | <property> |
55 | <name>layoutMargin</name> | 55 | <name>layoutMargin</name> |
56 | </property> | 56 | </property> |
57 | <property> | 57 | <property> |
58 | <name>layoutSpacing</name> | 58 | <name>layoutSpacing</name> |
59 | </property> | 59 | </property> |
60 | <widget> | 60 | <widget> |
61 | <class>QWidget</class> | 61 | <class>QWidget</class> |
62 | <property stdset="1"> | 62 | <property stdset="1"> |
63 | <name>name</name> | 63 | <name>name</name> |
64 | <cstring>tab</cstring> | 64 | <cstring>tab</cstring> |
65 | </property> | 65 | </property> |
66 | <attribute> | 66 | <attribute> |
67 | <name>title</name> | 67 | <name>title</name> |
68 | <string>on Battery</string> | 68 | <string>on Battery</string> |
69 | </attribute> | 69 | </attribute> |
70 | <vbox> | 70 | <vbox> |
71 | <property stdset="1"> | 71 | <property stdset="1"> |
72 | <name>margin</name> | 72 | <name>margin</name> |
73 | <number>5</number> | 73 | <number>5</number> |
74 | </property> | 74 | </property> |
75 | <property stdset="1"> | 75 | <property stdset="1"> |
76 | <name>spacing</name> | 76 | <name>spacing</name> |
77 | <number>3</number> | 77 | <number>3</number> |
78 | </property> | 78 | </property> |
79 | <widget> | 79 | <widget> |
80 | <class>QGroupBox</class> | 80 | <class>QGroupBox</class> |
81 | <property stdset="1"> | 81 | <property stdset="1"> |
82 | <name>name</name> | 82 | <name>name</name> |
83 | <cstring>Group1</cstring> | 83 | <cstring>Group1</cstring> |
84 | </property> | 84 | </property> |
85 | <property stdset="1"> | 85 | <property stdset="1"> |
86 | <name>enabled</name> | 86 | <name>enabled</name> |
87 | <bool>true</bool> | 87 | <bool>true</bool> |
88 | </property> | 88 | </property> |
89 | <property stdset="1"> | 89 | <property stdset="1"> |
90 | <name>title</name> | 90 | <name>title</name> |
91 | <string>General Settings</string> | 91 | <string>General Settings</string> |
92 | </property> | 92 | </property> |
93 | <property> | 93 | <property> |
94 | <name>layoutMargin</name> | 94 | <name>layoutMargin</name> |
95 | </property> | 95 | </property> |
96 | <property> | 96 | <property> |
97 | <name>layoutSpacing</name> | 97 | <name>layoutSpacing</name> |
98 | </property> | 98 | </property> |
99 | <grid> | 99 | <grid> |
100 | <property stdset="1"> | 100 | <property stdset="1"> |
101 | <name>margin</name> | 101 | <name>margin</name> |
102 | <number>5</number> | 102 | <number>5</number> |
103 | </property> | 103 | </property> |
104 | <property stdset="1"> | 104 | <property stdset="1"> |
105 | <name>spacing</name> | 105 | <name>spacing</name> |
106 | <number>3</number> | 106 | <number>3</number> |
107 | </property> | 107 | </property> |
108 | <widget row="0" column="0" rowspan="1" colspan="2" > | 108 | <widget row="0" column="0" rowspan="1" colspan="2" > |
109 | <class>QLabel</class> | 109 | <class>QLabel</class> |
110 | <property stdset="1"> | 110 | <property stdset="1"> |
111 | <name>name</name> | 111 | <name>name</name> |
112 | <cstring>TL1</cstring> | 112 | <cstring>TL1</cstring> |
113 | </property> | 113 | </property> |
114 | <property stdset="1"> | 114 | <property stdset="1"> |
115 | <name>sizePolicy</name> | 115 | <name>sizePolicy</name> |
116 | <sizepolicy> | 116 | <sizepolicy> |
117 | <hsizetype>3</hsizetype> | 117 | <hsizetype>3</hsizetype> |
118 | <vsizetype>1</vsizetype> | 118 | <vsizetype>1</vsizetype> |
119 | </sizepolicy> | 119 | </sizepolicy> |
120 | </property> | 120 | </property> |
121 | <property stdset="1"> | 121 | <property stdset="1"> |
122 | <name>text</name> | 122 | <name>text</name> |
123 | <string>Dim light after</string> | 123 | <string>Dim light after</string> |
124 | </property> | 124 | </property> |
125 | </widget> | 125 | </widget> |
126 | <widget row="2" column="0" rowspan="1" colspan="2" > | 126 | <widget row="2" column="0" rowspan="1" colspan="2" > |
127 | <class>QLabel</class> | 127 | <class>QLabel</class> |
128 | <property stdset="1"> | 128 | <property stdset="1"> |
129 | <name>name</name> | 129 | <name>name</name> |
130 | <cstring>TL3</cstring> | 130 | <cstring>TL3</cstring> |
131 | </property> | 131 | </property> |
132 | <property stdset="1"> | 132 | <property stdset="1"> |
133 | <name>sizePolicy</name> | 133 | <name>sizePolicy</name> |
134 | <sizepolicy> | 134 | <sizepolicy> |
135 | <hsizetype>3</hsizetype> | 135 | <hsizetype>3</hsizetype> |
136 | <vsizetype>1</vsizetype> | 136 | <vsizetype>1</vsizetype> |
137 | </sizepolicy> | 137 | </sizepolicy> |
138 | </property> | 138 | </property> |
139 | <property stdset="1"> | 139 | <property stdset="1"> |
140 | <name>text</name> | 140 | <name>text</name> |
141 | <string>Suspend after</string> | 141 | <string>Suspend after</string> |
142 | </property> | 142 | </property> |
@@ -1235,147 +1235,158 @@ | |||
1235 | <property> | 1235 | <property> |
1236 | <name>whatsThis</name> | 1236 | <name>whatsThis</name> |
1237 | <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string> | 1237 | <string>how often should be checked for low power. This determines the rate popups occure in low power situations</string> |
1238 | </property> | 1238 | </property> |
1239 | </widget> | 1239 | </widget> |
1240 | <widget row="2" column="1" > | 1240 | <widget row="2" column="1" > |
1241 | <class>QSpinBox</class> | 1241 | <class>QSpinBox</class> |
1242 | <property stdset="1"> | 1242 | <property stdset="1"> |
1243 | <name>name</name> | 1243 | <name>name</name> |
1244 | <cstring>criticalSpinBox</cstring> | 1244 | <cstring>criticalSpinBox</cstring> |
1245 | </property> | 1245 | </property> |
1246 | <property stdset="1"> | 1246 | <property stdset="1"> |
1247 | <name>prefix</name> | 1247 | <name>prefix</name> |
1248 | <string></string> | 1248 | <string></string> |
1249 | </property> | 1249 | </property> |
1250 | <property stdset="1"> | 1250 | <property stdset="1"> |
1251 | <name>suffix</name> | 1251 | <name>suffix</name> |
1252 | <string> %</string> | 1252 | <string> %</string> |
1253 | </property> | 1253 | </property> |
1254 | <property stdset="1"> | 1254 | <property stdset="1"> |
1255 | <name>buttonSymbols</name> | 1255 | <name>buttonSymbols</name> |
1256 | <enum>PlusMinus</enum> | 1256 | <enum>PlusMinus</enum> |
1257 | </property> | 1257 | </property> |
1258 | <property stdset="1"> | 1258 | <property stdset="1"> |
1259 | <name>maxValue</name> | 1259 | <name>maxValue</name> |
1260 | <number>80</number> | 1260 | <number>80</number> |
1261 | </property> | 1261 | </property> |
1262 | <property stdset="1"> | 1262 | <property stdset="1"> |
1263 | <name>minValue</name> | 1263 | <name>minValue</name> |
1264 | <number>2</number> | 1264 | <number>2</number> |
1265 | </property> | 1265 | </property> |
1266 | <property> | 1266 | <property> |
1267 | <name>whatsThis</name> | 1267 | <name>whatsThis</name> |
1268 | <string>At what battery level should the critical power warning pop up</string> | 1268 | <string>At what battery level should the critical power warning pop up</string> |
1269 | </property> | 1269 | </property> |
1270 | </widget> | 1270 | </widget> |
1271 | <widget row="1" column="0" > | 1271 | <widget row="1" column="0" > |
1272 | <class>QLabel</class> | 1272 | <class>QLabel</class> |
1273 | <property stdset="1"> | 1273 | <property stdset="1"> |
1274 | <name>name</name> | 1274 | <name>name</name> |
1275 | <cstring>TextLabel2</cstring> | 1275 | <cstring>TextLabel2</cstring> |
1276 | </property> | 1276 | </property> |
1277 | <property stdset="1"> | 1277 | <property stdset="1"> |
1278 | <name>sizePolicy</name> | 1278 | <name>sizePolicy</name> |
1279 | <sizepolicy> | 1279 | <sizepolicy> |
1280 | <hsizetype>1</hsizetype> | 1280 | <hsizetype>1</hsizetype> |
1281 | <vsizetype>5</vsizetype> | 1281 | <vsizetype>5</vsizetype> |
1282 | </sizepolicy> | 1282 | </sizepolicy> |
1283 | </property> | 1283 | </property> |
1284 | <property stdset="1"> | 1284 | <property stdset="1"> |
1285 | <name>text</name> | 1285 | <name>text</name> |
1286 | <string>very low battery warning at</string> | 1286 | <string>very low battery warning at</string> |
1287 | </property> | 1287 | </property> |
1288 | </widget> | 1288 | </widget> |
1289 | <widget row="2" column="0" > | 1289 | <widget row="2" column="0" > |
1290 | <class>QLabel</class> | 1290 | <class>QLabel</class> |
1291 | <property stdset="1"> | 1291 | <property stdset="1"> |
1292 | <name>name</name> | 1292 | <name>name</name> |
1293 | <cstring>TextLabel3</cstring> | 1293 | <cstring>TextLabel3</cstring> |
1294 | </property> | 1294 | </property> |
1295 | <property stdset="1"> | 1295 | <property stdset="1"> |
1296 | <name>sizePolicy</name> | 1296 | <name>sizePolicy</name> |
1297 | <sizepolicy> | 1297 | <sizepolicy> |
1298 | <hsizetype>1</hsizetype> | 1298 | <hsizetype>1</hsizetype> |
1299 | <vsizetype>5</vsizetype> | 1299 | <vsizetype>5</vsizetype> |
1300 | </sizepolicy> | 1300 | </sizepolicy> |
1301 | </property> | 1301 | </property> |
1302 | <property stdset="1"> | 1302 | <property stdset="1"> |
1303 | <name>text</name> | 1303 | <name>text</name> |
1304 | <string>critical power warning at</string> | 1304 | <string>critical power warning at</string> |
1305 | </property> | 1305 | </property> |
1306 | </widget> | 1306 | </widget> |
1307 | </grid> | 1307 | </grid> |
1308 | </widget> | 1308 | </widget> |
1309 | <spacer> | 1309 | <spacer> |
1310 | <property> | 1310 | <property> |
1311 | <name>name</name> | 1311 | <name>name</name> |
1312 | <cstring>Spacer1</cstring> | 1312 | <cstring>Spacer1</cstring> |
1313 | </property> | 1313 | </property> |
1314 | <property stdset="1"> | 1314 | <property stdset="1"> |
1315 | <name>orientation</name> | 1315 | <name>orientation</name> |
1316 | <enum>Vertical</enum> | 1316 | <enum>Vertical</enum> |
1317 | </property> | 1317 | </property> |
1318 | <property stdset="1"> | 1318 | <property stdset="1"> |
1319 | <name>sizeType</name> | 1319 | <name>sizeType</name> |
1320 | <enum>Expanding</enum> | 1320 | <enum>Expanding</enum> |
1321 | </property> | 1321 | </property> |
1322 | <property> | 1322 | <property> |
1323 | <name>sizeHint</name> | 1323 | <name>sizeHint</name> |
1324 | <size> | 1324 | <size> |
1325 | <width>20</width> | 1325 | <width>20</width> |
1326 | <height>20</height> | 1326 | <height>20</height> |
1327 | </size> | 1327 | </size> |
1328 | </property> | 1328 | </property> |
1329 | </spacer> | 1329 | </spacer> |
1330 | </vbox> | 1330 | </vbox> |
1331 | </widget> | 1331 | </widget> |
1332 | </widget> | 1332 | </widget> |
1333 | </vbox> | 1333 | </vbox> |
1334 | </widget> | 1334 | </widget> |
1335 | <images> | 1335 | <images> |
1336 | <image> | 1336 | <image> |
1337 | <name>image0</name> | 1337 | <name>image0</name> |
1338 | <data format="XPM.GZ" length="1025">789c5dd2cd4ec2401846e13d57d1c08e18a58a20312e44f913419626c6c5cc500a42f92b60c178eff6bc2642fd0e8b79be0d43e945d17b1df4bce2452ede98cdc4796e6cd65e71b88da2fddbfbdd572eef57bcf4532e7b7efe2c973ff79cd75fcc03cefdf45ca859820368aa045f440d7c1287047b6240f0591c11ec425b22d881ce27d8122b0417a22138122dc17b51030f70582258107d821fe225c18d784d702b56092ec51b824eac11dc8b96e0a3e808c6a206b6c580e0270c4a0413d127b8162f09866299a011af095ab142b02e56093e8837049b628d6043d49f04e7a22518898ee04ed46f8013510303382a115c893ec1997845702a96098ec52ac1a168492fa4a660acfb3dfded2c0f37189deec2b16672b2fb98ce66d35934378be36eb94a671dc7f1e6b8dbee263bf39924c9feb83b84260cd3d73b5c1e77f7f587df399c7caf8b348f99fb357836cdec9d1bd374ead99d2e9d6477ad7692b43bd9dd53f7b9d7eb6777e72fddeee0df733999fcf76dee0748aaf77c</data> | 1338 | <data format="XPM.GZ" length="1025">789c5dd2cd4ec2401846e13d57d1c08e18a58a20312e44f913419626c6c5cc500a42f92b60c178eff6bc2642fd0e8b79be0d43e945d17b1df4bce2452ede98cdc4796e6cd65e71b88da2fddbfbdd572eef57bcf4532e7b7efe2c973ff79cd75fcc03cefdf45ca859820368aa045f440d7c1287047b6240f0591c11ec425b22d881ce27d8122b0417a22138122dc17b51030f70582258107d821fe225c18d784d702b56092ec51b824eac11dc8b96e0a3e808c6a206b6c580e0270c4a0413d127b8162f09866299a011af095ab142b02e56093e8837049b628d6043d49f04e7a22518898ee04ed46f8013510303382a115c893ec1997845702a96098ec52ac1a168492fa4a660acfb3dfded2c0f37189deec2b16672b2fb98ce66d35934378be36eb94a671dc7f1e6b8dbee263bf39924c9feb83b84260cd3d73b5c1e77f7f587df399c7caf8b348f99fb357836cdec9d1bd374ead99d2e9d6477ad7692b43bd9dd53f7b9d7eb6777e72fddeee0df733999fcf76dee0748aaf77c</data> |
1339 | </image> | 1339 | </image> |
1340 | <image> | 1340 | <image> |
1341 | <name>image1</name> | 1341 | <name>image1</name> |
1342 | <data format="XPM.GZ" length="1885">789c75d4576fdb301000e077ff0ac17c0b8a8bad49a2e843f61ece4e8a3e481cde198eb3d1ff5eeaeecca675ecb3047cd68922ef282f2f4557c707d1d272e3715a4efb3ad2bd72122d99a7f1f8ede7af1f1f8d663b8ffcb75051dcfcd66876a6918e0eef6e6d0d31f010aaf2a1d1e3da6551077a88c60fdaa14d694b87eea36d692b1c5cf4d88edd45bbaa5525e8516d2f1f685bdb289de7065da28dae8aac36e0f8d69a38add067b55d6cb224470bb6cc52f4153a316582f9c2906d2a255ed7e8d4b882d65791fd7585d79fd199512dac071cb0758cf383db99539a3f8d97d95ca1e1059ddb386ba3713daeb04a61bda0629725adef1a2d6d92517d045b4a346ca295cd12ca3f65e7ec36bbc8b03f60d85a513d24dab74752fd36d0952ddad81f18b0353faf605b89fb037a649756b4fe0cad5dace8f9fb6863754c4ec92e96e4989d48ead7989df2facfd1d66539d5ef929de734bf55b473719bee5f0bc6fec17a30f577979d70bff6d8694ceb599939a1fc437696d2f8c7c1347e2798f28f8269bf3c05d37ed909a67e9fb073beff62e69cfa336517bcdf6f8269be8f6c59d07a5a334baad756308dbf3db3a2fa256c45ef37bcb34b45e3bd06d37cdf662e69fc8799e97d86fb609aff2498ea77174cf5cbd9155d17c0d69aeaa78269ff8e8269bf0e83a91e8e6d2c3dafcbb66c1b2ce9cfee6f8080122ad09f7ffb37070c58703ebad083fe57393080218cfc41e7f17c0edcc21ddcc3034cfcf911a6f004cf73392ff00a6ff0ee8f1558853558878db99c4dd8826d7fecc02eec61eccfe51cc0211cc13174e004a303a7733967700e179fe212aebe58d735dc408be306da0bea1343c2912eac6106b95ffbc49f8b85391294afdf4880108b7244292aa17d186117e638d1153dd1f7315894e3b38662e463fcf9b7ff73be8ae6efef8d3f188ce126</data> | 1342 | <data format="XPM.GZ" length="1885">789c75d4576fdb301000e077ff0ac17c0b8a8bad49a2e843f61ece4e8a3e481cde198eb3d1ff5eeaeecca675ecb3047cd68922ef282f2f4557c707d1d272e3715a4efb3ad2bd72122d99a7f1f8ede7af1f1f8d663b8ffcb75051dcfcd66876a6918e0eef6e6d0d31f010aaf2a1d1e3da6551077a88c60fdaa14d694b87eea36d692b1c5cf4d88edd45bbaa5525e8516d2f1f685bdb289de7065da28dae8aac36e0f8d69a38add067b55d6cb224470bb6cc52f4153a316582f9c2906d2a255ed7e8d4b882d65791fd7585d79fd199512dac071cb0758cf383db99539a3f8d97d95ca1e1059ddb386ba3713daeb04a61bda0629725adef1a2d6d92517d045b4a346ca295cd12ca3f65e7ec36bbc8b03f60d85a513d24dab74752fd36d0952ddad81f18b0353faf605b89fb037a649756b4fe0cad5dace8f9fb6863754c4ec92e96e4989d48ead7989df2facfd1d66539d5ef929de734bf55b473719bee5f0bc6fec17a30f577979d70bff6d8694ceb599939a1fc437696d2f8c7c1347e2798f28f8269bf3c05d37ed909a67e9fb073beff62e69cfa336517bcdf6f8269be8f6c59d07a5a334baad756308dbf3db3a2fa256c45ef37bcb34b45e3bd06d37cdf662e69fc8799e97d86fb609aff2498ea77174cf5cbd9155d17c0d69aeaa78269ff8e8269bf0e83a91e8e6d2c3dafcbb66c1b2ce9cfee6f8080122ad09f7ffb37070c58703ebad083fe57393080218cfc41e7f17c0edcc21ddcc3034cfcf911a6f004cf73392ff00a6ff0ee8f1558853558878db99c4dd8826d7fecc02eec61eccfe51cc0211cc13174e004a303a7733967700e179fe212aebe58d735dc408be306da0bea1343c2912eac6106b95ffbc49f8b85391294afdf4880108b7244292aa17d186117e638d1153dd1f7315894e3b38662e463fcf9b7ff73be8ae6efef8d3f188ce126</data> |
1343 | </image> | 1343 | </image> |
1344 | </images> | 1344 | </images> |
1345 | <connections> | 1345 | <connections> |
1346 | <connection> | 1346 | <connection> |
1347 | <sender>CalibrateLightSensor</sender> | 1347 | <sender>CalibrateLightSensor</sender> |
1348 | <signal>clicked()</signal> | 1348 | <signal>clicked()</signal> |
1349 | <receiver>LightSettingsBase</receiver> | 1349 | <receiver>LightSettingsBase</receiver> |
1350 | <slot>calibrateSensor()</slot> | 1350 | <slot>calibrateSensor()</slot> |
1351 | </connection> | 1351 | </connection> |
1352 | <connection> | 1352 | <connection> |
1353 | <sender>CalibrateLightSensor_ac</sender> | 1353 | <sender>CalibrateLightSensor_ac</sender> |
1354 | <signal>clicked()</signal> | 1354 | <signal>clicked()</signal> |
1355 | <receiver>LightSettingsBase</receiver> | 1355 | <receiver>LightSettingsBase</receiver> |
1356 | <slot>calibrateSensorAC()</slot> | 1356 | <slot>calibrateSensorAC()</slot> |
1357 | </connection> | 1357 | </connection> |
1358 | <slot access="public">calibrateSensor()</slot> | 1358 | <slot access="public">calibrateSensor()</slot> |
1359 | <slot access="public">calibrateSensorAC()</slot> | 1359 | <slot access="public">calibrateSensorAC()</slot> |
1360 | </connections> | 1360 | </connections> |
1361 | <tabstops> | 1361 | <tabstops> |
1362 | <tabstop>brightness</tabstop> | 1362 | <tabstop>brightness</tabstop> |
1363 | <tabstop>brightness_ac</tabstop> | ||
1364 | <tabstop>tabs</tabstop> | ||
1365 | <tabstop>LcdOffOnly</tabstop> | ||
1366 | <tabstop>closeHingeAction</tabstop> | ||
1363 | <tabstop>interval_dim</tabstop> | 1367 | <tabstop>interval_dim</tabstop> |
1364 | <tabstop>interval_lightoff</tabstop> | 1368 | <tabstop>interval_lightoff</tabstop> |
1365 | <tabstop>interval_suspend</tabstop> | 1369 | <tabstop>interval_suspend</tabstop> |
1366 | <tabstop>LcdOffOnly</tabstop> | ||
1367 | <tabstop>auto_brightness</tabstop> | 1370 | <tabstop>auto_brightness</tabstop> |
1368 | <tabstop>CalibrateLightSensor</tabstop> | 1371 | <tabstop>CalibrateLightSensor</tabstop> |
1369 | <tabstop>brightness</tabstop> | 1372 | <tabstop>brightness</tabstop> |
1370 | <tabstop>tabs</tabstop> | ||
1371 | <tabstop>interval_lightoff</tabstop> | 1373 | <tabstop>interval_lightoff</tabstop> |
1372 | <tabstop>interval_suspend</tabstop> | 1374 | <tabstop>interval_suspend</tabstop> |
1373 | <tabstop>interval_dim</tabstop> | 1375 | <tabstop>interval_dim</tabstop> |
1374 | <tabstop>LcdOffOnly_ac</tabstop> | 1376 | <tabstop>LcdOffOnly_ac</tabstop> |
1375 | <tabstop>auto_brightness</tabstop> | 1377 | <tabstop>auto_brightness</tabstop> |
1376 | <tabstop>CalibrateLightSensor_ac</tabstop> | 1378 | <tabstop>CalibrateLightSensor_ac</tabstop> |
1377 | <tabstop>lowSpinBox</tabstop> | 1379 | <tabstop>lowSpinBox</tabstop> |
1378 | <tabstop>warnintervalBox</tabstop> | 1380 | <tabstop>warnintervalBox</tabstop> |
1379 | <tabstop>criticalSpinBox</tabstop> | 1381 | <tabstop>criticalSpinBox</tabstop> |
1382 | <tabstop>frequency</tabstop> | ||
1383 | <tabstop>contrast</tabstop> | ||
1384 | <tabstop>interval_lightoff_ac</tabstop> | ||
1385 | <tabstop>interval_suspend_ac</tabstop> | ||
1386 | <tabstop>interval_dim_ac</tabstop> | ||
1387 | <tabstop>frequency_ac</tabstop> | ||
1388 | <tabstop>closeHingeAction_ac</tabstop> | ||
1389 | <tabstop>contrast_ac</tabstop> | ||
1390 | <tabstop>auto_brightness_ac</tabstop> | ||
1380 | </tabstops> | 1391 | </tabstops> |
1381 | </UI> | 1392 | </UI> |