summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp197
1 files changed, 169 insertions, 28 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index 5105b42..0b6883d 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -125,36 +125,177 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
125 QLabel *palmtopLogo3 = new QLabel( container ); 125 QLabel *palmtopLogo3 = new QLabel( container );
126 126
127 OModel model = ODevice::inst()->model(); 127 OModel model = ODevice::inst()->model();
128 OVendor vendor = ODevice::inst()->vendor();
128 QString modelPixmap = "sysinfo/"; 129 QString modelPixmap = "sysinfo/";
129 if ( model == Model_Zaurus_SLC7x0 )
130 modelPixmap += "zaurusc700";
131 else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 )
132 modelPixmap += "zaurus5500";
133 else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx )
134 modelPixmap += "ipaq3600";
135 else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus )
136 modelPixmap += "simpad";
137 else if ( model == Model_Jornada_56x )
138 modelPixmap += "jornada56x";
139 else if ( model == Model_Jornada_720 )
140 modelPixmap += "jornada720";
141 else if ( model == Model_HTC_Universal )
142 modelPixmap += "htcuniversal";
143 else if ( model == Model_HTC_Blueangel )
144 modelPixmap += "htcblueangel";
145 else if ( model == Model_HTC_Apache )
146 modelPixmap += "htcapache";
147 else if ( model == Model_HTC_Magician )
148 modelPixmap += "htcmagician";
149 else if ( model == Model_HTC_Himalaya )
150 modelPixmap += "htchimalaya";
151 else if ( model == Model_HTC_Alpine )
152 modelPixmap += "htcalpine";
153 else if ( model == Model_HTC_Beetles )
154 modelPixmap += "htcbeetles";
155 else
156 modelPixmap += "pda";
157 130
131 switch ( vendor ) {
132 /* SHARP */
133 case Vendor_Sharp:
134 {
135 switch ( model ) {
136 /* ZAURUS */
137 case Model_Zaurus_SLC7x0:
138 modelPixmap += "zaurusc700";
139 break;
140 case Model_Zaurus_SL5000:
141 case Model_Zaurus_SL5500:
142 case Model_Zaurus_SLA300:
143 case Model_Zaurus_SLB600:
144 modelPixmap += "zaurus5500";
145 break;
146 default:
147 modelPixmap += "pda";
148 break;
149 }
150 break;
151 }
152 /* HP */
153 case Vendor_HP:
154 {
155 switch ( model ) {
156 /* IPAQ */
157 case Model_iPAQ_H31xx:
158 case Model_iPAQ_H36xx:
159 case Model_iPAQ_H37xx:
160 case Model_iPAQ_H38xx:
161 case Model_iPAQ_H39xx:
162 case Model_iPAQ_H5xxx:
163 modelPixmap += "ipaq3600";
164 break;
165 /* JORNADA */
166 case Model_Jornada_56x:
167 modelPixmap += "jornada56x";
168 break;
169 case Model_Jornada_720:
170 modelPixmap += "jornada720";
171 break;
172 default:
173 modelPixmap += "pda";
174 break;
175 }
176 break;
177 }
178 /* SIEMENS */
179 case Vendor_SIEMENS:
180 {
181 switch ( model )
182 {
183 /* SIMPAD */
184 case Model_SIMpad_CL4:
185 case Model_SIMpad_SL4:
186 case Model_SIMpad_SLC:
187 case Model_SIMpad_TSinus:
188 modelPixmap += "simpad";
189 break;
190 default:
191 modelPixmap += "pda";
192 break;
193 }
194 break;
195 }
196 /* HTC */
197 case Vendor_HTC:
198 {
199 switch ( model ) {
200 case Model_HTC_Universal:
201 modelPixmap += "htcuniversal";
202 break;
203 case Model_HTC_Blueangel:
204 modelPixmap += "htcblueangel";
205 break;
206 case Model_HTC_Apache:
207 modelPixmap += "htcapache";
208 break;
209 case Model_HTC_Magician:
210 modelPixmap += "htcmagician";
211 break;
212 case Model_HTC_Himalaya:
213 modelPixmap += "htchimalaya";
214 break;
215 case Model_HTC_Alpine:
216 modelPixmap += "htcalpine";
217 break;
218 case Model_HTC_Beetles:
219 modelPixmap += "htcbeetles";
220 break;
221 default:
222 modelPixmap += "pda";
223 break;
224 }
225 break;
226 }
227 /* PALM */
228 case Vendor_Palm:
229 {
230 switch ( model ) {
231 case Model_Palm_TT:
232 modelPixmap += "palmtt";
233 break;
234 case Model_Palm_TT2:
235 modelPixmap += "palmtt2";
236 break;
237 case Model_Palm_TT3:
238 modelPixmap += "palmtt3";
239 break;
240 case Model_Palm_TT5:
241 modelPixmap += "palmtt5";
242 break;
243 case Model_Palm_TE:
244 modelPixmap += "palmte";
245 break;
246 case Model_Palm_TE2:
247 modelPixmap += "palmte2";
248 break;
249 case Model_Palm_TC:
250 modelPixmap += "palmtc";
251 break;
252 case Model_Palm_LD:
253 modelPixmap += "palmld";
254 break;
255 case Model_Palm_TX:
256 modelPixmap += "palmtx";
257 break;
258 case Model_Palm_Z71:
259 modelPixmap += "palmz71";
260 break;
261 case Model_Palm_Z72:
262 modelPixmap += "palmz72";
263 break;
264 case Model_Palm_T600:
265 modelPixmap += "palmt600";
266 break;
267 case Model_Palm_T650:
268 modelPixmap += "palmt650";
269 break;
270 case Model_Palm_T680:
271 modelPixmap += "palmt680";
272 break;
273 case Model_Palm_T700W:
274 modelPixmap += "palmt700w";
275 break;
276 case Model_Palm_T700P:
277 modelPixmap += "palmt700p";
278 break;
279 case Model_Palm_T750:
280 modelPixmap += "palmt750";
281 break;
282 case Model_Palm_T755P:
283 modelPixmap += "palmt755p";
284 break;
285 case Model_Palm_FOLEO:
286 modelPixmap += "palmfoleo";
287 break;
288 default:
289 modelPixmap += "pda";
290 break;
291 }
292 break;
293 }
294 /* OTHER DEVICES */
295 default:
296 modelPixmap += "pda";
297 break;
298 }
158 QImage logo3 = Opie::Core::OResource::loadImage( modelPixmap ); 299 QImage logo3 = Opie::Core::OResource::loadImage( modelPixmap );
159 300
160 int width = logo3.width(); 301 int width = logo3.width();