-rw-r--r-- | core/settings/light-and-power/light.cpp | 103 | ||||
-rw-r--r-- | core/settings/light-and-power/light.h | 5 | ||||
-rw-r--r-- | core/settings/light-and-power/lightsettingsbase.ui | 128 |
3 files changed, 185 insertions, 51 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 21377b7..a58b1c1 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -1,222 +1,271 @@ | |||
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 | 30 | ||
31 | #include <qpe/config.h> | 31 | #include <qpe/config.h> |
32 | #include <qpe/qpeapplication.h> | 32 | #include <qpe/qpeapplication.h> |
33 | #include <qpe/power.h> | 33 | #include <qpe/power.h> |
34 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 34 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
35 | #include <qpe/qcopenvelope_qws.h> | 35 | #include <qpe/qcopenvelope_qws.h> |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #include <qcheckbox.h> | 38 | #include <qcheckbox.h> |
39 | #include <qtabwidget.h> | 39 | #include <qtabwidget.h> |
40 | #include <qslider.h> | 40 | #include <qslider.h> |
41 | #include <qtimer.h> | 41 | #include <qtimer.h> |
42 | #include <qspinbox.h> | 42 | #include <qspinbox.h> |
43 | #include <qpushbutton.h> | 43 | #include <qpushbutton.h> |
44 | #include <qgroupbox.h> | ||
44 | 45 | ||
45 | #include <opie/odevice.h> | 46 | #include <opie/odevice.h> |
46 | 47 | ||
47 | #include "sensor.h" | 48 | #include "sensor.h" |
48 | 49 | ||
49 | using namespace Opie; | 50 | using namespace Opie; |
50 | 51 | ||
51 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | 52 | LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) |
52 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) | 53 | : LightSettingsBase( parent, name, false, WStyle_ContextHelp ) |
53 | { | 54 | { |
54 | m_res = ODevice::inst ( )-> displayBrightnessResolution ( ); | 55 | m_bres = ODevice::inst ( )-> displayBrightnessResolution ( ); |
56 | m_cres = ODevice::inst ( )-> displayContrastResolution ( ); | ||
55 | 57 | ||
56 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { | 58 | if ( !ODevice::inst ( )-> hasLightSensor ( )) { |
57 | auto_brightness-> hide ( ); | 59 | auto_brightness-> hide ( ); |
58 | CalibrateLightSensor-> hide ( ); | 60 | CalibrateLightSensor-> hide ( ); |
59 | auto_brightness_ac_3-> hide ( ); | 61 | auto_brightness_ac-> hide ( ); |
60 | CalibrateLightSensorAC-> hide ( ); | 62 | CalibrateLightSensor_ac-> hide ( ); |
63 | } | ||
64 | if (m_cres) { | ||
65 | GroupLight->setTitle(tr("Backlight & Contrast")); | ||
66 | } else { | ||
67 | contrast->hide(); | ||
68 | contrast_ac->hide(); | ||
61 | } | 69 | } |
62 | 70 | ||
63 | Config config ( "apm" ); | 71 | Config config ( "apm" ); |
64 | config. setGroup ( "Battery" ); | 72 | config. setGroup ( "Battery" ); |
65 | 73 | ||
66 | // battery spinboxes | 74 | // battery spinboxes |
67 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 30 )); | 75 | interval_dim-> setValue ( config. readNumEntry ( "Dim", 30 )); |
68 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 20 )); | 76 | interval_lightoff-> setValue ( config. readNumEntry ( "LightOff", 20 )); |
69 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); | 77 | interval_suspend-> setValue ( config. readNumEntry ( "Suspend", 60 )); |
70 | 78 | ||
71 | // battery check and slider | 79 | // battery check and slider |
72 | LcdOffOnly-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 80 | LcdOffOnly-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
73 | 81 | ||
74 | int bright = config. readNumEntry ( "Brightness", 127 ); | 82 | int bright = config. readNumEntry ( "Brightness", 127 ); |
75 | brightness-> setMaxValue ( m_res - 1 ); | 83 | int contr = config. readNumEntry ( "Contrast", 127 ); |
76 | brightness-> setTickInterval ( QMAX( 1, m_res / 16 )); | 84 | brightness-> setMaxValue ( m_bres - 1 ); |
77 | brightness-> setLineStep ( QMAX( 1, m_res / 16 )); | 85 | brightness-> setTickInterval ( QMAX( 1, m_bres / 16 )); |
78 | brightness-> setPageStep ( QMAX( 1, m_res / 16 )); | 86 | brightness-> setLineStep ( QMAX( 1, m_bres / 16 )); |
79 | brightness-> setValue (( bright * ( m_res - 1 ) + 127 ) / 255 ); | 87 | brightness-> setPageStep ( QMAX( 1, m_bres / 16 )); |
88 | brightness-> setValue (( bright * ( m_bres - 1 ) + 127 ) / 255 ); | ||
89 | |||
90 | if (m_cres) { | ||
91 | contrast-> setMaxValue ( m_cres - 1 ); | ||
92 | contrast-> setTickInterval ( QMAX( 1, m_cres / 16 )); | ||
93 | contrast-> setLineStep ( QMAX( 1, m_cres / 16 )); | ||
94 | contrast-> setPageStep ( QMAX( 1, m_cres / 16 )); | ||
95 | contrast-> setValue (( contr * ( m_cres - 1 ) + 127 ) / 255 ); | ||
96 | } | ||
80 | 97 | ||
81 | // light sensor | 98 | // light sensor |
82 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 99 | auto_brightness-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
83 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); | 100 | m_sensordata = config. readListEntry ( "LightSensorData", ';' ); |
84 | 101 | ||
85 | config. setGroup ( "AC" ); | 102 | config. setGroup ( "AC" ); |
86 | 103 | ||
87 | // ac spinboxes | 104 | // ac spinboxes |
88 | interval_dim_ac_3-> setValue ( config. readNumEntry ( "Dim", 60 )); | 105 | interval_dim_ac-> setValue ( config. readNumEntry ( "Dim", 60 )); |
89 | interval_lightoff_ac_3-> setValue ( config. readNumEntry ( "LightOff", 120 )); | 106 | interval_lightoff_ac-> setValue ( config. readNumEntry ( "LightOff", 120 )); |
90 | interval_suspend_ac_3-> setValue ( config. readNumEntry ( "Suspend", 0 )); | 107 | interval_suspend_ac-> setValue ( config. readNumEntry ( "Suspend", 0 )); |
91 | 108 | ||
92 | // ac check and slider | 109 | // ac check and slider |
93 | LcdOffOnly_2_3-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); | 110 | LcdOffOnly_ac-> setChecked ( config. readBoolEntry ( "LcdOffOnly", false )); |
94 | 111 | ||
95 | bright = config. readNumEntry ( "Brightness", 255 ); | 112 | bright = config. readNumEntry ( "Brightness", 255 ); |
96 | brightness_ac_3-> setMaxValue ( m_res - 1 ); | 113 | brightness_ac-> setMaxValue ( m_bres - 1 ); |
97 | brightness_ac_3-> setTickInterval ( QMAX( 1, m_res / 16 )); | 114 | brightness_ac-> setTickInterval ( QMAX( 1, m_bres / 16 )); |
98 | brightness_ac_3-> setLineStep ( QMAX( 1, m_res / 16 )); | 115 | brightness_ac-> setLineStep ( QMAX( 1, m_bres / 16 )); |
99 | brightness_ac_3-> setPageStep ( QMAX( 1, m_res / 16 )); | 116 | brightness_ac-> setPageStep ( QMAX( 1, m_bres / 16 )); |
100 | brightness_ac_3-> setValue (( bright * ( m_res - 1 ) + 127 ) / 255 ); | 117 | brightness_ac-> setValue (( bright * ( m_bres - 1 ) + 127 ) / 255 ); |
118 | |||
119 | if (m_cres) { | ||
120 | contr = config. readNumEntry ( "Contrast", 127); | ||
121 | contrast_ac-> setMaxValue ( m_cres - 1 ); | ||
122 | contrast_ac-> setTickInterval ( QMAX( 1, m_cres / 16 )); | ||
123 | contrast_ac-> setLineStep ( QMAX( 1, m_cres / 16 )); | ||
124 | contrast_ac-> setPageStep ( QMAX( 1, m_cres / 16 )); | ||
125 | contrast_ac-> setValue (( contr * ( m_cres - 1 ) + 127 ) / 255 ); | ||
126 | } | ||
101 | 127 | ||
102 | // light sensor | 128 | // light sensor |
103 | auto_brightness_ac_3-> setChecked ( config. readBoolEntry ( "LightSensor", false )); | 129 | auto_brightness_ac-> setChecked ( config. readBoolEntry ( "LightSensor", false )); |
104 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); | 130 | m_sensordata_ac = config. readListEntry ( "LightSensorData", ';' ); |
105 | 131 | ||
106 | // advanced settings | 132 | // advanced settings |
107 | config. setGroup ( "Warnings" ); | 133 | config. setGroup ( "Warnings" ); |
108 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); | 134 | warnintervalBox-> setValue ( config. readNumEntry ( "checkinterval", 10000 ) / 1000 ); |
109 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); | 135 | lowSpinBox-> setValue ( config. readNumEntry ( "powerverylow", 10 ) ); |
110 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); | 136 | criticalSpinBox-> setValue ( config. readNumEntry ( "powercritical", 5 ) ); |
111 | 137 | ||
112 | m_resettimer = new QTimer ( this ); | 138 | m_resettimer = new QTimer ( this ); |
113 | connect ( m_resettimer, SIGNAL( timeout ( )), this, SLOT( resetBacklight ( ))); | 139 | connect ( m_resettimer, SIGNAL( timeout ( )), this, SLOT( resetBacklight ( ))); |
114 | 140 | ||
115 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { | 141 | if ( PowerStatusManager::readStatus ( ). acStatus ( ) != PowerStatus::Online ) { |
116 | tabs-> setCurrentPage ( 0 ); | 142 | tabs-> setCurrentPage ( 0 ); |
117 | } | 143 | } |
118 | else { | 144 | else { |
119 | tabs-> setCurrentPage ( 1 ); | 145 | tabs-> setCurrentPage ( 1 ); |
120 | } | 146 | } |
121 | 147 | ||
122 | connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); | 148 | connect ( brightness, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); |
123 | connect ( brightness_ac_3, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); | 149 | connect ( brightness_ac, SIGNAL( valueChanged ( int )), this, SLOT( setBacklight ( int ))); |
150 | if (m_havecontrast) { | ||
151 | connect ( contrast, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); | ||
152 | connect ( contrast_ac, SIGNAL( valueChanged ( int )), this, SLOT( setContrast ( int ))); | ||
153 | } | ||
124 | } | 154 | } |
125 | 155 | ||
126 | LightSettings::~LightSettings ( ) | 156 | LightSettings::~LightSettings ( ) |
127 | { | 157 | { |
128 | } | 158 | } |
129 | 159 | ||
130 | void LightSettings::calibrateSensor ( ) | 160 | void LightSettings::calibrateSensor ( ) |
131 | { | 161 | { |
132 | Sensor *s = new Sensor ( m_sensordata, this ); | 162 | Sensor *s = new Sensor ( m_sensordata, this ); |
133 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); | 163 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); |
134 | s-> showMaximized ( ); | 164 | s-> showMaximized ( ); |
135 | s-> exec ( ); | 165 | s-> exec ( ); |
136 | delete s; | 166 | delete s; |
137 | } | 167 | } |
138 | 168 | ||
139 | void LightSettings::calibrateSensorAC ( ) | 169 | void LightSettings::calibrateSensorAC ( ) |
140 | { | 170 | { |
141 | Sensor *s = new Sensor ( m_sensordata_ac, this ); | 171 | Sensor *s = new Sensor ( m_sensordata_ac, this ); |
142 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); | 172 | connect ( s, SIGNAL( viewBacklight ( int )), this, SLOT( setBacklight ( int ))); |
143 | s-> showMaximized ( ); | 173 | s-> showMaximized ( ); |
144 | s-> exec ( ); | 174 | s-> exec ( ); |
145 | delete s; | 175 | delete s; |
146 | } | 176 | } |
147 | 177 | ||
148 | void LightSettings::setBacklight ( int bright ) | 178 | void LightSettings::setBacklight ( int bright ) |
149 | { | 179 | { |
150 | if ( bright >= 0 ) | 180 | if ( bright >= 0 ) |
151 | bright = bright * 255 / ( m_res - 1 ); | 181 | bright = bright * 255 / ( m_bres - 1 ); |
152 | 182 | ||
153 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); | 183 | QCopEnvelope e ( "QPE/System", "setBacklight(int)" ); |
154 | e << bright; | 184 | e << bright; |
155 | 185 | ||
156 | if ( bright != -1 ) { | 186 | if ( bright != -1 ) { |
157 | m_resettimer-> stop ( ); | 187 | m_resettimer-> stop ( ); |
158 | m_resettimer-> start ( 2000, true ); | 188 | m_resettimer-> start ( 2000, true ); |
159 | } | 189 | } |
160 | } | 190 | } |
161 | 191 | ||
192 | void LightSettings::setContrast ( int contr ) | ||
193 | { | ||
194 | if ( contr >= 0 ) | ||
195 | contr = contr * 255 / ( m_cres - 1 ); | ||
196 | |||
197 | QCopEnvelope e ( "QPE/System", "setContrast(int)" ); | ||
198 | e << contr; | ||
199 | |||
200 | if ( contr != -1 ) { | ||
201 | m_resettimer-> stop ( ); | ||
202 | m_resettimer-> start ( 2000, true ); | ||
203 | } | ||
204 | } | ||
205 | |||
162 | void LightSettings::resetBacklight ( ) | 206 | void LightSettings::resetBacklight ( ) |
163 | { | 207 | { |
164 | setBacklight ( -1 ); | 208 | setBacklight ( -1 ); |
209 | setContrast ( -1 ); | ||
165 | } | 210 | } |
166 | 211 | ||
167 | void LightSettings::accept ( ) | 212 | void LightSettings::accept ( ) |
168 | { | 213 | { |
169 | Config config ( "apm" ); | 214 | Config config ( "apm" ); |
170 | 215 | ||
171 | // bat | 216 | // bat |
172 | config. setGroup ( "Battery" ); | 217 | config. setGroup ( "Battery" ); |
173 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); | 218 | config. writeEntry ( "LcdOffOnly", LcdOffOnly-> isChecked ( )); |
174 | config. writeEntry ( "Dim", interval_dim-> value ( )); | 219 | config. writeEntry ( "Dim", interval_dim-> value ( )); |
175 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); | 220 | config. writeEntry ( "LightOff", interval_lightoff-> value ( )); |
176 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); | 221 | config. writeEntry ( "Suspend", interval_suspend-> value ( )); |
177 | config. writeEntry ( "Brightness", brightness-> value ( ) * 255 / ( m_res - 1 ) ); | 222 | config. writeEntry ( "Brightness", brightness-> value ( ) * 255 / ( m_bres - 1 ) ); |
223 | if (m_cres) | ||
224 | config. writeEntry ( "Contrast", contrast-> value ( ) * 255 / ( m_cres - 1 ) ); | ||
178 | 225 | ||
179 | // ac | 226 | // ac |
180 | config. setGroup ( "AC" ); | 227 | config. setGroup ( "AC" ); |
181 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_2_3-> isChecked ( )); | 228 | config. writeEntry ( "LcdOffOnly", LcdOffOnly_ac-> isChecked ( )); |
182 | config. writeEntry ( "Dim", interval_dim_ac_3-> value ( )); | 229 | config. writeEntry ( "Dim", interval_dim_ac-> value ( )); |
183 | config. writeEntry ( "LightOff", interval_lightoff_ac_3-> value ( )); | 230 | config. writeEntry ( "LightOff", interval_lightoff_ac-> value ( )); |
184 | config. writeEntry ( "Suspend", interval_suspend_ac_3-> value ( )); | 231 | config. writeEntry ( "Suspend", interval_suspend_ac-> value ( )); |
185 | config. writeEntry ( "Brightness", brightness_ac_3-> value ( ) * 255 / ( m_res - 1 )); | 232 | config. writeEntry ( "Brightness", brightness_ac-> value ( ) * 255 / ( m_bres - 1 )); |
233 | if (m_cres) | ||
234 | config. writeEntry ( "Contrast", contrast_ac-> value ( ) * 255 / ( m_cres - 1 )); | ||
186 | 235 | ||
187 | // only make light sensor stuff appear if the unit has a sensor | 236 | // only make light sensor stuff appear if the unit has a sensor |
188 | if ( ODevice::inst ( )-> hasLightSensor ( )) { | 237 | if ( ODevice::inst ( )-> hasLightSensor ( )) { |
189 | config. setGroup ( "Battery" ); | 238 | config. setGroup ( "Battery" ); |
190 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); | 239 | config. writeEntry ( "LightSensor", auto_brightness->isChecked() ); |
191 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); | 240 | config. writeEntry ( "LightSensorData", m_sensordata, ';' ); |
192 | config. setGroup ( "AC" ); | 241 | config. setGroup ( "AC" ); |
193 | config. writeEntry ( "LightSensor", auto_brightness_ac_3->isChecked() ); | 242 | config. writeEntry ( "LightSensor", auto_brightness_ac->isChecked() ); |
194 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); | 243 | config. writeEntry ( "LightSensorData", m_sensordata_ac, ';' ); |
195 | } | 244 | } |
196 | 245 | ||
197 | // advanced | 246 | // advanced |
198 | config. setGroup ( "Warnings" ); | 247 | config. setGroup ( "Warnings" ); |
199 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); | 248 | config. writeEntry ( "check_interval", warnintervalBox-> value ( ) * 1000 ); |
200 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); | 249 | config. writeEntry ( "power_verylow", lowSpinBox-> value ( )); |
201 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); | 250 | config. writeEntry ( "power_critical", criticalSpinBox-> value ( )); |
202 | config. write ( ); | 251 | config. write ( ); |
203 | 252 | ||
204 | // notify the launcher | 253 | // notify the launcher |
205 | { | 254 | { |
206 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); | 255 | QCopEnvelope e ( "QPE/System", "reloadPowerWarnSettings()" ); |
207 | } | 256 | } |
208 | { | 257 | { |
209 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); | 258 | QCopEnvelope e ( "QPE/System", "setScreenSaverInterval(int)" ); |
210 | e << -1; | 259 | e << -1; |
211 | } | 260 | } |
212 | LightSettingsBase::accept ( ); | 261 | LightSettingsBase::accept ( ); |
213 | } | 262 | } |
214 | 263 | ||
215 | void LightSettings::done ( int r ) | 264 | void LightSettings::done ( int r ) |
216 | { | 265 | { |
217 | m_resettimer-> stop ( ); | 266 | m_resettimer-> stop ( ); |
218 | resetBacklight ( ); | 267 | resetBacklight ( ); |
219 | 268 | ||
220 | LightSettingsBase::done ( r ); | 269 | LightSettingsBase::done ( r ); |
221 | close ( ); | 270 | close ( ); |
222 | } | 271 | } |
diff --git a/core/settings/light-and-power/light.h b/core/settings/light-and-power/light.h index 0a3c60b..c9757da 100644 --- a/core/settings/light-and-power/light.h +++ b/core/settings/light-and-power/light.h | |||
@@ -5,60 +5,63 @@ | |||
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 | #ifndef __LIGHT_H__ | 28 | #ifndef __LIGHT_H__ |
29 | #define __LIGHT_H__ | 29 | #define __LIGHT_H__ |
30 | 30 | ||
31 | 31 | ||
32 | #include <qstringlist.h> | 32 | #include <qstringlist.h> |
33 | #include "lightsettingsbase.h" | 33 | #include "lightsettingsbase.h" |
34 | 34 | ||
35 | class QTimer; | 35 | class QTimer; |
36 | 36 | ||
37 | class LightSettings : public LightSettingsBase | 37 | class LightSettings : public LightSettingsBase |
38 | { | 38 | { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | 40 | ||
41 | public: | 41 | public: |
42 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 42 | LightSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
43 | ~LightSettings(); | 43 | ~LightSettings(); |
44 | 44 | ||
45 | protected: | 45 | protected: |
46 | virtual void accept(); | 46 | virtual void accept(); |
47 | virtual void done ( int r ); | 47 | virtual void done ( int r ); |
48 | 48 | ||
49 | protected slots: | 49 | protected slots: |
50 | virtual void calibrateSensor ( ); | 50 | virtual void calibrateSensor ( ); |
51 | virtual void calibrateSensorAC ( ); | 51 | virtual void calibrateSensorAC ( ); |
52 | void setBacklight ( int ); | 52 | void setBacklight ( int ); |
53 | void setContrast ( int ); | ||
53 | void resetBacklight ( ); | 54 | void resetBacklight ( ); |
54 | 55 | ||
55 | private: | 56 | private: |
56 | int m_res; | 57 | int m_bres; |
58 | int m_cres; | ||
59 | int m_havecontrast; | ||
57 | QTimer *m_resettimer; | 60 | QTimer *m_resettimer; |
58 | QStringList m_sensordata; | 61 | QStringList m_sensordata; |
59 | QStringList m_sensordata_ac; | 62 | QStringList m_sensordata_ac; |
60 | }; | 63 | }; |
61 | 64 | ||
62 | 65 | ||
63 | #endif | 66 | #endif |
64 | 67 | ||
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui index 99bbd71..8fdd604 100644 --- a/core/settings/light-and-power/lightsettingsbase.ui +++ b/core/settings/light-and-power/lightsettingsbase.ui | |||
@@ -1,62 +1,62 @@ | |||
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>363</width> | 14 | <width>355</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"> |
@@ -231,157 +231,196 @@ | |||
231 | </property> | 231 | </property> |
232 | <property stdset="1"> | 232 | <property stdset="1"> |
233 | <name>lineStep</name> | 233 | <name>lineStep</name> |
234 | <number>10</number> | 234 | <number>10</number> |
235 | </property> | 235 | </property> |
236 | </widget> | 236 | </widget> |
237 | <widget row="2" column="0" > | 237 | <widget row="2" column="0" > |
238 | <class>QLabel</class> | 238 | <class>QLabel</class> |
239 | <property stdset="1"> | 239 | <property stdset="1"> |
240 | <name>name</name> | 240 | <name>name</name> |
241 | <cstring>TextLabel1_2</cstring> | 241 | <cstring>TextLabel1_2</cstring> |
242 | </property> | 242 | </property> |
243 | <property stdset="1"> | 243 | <property stdset="1"> |
244 | <name>sizePolicy</name> | 244 | <name>sizePolicy</name> |
245 | <sizepolicy> | 245 | <sizepolicy> |
246 | <hsizetype>3</hsizetype> | 246 | <hsizetype>3</hsizetype> |
247 | <vsizetype>1</vsizetype> | 247 | <vsizetype>1</vsizetype> |
248 | </sizepolicy> | 248 | </sizepolicy> |
249 | </property> | 249 | </property> |
250 | <property stdset="1"> | 250 | <property stdset="1"> |
251 | <name>text</name> | 251 | <name>text</name> |
252 | <string>Suspend after</string> | 252 | <string>Suspend after</string> |
253 | </property> | 253 | </property> |
254 | </widget> | 254 | </widget> |
255 | <widget row="3" column="0" rowspan="1" colspan="2" > | 255 | <widget row="3" column="0" rowspan="1" colspan="2" > |
256 | <class>QCheckBox</class> | 256 | <class>QCheckBox</class> |
257 | <property stdset="1"> | 257 | <property stdset="1"> |
258 | <name>name</name> | 258 | <name>name</name> |
259 | <cstring>LcdOffOnly</cstring> | 259 | <cstring>LcdOffOnly</cstring> |
260 | </property> | 260 | </property> |
261 | <property stdset="1"> | 261 | <property stdset="1"> |
262 | <name>sizePolicy</name> | 262 | <name>sizePolicy</name> |
263 | <sizepolicy> | 263 | <sizepolicy> |
264 | <hsizetype>7</hsizetype> | 264 | <hsizetype>7</hsizetype> |
265 | <vsizetype>0</vsizetype> | 265 | <vsizetype>0</vsizetype> |
266 | </sizepolicy> | 266 | </sizepolicy> |
267 | </property> | 267 | </property> |
268 | <property stdset="1"> | 268 | <property stdset="1"> |
269 | <name>text</name> | 269 | <name>text</name> |
270 | <string>Deactivate LCD only (does not suspend)</string> | 270 | <string>Deactivate LCD only (does not suspend)</string> |
271 | </property> | 271 | </property> |
272 | </widget> | 272 | </widget> |
273 | </grid> | 273 | </grid> |
274 | </widget> | 274 | </widget> |
275 | <widget> | 275 | <widget> |
276 | <class>QGroupBox</class> | 276 | <class>QGroupBox</class> |
277 | <property stdset="1"> | 277 | <property stdset="1"> |
278 | <name>name</name> | 278 | <name>name</name> |
279 | <cstring>GroupBox9</cstring> | 279 | <cstring>GroupLight</cstring> |
280 | </property> | 280 | </property> |
281 | <property stdset="1"> | 281 | <property stdset="1"> |
282 | <name>title</name> | 282 | <name>title</name> |
283 | <string>Backlight</string> | 283 | <string>Backlight</string> |
284 | </property> | 284 | </property> |
285 | <property> | 285 | <property> |
286 | <name>layoutMargin</name> | 286 | <name>layoutMargin</name> |
287 | </property> | 287 | </property> |
288 | <property> | 288 | <property> |
289 | <name>layoutSpacing</name> | 289 | <name>layoutSpacing</name> |
290 | </property> | 290 | </property> |
291 | <vbox> | 291 | <vbox> |
292 | <property stdset="1"> | 292 | <property stdset="1"> |
293 | <name>margin</name> | 293 | <name>margin</name> |
294 | <number>5</number> | 294 | <number>11</number> |
295 | </property> | 295 | </property> |
296 | <property stdset="1"> | 296 | <property stdset="1"> |
297 | <name>spacing</name> | 297 | <name>spacing</name> |
298 | <number>3</number> | 298 | <number>6</number> |
299 | </property> | 299 | </property> |
300 | <widget> | 300 | <widget> |
301 | <class>QSlider</class> | 301 | <class>QSlider</class> |
302 | <property stdset="1"> | 302 | <property stdset="1"> |
303 | <name>name</name> | 303 | <name>name</name> |
304 | <cstring>brightness</cstring> | 304 | <cstring>brightness</cstring> |
305 | </property> | 305 | </property> |
306 | <property stdset="1"> | 306 | <property stdset="1"> |
307 | <name>maxValue</name> | 307 | <name>maxValue</name> |
308 | <number>255</number> | 308 | <number>255</number> |
309 | </property> | 309 | </property> |
310 | <property stdset="1"> | 310 | <property stdset="1"> |
311 | <name>lineStep</name> | 311 | <name>lineStep</name> |
312 | <number>1</number> | 312 | <number>1</number> |
313 | </property> | 313 | </property> |
314 | <property stdset="1"> | 314 | <property stdset="1"> |
315 | <name>pageStep</name> | 315 | <name>pageStep</name> |
316 | <number>16</number> | 316 | <number>16</number> |
317 | </property> | 317 | </property> |
318 | <property stdset="1"> | 318 | <property stdset="1"> |
319 | <name>tracking</name> | 319 | <name>tracking</name> |
320 | <bool>true</bool> | 320 | <bool>true</bool> |
321 | </property> | 321 | </property> |
322 | <property stdset="1"> | 322 | <property stdset="1"> |
323 | <name>orientation</name> | 323 | <name>orientation</name> |
324 | <enum>Horizontal</enum> | 324 | <enum>Horizontal</enum> |
325 | </property> | 325 | </property> |
326 | <property stdset="1"> | 326 | <property stdset="1"> |
327 | <name>tickmarks</name> | 327 | <name>tickmarks</name> |
328 | <enum>Right</enum> | 328 | <enum>Right</enum> |
329 | </property> | 329 | </property> |
330 | <property stdset="1"> | 330 | <property stdset="1"> |
331 | <name>tickInterval</name> | 331 | <name>tickInterval</name> |
332 | <number>32</number> | 332 | <number>32</number> |
333 | </property> | 333 | </property> |
334 | <property> | 334 | <property> |
335 | <name>whatsThis</name> | 335 | <name>whatsThis</name> |
336 | <string>set a fix value for backlight</string> | 336 | <string>set a fix value for backlight</string> |
337 | </property> | 337 | </property> |
338 | </widget> | 338 | </widget> |
339 | <widget> | 339 | <widget> |
340 | <class>QSlider</class> | ||
341 | <property stdset="1"> | ||
342 | <name>name</name> | ||
343 | <cstring>contrast</cstring> | ||
344 | </property> | ||
345 | <property stdset="1"> | ||
346 | <name>maxValue</name> | ||
347 | <number>255</number> | ||
348 | </property> | ||
349 | <property stdset="1"> | ||
350 | <name>lineStep</name> | ||
351 | <number>1</number> | ||
352 | </property> | ||
353 | <property stdset="1"> | ||
354 | <name>pageStep</name> | ||
355 | <number>16</number> | ||
356 | </property> | ||
357 | <property stdset="1"> | ||
358 | <name>tracking</name> | ||
359 | <bool>true</bool> | ||
360 | </property> | ||
361 | <property stdset="1"> | ||
362 | <name>orientation</name> | ||
363 | <enum>Horizontal</enum> | ||
364 | </property> | ||
365 | <property stdset="1"> | ||
366 | <name>tickmarks</name> | ||
367 | <enum>Right</enum> | ||
368 | </property> | ||
369 | <property stdset="1"> | ||
370 | <name>tickInterval</name> | ||
371 | <number>32</number> | ||
372 | </property> | ||
373 | <property> | ||
374 | <name>whatsThis</name> | ||
375 | <string>set a fix value for contrast</string> | ||
376 | </property> | ||
377 | </widget> | ||
378 | <widget> | ||
340 | <class>QLayoutWidget</class> | 379 | <class>QLayoutWidget</class> |
341 | <property stdset="1"> | 380 | <property stdset="1"> |
342 | <name>name</name> | 381 | <name>name</name> |
343 | <cstring>Layout10</cstring> | 382 | <cstring>Layout10</cstring> |
344 | </property> | 383 | </property> |
345 | <property> | 384 | <property> |
346 | <name>layoutSpacing</name> | 385 | <name>layoutSpacing</name> |
347 | </property> | 386 | </property> |
348 | <hbox> | 387 | <hbox> |
349 | <property stdset="1"> | 388 | <property stdset="1"> |
350 | <name>margin</name> | 389 | <name>margin</name> |
351 | <number>0</number> | 390 | <number>0</number> |
352 | </property> | 391 | </property> |
353 | <property stdset="1"> | 392 | <property stdset="1"> |
354 | <name>spacing</name> | 393 | <name>spacing</name> |
355 | <number>3</number> | 394 | <number>3</number> |
356 | </property> | 395 | </property> |
357 | <widget> | 396 | <widget> |
358 | <class>QLabel</class> | 397 | <class>QLabel</class> |
359 | <property stdset="1"> | 398 | <property stdset="1"> |
360 | <name>name</name> | 399 | <name>name</name> |
361 | <cstring>PixmapLabel2</cstring> | 400 | <cstring>PixmapLabel2</cstring> |
362 | </property> | 401 | </property> |
363 | <property stdset="1"> | 402 | <property stdset="1"> |
364 | <name>pixmap</name> | 403 | <name>pixmap</name> |
365 | <pixmap>image0</pixmap> | 404 | <pixmap>image0</pixmap> |
366 | </property> | 405 | </property> |
367 | <property stdset="1"> | 406 | <property stdset="1"> |
368 | <name>scaledContents</name> | 407 | <name>scaledContents</name> |
369 | <bool>false</bool> | 408 | <bool>false</bool> |
370 | </property> | 409 | </property> |
371 | </widget> | 410 | </widget> |
372 | <widget> | 411 | <widget> |
373 | <class>QLabel</class> | 412 | <class>QLabel</class> |
374 | <property stdset="1"> | 413 | <property stdset="1"> |
375 | <name>name</name> | 414 | <name>name</name> |
376 | <cstring>TextLabel4</cstring> | 415 | <cstring>TextLabel4</cstring> |
377 | </property> | 416 | </property> |
378 | <property stdset="1"> | 417 | <property stdset="1"> |
379 | <name>text</name> | 418 | <name>text</name> |
380 | <string>Off</string> | 419 | <string>Off</string> |
381 | </property> | 420 | </property> |
382 | </widget> | 421 | </widget> |
383 | <spacer> | 422 | <spacer> |
384 | <property> | 423 | <property> |
385 | <name>name</name> | 424 | <name>name</name> |
386 | <cstring>Spacer2</cstring> | 425 | <cstring>Spacer2</cstring> |
387 | </property> | 426 | </property> |
@@ -511,289 +550,332 @@ | |||
511 | <cstring>tab</cstring> | 550 | <cstring>tab</cstring> |
512 | </property> | 551 | </property> |
513 | <attribute> | 552 | <attribute> |
514 | <name>title</name> | 553 | <name>title</name> |
515 | <string>on AC</string> | 554 | <string>on AC</string> |
516 | </attribute> | 555 | </attribute> |
517 | <vbox> | 556 | <vbox> |
518 | <property stdset="1"> | 557 | <property stdset="1"> |
519 | <name>margin</name> | 558 | <name>margin</name> |
520 | <number>5</number> | 559 | <number>5</number> |
521 | </property> | 560 | </property> |
522 | <property stdset="1"> | 561 | <property stdset="1"> |
523 | <name>spacing</name> | 562 | <name>spacing</name> |
524 | <number>3</number> | 563 | <number>3</number> |
525 | </property> | 564 | </property> |
526 | <widget> | 565 | <widget> |
527 | <class>QGroupBox</class> | 566 | <class>QGroupBox</class> |
528 | <property stdset="1"> | 567 | <property stdset="1"> |
529 | <name>name</name> | 568 | <name>name</name> |
530 | <cstring>GroupBox4</cstring> | 569 | <cstring>GroupBox4</cstring> |
531 | </property> | 570 | </property> |
532 | <property stdset="1"> | 571 | <property stdset="1"> |
533 | <name>enabled</name> | 572 | <name>enabled</name> |
534 | <bool>true</bool> | 573 | <bool>true</bool> |
535 | </property> | 574 | </property> |
536 | <property stdset="1"> | 575 | <property stdset="1"> |
537 | <name>title</name> | 576 | <name>title</name> |
538 | <string>General Settings</string> | 577 | <string>General Settings</string> |
539 | </property> | 578 | </property> |
540 | <property> | 579 | <property> |
541 | <name>layoutMargin</name> | 580 | <name>layoutMargin</name> |
542 | </property> | 581 | </property> |
543 | <property> | 582 | <property> |
544 | <name>layoutSpacing</name> | 583 | <name>layoutSpacing</name> |
545 | </property> | 584 | </property> |
546 | <grid> | 585 | <grid> |
547 | <property stdset="1"> | 586 | <property stdset="1"> |
548 | <name>margin</name> | 587 | <name>margin</name> |
549 | <number>5</number> | 588 | <number>5</number> |
550 | </property> | 589 | </property> |
551 | <property stdset="1"> | 590 | <property stdset="1"> |
552 | <name>spacing</name> | 591 | <name>spacing</name> |
553 | <number>3</number> | 592 | <number>3</number> |
554 | </property> | 593 | </property> |
555 | <widget row="1" column="1" > | 594 | <widget row="1" column="1" > |
556 | <class>QSpinBox</class> | 595 | <class>QSpinBox</class> |
557 | <property stdset="1"> | 596 | <property stdset="1"> |
558 | <name>name</name> | 597 | <name>name</name> |
559 | <cstring>interval_lightoff_ac_3</cstring> | 598 | <cstring>interval_lightoff_ac</cstring> |
560 | </property> | 599 | </property> |
561 | <property stdset="1"> | 600 | <property stdset="1"> |
562 | <name>suffix</name> | 601 | <name>suffix</name> |
563 | <string> sec</string> | 602 | <string> sec</string> |
564 | </property> | 603 | </property> |
565 | <property stdset="1"> | 604 | <property stdset="1"> |
566 | <name>specialValueText</name> | 605 | <name>specialValueText</name> |
567 | <string>never</string> | 606 | <string>never</string> |
568 | </property> | 607 | </property> |
569 | <property stdset="1"> | 608 | <property stdset="1"> |
570 | <name>buttonSymbols</name> | 609 | <name>buttonSymbols</name> |
571 | <enum>PlusMinus</enum> | 610 | <enum>PlusMinus</enum> |
572 | </property> | 611 | </property> |
573 | <property stdset="1"> | 612 | <property stdset="1"> |
574 | <name>maxValue</name> | 613 | <name>maxValue</name> |
575 | <number>3600</number> | 614 | <number>3600</number> |
576 | </property> | 615 | </property> |
577 | <property stdset="1"> | 616 | <property stdset="1"> |
578 | <name>minValue</name> | 617 | <name>minValue</name> |
579 | <number>0</number> | 618 | <number>0</number> |
580 | </property> | 619 | </property> |
581 | <property stdset="1"> | 620 | <property stdset="1"> |
582 | <name>lineStep</name> | 621 | <name>lineStep</name> |
583 | <number>10</number> | 622 | <number>10</number> |
584 | </property> | 623 | </property> |
585 | </widget> | 624 | </widget> |
586 | <widget row="0" column="0" > | 625 | <widget row="0" column="0" > |
587 | <class>QLabel</class> | 626 | <class>QLabel</class> |
588 | <property stdset="1"> | 627 | <property stdset="1"> |
589 | <name>name</name> | 628 | <name>name</name> |
590 | <cstring>TextLabel1_3_2</cstring> | 629 | <cstring>TextLabel1_3_2</cstring> |
591 | </property> | 630 | </property> |
592 | <property stdset="1"> | 631 | <property stdset="1"> |
593 | <name>sizePolicy</name> | 632 | <name>sizePolicy</name> |
594 | <sizepolicy> | 633 | <sizepolicy> |
595 | <hsizetype>3</hsizetype> | 634 | <hsizetype>3</hsizetype> |
596 | <vsizetype>1</vsizetype> | 635 | <vsizetype>1</vsizetype> |
597 | </sizepolicy> | 636 | </sizepolicy> |
598 | </property> | 637 | </property> |
599 | <property stdset="1"> | 638 | <property stdset="1"> |
600 | <name>text</name> | 639 | <name>text</name> |
601 | <string>Dim light after</string> | 640 | <string>Dim light after</string> |
602 | </property> | 641 | </property> |
603 | </widget> | 642 | </widget> |
604 | <widget row="2" column="1" > | 643 | <widget row="2" column="1" > |
605 | <class>QSpinBox</class> | 644 | <class>QSpinBox</class> |
606 | <property stdset="1"> | 645 | <property stdset="1"> |
607 | <name>name</name> | 646 | <name>name</name> |
608 | <cstring>interval_suspend_ac_3</cstring> | 647 | <cstring>interval_suspend_ac</cstring> |
609 | </property> | 648 | </property> |
610 | <property stdset="1"> | 649 | <property stdset="1"> |
611 | <name>suffix</name> | 650 | <name>suffix</name> |
612 | <string> sec</string> | 651 | <string> sec</string> |
613 | </property> | 652 | </property> |
614 | <property stdset="1"> | 653 | <property stdset="1"> |
615 | <name>specialValueText</name> | 654 | <name>specialValueText</name> |
616 | <string>never</string> | 655 | <string>never</string> |
617 | </property> | 656 | </property> |
618 | <property stdset="1"> | 657 | <property stdset="1"> |
619 | <name>buttonSymbols</name> | 658 | <name>buttonSymbols</name> |
620 | <enum>PlusMinus</enum> | 659 | <enum>PlusMinus</enum> |
621 | </property> | 660 | </property> |
622 | <property stdset="1"> | 661 | <property stdset="1"> |
623 | <name>maxValue</name> | 662 | <name>maxValue</name> |
624 | <number>3600</number> | 663 | <number>3600</number> |
625 | </property> | 664 | </property> |
626 | <property stdset="1"> | 665 | <property stdset="1"> |
627 | <name>minValue</name> | 666 | <name>minValue</name> |
628 | <number>0</number> | 667 | <number>0</number> |
629 | </property> | 668 | </property> |
630 | <property stdset="1"> | 669 | <property stdset="1"> |
631 | <name>lineStep</name> | 670 | <name>lineStep</name> |
632 | <number>10</number> | 671 | <number>10</number> |
633 | </property> | 672 | </property> |
634 | </widget> | 673 | </widget> |
635 | <widget row="2" column="0" > | 674 | <widget row="2" column="0" > |
636 | <class>QLabel</class> | 675 | <class>QLabel</class> |
637 | <property stdset="1"> | 676 | <property stdset="1"> |
638 | <name>name</name> | 677 | <name>name</name> |
639 | <cstring>TextLabel1_2_2_3</cstring> | 678 | <cstring>TextLabel1_2_2_3</cstring> |
640 | </property> | 679 | </property> |
641 | <property stdset="1"> | 680 | <property stdset="1"> |
642 | <name>sizePolicy</name> | 681 | <name>sizePolicy</name> |
643 | <sizepolicy> | 682 | <sizepolicy> |
644 | <hsizetype>3</hsizetype> | 683 | <hsizetype>3</hsizetype> |
645 | <vsizetype>1</vsizetype> | 684 | <vsizetype>1</vsizetype> |
646 | </sizepolicy> | 685 | </sizepolicy> |
647 | </property> | 686 | </property> |
648 | <property stdset="1"> | 687 | <property stdset="1"> |
649 | <name>text</name> | 688 | <name>text</name> |
650 | <string>Suspend after</string> | 689 | <string>Suspend after</string> |
651 | </property> | 690 | </property> |
652 | </widget> | 691 | </widget> |
653 | <widget row="0" column="1" > | 692 | <widget row="0" column="1" > |
654 | <class>QSpinBox</class> | 693 | <class>QSpinBox</class> |
655 | <property stdset="1"> | 694 | <property stdset="1"> |
656 | <name>name</name> | 695 | <name>name</name> |
657 | <cstring>interval_dim_ac_3</cstring> | 696 | <cstring>interval_dim_ac</cstring> |
658 | </property> | 697 | </property> |
659 | <property stdset="1"> | 698 | <property stdset="1"> |
660 | <name>suffix</name> | 699 | <name>suffix</name> |
661 | <string> sec</string> | 700 | <string> sec</string> |
662 | </property> | 701 | </property> |
663 | <property stdset="1"> | 702 | <property stdset="1"> |
664 | <name>specialValueText</name> | 703 | <name>specialValueText</name> |
665 | <string>never</string> | 704 | <string>never</string> |
666 | </property> | 705 | </property> |
667 | <property stdset="1"> | 706 | <property stdset="1"> |
668 | <name>buttonSymbols</name> | 707 | <name>buttonSymbols</name> |
669 | <enum>PlusMinus</enum> | 708 | <enum>PlusMinus</enum> |
670 | </property> | 709 | </property> |
671 | <property stdset="1"> | 710 | <property stdset="1"> |
672 | <name>maxValue</name> | 711 | <name>maxValue</name> |
673 | <number>3600</number> | 712 | <number>3600</number> |
674 | </property> | 713 | </property> |
675 | <property stdset="1"> | 714 | <property stdset="1"> |
676 | <name>minValue</name> | 715 | <name>minValue</name> |
677 | <number>0</number> | 716 | <number>0</number> |
678 | </property> | 717 | </property> |
679 | <property stdset="1"> | 718 | <property stdset="1"> |
680 | <name>lineStep</name> | 719 | <name>lineStep</name> |
681 | <number>10</number> | 720 | <number>10</number> |
682 | </property> | 721 | </property> |
683 | </widget> | 722 | </widget> |
684 | <widget row="1" column="0" > | 723 | <widget row="1" column="0" > |
685 | <class>QLabel</class> | 724 | <class>QLabel</class> |
686 | <property stdset="1"> | 725 | <property stdset="1"> |
687 | <name>name</name> | 726 | <name>name</name> |
688 | <cstring>TextLabel2_2_2</cstring> | 727 | <cstring>TextLabel2_2_2</cstring> |
689 | </property> | 728 | </property> |
690 | <property stdset="1"> | 729 | <property stdset="1"> |
691 | <name>sizePolicy</name> | 730 | <name>sizePolicy</name> |
692 | <sizepolicy> | 731 | <sizepolicy> |
693 | <hsizetype>3</hsizetype> | 732 | <hsizetype>3</hsizetype> |
694 | <vsizetype>1</vsizetype> | 733 | <vsizetype>1</vsizetype> |
695 | </sizepolicy> | 734 | </sizepolicy> |
696 | </property> | 735 | </property> |
697 | <property stdset="1"> | 736 | <property stdset="1"> |
698 | <name>text</name> | 737 | <name>text</name> |
699 | <string>Light off after</string> | 738 | <string>Light off after</string> |
700 | </property> | 739 | </property> |
701 | </widget> | 740 | </widget> |
702 | <widget row="3" column="0" rowspan="1" colspan="2" > | 741 | <widget row="3" column="0" rowspan="1" colspan="2" > |
703 | <class>QCheckBox</class> | 742 | <class>QCheckBox</class> |
704 | <property stdset="1"> | 743 | <property stdset="1"> |
705 | <name>name</name> | 744 | <name>name</name> |
706 | <cstring>LcdOffOnly_2_3</cstring> | 745 | <cstring>LcdOffOnly_ac</cstring> |
707 | </property> | 746 | </property> |
708 | <property stdset="1"> | 747 | <property stdset="1"> |
709 | <name>sizePolicy</name> | 748 | <name>sizePolicy</name> |
710 | <sizepolicy> | 749 | <sizepolicy> |
711 | <hsizetype>7</hsizetype> | 750 | <hsizetype>7</hsizetype> |
712 | <vsizetype>0</vsizetype> | 751 | <vsizetype>0</vsizetype> |
713 | </sizepolicy> | 752 | </sizepolicy> |
714 | </property> | 753 | </property> |
715 | <property stdset="1"> | 754 | <property stdset="1"> |
716 | <name>text</name> | 755 | <name>text</name> |
717 | <string>Deactivate LCD only (does not suspend)</string> | 756 | <string>Deactivate LCD only (does not suspend)</string> |
718 | </property> | 757 | </property> |
719 | </widget> | 758 | </widget> |
720 | </grid> | 759 | </grid> |
721 | </widget> | 760 | </widget> |
722 | <widget> | 761 | <widget> |
723 | <class>QGroupBox</class> | 762 | <class>QGroupBox</class> |
724 | <property stdset="1"> | 763 | <property stdset="1"> |
725 | <name>name</name> | 764 | <name>name</name> |
726 | <cstring>GroupBox8</cstring> | 765 | <cstring>GroupBox8</cstring> |
727 | </property> | 766 | </property> |
728 | <property stdset="1"> | 767 | <property stdset="1"> |
729 | <name>title</name> | 768 | <name>title</name> |
730 | <string>Backlight</string> | 769 | <string>Backlight</string> |
731 | </property> | 770 | </property> |
732 | <property> | 771 | <property> |
733 | <name>layoutMargin</name> | 772 | <name>layoutMargin</name> |
734 | </property> | 773 | </property> |
735 | <property> | 774 | <property> |
736 | <name>layoutSpacing</name> | 775 | <name>layoutSpacing</name> |
737 | </property> | 776 | </property> |
738 | <vbox> | 777 | <vbox> |
739 | <property stdset="1"> | 778 | <property stdset="1"> |
740 | <name>margin</name> | 779 | <name>margin</name> |
741 | <number>5</number> | 780 | <number>11</number> |
742 | </property> | 781 | </property> |
743 | <property stdset="1"> | 782 | <property stdset="1"> |
744 | <name>spacing</name> | 783 | <name>spacing</name> |
745 | <number>3</number> | 784 | <number>6</number> |
746 | </property> | 785 | </property> |
747 | <widget> | 786 | <widget> |
748 | <class>QSlider</class> | 787 | <class>QSlider</class> |
749 | <property stdset="1"> | 788 | <property stdset="1"> |
750 | <name>name</name> | 789 | <name>name</name> |
751 | <cstring>brightness_ac_3</cstring> | 790 | <cstring>brightness_ac</cstring> |
791 | </property> | ||
792 | <property stdset="1"> | ||
793 | <name>minValue</name> | ||
794 | <number>0</number> | ||
795 | </property> | ||
796 | <property stdset="1"> | ||
797 | <name>maxValue</name> | ||
798 | <number>255</number> | ||
799 | </property> | ||
800 | <property stdset="1"> | ||
801 | <name>lineStep</name> | ||
802 | <number>16</number> | ||
803 | </property> | ||
804 | <property stdset="1"> | ||
805 | <name>pageStep</name> | ||
806 | <number>16</number> | ||
807 | </property> | ||
808 | <property stdset="1"> | ||
809 | <name>value</name> | ||
810 | <number>255</number> | ||
811 | </property> | ||
812 | <property stdset="1"> | ||
813 | <name>tracking</name> | ||
814 | <bool>true</bool> | ||
815 | </property> | ||
816 | <property stdset="1"> | ||
817 | <name>orientation</name> | ||
818 | <enum>Horizontal</enum> | ||
819 | </property> | ||
820 | <property stdset="1"> | ||
821 | <name>tickmarks</name> | ||
822 | <enum>Right</enum> | ||
823 | </property> | ||
824 | <property> | ||
825 | <name>whatsThis</name> | ||
826 | <string>set a fix value for backlight</string> | ||
827 | </property> | ||
828 | </widget> | ||
829 | <widget> | ||
830 | <class>QSlider</class> | ||
831 | <property stdset="1"> | ||
832 | <name>name</name> | ||
833 | <cstring>contrast_ac</cstring> | ||
752 | </property> | 834 | </property> |
753 | <property stdset="1"> | 835 | <property stdset="1"> |
754 | <name>minValue</name> | 836 | <name>minValue</name> |
755 | <number>0</number> | 837 | <number>0</number> |
756 | </property> | 838 | </property> |
757 | <property stdset="1"> | 839 | <property stdset="1"> |
758 | <name>maxValue</name> | 840 | <name>maxValue</name> |
759 | <number>255</number> | 841 | <number>255</number> |
760 | </property> | 842 | </property> |
761 | <property stdset="1"> | 843 | <property stdset="1"> |
762 | <name>lineStep</name> | 844 | <name>lineStep</name> |
763 | <number>16</number> | 845 | <number>16</number> |
764 | </property> | 846 | </property> |
765 | <property stdset="1"> | 847 | <property stdset="1"> |
766 | <name>pageStep</name> | 848 | <name>pageStep</name> |
767 | <number>16</number> | 849 | <number>16</number> |
768 | </property> | 850 | </property> |
769 | <property stdset="1"> | 851 | <property stdset="1"> |
770 | <name>value</name> | 852 | <name>value</name> |
771 | <number>255</number> | 853 | <number>255</number> |
772 | </property> | 854 | </property> |
773 | <property stdset="1"> | 855 | <property stdset="1"> |
774 | <name>tracking</name> | 856 | <name>tracking</name> |
775 | <bool>true</bool> | 857 | <bool>true</bool> |
776 | </property> | 858 | </property> |
777 | <property stdset="1"> | 859 | <property stdset="1"> |
778 | <name>orientation</name> | 860 | <name>orientation</name> |
779 | <enum>Horizontal</enum> | 861 | <enum>Horizontal</enum> |
780 | </property> | 862 | </property> |
781 | <property stdset="1"> | 863 | <property stdset="1"> |
782 | <name>tickmarks</name> | 864 | <name>tickmarks</name> |
783 | <enum>Right</enum> | 865 | <enum>Right</enum> |
784 | </property> | 866 | </property> |
785 | <property> | 867 | <property> |
786 | <name>whatsThis</name> | 868 | <name>whatsThis</name> |
787 | <string>set a fix value for backlight</string> | 869 | <string>set a fix value for backlight</string> |
788 | </property> | 870 | </property> |
789 | </widget> | 871 | </widget> |
790 | <widget> | 872 | <widget> |
791 | <class>QLayoutWidget</class> | 873 | <class>QLayoutWidget</class> |
792 | <property stdset="1"> | 874 | <property stdset="1"> |
793 | <name>name</name> | 875 | <name>name</name> |
794 | <cstring>Layout20</cstring> | 876 | <cstring>Layout20</cstring> |
795 | </property> | 877 | </property> |
796 | <property> | 878 | <property> |
797 | <name>layoutSpacing</name> | 879 | <name>layoutSpacing</name> |
798 | </property> | 880 | </property> |
799 | <hbox> | 881 | <hbox> |
@@ -857,112 +939,112 @@ | |||
857 | <property stdset="1"> | 939 | <property stdset="1"> |
858 | <name>name</name> | 940 | <name>name</name> |
859 | <cstring>TextLabel7</cstring> | 941 | <cstring>TextLabel7</cstring> |
860 | </property> | 942 | </property> |
861 | <property stdset="1"> | 943 | <property stdset="1"> |
862 | <name>text</name> | 944 | <name>text</name> |
863 | <string>Full</string> | 945 | <string>Full</string> |
864 | </property> | 946 | </property> |
865 | </widget> | 947 | </widget> |
866 | <widget> | 948 | <widget> |
867 | <class>QLabel</class> | 949 | <class>QLabel</class> |
868 | <property stdset="1"> | 950 | <property stdset="1"> |
869 | <name>name</name> | 951 | <name>name</name> |
870 | <cstring>PixmapLabel1_2_3</cstring> | 952 | <cstring>PixmapLabel1_2_3</cstring> |
871 | </property> | 953 | </property> |
872 | <property stdset="1"> | 954 | <property stdset="1"> |
873 | <name>pixmap</name> | 955 | <name>pixmap</name> |
874 | <pixmap>image1</pixmap> | 956 | <pixmap>image1</pixmap> |
875 | </property> | 957 | </property> |
876 | <property stdset="1"> | 958 | <property stdset="1"> |
877 | <name>scaledContents</name> | 959 | <name>scaledContents</name> |
878 | <bool>false</bool> | 960 | <bool>false</bool> |
879 | </property> | 961 | </property> |
880 | </widget> | 962 | </widget> |
881 | </hbox> | 963 | </hbox> |
882 | </widget> | 964 | </widget> |
883 | <widget> | 965 | <widget> |
884 | <class>QLayoutWidget</class> | 966 | <class>QLayoutWidget</class> |
885 | <property stdset="1"> | 967 | <property stdset="1"> |
886 | <name>name</name> | 968 | <name>name</name> |
887 | <cstring>Layout10</cstring> | 969 | <cstring>Layout10</cstring> |
888 | </property> | 970 | </property> |
889 | <property> | 971 | <property> |
890 | <name>layoutSpacing</name> | 972 | <name>layoutSpacing</name> |
891 | </property> | 973 | </property> |
892 | <hbox> | 974 | <hbox> |
893 | <property stdset="1"> | 975 | <property stdset="1"> |
894 | <name>margin</name> | 976 | <name>margin</name> |
895 | <number>0</number> | 977 | <number>0</number> |
896 | </property> | 978 | </property> |
897 | <property stdset="1"> | 979 | <property stdset="1"> |
898 | <name>spacing</name> | 980 | <name>spacing</name> |
899 | <number>3</number> | 981 | <number>3</number> |
900 | </property> | 982 | </property> |
901 | <widget> | 983 | <widget> |
902 | <class>QCheckBox</class> | 984 | <class>QCheckBox</class> |
903 | <property stdset="1"> | 985 | <property stdset="1"> |
904 | <name>name</name> | 986 | <name>name</name> |
905 | <cstring>auto_brightness_ac_3</cstring> | 987 | <cstring>auto_brightness_ac</cstring> |
906 | </property> | 988 | </property> |
907 | <property stdset="1"> | 989 | <property stdset="1"> |
908 | <name>text</name> | 990 | <name>text</name> |
909 | <string>Use Light Sensor</string> | 991 | <string>Use Light Sensor</string> |
910 | </property> | 992 | </property> |
911 | <property> | 993 | <property> |
912 | <name>whatsThis</name> | 994 | <name>whatsThis</name> |
913 | <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> | 995 | <string>By sensing the ambient light where you are using your device, the screen light can be adjusted automatically. The brightness setting still affects the average brightness.</string> |
914 | </property> | 996 | </property> |
915 | </widget> | 997 | </widget> |
916 | <widget> | 998 | <widget> |
917 | <class>QPushButton</class> | 999 | <class>QPushButton</class> |
918 | <property stdset="1"> | 1000 | <property stdset="1"> |
919 | <name>name</name> | 1001 | <name>name</name> |
920 | <cstring>CalibrateLightSensorAC</cstring> | 1002 | <cstring>CalibrateLightSensor_ac</cstring> |
921 | </property> | 1003 | </property> |
922 | <property stdset="1"> | 1004 | <property stdset="1"> |
923 | <name>text</name> | 1005 | <name>text</name> |
924 | <string>Calibrate</string> | 1006 | <string>Calibrate</string> |
925 | </property> | 1007 | </property> |
926 | <property> | 1008 | <property> |
927 | <name>whatsThis</name> | 1009 | <name>whatsThis</name> |
928 | <string>Advanced settings for light sensor handling</string> | 1010 | <string>Advanced settings for light sensor handling</string> |
929 | </property> | 1011 | </property> |
930 | </widget> | 1012 | </widget> |
931 | </hbox> | 1013 | </hbox> |
932 | </widget> | 1014 | </widget> |
933 | </vbox> | 1015 | </vbox> |
934 | </widget> | 1016 | </widget> |
935 | <spacer> | 1017 | <spacer> |
936 | <property> | 1018 | <property> |
937 | <name>name</name> | 1019 | <name>name</name> |
938 | <cstring>Spacer5</cstring> | 1020 | <cstring>Spacer5</cstring> |
939 | </property> | 1021 | </property> |
940 | <property stdset="1"> | 1022 | <property stdset="1"> |
941 | <name>orientation</name> | 1023 | <name>orientation</name> |
942 | <enum>Vertical</enum> | 1024 | <enum>Vertical</enum> |
943 | </property> | 1025 | </property> |
944 | <property stdset="1"> | 1026 | <property stdset="1"> |
945 | <name>sizeType</name> | 1027 | <name>sizeType</name> |
946 | <enum>Expanding</enum> | 1028 | <enum>Expanding</enum> |
947 | </property> | 1029 | </property> |
948 | <property> | 1030 | <property> |
949 | <name>sizeHint</name> | 1031 | <name>sizeHint</name> |
950 | <size> | 1032 | <size> |
951 | <width>20</width> | 1033 | <width>20</width> |
952 | <height>20</height> | 1034 | <height>20</height> |
953 | </size> | 1035 | </size> |
954 | </property> | 1036 | </property> |
955 | </spacer> | 1037 | </spacer> |
956 | </vbox> | 1038 | </vbox> |
957 | </widget> | 1039 | </widget> |
958 | <widget> | 1040 | <widget> |
959 | <class>QWidget</class> | 1041 | <class>QWidget</class> |
960 | <property stdset="1"> | 1042 | <property stdset="1"> |
961 | <name>name</name> | 1043 | <name>name</name> |
962 | <cstring>tab</cstring> | 1044 | <cstring>tab</cstring> |
963 | </property> | 1045 | </property> |
964 | <attribute> | 1046 | <attribute> |
965 | <name>title</name> | 1047 | <name>title</name> |
966 | <string>Warnings</string> | 1048 | <string>Warnings</string> |
967 | </attribute> | 1049 | </attribute> |
968 | <vbox> | 1050 | <vbox> |
@@ -1147,92 +1229,92 @@ | |||
1147 | <class>QLabel</class> | 1229 | <class>QLabel</class> |
1148 | <property stdset="1"> | 1230 | <property stdset="1"> |
1149 | <name>name</name> | 1231 | <name>name</name> |
1150 | <cstring>TextLabel3</cstring> | 1232 | <cstring>TextLabel3</cstring> |
1151 | </property> | 1233 | </property> |
1152 | <property stdset="1"> | 1234 | <property stdset="1"> |
1153 | <name>sizePolicy</name> | 1235 | <name>sizePolicy</name> |
1154 | <sizepolicy> | 1236 | <sizepolicy> |
1155 | <hsizetype>1</hsizetype> | 1237 | <hsizetype>1</hsizetype> |
1156 | <vsizetype>5</vsizetype> | 1238 | <vsizetype>5</vsizetype> |
1157 | </sizepolicy> | 1239 | </sizepolicy> |
1158 | </property> | 1240 | </property> |
1159 | <property stdset="1"> | 1241 | <property stdset="1"> |
1160 | <name>text</name> | 1242 | <name>text</name> |
1161 | <string>critical power warning at</string> | 1243 | <string>critical power warning at</string> |
1162 | </property> | 1244 | </property> |
1163 | </widget> | 1245 | </widget> |
1164 | </grid> | 1246 | </grid> |
1165 | </widget> | 1247 | </widget> |
1166 | <spacer> | 1248 | <spacer> |
1167 | <property> | 1249 | <property> |
1168 | <name>name</name> | 1250 | <name>name</name> |
1169 | <cstring>Spacer1</cstring> | 1251 | <cstring>Spacer1</cstring> |
1170 | </property> | 1252 | </property> |
1171 | <property stdset="1"> | 1253 | <property stdset="1"> |
1172 | <name>orientation</name> | 1254 | <name>orientation</name> |
1173 | <enum>Vertical</enum> | 1255 | <enum>Vertical</enum> |
1174 | </property> | 1256 | </property> |
1175 | <property stdset="1"> | 1257 | <property stdset="1"> |
1176 | <name>sizeType</name> | 1258 | <name>sizeType</name> |
1177 | <enum>Expanding</enum> | 1259 | <enum>Expanding</enum> |
1178 | </property> | 1260 | </property> |
1179 | <property> | 1261 | <property> |
1180 | <name>sizeHint</name> | 1262 | <name>sizeHint</name> |
1181 | <size> | 1263 | <size> |
1182 | <width>20</width> | 1264 | <width>20</width> |
1183 | <height>20</height> | 1265 | <height>20</height> |
1184 | </size> | 1266 | </size> |
1185 | </property> | 1267 | </property> |
1186 | </spacer> | 1268 | </spacer> |
1187 | </vbox> | 1269 | </vbox> |
1188 | </widget> | 1270 | </widget> |
1189 | </widget> | 1271 | </widget> |
1190 | </vbox> | 1272 | </vbox> |
1191 | </widget> | 1273 | </widget> |
1192 | <images> | 1274 | <images> |
1193 | <image> | 1275 | <image> |
1194 | <name>image0</name> | 1276 | <name>image0</name> |
1195 | <data format="XPM.GZ" length="1265">789c55d34b4fe2601487f13d9fa2811d9960cba5854c66a1584511046f209359f46d8b50b9df1427f3dda7cf31e2e13c2efebf77a118e349deea775a56fe24b3de049b716885a36065e5a3ed74bafffde7d7df4cd671adf4cb2d5b4ef647265bb042ab3d9fc5ec92daaeda35b5ab6adfaa9d533b56db537baaf650ed96da1db5efd53e55fb51ed2bb5376a3fa87da9f656ed62ba733543b002038f605928079f851141471813b485438203686c827d183a049f842ec1b5302038161a82d74239d880914d30103a0467c222c10f6185e099d023b813560946c21ac10ba121d8168604f74239d813c604cf616c13f4850ec177619160222c1334c20ac150e8126c0a3d8237c22ac13b618d6057287f24b8121a824b6148b02e94df014e847270048736c137a14370212c119c0bcb045f851ec117a121f907e4728109a358e6d7db307c496f34566f71f22a37997ebfcde68bc57cb15c99f5e6eb6dbb7b4bef7dbfdf7f9c1edeceea93ba39f77dffe2f076d9484c92186392ddd5e1fb5d376f3eaff1fd335ad152ae7dab3e5fa73b4aefaea53ff37d779e5ef341bf3dca87f68fde0a4f3ddfeff58f7edfc2f3c0769ce2f15ba93c1854dce3b78257ad0d3f57f6dfcfcc7f522034e9</data> | 1277 | <data format="XPM.GZ" length="680">789c5dd04d6ac3301005e0bd4f21ec5d280931b1c0941ca1a5cb42e962a4194956e2d8f9e9a294debd9e9168ec3cbcd0f72ca1b1372bf5fef6a2569be27a835b67950d70512bfceafbef8fcffd4f516eb59a9e7aabb6e55351ae9555afc389787d9ed6556bdbb6b5cc2b1376d0c08e79115a0090b74326258e4cb333b591cd27a66d6c6d1b669fa9134988162c328f99945831b1c11a65f32153271a2121a0cc1c3329b16392a69a3413327562101201c9669f4989c874dad54e36bb4c9d6885ce8173f2df24158049abff0eec14a479371de1f859573944873e00dd3b8353ba18e3e1de1dbcf7d04d31b3b39033eb8e1052aad9bdc64be262bec0b784e5cc81c78387efe0ae5b767decba785a76c3380cc379d9ad2fe3787df82fb394bfcfc51f5517a686</data> |
1196 | </image> | 1278 | </image> |
1197 | <image> | 1279 | <image> |
1198 | <name>image1</name> | 1280 | <name>image1</name> |
1199 | <data format="XPM.GZ" length="2211">789c75d5594fdb401007f0773e45c4bca1eadfc4b755f581fba6d0420b547db077d7248424908310aa7ef7ae6736ee9683c1917ed9b13d9e592b1fd75a97a7c7adb58f2b936931eda996ea16e3d69a9e0d068b9fbf3eff5e59ed24adfabf1db582d50f2bab67d3966a9d8c86a6066df9d8f371e8e3c0c7be8f231fca03c887f131f091fb17e8fad07edad847e5a7f5fc95637f65e8af843e36fcb4898fff6afbeee3c4c7a67f4e0dca4b1b8abd5bbb48eb606fb3f98fbd60ebc214157b836d0a53f28468ddb9727e665765bb0cd93bb5ad6cb09f6aeb5c2589664fd95a9569ccc5ded536460751c98e6a57818ec3845d386771c4ced8a12e42cea7b9d84459c6eb9a1de92a95e79b89ed7aceeb5c7f15ebbccdfdc00f6715707d982c1d49fd8f6293e46c6cb11313c41d76c94e4d9e73bfa09c8b829f8fc0ce4c184b7fc6ce59c6c617766ee250fa113827622a9dd398e7831b6795733f68c4b6e3c9a47f47ecd2a41d9e0f86ce4aee4777ce2693cdd217575129f3b965ab2ac8a59e0bb6362a907ae4feba0a32b1710e3399d7837324cf8f986daa3891fea5ce4922f5edb3ab2ae8c8f9078d797e386c2cf3fde61cba799d3b47813ccfded2a1e45f3ac7915cffbab15cbfdd58f2af1acb7e796e2cfbe56b639977c73971e7274b27b25f17cea9ec77a2c652ef9373964aff8ba533e9d76963b9fed9d2b9bc7f95732eef37769d8b5cfab3dd58eadd59ba90eb3f2e2def33668da5fe7963e9dfb4b1bc5f7de752d6e9c15929ee1fdd3796fdfbcfb25f478da51f3d676de47eb7cec6b9db38935f8c658050a0848286f9f7ad9f830a37e8a267e3167ddcbdcec100438c706f0ff97cc0f855ce0453ccf088b9fd7cc202cf58c7869f834d6c611b3bd8b5c71ef67180431ce1f8bf9c137cc129ceecf115df70ce71f122e73b7ee01257b8461b1d8e3602842fea891023f12245f6aae69c4044850ba292d4ebfe902643958b1beabed543ead12df5edb3cfa94f77347833674823bab7fdbba7071ad3e4ad1c9b35a5193dda98d3d3dbf3b2390b7aa675dab0b1f96ece166dd38e8d5dda7b2fc766edd3011dd291ffddea9f4f2b7f01e4bc2999</data> | 1281 | <data format="XPM.GZ" length="1220">789c5dd35f53e2301000f0773e4507de981ba4a5443a37f7a028fe41101514bcb987344d0515a8b4a0e0dc77bfee6e36d0dbe121bf4d48361b38aa3ae341cfa91e95d24c6633e5a8a95c39d5683d9f6f7ffff9f55d2abbc2c93fcd63c72dff28956b8e72facb8586f1733eae042a080205f480d2974de903eb4825a5c4d927434d9c30435c3c26861ed105863ef31118692584043e18cae306700ad43af27c9cbd00c622120d2cf8c350d65bc02b66230056984d0f786ea83d9c7d67fab89562d2b92ba2f6e8bb4343d10a81236680579086927a1532a957d7c898b7fa32146e1db865d28d7acc26def7de50b6b0aa3b4b2ce3cc507bb8d58c498b0796b8386252cd1b62ec51199f96d8c95326f5aacfa49d6f99b455db50d0e235935ea1c3a43e279678c14ba6c0e62c99f40a5d4bbcc21b931afbc20c23e0c250d2e21b26d5bcb3c4d913265d21b5c417cc9874d09c49bfd857c358e1b931530ba0b6c4ff510da3224345239b8b74bee6657a989bbd62bc1de4dee7108b65f2b1cfadd22ccdd69bcde7d73eb7dd9dec92d376bb7db6cf9d77924e02b1dde72e2e4d5c1d9c7bddbdc9a3db2bd4d74ff3e8176bbe856206c5dc1d947c5fcc3d0c47a3e16331f7349e4c26cfc55cadeebade7f7d3988f2df9fa57f7da120b4</data> |
1200 | </image> | 1282 | </image> |
1201 | </images> | 1283 | </images> |
1202 | <connections> | 1284 | <connections> |
1203 | <connection> | 1285 | <connection> |
1204 | <sender>CalibrateLightSensor</sender> | 1286 | <sender>CalibrateLightSensor</sender> |
1205 | <signal>clicked()</signal> | 1287 | <signal>clicked()</signal> |
1206 | <receiver>LightSettingsBase</receiver> | 1288 | <receiver>LightSettingsBase</receiver> |
1207 | <slot>calibrateSensor()</slot> | 1289 | <slot>calibrateSensor()</slot> |
1208 | </connection> | 1290 | </connection> |
1209 | <connection> | 1291 | <connection> |
1210 | <sender>CalibrateLightSensorAC</sender> | 1292 | <sender>CalibrateLightSensor_ac</sender> |
1211 | <signal>clicked()</signal> | 1293 | <signal>clicked()</signal> |
1212 | <receiver>LightSettingsBase</receiver> | 1294 | <receiver>LightSettingsBase</receiver> |
1213 | <slot>calibrateSensorAC()</slot> | 1295 | <slot>calibrateSensorAC()</slot> |
1214 | </connection> | 1296 | </connection> |
1215 | <slot access="public">calibrateSensor()</slot> | 1297 | <slot access="public">calibrateSensor()</slot> |
1216 | <slot access="public">calibrateSensorAC()</slot> | 1298 | <slot access="public">calibrateSensorAC()</slot> |
1217 | </connections> | 1299 | </connections> |
1218 | <tabstops> | 1300 | <tabstops> |
1219 | <tabstop>interval_dim</tabstop> | 1301 | <tabstop>interval_dim</tabstop> |
1220 | <tabstop>interval_lightoff</tabstop> | 1302 | <tabstop>interval_lightoff</tabstop> |
1221 | <tabstop>interval_suspend</tabstop> | 1303 | <tabstop>interval_suspend</tabstop> |
1222 | <tabstop>LcdOffOnly</tabstop> | 1304 | <tabstop>LcdOffOnly</tabstop> |
1223 | <tabstop>brightness</tabstop> | 1305 | <tabstop>brightness</tabstop> |
1224 | <tabstop>auto_brightness</tabstop> | 1306 | <tabstop>auto_brightness</tabstop> |
1225 | <tabstop>CalibrateLightSensor</tabstop> | 1307 | <tabstop>CalibrateLightSensor</tabstop> |
1226 | <tabstop>tabs</tabstop> | 1308 | <tabstop>tabs</tabstop> |
1227 | <tabstop>interval_lightoff_ac_3</tabstop> | 1309 | <tabstop>interval_lightoff_ac</tabstop> |
1228 | <tabstop>interval_suspend_ac_3</tabstop> | 1310 | <tabstop>interval_suspend_ac</tabstop> |
1229 | <tabstop>interval_dim_ac_3</tabstop> | 1311 | <tabstop>interval_dim_ac</tabstop> |
1230 | <tabstop>LcdOffOnly_2_3</tabstop> | 1312 | <tabstop>LcdOffOnly_ac</tabstop> |
1231 | <tabstop>brightness_ac_3</tabstop> | 1313 | <tabstop>brightness_ac</tabstop> |
1232 | <tabstop>auto_brightness_ac_3</tabstop> | 1314 | <tabstop>auto_brightness_ac</tabstop> |
1233 | <tabstop>CalibrateLightSensorAC</tabstop> | 1315 | <tabstop>CalibrateLightSensor_ac</tabstop> |
1234 | <tabstop>lowSpinBox</tabstop> | 1316 | <tabstop>lowSpinBox</tabstop> |
1235 | <tabstop>warnintervalBox</tabstop> | 1317 | <tabstop>warnintervalBox</tabstop> |
1236 | <tabstop>criticalSpinBox</tabstop> | 1318 | <tabstop>criticalSpinBox</tabstop> |
1237 | </tabstops> | 1319 | </tabstops> |
1238 | </UI> | 1320 | </UI> |