source: trunk/src/gui/styles/qwindowsmobilestyle.cpp@ 642

Last change on this file since 642 was 561, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.1 sources.

File size: 230.3 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** All rights reserved.
5** Contact: Nokia Corporation ([email protected])
6**
7** This file is part of the QtGui module of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial Usage
11** Licensees holding valid Qt Commercial licenses may use this file in
12** accordance with the Qt Commercial License Agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and Nokia.
15**
16** GNU Lesser General Public License Usage
17** Alternatively, this file may be used under the terms of the GNU Lesser
18** General Public License version 2.1 as published by the Free Software
19** Foundation and appearing in the file LICENSE.LGPL included in the
20** packaging of this file. Please review the following information to
21** ensure the GNU Lesser General Public License version 2.1 requirements
22** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
23**
24** In addition, as a special exception, Nokia gives you certain additional
25** rights. These rights are described in the Nokia Qt LGPL Exception
26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you have questions regarding the use of this file, please contact
37** Nokia at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#include "qwindowsmobilestyle.h"
43#include "qwindowsmobilestyle_p.h"
44
45#if !defined(QT_NO_STYLE_WINDOWSMOBILE) || defined(QT_PLUGIN)
46
47#include "qpainterpath.h"
48#include "qapplication.h"
49#include "qdesktopwidget.h"
50#include "qwidget.h"
51#include "qdockwidget.h"
52#include "qframe.h"
53#include "qmenu.h"
54#include "qpaintengine.h"
55#include "qpainter.h"
56#include "qgroupbox.h"
57#include "qstyleoption.h"
58#include "qlistview.h"
59#include "qdrawutil.h"
60#include "qtoolbar.h"
61#include "qabstractscrollarea.h"
62#include "qabstractbutton.h"
63#include "qcombobox.h"
64#include "qabstractscrollarea.h"
65#include "qframe.h"
66#include "qscrollbar.h"
67#include "qabstractitemview.h"
68#include "qmenubar.h"
69#include "qtoolbutton.h"
70#include "qtextedit.h"
71#include "qdialog.h"
72#include "qdebug.h"
73#include "qtabwidget.h"
74
75#ifdef Q_WS_WINCE
76#include "qt_windows.h"
77#include "qguifunctions_wince.h"
78extern bool qt_wince_is_high_dpi(); //defined in qguifunctions_wince.cpp
79extern bool qt_wince_is_smartphone(); //defined in qguifunctions_wince.cpp
80extern bool qt_wince_is_windows_mobile_65(); //defined in qguifunctions_wince.cpp
81#endif // Q_WS_WINCE
82
83QT_BEGIN_NAMESPACE
84
85static const int windowsItemFrame = 1; // menu item frame width
86
87static const int windowsMobileitemViewCheckBoxSize = 13;
88static const int windowsMobileFrameGroupBoxOffset = 9;
89static const int windowsMobileIndicatorSize = 14;
90static const int windowsMobileExclusiveIndicatorSize = 14;
91static const int windowsMobileSliderThickness = 6;
92static const int windowsMobileIconSize = 16;
93static const int PE_IndicatorArrowUpBig = 0xf000101;
94static const int PE_IndicatorArrowDownBig = 0xf000102;
95static const int PE_IndicatorArrowLeftBig = 0xf000103;
96static const int PE_IndicatorArrowRightBig = 0xf000104;
97
98/* XPM */
99static const char *const radiobutton_xpm[] = {
100 "30 30 2 1",
101 " c None",
102 ". c #000000",
103 " ........ ",
104 " .............. ",
105 " .... .... ",
106 " .... .... ",
107 " ... ... ",
108 " ... ... ",
109 " .. .. ",
110 " .. .. ",
111 " ... ... ",
112 " .. .. ",
113 " .. .. ",
114 ".. ..",
115 ".. ..",
116 ".. ..",
117 ".. ..",
118 ".. ..",
119 ".. ..",
120 ".. ..",
121 ".. ..",
122 " .. .. ",
123 " .. .. ",
124 " ... ... ",
125 " .. .. ",
126 " .. .. ",
127 " ... ... ",
128 " ... ... ",
129 " .... .... ",
130 " .... .... ",
131 " .............. ",
132 " ........ "};
133
134/* XPM */
135static const char * const radiobutton_low_xpm[] = {
136 "15 15 2 1",
137 " c None",
138 ". c #000000",
139 " ..... ",
140 " .. .. ",
141 " . . ",
142 " . . ",
143 " . . ",
144 ". .",
145 ". .",
146 ". .",
147 ". .",
148 ". .",
149 " . . ",
150 " . . ",
151 " . . ",
152 " .. .. ",
153 " ..... "};
154
155/* XPM */
156 static const char * const arrowleft_big_xpm[] = {
157 "9 17 2 1",
158 " c None",
159 ". c #000000",
160 " .",
161 " ..",
162 " ...",
163 " ....",
164 " .....",
165 " ......",
166 " .......",
167 " ........",
168 ".........",
169 " ........",
170 " .......",
171 " ......",
172 " .....",
173 " ....",
174 " ...",
175 " ..",
176 " ."};
177
178/* XPM */
179 static const char * const arrowleft_xpm[] = {
180 "8 15 2 1",
181 " c None",
182 ". c #000000",
183 " .",
184 " ..",
185 " ...",
186 " ....",
187 " .....",
188 " ......",
189 " .......",
190 "........",
191 " .......",
192 " ......",
193 " .....",
194 " ....",
195 " ...",
196 " ..",
197 " ."};
198
199
200
201/* XPM */
202static const char *const horlines_xpm[] = {
203 "2 2 2 1",
204 " c None",
205 ". c #000000",
206 " ",
207 ".."};
208
209/* XPM */
210static const char *const vertlines_xpm[] = {
211 "2 2 2 1",
212 " c None",
213 ". c #000000",
214 ". ",
215 ". "};
216
217/* XPM */
218static const char *const radiochecked_xpm[] = {
219 "18 18 2 1",
220 " c None",
221 ". c #000000",
222 " ...... ",
223 " .......... ",
224 " .............. ",
225 " .............. ",
226 " ................ ",
227 " ................ ",
228 "..................",
229 "..................",
230 "..................",
231 "..................",
232 "..................",
233 "..................",
234 " ................ ",
235 " ................ ",
236 " .............. ",
237 " .............. ",
238 " .......... ",
239 " ...... "};
240
241/* XPM */
242static const char * const radiochecked_low_xpm[] = {
243 "9 9 2 1",
244 " c None",
245 ". c #000000",
246 " ... ",
247 " ....... ",
248 " ....... ",
249 ".........",
250 ".........",
251 ".........",
252 " ....... ",
253 " ....... ",
254 " ... "};
255
256static const char *const arrowdown_xpm[] = {
257 "15 8 2 1",
258 " c None",
259 ". c #000000",
260 "...............",
261 " ............. ",
262 " ........... ",
263 " ......... ",
264 " ....... ",
265 " ..... ",
266 " ... ",
267 " . "};
268
269
270static const char *const arrowdown_big_xpm[] = {
271 "17 9 2 1",
272 " c None",
273 ". c #000000",
274 ".................",
275 " ............... ",
276 " ............. ",
277 " ........... ",
278 " ......... ",
279 " ....... ",
280 " ..... ",
281 " ... ",
282 " . "};
283
284
285/* XPM */
286static const char *const checkedlight_xpm[] = {
287 "24 24 2 1",
288 " c None",
289 ". c #000000",
290 " ",
291 " ",
292 " ",
293 " ",
294 " ",
295 " . ",
296 " .. ",
297 " ... ",
298 " .... ",
299 " ..... ",
300 " ...... ",
301 " . ...... ",
302 " .. ...... ",
303 " ... ...... ",
304 " .... ...... ",
305 " .......... ",
306 " ......... ",
307 " ....... ",
308 " ..... ",
309 " ... ",
310 " . ",
311 " ",
312 " ",
313 " "};
314
315
316/* XPM */
317static const char *const checkedbold_xpm[] = {
318 "26 26 2 1",
319 " c None",
320 ". c #000000",
321 " ",
322 " ",
323 " ",
324 " ",
325 " ",
326 " ",
327 " .. ",
328 " ... ",
329 " .... ",
330 " ..... ",
331 " .. ...... ",
332 " ... ....... ",
333 " .... ....... ",
334 " ..... ....... ",
335 " ...... ....... ",
336 " .............. ",
337 " ............ ",
338 " .......... ",
339 " ........ ",
340 " ...... ",
341 " .... ",
342 " .. ",
343 " ",
344 " ",
345 " ",
346 " "};
347
348/* XPM */
349static const char * const checkedbold_low_xpm[] = {
350 "9 8 2 1",
351 " c None",
352 ". c #000000",
353 " .",
354 " ..",
355 ". ...",
356 ".. ... ",
357 "... ... ",
358 " ..... ",
359 " ... ",
360 " . "};
361
362/* XPM */
363static const char * const checkedlight_low_xpm[] = {
364 "8 8 2 1",
365 " c None",
366 ". c #000000",
367 " .",
368 " ..",
369 " ...",
370 ". ... ",
371 ".. ... ",
372 "..... ",
373 " ... ",
374 " . "};
375
376/* XPM */
377static const char * const highlightedradiobutton_xpm[] = {
378 "30 30 3 1",
379 " c None",
380 ". c #000000",
381 "+ c #0078CC",
382 " ........ ",
383 " .............. ",
384 " ....++++++++.... ",
385 " ....++++++++++++.... ",
386 " ...++++ ++++... ",
387 " ...+++ +++... ",
388 " ..++ ++.. ",
389 " ..++ ++.. ",
390 " ...++ ++... ",
391 " ..++ ++.. ",
392 " ..++ ++.. ",
393 "..++ ++..",
394 "..++ ++..",
395 "..++ ++..",
396 "..++ ++..",
397 "..++ ++..",
398 "..++ ++..",
399 "..++ ++..",
400 "..++ ++..",
401 " ..++ ++.. ",
402 " ..++ ++.. ",
403 " ...++ ++... ",
404 " ..++ ++.. ",
405 " ..++ ++.. ",
406 " ...+++ +++... ",
407 " ...++++ ++++... ",
408 " ....++++++++++++.... ",
409 " ....++++++++.... ",
410 " .............. ",
411 " ........ "};
412
413/* XPM */
414static const char * const highlightedradiobutton_low_xpm[] = {
415 "15 15 3 1",
416 " c None",
417 ". c #000000",
418 "+ c #3192D6",
419 " ..... ",
420 " ..+++++.. ",
421 " .++ ++. ",
422 " .+ +. ",
423 " .+ +. ",
424 ".+ +.",
425 ".+ +.",
426 ".+ +.",
427 ".+ +.",
428 ".+ +.",
429 " .+ +. ",
430 " .+ +. ",
431 " .++ ++. ",
432 " ..+++++.. ",
433 " ..... "};
434
435/* XPM */
436static const char * const cross_big_xpm[] = {
437"28 28 4 1",
438" c #09454A",
439". c #218C98",
440"+ c #47D8E5",
441"@ c #FDFFFC",
442" ",
443" ",
444" ++++++++++++++++++++++++ ",
445" ++++++++++++++++++++++++ ",
446" ++....................++ ",
447" ++....................++ ",
448" ++..@@@..........@@@..++ ",
449" ++..@@@@........@@@@..++ ",
450" ++..@@@@@......@@@@@..++ ",
451" ++...@@@@@....@@@@@...++ ",
452" ++....@@@@@..@@@@@....++ ",
453" ++.....@@@@@@@@@@.....++ ",
454" ++......@@@@@@@@......++ ",
455" ++.......@@@@@@.......++ ",
456" ++.......@@@@@@.......++ ",
457" ++......@@@@@@@@......++ ",
458" ++.....@@@@@@@@@@.....++ ",
459" ++....@@@@@..@@@@@....++ ",
460" ++...@@@@@....@@@@@...++ ",
461" ++..@@@@@......@@@@@..++ ",
462" ++..@@@@........@@@@..++ ",
463" ++..@@@..........@@@..++ ",
464" ++....................++ ",
465" ++....................++ ",
466" ++++++++++++++++++++++++ ",
467" ++++++++++++++++++++++++ ",
468" ",
469" "};
470
471/* XPM */
472static const char * const cross_small_xpm[] = {
473"14 14 4 1",
474" c #09454A",
475". c #218C98",
476"+ c #47D8E5",
477"@ c #FCFFFC",
478" ",
479" ++++++++++++ ",
480" +..........+ ",
481" +.@@....@@.+ ",
482" +.@@@..@@@.+ ",
483" +..@@@@@@..+ ",
484" +...@@@@...+ ",
485" +...@@@@...+ ",
486" +..@@@@@@..+ ",
487" +.@@@..@@@.+ ",
488" +.@@....@@.+ ",
489" +..........+ ",
490" ++++++++++++ ",
491" "};
492
493/* XPM */
494static const char * const max_big_xpm[] = {
495"28 28 4 1",
496" c #09454A",
497". c #218C98",
498"+ c #47D8E5",
499"@ c #FDFFFC",
500" ",
501" ",
502" ++++++++++++++++++++++++ ",
503" ++++++++++++++++++++++++ ",
504" ++....................++ ",
505" ++....................++ ",
506" ++....................++ ",
507" ++....................++ ",
508" ++..@@@@@@@@@@@@@@@@..++ ",
509" ++..@@@@@@@@@@@@@@@@..++ ",
510" ++..@@@@@@@@@@@@@@@@..++ ",
511" ++..@@@@@@@@@@@@@@@@..++ ",
512" ++..@@............@@..++ ",
513" ++..@@............@@..++ ",
514" ++..@@............@@..++ ",
515" ++..@@............@@..++ ",
516" ++..@@............@@..++ ",
517" ++..@@............@@..++ ",
518" ++..@@@@@@@@@@@@@@@@..++ ",
519" ++..@@@@@@@@@@@@@@@@..++ ",
520" ++....................++ ",
521" ++....................++ ",
522" ++....................++ ",
523" ++....................++ ",
524" ++++++++++++++++++++++++ ",
525" ++++++++++++++++++++++++ ",
526" ",
527" "};
528
529/* XPM */
530static const char * const max_small_xpm[] = {
531"14 14 4 1",
532" c #09454A",
533". c #218C98",
534"+ c #47D8E5",
535"@ c #FCFFFC",
536" ",
537" ++++++++++++ ",
538" +..........+ ",
539" +..........+ ",
540" +.@@@@@@@@.+ ",
541" +.@@@@@@@@.+ ",
542" +.@......@.+ ",
543" +.@......@.+ ",
544" +.@......@.+ ",
545" +.@@@@@@@@.+ ",
546" +..........+ ",
547" +..........+ ",
548" ++++++++++++ ",
549" "};
550
551/* XPM */
552static const char * const normal_big_xpm[] = {
553"28 28 4 1",
554" c #09454A",
555". c #218C98",
556"+ c #47D8E5",
557"@ c #FDFFFC",
558" ",
559" ",
560" ++++++++++++++++++++++++ ",
561" ++++++++++++++++++++++++ ",
562" ++....................++ ",
563" ++....................++ ",
564" ++..@@@@@@@@@@@@@@@@..++ ",
565" ++..@@@@@@@@@@@@@@@@..++ ",
566" ++..@@............@@..++ ",
567" ++..@@............@@..++ ",
568" ++..@@............@@..++ ",
569" ++..@@............@@..++ ",
570" ++..@@............@@..++ ",
571" ++..@@............@@..++ ",
572" ++..@@............@@..++ ",
573" ++..@@............@@..++ ",
574" ++..@@............@@..++ ",
575" ++..@@............@@..++ ",
576" ++..@@............@@..++ ",
577" ++..@@............@@..++ ",
578" ++..@@@@@@@@@@@@@@@@..++ ",
579" ++..@@@@@@@@@@@@@@@@..++ ",
580" ++....................++ ",
581" ++....................++ ",
582" ++++++++++++++++++++++++ ",
583" ++++++++++++++++++++++++ ",
584" ",
585" "};
586
587/* XPM */
588static const char * const normal_small_xpm[] = {
589"14 14 4 1",
590" c #09454A",
591". c #218C98",
592"+ c #47D8E5",
593"@ c #FCFFFC",
594" ",
595" ++++++++++++ ",
596" +..........+ ",
597" +.@@@@@@@@.+ ",
598" +.@......@.+ ",
599" +.@......@.+ ",
600" +.@......@.+ ",
601" +.@......@.+ ",
602" +.@......@.+ ",
603" +.@......@.+ ",
604" +.@@@@@@@@.+ ",
605" +..........+ ",
606" ++++++++++++ ",
607" "};
608
609
610/* XPM */
611static const char * const min_big_xpm[] = {
612"28 28 4 1",
613" c #09454A",
614". c #218C98",
615"+ c #47D8E5",
616"@ c #FDFFFC",
617" ",
618" ",
619" ++++++++++++++++++++++++ ",
620" ++++++++++++++++++++++++ ",
621" ++....................++ ",
622" ++....................++ ",
623" ++....................++ ",
624" ++....................++ ",
625" ++....................++ ",
626" ++....................++ ",
627" ++....................++ ",
628" ++....................++ ",
629" ++....................++ ",
630" ++....................++ ",
631" ++....................++ ",
632" ++....................++ ",
633" ++....................++ ",
634" ++....................++ ",
635" ++..@@@@@@@@@@@@@@@@..++ ",
636" ++..@@@@@@@@@@@@@@@@..++ ",
637" ++....................++ ",
638" ++....................++ ",
639" ++....................++ ",
640" ++....................++ ",
641" ++++++++++++++++++++++++ ",
642" ++++++++++++++++++++++++ ",
643" ",
644" "};
645
646/* XPM */
647static const char * const min_small_xpm[] = {
648"14 14 4 1",
649" c #09454A",
650". c #218C98",
651"+ c #47D8E5",
652"@ c #FCFFFC",
653" ",
654" ++++++++++++ ",
655" +..........+ ",
656" +..........+ ",
657" +..........+ ",
658" +..........+ ",
659" +..........+ ",
660" +..........+ ",
661" +..........+ ",
662" +.@@@@@@@@.+ ",
663" +..........+ ",
664" +..........+ ",
665" ++++++++++++ ",
666" "};
667
668#ifdef Q_WS_WINCE_WM
669
670static char * sbhandleup_xpm[] = {
671"26 41 45 1",
672" c None",
673". c #000000",
674"+ c #E7E7E7",
675"@ c #D6D7D6",
676"# c #949294",
677"$ c #737573",
678"% c #636563",
679"& c #636163",
680"* c #5A5D5A",
681"= c #5A595A",
682"- c #525552",
683"; c #525152",
684"> c #4A4D4A",
685", c #7B797B",
686"' c #CECFCE",
687") c #CED3CE",
688"! c #6B6D6B",
689"~ c #6B696B",
690"{ c #737173",
691"] c #7B7D7B",
692"^ c #848684",
693"/ c #848284",
694"( c #8C8A8C",
695"_ c #8C8E8C",
696": c #B5B2B5",
697"< c #FFFFFF",
698"[ c #949694",
699"} c #B5B6B5",
700"| c #9C9A9C",
701"1 c #ADAEAD",
702"2 c #9C9E9C",
703"3 c #BDBABD",
704"4 c #BDBEBD",
705"5 c #F7F3F7",
706"6 c #C6C3C6",
707"7 c #C6C7C6",
708"8 c #A5A2A5",
709"9 c #CECBCE",
710"0 c #FFFBFF",
711"a c #ADAAAD",
712"b c #A5A6A5",
713"c c #D6D3D6",
714"d c #B5BAB5",
715"e c #DEDFDE",
716"f c #DEDBDE",
717"..........................",
718"+@#$%%&&&**===---;;;;>=,'+",
719"+@#$%%&&&**===---;;;;>=$'+",
720")$!!~~%%&&&**===---;;;;>;'",
721"#{$]],,$${{{!!~~%%%&&&*-;]",
722"#{$]],,$${{{!!~~%%%&&&*-;]",
723",$^//]],,$${{{!!~~%%%&&*;*",
724",,(^^//]],$${!!!!!~~%%%&-*",
725",,(^^//]],$${!!!!!~~%%%&-*",
726"]]_((^^//]$!%%~!{{!!~~%%-*",
727"//#__((^^]{:<<:~!{{{!!~~=*",
728"//#__((^^]{:<<:~!{{{!!~~=&",
729"//###__(/$:<<<<:~{${{!!~*&",
730"^^[[##_^]:<<<<<<}!{$${{!*%",
731"^^[[##_^]:<<<<<<}!{$${{!*%",
732"((|[[#_/:<<<<<<<<}!$$${{&~",
733"((||[#^1<<<<1:<<<<}!$$$$&~",
734"((||[#^1<<<<1:<<<<}!$$$$&~",
735"__2|#(1<<<<}],}<<<<}{$,$%~",
736"##2|_1<<<<}^((]3<<<<}{$,~!",
737"##2|_1<<<<}^((]3<<<<}{$,~!",
738"##2#1<<<<3^###(/4<<<<}{,~{",
739"##2#1<<<<3^###(/4<<<<}{,~!",
740"[[2_5<<<4(#|[[#_/6<<<<,,!{",
741"[|2_5<<4_[||||[[_/7<<<,]{$",
742"[|2_5<<4_[||||[[_/7<<<,]{$",
743"||8_5<6#|2222|||[_/9<<,]{$",
744"228#06[28888222||[_/'<,/$,",
745"228#06[28888222||[_/'<,/$,",
746"22a|6[8bbbb88822||[(/c](,]",
747"881b8baaabbbb88222|[(^(_,]",
748"881b8baaabbbb88222|[(^(_,]",
749"88111111aaabbb88822|[###]/",
750"bb:::11111aaabbb8822||[[/^",
751"bb:::11111aaabbb8822||[[//",
752"bb:::::1111aaabbb8822||[/(",
753"3a1::::::1111aaabb8822|_^8",
754"da1::::::1111aaabb8822|_^8",
755"e1aaabbbb888822||[[##__((@",
756"+e4:aaabbbb88822||[[[#[b@+",
757"+e4:aaabbbb88822||[[[#[bf+"};
758
759static char * sbhandledown_xpm[] = {
760"26 40 46 1",
761" c None",
762". c #E7E7E7",
763"+ c #DEDFDE",
764"@ c #BDBEBD",
765"# c #B5B2B5",
766"$ c #ADAAAD",
767"% c #A5A6A5",
768"& c #A5A2A5",
769"* c #9C9E9C",
770"= c #9C9A9C",
771"- c #949694",
772"; c #949294",
773"> c #D6D7D6",
774", c #DEDBDE",
775"' c #D6DBD6",
776") c #ADAEAD",
777"! c #8C8E8C",
778"~ c #8C8A8C",
779"{ c #BDBABD",
780"] c #848684",
781"^ c #B5BAB5",
782"/ c #848284",
783"( c #848A84",
784"_ c #7B7D7B",
785": c #7B797B",
786"< c #C6C3C6",
787"[ c #D6D3D6",
788"} c #FFFBFF",
789"| c #CECFCE",
790"1 c #FFFFFF",
791"2 c #737573",
792"3 c #F7F3F7",
793"4 c #CECBCE",
794"5 c #737173",
795"6 c #C6C7C6",
796"7 c #6B6D6B",
797"8 c #B5B6B5",
798"9 c #6B696B",
799"0 c #636563",
800"a c #636163",
801"b c #5A5D5A",
802"c c #5A595A",
803"d c #525552",
804"e c #525152",
805"f c #4A4D4A",
806"g c #C6CBC6",
807".+@#$$$%%%%&&&**==---;-%>.",
808".+@#$$$%%%%&&&**==---;-%,.",
809"')$$$%%%%&&&&**==--;;!!~~>",
810"{$)######))))$$$%%&&**=!]&",
811"^$)######))))$$$%%&&**=!]&",
812"%%#####))))$$$%%%&&**==-/(",
813"%%###)))))$$$%%%&&**==--/]",
814"%%###)))))$$$%%%&&**==--//",
815"&&))))))$$$%%%&&&**=-;;;_/",
816"&&)%&%$$$%%%%&&***=-~]~!:_",
817"&&)%&%$$$%%%%&&***=-~]~!:_",
818"**$=<-&%%%%&&&**==-~/[_~:_",
819"**&;}<-*&&&&***==-!/|1:/2:",
820"**&;}<-*&&&&***==-!/|1:/2:",
821"==&!31<;=****===-!/411:_5:",
822"-=*!311@!-====--!/6111:_52",
823"-=*!311@!-====--!/6111:_52",
824"--*!3111@~;=--;!/<1111::75",
825";;*;)1111{];;;~/@111185:95",
826";;*;)1111{];;;~/@111185:97",
827";;*=!)11118]~~_{1111852:97",
828";;*=!)11118]~~_{1111852:97",
829"!!*=;~)11118_:81111852:207",
830"~~==-;])1111)#1111872222a9",
831"~~==-;])1111)#1111872222a9",
832"~~=--;!/#111111118722255a0",
833"]]--;;!]_#11111187522557b0",
834"]]--;;!]_#11111187522557b0",
835"//;;;!!~/2#1111#95255779ba",
836"//;!!~~]]_5#11#975557799cb",
837"//;!!~~]]_5#11#975557799ca",
838"__!~~]]//_27009755779900db",
839"::~]]//__:2257777799000adb",
840"::~]]//__:2257777799000adb",
841":2]//__::225557799000aabeb",
842";52__::225557799000aaabde_",
843";52__::225557799000aaabde_",
844"[2779900aaabbcccdddeeeefeg",
845".>;200aaabbcccdddeeeefc:|.",
846".>;200aaabbcccdddeeeefc2|."};
847
848static char * sbgripdown_xpm[] = {
849"26 34 39 1",
850" c None",
851". c #949294",
852"+ c #9C9E9C",
853"@ c #9C9A9C",
854"# c #949694",
855"$ c #8C8E8C",
856"% c #8C8A8C",
857"& c #848684",
858"* c #848284",
859"= c #7B7D7B",
860"- c #7B797B",
861"; c #6B696B",
862"> c #636563",
863", c #737573",
864"' c #636163",
865") c #737173",
866"! c #5A5D5A",
867"~ c #6B6D6B",
868"{ c #5A595A",
869"] c #B5B6B5",
870"^ c #BDBEBD",
871"/ c #ADAEAD",
872"( c #BDBABD",
873"_ c #525552",
874": c #313031",
875"< c #525152",
876"[ c #ADAAAD",
877"} c #BDBAB5",
878"| c #4A4D4A",
879"1 c #4A494A",
880"2 c #C6C3C6",
881"3 c #C6CBC6",
882"4 c #E7E7E7",
883"5 c #DEDFDE",
884"6 c #E7E3E7",
885"7 c #DEE3DE",
886"8 c #CECBCE",
887"9 c #8C928C",
888"0 c #CECFCE",
889"..+++@@@###...$$%&&**==-;>",
890"$.++@@@@##...$$%%&**==-->>",
891"$$+@@@@###..$$%%&&*==--,>>",
892"$$@@@@###..$$%%&&**==-,,>'",
893"%%@@@###..$$$%&&**==--,,''",
894"%%@@###..$$$%&&**==--,,)''",
895"%%@###...$$%%&&*==--,,))'!",
896"&&###...$$%%&&**==--,)))!!",
897"&&##...$$%%&&**==--,,))~!!",
898"&&#...$$%%&&**==--,,))~~!{",
899"**...$$%%&&**==--,,))~~;!{",
900"**..$$%%&&**===--,)))~~;{{",
901"**.$$%%&]^&===//,,))~~;;{{",
902"==$$%%&&]^*==-((,))~~;;>{_",
903"==$%%&&***::--,,::~~;;;>__",
904"==%%&&&**=::-,,)::~~;;>>__",
905"--%&&&**==--,,)))~~;;>>>__",
906"--&&&**==--,,)))~~;;>>>'_<",
907",-&&**==]^-,))[[~;;>>>''<<",
908",,&**==-]^-)))}};;>>>'''<<",
909",,**==--,,::)~~;::>>'''!<<",
910"))*==--,,)::~~;;::>'''!!<|",
911"))==--,,)))~~;;;>>'''!!!||",
912"))=--,,)))~~;;;>>'''!!!{||",
913"~~--,,)))~~;;;>>'''!!!{{||",
914"~~-,,)))~~;;>>>'''!!!{{{|1",
915";;,,)))~~;;>>>'''!!!{{{_1<",
916"~;,)))~~;;>>>'''!!!{{{__1'",
917"%>~))~~;;>>>'''!!!{{{__|1$",
918"2>>~~~;;>>>''!!!{{{{__<113",
919"4%'';;;>>>''!!!{{{{__<11%4",
920"45-!!'>>>''!!!{{{{_<|11)64",
921"447+!{{___<<<||||1111|+444",
922"444489~__<<<||||111>$04444"};
923
924static char * sbgripup_xpm[] = {
925"26 34 38 1",
926" c None",
927". c #E7E7E7",
928"+ c #D6DBD6",
929"@ c #C6C7C6",
930"# c #B5B6B5",
931"$ c #ADAEAD",
932"% c #ADAAAD",
933"& c #A5A6A5",
934"* c #A5A2A5",
935"= c #BDBEBD",
936"- c #DEDFDE",
937"; c #C6CBC6",
938"> c #9C9E9C",
939", c #E7E3E7",
940"' c #BDBABD",
941") c #B5B2B5",
942"! c #9C9A9C",
943"~ c #DEE3DE",
944"{ c #949694",
945"] c #D6D7D6",
946"^ c #949294",
947"/ c #DEDBDE",
948"( c #8C8E8C",
949"_ c #8C8A8C",
950": c #848684",
951"< c #D6D3CE",
952"[ c #CECBCE",
953"} c #D6D3D6",
954"| c #848284",
955"1 c #313031",
956"2 c #7B7D7B",
957"3 c #CECFCE",
958"4 c #CECBC6",
959"5 c #7B797B",
960"6 c #737573",
961"7 c #737173",
962"8 c #6B6D6B",
963"9 c #6B696B",
964"....+@#$$%%%%&&&***$=-....",
965"...;$$$$$%%%&&&&**>>>>@...",
966".,'$$)#'#####)))$$$%*!!$~.",
967".=$)#'''####))))$$$%%*!{'.",
968"]$$''''#####)))$$$%%%&*{^/",
969"=$#'''#####)))$$$$%%&&&!^#",
970"$$'''#####))))$$$%%%&&*>(!",
971"$$''#####))))$$$%%%&&&*>(^",
972"$$######))))$$$$%%&&&**>(_",
973"%$#####))))$$$$%%%&&***>__",
974"%$####))))$$$$%%%&&&**>>__",
975"%%###)))))$$$%%%&&&**>>>_:",
976"%%##))))<])$$%[[&&***>>!::",
977"%%#)))))<]$$%%}<&&**>>!!:|",
978"&%)))))$$$11%%&&11*>>>!!:|",
979"&&))))$$$$11%&&&11*>>!!{||",
980"&&)))$$$$$%%%&&&**>>!!!{|2",
981"&&))$$$$$%%%&&&**>>>!!{{|2",
982"*&)$$$$$3]%&&&4@*>>!!{{{22",
983"**$$$$$%3]%&&&<<>>!!!{{^25",
984"**$$$$%%%%11&**>11!!{{^^25",
985"**$$$%%%%&11***>11!!{{^^55",
986"**$$%%%%&&&***>>!!!{{^^(55",
987">>$%%%%&&&***>>>!!{{^^((56",
988">>%%%%&&&&***>>!!!{{^^((66",
989">>%%%&&&&***>>!!!{{^^((_67",
990"!>%%&&&&***>>>!!{{{^^(__67",
991"!!%&&&&***>>>!!!{{^^((_:77",
992"!!&&&&***>>>!!!{{^^((__:77",
993"!!&&&****>>!!!{{^^^(__::78",
994"{!&&****>>>!!{{{^^((_::|88",
995"{{&****>>>!!!{{^^((__:||88",
996"{{****>>>!!!{{^^^(__::|289",
997"{{***>>>!!!{{{^^((_::||289"};
998
999static char * sbgripmiddle_xpm[] = {
1000"26 2 12 1",
1001" c None",
1002". c #949294",
1003"+ c #A5A2A5",
1004"@ c #9C9E9C",
1005"# c #9C9A9C",
1006"$ c #949694",
1007"% c #8C8E8C",
1008"& c #8C8A8C",
1009"* c #848684",
1010"= c #848284",
1011"- c #7B7D7B",
1012"; c #6B696B",
1013"..++@@@###$$$..%%&&*==--;;",
1014"..++@@@###$$$..%%&&*==--;;"};
1015
1016
1017static char * listviewhighmiddle_xpm[] = {
1018"8 46 197 2",
1019" c None",
1020". c #66759E",
1021"+ c #6C789D",
1022"@ c #6A789E",
1023"# c #6B789E",
1024"$ c #6A779D",
1025"% c #6C789C",
1026"& c #6F7D9B",
1027"* c #6F7D9A",
1028"= c #9DB6EE",
1029"- c #9DB6ED",
1030"; c #9CB6ED",
1031"> c #A1B6EF",
1032", c #A2B6F0",
1033"' c #93AAE9",
1034") c #95ABEA",
1035"! c #94ABEA",
1036"~ c #94A9E8",
1037"{ c #8BA8EA",
1038"] c #8BA7EA",
1039"^ c #8AA7EA",
1040"/ c #8EAAE8",
1041"( c #8FAAE8",
1042"_ c #88A2E7",
1043": c #8CA3E8",
1044"< c #8BA3E7",
1045"[ c #8BA3E8",
1046"} c #8BA2E7",
1047"| c #8CA2E7",
1048"1 c #8DA2E7",
1049"2 c #87A1E8",
1050"3 c #87A1E9",
1051"4 c #86A0E8",
1052"5 c #86A1E7",
1053"6 c #87A2E7",
1054"7 c #859EE9",
1055"8 c #849DE9",
1056"9 c #869EE9",
1057"0 c #869FE9",
1058"a c #7C9BEA",
1059"b c #7C9CEA",
1060"c c #7B9CEA",
1061"d c #7C9BE9",
1062"e c #7E9CE9",
1063"f c #7B9AEA",
1064"g c #7C99E9",
1065"h c #7C9AEA",
1066"i c #7B9AE8",
1067"j c #7A9AEA",
1068"k c #7996E1",
1069"l c #7C96E4",
1070"m c #7B96E3",
1071"n c #7B95E3",
1072"o c #7E95E5",
1073"p c #7E95E6",
1074"q c #7292E1",
1075"r c #7490DF",
1076"s c #7591E0",
1077"t c #7590DF",
1078"u c #7392E1",
1079"v c #6D8CDE",
1080"w c #6F8EDD",
1081"x c #6E8DDD",
1082"y c #6E8DDE",
1083"z c #6F8EDE",
1084"A c #6E8EDE",
1085"B c #718EDD",
1086"C c #728EDD",
1087"D c #6B89E0",
1088"E c #6C89DF",
1089"F c #6D89E0",
1090"G c #6D89DF",
1091"H c #6C88DF",
1092"I c #6D88DF",
1093"J c #6D86DD",
1094"K c #6086E0",
1095"L c #6686E0",
1096"M c #6586E0",
1097"N c #6486E0",
1098"O c #6485E0",
1099"P c #6786DF",
1100"Q c #5F85E0",
1101"R c #6583DE",
1102"S c #6683DE",
1103"T c #6682DD",
1104"U c #6086DF",
1105"V c #5F86E0",
1106"W c #567ED7",
1107"X c #567ED8",
1108"Y c #557DD7",
1109"Z c #5A7FD8",
1110"` c #6281DA",
1111" . c #5379D9",
1112".. c #5278D9",
1113"+. c #547BD8",
1114"@. c #4C73D7",
1115"#. c #4B72D2",
1116"$. c #4C73D4",
1117"%. c #4C73D3",
1118"&. c #4B72D4",
1119"*. c #4F75D3",
1120"=. c #5074D2",
1121"-. c #4971D0",
1122";. c #4871D0",
1123">. c #335ECF",
1124",. c #325ECB",
1125"'. c #335ECD",
1126"). c #335ECE",
1127"!. c #325DCD",
1128"~. c #2E59C9",
1129"{. c #3059C9",
1130"]. c #2F59C9",
1131"^. c #2F59C8",
1132"/. c #2B59CA",
1133"(. c #3355C6",
1134"_. c #3354C5",
1135":. c #3156C7",
1136"<. c #3056C7",
1137"[. c #3355C7",
1138"}. c #3355C5",
1139"|. c #254EBF",
1140"1. c #1F51C1",
1141"2. c #234FC0",
1142"3. c #234FBF",
1143"4. c #2350C0",
1144"5. c #1E50BE",
1145"6. c #1D50C0",
1146"7. c #264DBE",
1147"8. c #264CBD",
1148"9. c #254DBE",
1149"0. c #244EBF",
1150"a. c #254DBF",
1151"b. c #234CBF",
1152"c. c #244CC0",
1153"d. c #244BC0",
1154"e. c #234BC0",
1155"f. c #234BBF",
1156"g. c #234CBE",
1157"h. c #2049B7",
1158"i. c #2A49B5",
1159"j. c #2749B5",
1160"k. c #2749B6",
1161"l. c #2D49B4",
1162"m. c #2649B6",
1163"n. c #2946B5",
1164"o. c #2A48B6",
1165"p. c #2947B5",
1166"q. c #2946B6",
1167"r. c #2848B6",
1168"s. c #2549B5",
1169"t. c #2648B6",
1170"u. c #2744B5",
1171"v. c #2744B4",
1172"w. c #2744AF",
1173"x. c #2543B4",
1174"y. c #2543B2",
1175"z. c #2442B2",
1176"A. c #2442B3",
1177"B. c #2442B5",
1178"C. c #2543B3",
1179"D. c #1F40B1",
1180"E. c #1E40B1",
1181"F. c #243EAE",
1182"G. c #273BAC",
1183"H. c #263DAC",
1184"I. c #253CAB",
1185"J. c #273CAB",
1186"K. c #273CAC",
1187"L. c #263BAA",
1188"M. c #253CAE",
1189"N. c #263BA6",
1190"O. c #253BA5",
1191"P. c #253AA5",
1192"Q. c #253BA6",
1193"R. c #253CA7",
1194"S. c #263AA6",
1195"T. c #243CA6",
1196"U. c #253CA5",
1197"V. c #273BA8",
1198"W. c #2F4DA4",
1199"X. c #2F4DA3",
1200"Y. c #1B2F85",
1201"Z. c #B5B5B6",
1202"`. c #B5B5B5",
1203" + c #B5B6B6",
1204".+ c #B5B4B6",
1205"++ c #C2C3C5",
1206"@+ c #C0C3C3",
1207"#+ c #C1C3C4",
1208"$+ c #E3E3E3",
1209"%+ c #E3E3E4",
1210"&+ c #E4E3E4",
1211"*+ c #E2E3E4",
1212"=+ c #ECEEEB",
1213"-+ c #EBEDEA",
1214";+ c #EEF0ED",
1215">+ c #EFF0EE",
1216". + @ @ # # $ % ",
1217"& & * & & & & & ",
1218"= = - = = ; > , ",
1219"' ) ! ! ! ) ' ~ ",
1220"{ ] { { { ^ / ( ",
1221"_ : < [ : } | 1 ",
1222"2 2 2 3 2 4 5 6 ",
1223"7 7 7 7 7 8 9 0 ",
1224"a b a a a c d e ",
1225"f g h h h h i j ",
1226"k l m m m n o p ",
1227"q q q q q q q q ",
1228"r r s s s t q u ",
1229"v w x y z A B C ",
1230"D E F F G F H I ",
1231"J K L M N O P Q ",
1232"R R S S S T U V ",
1233"W W X X X Y Z ` ",
1234" . . . . ...+.W ",
1235" . . . . ..... .",
1236"@.#.$.$.%.&.*.=.",
1237"-.-.;.-.-.-.-.-.",
1238">.,.'.).).!.!.>.",
1239"~.{.].^.].^././.",
1240"(.(.(.(.(._.:.<.",
1241"(.(.[.[.[.[.(.}.",
1242"|.1.2.3.3.4.5.6.",
1243"7.7.7.7.7.8.9.0.",
1244"a.b.c.d.c.e.f.g.",
1245"h.i.j.k.j.k.l.m.",
1246"n.o.p.q.r.p.s.t.",
1247"u.u.v.u.u.u.u.u.",
1248"w.x.y.z.A.y.B.C.",
1249"D.D.E.D.D.D.D.D.",
1250"D.D.E.D.D.D.D.D.",
1251"F.G.H.I.J.K.L.M.",
1252"N.N.O.N.N.P.Q.R.",
1253"N.N.S.N.N.N.N.N.",
1254"T.N.T.T.T.U.N.V.",
1255"W.W.X.W.W.W.W.W.",
1256"W.W.W.W.W.W.W.W.",
1257"Y.Y.Y.Y.Y.Y.Y.Y.",
1258"Z.`. + +.+Z.`.`.",
1259"++@+#+#+#+#+@+@+",
1260"$+%+&+&+*+%+%+%+",
1261"=+-+;+-+-+>+-+-+"};
1262
1263
1264
1265static char * listviewhighcornerleft_xpm[] = {
1266"100 46 1475 2",
1267" c None",
1268". c #FBFBFC",
1269"+ c #E8EAE7",
1270"@ c #758DC3",
1271"# c #42599E",
1272"$ c #28418A",
1273"% c #19418F",
1274"& c #3F5695",
1275"* c #415896",
1276"= c #435A98",
1277"- c #445C99",
1278"; c #465E9B",
1279"> c #48609B",
1280", c #49629C",
1281"' c #4A639D",
1282") c #49639D",
1283"! c #4A629D",
1284"~ c #4B639D",
1285"{ c #4B649D",
1286"] c #4C659D",
1287"^ c #4D669D",
1288"/ c #4E689D",
1289"( c #506A9D",
1290"_ c #516A9D",
1291": c #536B9C",
1292"< c #546C9C",
1293"[ c #566D9B",
1294"} c #576D9B",
1295"| c #586E9C",
1296"1 c #5B6F9D",
1297"2 c #61739D",
1298"3 c #63749E",
1299"4 c #64749E",
1300"5 c #68769E",
1301"6 c #6A779E",
1302"7 c #6B789E",
1303"8 c #66759E",
1304"9 c #6C789D",
1305"0 c #EEF0ED",
1306"a c #D0D3DC",
1307"b c #3E51A3",
1308"c c #28428B",
1309"d c #29428C",
1310"e c #425996",
1311"f c #455C99",
1312"g c #485F9C",
1313"h c #49619E",
1314"i c #4A63A0",
1315"j c #4B64A1",
1316"k c #4B65A1",
1317"l c #4C66A2",
1318"m c #4D67A2",
1319"n c #4F69A1",
1320"o c #516AA1",
1321"p c #536CA0",
1322"q c #556DA1",
1323"r c #576EA0",
1324"s c #586F9F",
1325"t c #586E9F",
1326"u c #596F9E",
1327"v c #5A6F9E",
1328"w c #5C709E",
1329"x c #5E719E",
1330"y c #5F729F",
1331"z c #62739F",
1332"A c #63739E",
1333"B c #64749D",
1334"C c #65749E",
1335"D c #69769D",
1336"E c #6C799E",
1337"F c #6D799F",
1338"G c #707D9F",
1339"H c #717F9E",
1340"I c #6E7AA1",
1341"J c #6C789E",
1342"K c #6F7C9C",
1343"L c #6F7D9B",
1344"M c #2A4AA0",
1345"N c #4971D0",
1346"O c #4C72D8",
1347"P c #5472C0",
1348"Q c #5573BF",
1349"R c #5774BF",
1350"S c #5875BF",
1351"T c #5976C1",
1352"U c #5A76C1",
1353"V c #5C78C2",
1354"W c #5E7AC2",
1355"X c #607CC3",
1356"Y c #627EC3",
1357"Z c #637FC4",
1358"` c #6581C5",
1359" . c #6682C6",
1360".. c #6783C7",
1361"+. c #6984C8",
1362"@. c #6B85C9",
1363"#. c #6D87CA",
1364"$. c #6F89CB",
1365"%. c #718CCD",
1366"&. c #748ECF",
1367"*. c #7690D0",
1368"=. c #7992D2",
1369"-. c #7A93D3",
1370";. c #7C95D5",
1371">. c #7F98D7",
1372",. c #8099D8",
1373"'. c #859CDB",
1374"). c #8AA0DD",
1375"!. c #8DA3DF",
1376"~. c #8FA5E0",
1377"{. c #90A5E0",
1378"]. c #91A6E1",
1379"^. c #91A5E1",
1380"/. c #90A4E0",
1381"(. c #8EA3DE",
1382"_. c #92A6E2",
1383":. c #8FA4DF",
1384"<. c #90A5DE",
1385"[. c #90A5DC",
1386"}. c #90A6DB",
1387"|. c #91A6E0",
1388"1. c #93A7E2",
1389"2. c #95AAE6",
1390"3. c #99AEEA",
1391"4. c #9AB2EA",
1392"5. c #99B1E9",
1393"6. c #99B1E7",
1394"7. c #98AFE6",
1395"8. c #93A8E2",
1396"9. c #97ACE7",
1397"0. c #9AB3EB",
1398"a. c #9DB5ED",
1399"b. c #9DB6EE",
1400"c. c #375095",
1401"d. c #4056AD",
1402"e. c #506DCD",
1403"f. c #4360CC",
1404"g. c #345ED6",
1405"h. c #335ECF",
1406"i. c #355ED6",
1407"j. c #355FD6",
1408"k. c #365FD6",
1409"l. c #355FD0",
1410"m. c #3760D5",
1411"n. c #3A63D4",
1412"o. c #3C63D1",
1413"p. c #3B63CD",
1414"q. c #3B63C9",
1415"r. c #3B62C9",
1416"s. c #3D63C8",
1417"t. c #4065C5",
1418"u. c #4567C5",
1419"v. c #496BC5",
1420"w. c #4F70C7",
1421"x. c #5273C8",
1422"y. c #5475CA",
1423"z. c #5777CB",
1424"A. c #5879CD",
1425"B. c #5A7BCE",
1426"C. c #5D7DCF",
1427"D. c #5F7ECF",
1428"E. c #617FD0",
1429"F. c #6381D1",
1430"G. c #6583D2",
1431"H. c #6785D2",
1432"I. c #6886D3",
1433"J. c #6A88D4",
1434"K. c #6C89D5",
1435"L. c #6E8BD6",
1436"M. c #708CD7",
1437"N. c #718DD8",
1438"O. c #738EDA",
1439"P. c #748FDB",
1440"Q. c #7691DC",
1441"R. c #7893DD",
1442"S. c #7994DD",
1443"T. c #7A96DE",
1444"U. c #7B97DF",
1445"V. c #7C98E0",
1446"W. c #7E9AE2",
1447"X. c #7F9BE3",
1448"Y. c #829DE4",
1449"Z. c #849FE5",
1450"`. c #87A0E6",
1451" + c #88A1E7",
1452".+ c #89A2E6",
1453"++ c #8CA3E7",
1454"@+ c #8EA5E9",
1455"#+ c #8EA6E9",
1456"$+ c #8FA7E9",
1457"%+ c #8FA8E8",
1458"&+ c #8FA9E8",
1459"*+ c #91A9E8",
1460"=+ c #90A7E8",
1461"-+ c #8FA8EA",
1462";+ c #90AAEA",
1463">+ c #93ABEA",
1464",+ c #95ABEA",
1465"'+ c #93ABE9",
1466")+ c #94ABEA",
1467"!+ c #90A9EA",
1468"~+ c #93AAE9",
1469"{+ c #273E7E",
1470"]+ c #345ED5",
1471"^+ c #3D60CE",
1472"/+ c #3D60CF",
1473"(+ c #345ECF",
1474"_+ c #335ED0",
1475":+ c #355FD3",
1476"<+ c #3A60CE",
1477"[+ c #3A5FCB",
1478"}+ c #385FC9",
1479"|+ c #3B60C8",
1480"1+ c #3C63CB",
1481"2+ c #3E64CB",
1482"3+ c #4166CA",
1483"4+ c #4568C9",
1484"5+ c #4A6CC7",
1485"6+ c #4F71C8",
1486"7+ c #5172CA",
1487"8+ c #5475CE",
1488"9+ c #5678D3",
1489"0+ c #597CD6",
1490"a+ c #5C7ED7",
1491"b+ c #5E7FD8",
1492"c+ c #6181D9",
1493"d+ c #6383DA",
1494"e+ c #6585DA",
1495"f+ c #6786DB",
1496"g+ c #6988DC",
1497"h+ c #6B8ADD",
1498"i+ c #6D8BDE",
1499"j+ c #6F8DDE",
1500"k+ c #718EDF",
1501"l+ c #728FE0",
1502"m+ c #7390E1",
1503"n+ c #7390E2",
1504"o+ c #7491E3",
1505"p+ c #7592E4",
1506"q+ c #7693E4",
1507"r+ c #7794E5",
1508"s+ c #7894E5",
1509"t+ c #7995E6",
1510"u+ c #7B96E6",
1511"v+ c #7C97E7",
1512"w+ c #7D9AE8",
1513"x+ c #7F9CE9",
1514"y+ c #829DE9",
1515"z+ c #849EE9",
1516"A+ c #859EE9",
1517"B+ c #87A0E7",
1518"C+ c #8AA2E7",
1519"D+ c #8BA3E8",
1520"E+ c #89A2E7",
1521"F+ c #8CA6EA",
1522"G+ c #8BA6EA",
1523"H+ c #8BA7EA",
1524"I+ c #8CA3E8",
1525"J+ c #8BA8EA",
1526"K+ c #8CA7EA",
1527"L+ c #8CA8EA",
1528"M+ c #4659C7",
1529"N+ c #355ECF",
1530"O+ c #3660CF",
1531"P+ c #3860CE",
1532"Q+ c #3961CD",
1533"R+ c #3B61CB",
1534"S+ c #3B61CA",
1535"T+ c #3D62CA",
1536"U+ c #3D63CA",
1537"V+ c #4165CB",
1538"W+ c #456ACB",
1539"X+ c #4B6FCD",
1540"Y+ c #5174CE",
1541"Z+ c #5275D1",
1542"`+ c #5477D4",
1543" @ c #5678D9",
1544".@ c #587ADB",
1545"+@ c #597BDB",
1546"@@ c #5B7DDC",
1547"#@ c #5E7FDC",
1548"$@ c #6081DD",
1549"%@ c #6283DE",
1550"&@ c #6484DF",
1551"*@ c #6787E0",
1552"=@ c #6989E1",
1553"-@ c #6B8BE1",
1554";@ c #6D8DE2",
1555">@ c #6F8EE3",
1556",@ c #718FE4",
1557"'@ c #7290E4",
1558")@ c #7491E5",
1559"!@ c #7692E6",
1560"~@ c #7793E5",
1561"{@ c #7894E6",
1562"]@ c #7895E7",
1563"^@ c #7996E8",
1564"/@ c #7A97E8",
1565"(@ c #7B98E9",
1566"_@ c #7D99E8",
1567":@ c #7F9AE8",
1568"<@ c #7F9BE9",
1569"[@ c #7F9CEA",
1570"}@ c #859EE8",
1571"|@ c #859FE8",
1572"1@ c #85A0E9",
1573"2@ c #869FE9",
1574"3@ c #86A1E7",
1575"4@ c #86A0E9",
1576"5@ c #87A1E7",
1577"6@ c #88A2E7",
1578"7@ c #87A1E9",
1579"8@ c #5A6FCA",
1580"9@ c #365FCF",
1581"0@ c #345ED0",
1582"a@ c #385FCC",
1583"b@ c #385FCE",
1584"c@ c #3A61CC",
1585"d@ c #3B62CD",
1586"e@ c #3E64CD",
1587"f@ c #4167CF",
1588"g@ c #4469CF",
1589"h@ c #486CD1",
1590"i@ c #4D71D2",
1591"j@ c #5175D4",
1592"k@ c #5376D6",
1593"l@ c #5578DA",
1594"m@ c #5679DC",
1595"n@ c #587BDD",
1596"o@ c #5A7DDE",
1597"p@ c #5D80DE",
1598"q@ c #5F82DF",
1599"r@ c #6284DF",
1600"s@ c #6585E0",
1601"t@ c #6787E1",
1602"u@ c #6988E2",
1603"v@ c #6B8AE2",
1604"w@ c #6D8CE3",
1605"x@ c #6E8DE3",
1606"y@ c #708EE4",
1607"z@ c #718FE3",
1608"A@ c #7391E4",
1609"B@ c #7592E5",
1610"C@ c #7895E5",
1611"D@ c #7996E6",
1612"E@ c #7A97E6",
1613"F@ c #7B98E7",
1614"G@ c #7A98E8",
1615"H@ c #7B99E9",
1616"I@ c #7E9AE9",
1617"J@ c #7D9AE9",
1618"K@ c #7E9AEA",
1619"L@ c #809CE9",
1620"M@ c #819DE8",
1621"N@ c #7F9BEA",
1622"O@ c #819DE9",
1623"P@ c #819CE9",
1624"Q@ c #839EE9",
1625"R@ c #839EE8",
1626"S@ c #839DEA",
1627"T@ c #859FE9",
1628"U@ c #87A0E8",
1629"V@ c #86A0E8",
1630"W@ c #87A1E8",
1631"X@ c #3760CF",
1632"Y@ c #3A61CE",
1633"Z@ c #3A62CD",
1634"`@ c #3F66CE",
1635" # c #4368D0",
1636".# c #466CD2",
1637"+# c #496DD5",
1638"@# c #4E72D6",
1639"## c #5175D8",
1640"$# c #5276DA",
1641"%# c #5578DC",
1642"&# c #577ADC",
1643"*# c #597CDD",
1644"=# c #5B7DDD",
1645"-# c #5D7FDE",
1646";# c #5E81DE",
1647"># c #6183DF",
1648",# c #6386DF",
1649"'# c #6687E0",
1650")# c #6888E0",
1651"!# c #6A89E1",
1652"~# c #6C8AE1",
1653"{# c #6E8CE2",
1654"]# c #6F8DE2",
1655"^# c #7390E4",
1656"/# c #7390E3",
1657"(# c #7491E4",
1658"_# c #7693E5",
1659":# c #7895E6",
1660"<# c #7896E6",
1661"[# c #7997E7",
1662"}# c #7B97E7",
1663"|# c #7B98E8",
1664"1# c #7C98E8",
1665"2# c #7E9BE9",
1666"3# c #809CEA",
1667"4# c #819CEA",
1668"5# c #839DE9",
1669"6# c #365FD0",
1670"7# c #3660D0",
1671"8# c #3961CF",
1672"9# c #3B63CF",
1673"0# c #3D64D0",
1674"a# c #4067D0",
1675"b# c #4469D2",
1676"c# c #466BD3",
1677"d# c #496ED5",
1678"e# c #4C71D6",
1679"f# c #4E72D8",
1680"g# c #5074D9",
1681"h# c #5376DB",
1682"i# c #5578DB",
1683"j# c #587ADC",
1684"k# c #5B7CDC",
1685"l# c #5D7EDD",
1686"m# c #5F80DD",
1687"n# c #6081DE",
1688"o# c #6383DE",
1689"p# c #6686DF",
1690"q# c #6887E0",
1691"r# c #6988E0",
1692"s# c #6B89E1",
1693"t# c #6C8AE0",
1694"u# c #6E8CE1",
1695"v# c #708EE2",
1696"w# c #718FE2",
1697"x# c #7290E3",
1698"y# c #7391E2",
1699"z# c #7492E1",
1700"A# c #7592E2",
1701"B# c #7691E3",
1702"C# c #7591E3",
1703"D# c #7692E3",
1704"E# c #7693E3",
1705"F# c #7793E4",
1706"G# c #7893E4",
1707"H# c #7994E5",
1708"I# c #7D97E8",
1709"J# c #7E98E8",
1710"K# c #7D98E8",
1711"L# c #7D99E9",
1712"M# c #7D9BEA",
1713"N# c #7D9CEA",
1714"O# c #7E99E8",
1715"P# c #7D9AEA",
1716"Q# c #7C9BEA",
1717"R# c #7C9CEA",
1718"S# c #355FCF",
1719"T# c #3860D0",
1720"U# c #3A62D0",
1721"V# c #3C64D1",
1722"W# c #4167D1",
1723"X# c #4369D3",
1724"Y# c #466BD4",
1725"Z# c #486DD5",
1726"`# c #4A6ED7",
1727" $ c #4C70D8",
1728".$ c #5478D9",
1729"+$ c #577BDA",
1730"@$ c #597DDB",
1731"#$ c #5B7EDB",
1732"$$ c #5D7FDC",
1733"%$ c #6182DE",
1734"&$ c #6284DE",
1735"*$ c #6485DF",
1736"=$ c #6586DF",
1737"-$ c #6787DF",
1738";$ c #6888DF",
1739">$ c #6A8ADF",
1740",$ c #6C8BE0",
1741"'$ c #6D8CE0",
1742")$ c #6E8DE1",
1743"!$ c #6F8DE1",
1744"~$ c #708EE1",
1745"{$ c #718FE0",
1746"]$ c #728FE1",
1747"^$ c #7390E0",
1748"/$ c #738FE0",
1749"($ c #7490E1",
1750"_$ c #7590E1",
1751":$ c #7591E1",
1752"<$ c #7592E1",
1753"[$ c #7692E2",
1754"}$ c #7794E2",
1755"|$ c #7894E3",
1756"1$ c #7996E3",
1757"2$ c #7A96E5",
1758"3$ c #7B98E6",
1759"4$ c #7B9AE8",
1760"5$ c #7C99E8",
1761"6$ c #7C96E5",
1762"7$ c #7D97E7",
1763"8$ c #7C99E9",
1764"9$ c #7B9AE9",
1765"0$ c #7B9AEA",
1766"a$ c #5B6DCF",
1767"b$ c #305EC8",
1768"c$ c #335ECE",
1769"d$ c #305ECA",
1770"e$ c #345FCF",
1771"f$ c #3761D0",
1772"g$ c #3A62D1",
1773"h$ c #3C64D2",
1774"i$ c #4066D3",
1775"j$ c #466BD5",
1776"k$ c #486ED6",
1777"l$ c #4A6ED6",
1778"m$ c #4D71D8",
1779"n$ c #4F72D9",
1780"o$ c #5073D9",
1781"p$ c #4F72D8",
1782"q$ c #5074D8",
1783"r$ c #5276D9",
1784"s$ c #587ADA",
1785"t$ c #5B7CDB",
1786"u$ c #5D7EDC",
1787"v$ c #5F7FDD",
1788"w$ c #6081DC",
1789"x$ c #6182DD",
1790"y$ c #6283DD",
1791"z$ c #6484DE",
1792"A$ c #6585DD",
1793"B$ c #6787DE",
1794"C$ c #6988DF",
1795"D$ c #6A89DE",
1796"E$ c #6C8ADF",
1797"F$ c #6D8BDF",
1798"G$ c #6E8CE0",
1799"H$ c #6F8DE0",
1800"I$ c #718EE0",
1801"J$ c #728FDF",
1802"K$ c #728FDE",
1803"L$ c #7290E0",
1804"M$ c #7190E0",
1805"N$ c #7291E0",
1806"O$ c #7191E0",
1807"P$ c #7392E1",
1808"Q$ c #7493E1",
1809"R$ c #7594E1",
1810"S$ c #7594E2",
1811"T$ c #7694E2",
1812"U$ c #7695E2",
1813"V$ c #7A96E4",
1814"W$ c #7895E2",
1815"X$ c #7A96E2",
1816"Y$ c #7A96E3",
1817"Z$ c #7B96E3",
1818"`$ c #7996E1",
1819" % c #7C96E4",
1820".% c #305EC9",
1821"+% c #315ECC",
1822"@% c #325ECE",
1823"#% c #3760D0",
1824"$% c #3962D1",
1825"%% c #3E66D3",
1826"&% c #4268D4",
1827"*% c #446BD5",
1828"=% c #476CD6",
1829"-% c #496ED7",
1830";% c #4B6FD7",
1831">% c #4C70D7",
1832",% c #4E71D7",
1833"'% c #5074D7",
1834")% c #5276D8",
1835"!% c #5376D8",
1836"~% c #5779DA",
1837"{% c #597ADA",
1838"]% c #5A7BDB",
1839"^% c #5B7CDA",
1840"/% c #5D7EDB",
1841"(% c #5E7FDB",
1842"_% c #6182DB",
1843":% c #6384DC",
1844"<% c #6586DD",
1845"[% c #6686DC",
1846"}% c #6887DD",
1847"|% c #6988DD",
1848"1% c #6A8ADE",
1849"2% c #6B8BDE",
1850"3% c #6C8CDE",
1851"4% c #6E8DDF",
1852"5% c #6E8CDF",
1853"6% c #6D8DDF",
1854"7% c #6C8BDF",
1855"8% c #6F8DDF",
1856"9% c #718FDF",
1857"0% c #7290DF",
1858"a% c #7391E0",
1859"b% c #7491E0",
1860"c% c #7292E1",
1861"d% c #3959C5",
1862"e% c #345BC5",
1863"f% c #315EC8",
1864"g% c #355BC5",
1865"h% c #325EC8",
1866"i% c #315ECB",
1867"j% c #345DCC",
1868"k% c #335ECD",
1869"l% c #345ECD",
1870"m% c #355FCE",
1871"n% c #3862D0",
1872"o% c #3E66D2",
1873"p% c #456BD5",
1874"q% c #476CD5",
1875"r% c #4B6ED7",
1876"s% c #4B6FD6",
1877"t% c #4B6FD5",
1878"u% c #4D71D6",
1879"v% c #5073D7",
1880"w% c #5174D7",
1881"x% c #5275D8",
1882"y% c #5577D8",
1883"z% c #5678D8",
1884"A% c #5779D9",
1885"B% c #587AD8",
1886"C% c #597CD9",
1887"D% c #5B7DD9",
1888"E% c #5D7FDA",
1889"F% c #5F80DB",
1890"G% c #6182DC",
1891"H% c #6484DC",
1892"I% c #6585DC",
1893"J% c #6787DD",
1894"K% c #6988DE",
1895"L% c #6B8ADE",
1896"M% c #6B8ADF",
1897"N% c #6989DE",
1898"O% c #6B89DE",
1899"P% c #6E8BDF",
1900"Q% c #708CDE",
1901"R% c #708DDF",
1902"S% c #708FDF",
1903"T% c #728EDF",
1904"U% c #6F8EDD",
1905"V% c #728EDD",
1906"W% c #7390DF",
1907"X% c #7490DF",
1908"Y% c #335DC8",
1909"Z% c #3759C5",
1910"`% c #3859C5",
1911" & c #335EC8",
1912".& c #325DCA",
1913"+& c #345CCB",
1914"@& c #335DCC",
1915"#& c #345DCD",
1916"$& c #355FCD",
1917"%& c #3861D0",
1918"&& c #3B64D1",
1919"*& c #3E65D2",
1920"=& c #4168D3",
1921"-& c #456AD5",
1922";& c #4B6ED5",
1923">& c #4C6FD4",
1924",& c #4D70D5",
1925"'& c #4F72D6",
1926")& c #5173D6",
1927"!& c #5375D7",
1928"~& c #5476D8",
1929"{& c #5577D7",
1930"]& c #5477D8",
1931"^& c #5677D8",
1932"/& c #5879D9",
1933"(& c #597AD9",
1934"_& c #5C7DDA",
1935":& c #6080DC",
1936"<& c #6080DB",
1937"[& c #6181DC",
1938"}& c #6282DC",
1939"|& c #6383DD",
1940"1& c #6484DD",
1941"2& c #6686DE",
1942"3& c #6685DE",
1943"4& c #6786DE",
1944"5& c #6687DE",
1945"6& c #6887DE",
1946"7& c #6987DE",
1947"8& c #6788DF",
1948"9& c #6785DF",
1949"0& c #6B89DF",
1950"a& c #6C89DF",
1951"b& c #6F8DDD",
1952"c& c #6D8CDE",
1953"d& c #445BBB",
1954"e& c #3759BE",
1955"f& c #375AC6",
1956"g& c #355CC8",
1957"h& c #345CCA",
1958"i& c #355ECC",
1959"j& c #365FCD",
1960"k& c #3761CE",
1961"l& c #3A63D0",
1962"m& c #3D65D1",
1963"n& c #466AD4",
1964"o& c #476BD4",
1965"p& c #486CD3",
1966"q& c #4A6ED4",
1967"r& c #4B6ED4",
1968"s& c #4E71D6",
1969"t& c #4F71D5",
1970"u& c #5072D6",
1971"v& c #5274D7",
1972"w& c #5273D7",
1973"x& c #5274D6",
1974"y& c #5476D7",
1975"z& c #5779D8",
1976"A& c #587AD9",
1977"B& c #5A7CDA",
1978"C& c #5C7DDB",
1979"D& c #5D7EDA",
1980"E& c #6081DA",
1981"F& c #6181DB",
1982"G& c #6283DC",
1983"H& c #6483DD",
1984"I& c #6483DE",
1985"J& c #6585DE",
1986"K& c #6786DF",
1987"L& c #6886DE",
1988"M& c #6887DF",
1989"N& c #6987DF",
1990"O& c #6A88DF",
1991"P& c #6786E0",
1992"Q& c #6A86DE",
1993"R& c #6B89E0",
1994"S& c #365BC8",
1995"T& c #365CC8",
1996"U& c #375DCA",
1997"V& c #375FCB",
1998"W& c #3860CD",
1999"X& c #3C63D0",
2000"Y& c #4167D2",
2001"Z& c #4268D2",
2002"`& c #4368D2",
2003" * c #4367D2",
2004".* c #4568D2",
2005"+* c #466AD2",
2006"@* c #496CD3",
2007"#* c #4A6DD3",
2008"$* c #4A6DD4",
2009"%* c #4D70D4",
2010"&* c #4F72D5",
2011"** c #4C70D4",
2012"=* c #4E72D5",
2013"-* c #5173D5",
2014";* c #5375D6",
2015">* c #597BDA",
2016",* c #5B7DDA",
2017"'* c #5C7EDB",
2018")* c #5D7FDB",
2019"!* c #5E80DB",
2020"~* c #5E81DA",
2021"{* c #5F81DB",
2022"]* c #5F82DB",
2023"^* c #6384DD",
2024"/* c #6384DE",
2025"(* c #6585DF",
2026"_* c #6486E0",
2027":* c #6583DD",
2028"<* c #6386E0",
2029"[* c #6686E0",
2030"}* c #6B86DD",
2031"|* c #6D86DD",
2032"1* c #6086E0",
2033"2* c #5573CD",
2034"3* c #3959C3",
2035"4* c #3959C4",
2036"5* c #3759C0",
2037"6* c #375BC7",
2038"7* c #365CC7",
2039"8* c #395FCC",
2040"9* c #3B62CE",
2041"0* c #3E64D0",
2042"a* c #4066D1",
2043"b* c #4166D1",
2044"c* c #4064CF",
2045"d* c #4065CF",
2046"e* c #4266D0",
2047"f* c #4468D1",
2048"g* c #4569D1",
2049"h* c #476BD2",
2050"i* c #466AD1",
2051"j* c #476AD2",
2052"k* c #456AD1",
2053"l* c #496DD2",
2054"m* c #4A6FD3",
2055"n* c #496ED2",
2056"o* c #4B70D4",
2057"p* c #4D71D4",
2058"q* c #4E72D4",
2059"r* c #5073D4",
2060"s* c #5174D5",
2061"t* c #5175D5",
2062"u* c #5276D6",
2063"v* c #5377D6",
2064"w* c #5478D7",
2065"x* c #5579D7",
2066"y* c #567AD8",
2067"z* c #577BD9",
2068"A* c #597CD8",
2069"B* c #5A7DD9",
2070"C* c #5A7ED9",
2071"D* c #5B7FDA",
2072"E* c #5C80DA",
2073"F* c #5D80DA",
2074"G* c #5E81DB",
2075"H* c #5D80DB",
2076"I* c #6082DC",
2077"J* c #6183DD",
2078"K* c #6183DE",
2079"L* c #6082DB",
2080"M* c #6282DE",
2081"N* c #6682DE",
2082"O* c #6583DE",
2083"P* c #3759BF",
2084"Q* c #375AC2",
2085"R* c #375AC1",
2086"S* c #375AC4",
2087"T* c #395DCA",
2088"U* c #3A5ECA",
2089"V* c #3C60CC",
2090"W* c #3D61CD",
2091"X* c #3D61CC",
2092"Y* c #3C61CD",
2093"Z* c #3E62CD",
2094"`* c #3F64CE",
2095" = c #4266CF",
2096".= c #4468D0",
2097"+= c #4267CF",
2098"@= c #4166CE",
2099"#= c #4065CE",
2100"$= c #4166CD",
2101"%= c #4267CE",
2102"&= c #456AD0",
2103"*= c #4368CE",
2104"== c #4468CF",
2105"-= c #4569D0",
2106";= c #486BD1",
2107">= c #4B6FD3",
2108",= c #4C70D3",
2109"'= c #4F73D4",
2110")= c #5275D5",
2111"!= c #5477D6",
2112"~= c #577BD7",
2113"{= c #587CD8",
2114"]= c #577CD8",
2115"^= c #597DD9",
2116"/= c #5A7DDA",
2117"(= c #597DDA",
2118"_= c #587CDA",
2119":= c #5A7EDA",
2120"<= c #567BD8",
2121"[= c #557AD9",
2122"}= c #567BD9",
2123"|= c #577CD9",
2124"1= c #587DD9",
2125"2= c #587ED9",
2126"3= c #577ED8",
2127"4= c #587DD8",
2128"5= c #587ED8",
2129"6= c #567ED7",
2130"7= c #526ABD",
2131"8= c #3759C1",
2132"9= c #385BC7",
2133"0= c #395CC8",
2134"a= c #3B5DC9",
2135"b= c #3B5ECA",
2136"c= c #3A5FCA",
2137"d= c #3B60CC",
2138"e= c #3C61CC",
2139"f= c #3D62CD",
2140"g= c #3E63CD",
2141"h= c #3C61CB",
2142"i= c #3C61CA",
2143"j= c #3D62CB",
2144"k= c #3F64CC",
2145"l= c #4065CD",
2146"m= c #4669D0",
2147"n= c #476AD0",
2148"o= c #496BD1",
2149"p= c #4A6DD2",
2150"q= c #4B6ED2",
2151"r= c #4D71D3",
2152"s= c #4E73D4",
2153"t= c #4F74D4",
2154"u= c #5075D5",
2155"v= c #5276D5",
2156"w= c #5377D7",
2157"x= c #5278D7",
2158"y= c #5277D6",
2159"z= c #5378D7",
2160"A= c #5379D8",
2161"B= c #5379D9",
2162"C= c #5278D8",
2163"D= c #5178D7",
2164"E= c #3355C0",
2165"F= c #3556C1",
2166"G= c #395AC6",
2167"H= c #385AC7",
2168"I= c #395BC7",
2169"J= c #395EC9",
2170"K= c #395FCA",
2171"L= c #3B60CA",
2172"M= c #3B60CB",
2173"N= c #375DC7",
2174"O= c #385EC8",
2175"P= c #395FC9",
2176"Q= c #3A60CA",
2177"R= c #3D63CC",
2178"S= c #4367CF",
2179"T= c #476BD1",
2180"U= c #4A6ED2",
2181"V= c #4B6FD2",
2182"W= c #4C6FD2",
2183"X= c #4D70D1",
2184"Y= c #4E71D2",
2185"Z= c #4E72D2",
2186"`= c #4E74D4",
2187" - c #4E75D5",
2188".- c #4E75D4",
2189"+- c #4F75D3",
2190"@- c #5075D2",
2191"#- c #5075D3",
2192"$- c #5177D7",
2193"%- c #5178D8",
2194"&- c #4F75D5",
2195"*- c #5076D5",
2196"=- c #4F76D6",
2197"-- c #5279D9",
2198";- c #3C52B1",
2199">- c #3656C3",
2200",- c #3757C5",
2201"'- c #3758C6",
2202")- c #3759C6",
2203"!- c #375BC6",
2204"~- c #385CC7",
2205"{- c #385DC8",
2206"]- c #365CC6",
2207"^- c #355BC6",
2208"/- c #355CC6",
2209"(- c #365DC7",
2210"_- c #375EC8",
2211":- c #375CC6",
2212"<- c #385EC6",
2213"[- c #3A5FC7",
2214"}- c #3C60C8",
2215"|- c #3D61C9",
2216"1- c #3E62CA",
2217"2- c #4063CC",
2218"3- c #4165CE",
2219"4- c #4268D0",
2220"5- c #4269D1",
2221"6- c #436AD2",
2222"7- c #446AD2",
2223"8- c #456BD2",
2224"9- c #496CD1",
2225"0- c #4C6CD0",
2226"a- c #4D6CCF",
2227"b- c #4E6DD0",
2228"c- c #4F6ECF",
2229"d- c #4E6FCF",
2230"e- c #4C70CF",
2231"f- c #4A71D0",
2232"g- c #4F6FCF",
2233"h- c #4B71D0",
2234"i- c #4A72D1",
2235"j- c #4B73D4",
2236"k- c #4F70D0",
2237"l- c #4C73D3",
2238"m- c #4C73D6",
2239"n- c #4B72D2",
2240"o- c #4B71D1",
2241"p- c #4C73D7",
2242"q- c #3354C0",
2243"r- c #3152BE",
2244"s- c #3052BE",
2245"t- c #3051BF",
2246"u- c #2E4FBF",
2247"v- c #2E4FBE",
2248"w- c #2E50BF",
2249"x- c #2F50BF",
2250"y- c #3156C4",
2251"z- c #2F56C5",
2252"A- c #2E57C5",
2253"B- c #2F57C5",
2254"C- c #3057C6",
2255"D- c #3258C6",
2256"E- c #3459C7",
2257"F- c #365AC7",
2258"G- c #385BC8",
2259"H- c #3B5DCA",
2260"I- c #3B5DCB",
2261"J- c #3C5ECC",
2262"K- c #3C60CD",
2263"L- c #3C62CE",
2264"M- c #3D65D0",
2265"N- c #3D66D1",
2266"O- c #4166D2",
2267"P- c #4667D2",
2268"Q- c #4A67D1",
2269"R- c #4C68D0",
2270"S- c #4C69CF",
2271"T- c #4D6BCE",
2272"U- c #4E6DCD",
2273"V- c #4E6ECE",
2274"W- c #4E6DCE",
2275"X- c #4970D0",
2276"Y- c #4770D0",
2277"Z- c #4B6BCE",
2278"`- c #4A6CCE",
2279" ; c #496DCF",
2280".; c #476FD0",
2281"+; c #4870D0",
2282"@; c #486DCF",
2283"#; c #242F79",
2284"$; c #2F41AC",
2285"%; c #2040B8",
2286"&; c #2041B8",
2287"*; c #2243B3",
2288"=; c #2243B8",
2289"-; c #2343B8",
2290";; c #2444B8",
2291">; c #2445B8",
2292",; c #2445B6",
2293"'; c #2445B7",
2294"); c #2444B9",
2295"!; c #2949BE",
2296"~; c #2649BF",
2297"{; c #234BBF",
2298"]; c #224CBF",
2299"^; c #224AC0",
2300"/; c #244CC0",
2301"(; c #254DC0",
2302"_; c #254DC1",
2303":; c #264DC2",
2304"<; c #274EC3",
2305"[; c #274CC3",
2306"}; c #274DC4",
2307"|; c #254DC5",
2308"1; c #214EC5",
2309"2; c #204FC6",
2310"3; c #1F50C8",
2311"4; c #2151C9",
2312"5; c #2B53C8",
2313"6; c #3154C7",
2314"7; c #3255C6",
2315"8; c #2F57C7",
2316"9; c #2C58C9",
2317"0; c #2D59CA",
2318"a; c #2D58C9",
2319"b; c #2E5BCC",
2320"c; c #325ECC",
2321"d; c #325ECB",
2322"e; c #1F40B1",
2323"f; c #1F40B2",
2324"g; c #1F40B3",
2325"h; c #2A44BD",
2326"i; c #2845BE",
2327"j; c #2745BE",
2328"k; c #2646BF",
2329"l; c #2546BE",
2330"m; c #2347BF",
2331"n; c #2147BF",
2332"o; c #2048C0",
2333"p; c #1D48C0",
2334"q; c #1C48C0",
2335"r; c #1B47C0",
2336"s; c #1C48BF",
2337"t; c #1E49BE",
2338"u; c #214ABD",
2339"v; c #244CBD",
2340"w; c #264DBE",
2341"x; c #254EC0",
2342"y; c #214FC2",
2343"z; c #1B51C5",
2344"A; c #1C51C7",
2345"B; c #2250C8",
2346"C; c #2A52C8",
2347"D; c #3254C6",
2348"E; c #3355C5",
2349"F; c #3154C8",
2350"G; c #3355C6",
2351"H; c #2F57C8",
2352"I; c #2E58C9",
2353"J; c #2E59C9",
2354"K; c #3059C9",
2355"L; c #2040B6",
2356"M; c #2743BB",
2357"N; c #2844BC",
2358"O; c #2743BD",
2359"P; c #2844BE",
2360"Q; c #2844BD",
2361"R; c #2346BE",
2362"S; c #2047BF",
2363"T; c #1E48C0",
2364"U; c #1D47C0",
2365"V; c #1D49BF",
2366"W; c #1F49BF",
2367"X; c #204ABE",
2368"Y; c #254DBF",
2369"Z; c #234EC0",
2370"`; c #2050C1",
2371" > c #1C51C3",
2372".> c #1F51C6",
2373"+> c #2651C8",
2374"@> c #2D53C7",
2375"#> c #3155C6",
2376"$> c #3155C7",
2377"%> c #3355C7",
2378"&> c #3254C7",
2379"*> c #1E40B1",
2380"=> c #2141B8",
2381"-> c #2442B9",
2382";> c #2744BB",
2383">> c #2945BB",
2384",> c #2A45BB",
2385"'> c #2944BA",
2386")> c #2745BB",
2387"!> c #2545BC",
2388"~> c #2246BD",
2389"{> c #2047BE",
2390"]> c #1F47BD",
2391"^> c #1D48BE",
2392"/> c #1E49C0",
2393"(> c #1F4AC0",
2394"_> c #214BBF",
2395":> c #244CBE",
2396"<> c #254DBE",
2397"[> c #244DBE",
2398"}> c #224FBF",
2399"|> c #2051C1",
2400"1> c #2151C3",
2401"2> c #2252C5",
2402"3> c #2151C1",
2403"4> c #2851C6",
2404"5> c #2A50C6",
2405"6> c #2E54C6",
2406"7> c #1F51C2",
2407"8> c #1D52C5",
2408"9> c #2651C9",
2409"0> c #2950C7",
2410"a> c #2D40A5",
2411"b> c #2040B0",
2412"c> c #1F40B0",
2413"d> c #223CAE",
2414"e> c #233CAE",
2415"f> c #253BAC",
2416"g> c #253BAD",
2417"h> c #233CB0",
2418"i> c #213EB2",
2419"j> c #1F3FB4",
2420"k> c #1E40B6",
2421"l> c #1F3FB7",
2422"m> c #1E3EB8",
2423"n> c #1F3FB8",
2424"o> c #2040B7",
2425"p> c #2141B6",
2426"q> c #2140B7",
2427"r> c #2241B6",
2428"s> c #2342B5",
2429"t> c #2442B6",
2430"u> c #2543B5",
2431"v> c #2643B4",
2432"w> c #2544B6",
2433"x> c #2346B8",
2434"y> c #2247B9",
2435"z> c #2048BC",
2436"A> c #1F48BF",
2437"B> c #2049C0",
2438"C> c #214AC0",
2439"D> c #224BBF",
2440"E> c #234CBE",
2441"F> c #244DBF",
2442"G> c #234CBF",
2443"H> c #264DC0",
2444"I> c #274EBF",
2445"J> c #264DBF",
2446"K> c #254EBF",
2447"L> c #2050C0",
2448"M> c #1F51C1",
2449"N> c #1E42A4",
2450"O> c #263BA6",
2451"P> c #253BA7",
2452"Q> c #253CA7",
2453"R> c #1E41A5",
2454"S> c #1F40AF",
2455"T> c #273AAC",
2456"U> c #1E40B0",
2457"V> c #1F40B5",
2458"W> c #1F40B6",
2459"X> c #1F40B8",
2460"Y> c #1E40B8",
2461"Z> c #1F3EB8",
2462"`> c #203FB7",
2463" , c #2240B6",
2464"., c #2341B7",
2465"+, c #2345B9",
2466"@, c #2147BB",
2467"#, c #2148BA",
2468"$, c #2049BB",
2469"%, c #2049BD",
2470"&, c #2049BF",
2471"*, c #224BBE",
2472"=, c #244DBD",
2473"-, c #244CBF",
2474";, c #182969",
2475">, c #273BAD",
2476",, c #2739AB",
2477"', c #263AAC",
2478"), c #243CAE",
2479"!, c #233DAE",
2480"~, c #213EAF",
2481"{, c #1F3FB0",
2482"], c #2040B4",
2483"^, c #1F3FB6",
2484"/, c #1E3EB7",
2485"(, c #2240B7",
2486"_, c #2341B6",
2487":, c #2543B4",
2488"<, c #2644B3",
2489"[, c #2544B5",
2490"}, c #2545B5",
2491"|, c #2547B6",
2492"1, c #2548B7",
2493"2, c #2349BA",
2494"3, c #1F49BE",
2495"4, c #2149BD",
2496"5, c #2049BE",
2497"6, c #214BBE",
2498"7, c #2249BE",
2499"8, c #234CBD",
2500"9, c #2149BE",
2501"0, c #1E49BF",
2502"a, c #253BA9",
2503"b, c #253BAB",
2504"c, c #263AAB",
2505"d, c #213DAF",
2506"e, c #203EAF",
2507"f, c #1D40AF",
2508"g, c #1D40B0",
2509"h, c #1E40B4",
2510"i, c #2241B7",
2511"j, c #2643B6",
2512"k, c #2744B5",
2513"l, c #2643B5",
2514"m, c #2346B6",
2515"n, c #2147B7",
2516"o, c #2644B6",
2517"p, c #2247B7",
2518"q, c #2248B8",
2519"r, c #2647B7",
2520"s, c #2549B7",
2521"t, c #2645B7",
2522"u, c #2148B8",
2523"v, c #2847B6",
2524"w, c #2549B6",
2525"x, c #2849B6",
2526"y, c #2049B7",
2527"z, c #2A49B5",
2528"A, c #243BA4",
2529"B, c #253BA5",
2530"C, c #253BA6",
2531"D, c #263AA7",
2532"E, c #263AA8",
2533"F, c #2739AA",
2534"G, c #243CAD",
2535"H, c #223DAE",
2536"I, c #1F3EAF",
2537"J, c #1E3FB0",
2538"K, c #1D40B1",
2539"L, c #1E3FB1",
2540"M, c #1F3FB3",
2541"N, c #1F3FB5",
2542"O, c #2140B6",
2543"P, c #2140B8",
2544"Q, c #2744B4",
2545"R, c #2746B6",
2546"S, c #2947B6",
2547"T, c #2946B5",
2548"U, c #2A48B6",
2549"V, c #3551A8",
2550"W, c #1F399C",
2551"X, c #143D9F",
2552"Y, c #263BA5",
2553"Z, c #273BA8",
2554"`, c #273BAA",
2555" ' c #263AAD",
2556".' c #233CAD",
2557"+' c #213DAE",
2558"@' c #203FB2",
2559"#' c #2342B6",
2560"$' c #2443B6",
2561"%' c #2543B6",
2562"&' c #2644B5",
2563"*' c #133D9E",
2564"=' c #263BA7",
2565"-' c #263BA9",
2566";' c #273BA9",
2567">' c #263AAA",
2568",' c #2539AB",
2569"'' c #2639AB",
2570")' c #253AAC",
2571"!' c #243BAD",
2572"~' c #223DAF",
2573"{' c #203FB0",
2574"]' c #2040B1",
2575"^' c #2140B3",
2576"/' c #2543B1",
2577"(' c #2744AF",
2578"_' c #1A3CA0",
2579":' c #1D3BA2",
2580"<' c #233BA4",
2581"[' c #263AA5",
2582"}' c #253AA5",
2583"|' c #263AA6",
2584"1' c #263BA4",
2585"2' c #243BA5",
2586"3' c #263BA8",
2587"4' c #223EAF",
2588"5' c #3B4CA5",
2589"6' c #1D379A",
2590"7' c #1E389C",
2591"8' c #1E399F",
2592"9' c #1F3BA2",
2593"0' c #1F3BA3",
2594"a' c #213BA4",
2595"b' c #233AA3",
2596"c' c #243AA3",
2597"d' c #2539A4",
2598"e' c #253AA6",
2599"f' c #243BA7",
2600"g' c #253CAA",
2601"h' c #253CAC",
2602"i' c #253CAD",
2603"j' c #253CAE",
2604"k' c #243DAE",
2605"l' c #213FAF",
2606"m' c #223FAF",
2607"n' c #2040AF",
2608"o' c #253D93",
2609"p' c #1D3894",
2610"q' c #1F379A",
2611"r' c #1E389B",
2612"s' c #1D399C",
2613"t' c #1C3A9D",
2614"u' c #1B3A9D",
2615"v' c #183B9E",
2616"w' c #163C9E",
2617"x' c #153C9E",
2618"y' c #163B9D",
2619"z' c #173B9D",
2620"A' c #193A9D",
2621"B' c #1C3A9E",
2622"C' c #1F3AA1",
2623"D' c #223AA4",
2624"E' c #253BA8",
2625"F' c #273BA7",
2626"G' c #263CAB",
2627"H' c #263CAC",
2628"I' c #243EAE",
2629"J' c #273BAC",
2630"K' c #2A3795",
2631"L' c #1F389B",
2632"M' c #1D389B",
2633"N' c #1C399C",
2634"O' c #1B399C",
2635"P' c #1A3A9D",
2636"Q' c #1D399B",
2637"R' c #1B399B",
2638"S' c #1A3A9C",
2639"T' c #1B3A9F",
2640"U' c #1D3AA0",
2641"V' c #203BA2",
2642"W' c #203BA3",
2643"X' c #2639A6",
2644"Y' c #1B3692",
2645"Z' c #1C3794",
2646"`' c #1D3796",
2647" ) c #1E3898",
2648".) c #1E389A",
2649"+) c #1F399B",
2650"@) c #1A399C",
2651"#) c #193A9E",
2652"$) c #1A3BA0",
2653"%) c #1C3BA2",
2654"&) c #1D3CA3",
2655"*) c #203CA4",
2656"=) c #223BA5",
2657"-) c #3C4699",
2658";) c #2B4595",
2659">) c #1C3793",
2660",) c #1D3895",
2661"') c #1E3897",
2662")) c #1F3998",
2663"!) c #1F3999",
2664"~) c #1F399A",
2665"{) c #1E399C",
2666"]) c #1C3B9E",
2667"^) c #1D3BA0",
2668"/) c #1E3CA2",
2669"() c #223CA5",
2670"_) c #243CA6",
2671":) c #596FA9",
2672"<) c #3B4894",
2673"[) c #314993",
2674"}) c #29499F",
2675"|) c #28489E",
2676"1) c #2B4BA1",
2677"2) c #2C4BA1",
2678"3) c #2D4CA2",
2679"4) c #2E4CA3",
2680"5) c #2F4CA4",
2681"6) c #2E4CA4",
2682"7) c #2F4DA3",
2683"8) c #2F4DA4",
2684"9) c #D3D5D2",
2685"0) c #3B4794",
2686"a) c #314791",
2687"b) c #304892",
2688"c) c #304893",
2689"d) c #2F4995",
2690"e) c #2F4997",
2691"f) c #2D4A9A",
2692"g) c #2A4A9D",
2693"h) c #294A9F",
2694"i) c #284AA0",
2695"j) c #294AA0",
2696"k) c #2B4AA1",
2697"l) c #2D4CA3",
2698"m) c #C9CAC9",
2699"n) c #455D9B",
2700"o) c #242F78",
2701"p) c #1B2F85",
2702"q) c #C6C3C8",
2703"r) c #B5B2B6",
2704"s) c #B5B7B4",
2705"t) c #B5B7B3",
2706"u) c #B5B2B5",
2707"v) c #B5B3B4",
2708"w) c #B5B5B4",
2709"x) c #B5B6B3",
2710"y) c #B5B4B4",
2711"z) c #B5B3B5",
2712"A) c #B5B4B5",
2713"B) c #B5B5B5",
2714"C) c #B5B5B3",
2715"D) c #B5B5B6",
2716"E) c #BAC3BE",
2717"F) c #B9C3BD",
2718"G) c #C1C3C4",
2719"H) c #BFC3C2",
2720"I) c #B9C3BE",
2721"J) c #BBC3BF",
2722"K) c #BDC3C1",
2723"L) c #C0C3C3",
2724"M) c #BEC3C1",
2725"N) c #C2C3C5",
2726"O) c #E6E3E8",
2727"P) c #E0E2DF",
2728"Q) c #E1E1E1",
2729"R) c #E2E1E3",
2730"S) c #E4E1E6",
2731"T) c #E4E2E7",
2732"U) c #E4E2E6",
2733"V) c #E3E3E4",
2734"W) c #E2E3E3",
2735"X) c #E1E3E2",
2736"Y) c #E3E3E3",
2737"Z) c #E3E3E2",
2738"`) c #EBEDEA",
2739" ! c #EAECE9",
2740".! c #E9EBE8",
2741"+! c #ECEEEB",
2742". . + @ # $ $ $ $ $ $ $ % $ $ $ $ $ % $ $ $ $ $ $ % $ $ $ $ $ % $ $ $ $ $ $ $ $ $ % $ $ & * = - ; > , , ' ) ! ! ~ { ] ^ / ( _ : < [ } | | 1 2 3 3 4 4 4 4 4 4 4 5 6 4 4 4 5 6 7 8 9 4 5 6 7 8 9 6 7 8 9 ",
2743"0 a b % $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ c d d d d $ $ $ $ $ c d e f g h i i i i j k l m n o p q r s t u v w x y z 4 A B C D 9 9 E 9 E F G H I F J K L L L L J K L L L L L L L L ",
2744"@ % M N O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O O P Q R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)L)H)H)H)H)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)L)N)L)L)L)L)L)N)L)L)L)N)L)",
2786". . 0 . + O)P)O)P)O)P)O)P)O)P)P)O)P)O)P)O)P)P)O)P)O)P)O)P)O)P)O)P)O)P)O)P)O)Q)R)S)T)U)V)W)X)W)W)V)V)V)V)V)V)V)V)Y)Y)Z)Z)Y)Z)Z)Y)Y)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)V)Y)V)V)V)V)V)Y)V)V)V)Y)V)",
2787". . . 0 0 0 . 0 0 0 + 0 + 0 + 0 + 0 + 0 + 0 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 0 `) !+ + + .! !`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)`)+!`)`)`)`)`)+!`)`)`)+!`)"};
2788
2789
2790static char * listviewhighcornerright_xpm[] = {
2791"100 46 780 2",
2792" c None",
2793". c #6A779D",
2794"+ c #6C789C",
2795"@ c #6C789D",
2796"# c #6B789D",
2797"$ c #6A779E",
2798"% c #66759E",
2799"& c #64749E",
2800"* c #63749E",
2801"= c #61739D",
2802"- c #576D9B",
2803"; c #556C9C",
2804"> c #4D679D",
2805", c #4A649D",
2806"' c #49629D",
2807") c #465E9C",
2808"! c #40579C",
2809"~ c #3B5394",
2810"{ c #2C4E97",
2811"] c #314993",
2812"^ c #2B4595",
2813"/ c #1B4296",
2814"( c #253D93",
2815"_ c #19418F",
2816": c #0F3C96",
2817"< c #42599E",
2818"[ c #758DC3",
2819"} c #E8EAE7",
2820"| c #EEF0ED",
2821"1 c #FBFBFC",
2822"2 c #6F7D9B",
2823"3 c #6F7D9A",
2824"4 c #6E7B9C",
2825"5 c #67759E",
2826"6 c #63739E",
2827"7 c #62739D",
2828"8 c #596F9C",
2829"9 c #4A639D",
2830"0 c #47609C",
2831"a c #445B9F",
2832"b c #3E5697",
2833"c c #2E509A",
2834"d c #2D509A",
2835"e c #2D4F99",
2836"f c #2D4F98",
2837"g c #28418A",
2838"h c #3E51A3",
2839"i c #D0D3DC",
2840"j c #A1B6EF",
2841"k c #A2B6F0",
2842"l c #A1B6F0",
2843"m c #A3B6F0",
2844"n c #A0B6EF",
2845"o c #9DB6EE",
2846"p c #9CB5EF",
2847"q c #9CB2F0",
2848"r c #9FB5EE",
2849"s c #9CB4EB",
2850"t c #9AB3EC",
2851"u c #9AB0EC",
2852"v c #9DB3EB",
2853"w c #9BB4EC",
2854"x c #9BB4EE",
2855"y c #9BB1EF",
2856"z c #9BB0F0",
2857"A c #90ACF0",
2858"B c #93ABEE",
2859"C c #91A8EB",
2860"D c #8BA3E8",
2861"E c #88A1E7",
2862"F c #809DE9",
2863"G c #7A99E8",
2864"H c #7491E5",
2865"I c #698AE4",
2866"J c #6184E3",
2867"K c #507EDC",
2868"L c #4E7CDB",
2869"M c #4F7DDC",
2870"N c #5479DA",
2871"O c #567BDC",
2872"P c #577CDD",
2873"Q c #5074DA",
2874"R c #5174DB",
2875"S c #5175DC",
2876"T c #5276DD",
2877"U c #4D71DE",
2878"V c #4C72D8",
2879"W c #3A6CE0",
2880"X c #2B49A6",
2881"Y c #E0E2DF",
2882"Z c #93AAE9",
2883"` c #94A9E8",
2884" . c #94AAE9",
2885".. c #93A9E9",
2886"+. c #92AAE9",
2887"@. c #8DA9E8",
2888"#. c #8CA7E9",
2889"$. c #92ABE9",
2890"%. c #8EAAE9",
2891"&. c #8EA9E9",
2892"*. c #8FAAE9",
2893"=. c #8CA8E9",
2894"-. c #8CA2E7",
2895";. c #86A1E6",
2896">. c #839EE9",
2897",. c #7F9CE9",
2898"'. c #7A97E8",
2899"). c #7693E7",
2900"!. c #6E8EE8",
2901"~. c #678AE9",
2902"{. c #5D84E3",
2903"]. c #577CDF",
2904"^. c #4E77DF",
2905"/. c #4A70DB",
2906"(. c #4870DB",
2907"_. c #4870DC",
2908":. c #4770E3",
2909"<. c #496FDC",
2910"[. c #486EDB",
2911"}. c #466FE4",
2912"|. c #466EE3",
2913"1. c #4167D9",
2914"2. c #4066D8",
2915"3. c #3F66D8",
2916"4. c #3D64D7",
2917"5. c #3960DA",
2918"6. c #476DD9",
2919"7. c #446EE5",
2920"8. c #305EC8",
2921"9. c #8EAAE8",
2922"0. c #8FAAE8",
2923"a. c #91AAE9",
2924"b. c #8FA9E8",
2925"c. c #8BA8E8",
2926"d. c #8AA7E9",
2927"e. c #8BA5EA",
2928"f. c #8AA7E8",
2929"g. c #87A2E6",
2930"h. c #859FE8",
2931"i. c #7F9DE8",
2932"j. c #7C9AE8",
2933"k. c #7B95E7",
2934"l. c #7090E8",
2935"m. c #6B8BE9",
2936"n. c #6386E6",
2937"o. c #5881E1",
2938"p. c #5479DE",
2939"q. c #4D74DE",
2940"r. c #476EDB",
2941"s. c #446EE1",
2942"t. c #446EE0",
2943"u. c #446EDF",
2944"v. c #446DE0",
2945"w. c #426ADF",
2946"x. c #3C64DA",
2947"y. c #4360CC",
2948"z. c #D3D5D2",
2949"A. c #E6E3E8",
2950"B. c #8DA2E7",
2951"C. c #8CA6EA",
2952"D. c #8DA3E9",
2953"E. c #88A2E7",
2954"F. c #87A1E7",
2955"G. c #8AA1E7",
2956"H. c #849EE9",
2957"I. c #7D9AE9",
2958"J. c #7B98E8",
2959"K. c #7796E5",
2960"L. c #7191E7",
2961"M. c #688CE9",
2962"N. c #6687E5",
2963"O. c #5C83E1",
2964"P. c #557BDE",
2965"Q. c #4F76DE",
2966"R. c #4C72DE",
2967"S. c #456EDF",
2968"T. c #426AD9",
2969"U. c #4269D9",
2970"V. c #4269D8",
2971"W. c #3D64D9",
2972"X. c #3A61DA",
2973"Y. c #345ED6",
2974"Z. c #335ECF",
2975"`. c #C6C3C8",
2976" + c #86A1E7",
2977".+ c #87A2E7",
2978"++ c #87A0E7",
2979"@+ c #859EE8",
2980"#+ c #849DE9",
2981"$+ c #7E9BE9",
2982"%+ c #7A99E9",
2983"&+ c #7A95E5",
2984"*+ c #7593E7",
2985"=+ c #6F8EE9",
2986"-+ c #668AE5",
2987";+ c #6386E0",
2988">+ c #5B82DF",
2989",+ c #5379DE",
2990"'+ c #5075DE",
2991")+ c #4B6FDC",
2992"!+ c #446AD7",
2993"~+ c #4269D6",
2994"{+ c #4269D5",
2995"]+ c #3E65D7",
2996"^+ c #C9CAC9",
2997"/+ c #869EE9",
2998"(+ c #859FE9",
2999"_+ c #849FE9",
3000":+ c #829DE8",
3001"<+ c #819DE8",
3002"[+ c #7B9AE9",
3003"}+ c #7A96E6",
3004"|+ c #7290E8",
3005"1+ c #698CE6",
3006"2+ c #6689E0",
3007"3+ c #5D84E0",
3008"4+ c #587FDF",
3009"5+ c #5377DD",
3010"6+ c #4B74DE",
3011"7+ c #496BD8",
3012"8+ c #7C9BE9",
3013"9+ c #7E9CE9",
3014"0+ c #7D9AEA",
3015"a+ c #7D9BEA",
3016"b+ c #7D98E8",
3017"c+ c #7C98E8",
3018"d+ c #7796E4",
3019"e+ c #7592E6",
3020"f+ c #7390E1",
3021"g+ c #698DE0",
3022"h+ c #6588DE",
3023"i+ c #5E84E0",
3024"j+ c #5880DF",
3025"k+ c #5479DC",
3026"l+ c #4F75DE",
3027"m+ c #4A6FDB",
3028"n+ c #436AD7",
3029"o+ c #3F65D7",
3030"p+ c #BAC3BE",
3031"q+ c #7B9AE8",
3032"r+ c #7B9AEA",
3033"s+ c #7A9AEA",
3034"t+ c #7B99E9",
3035"u+ c #7D97E7",
3036"v+ c #7D95E6",
3037"w+ c #7D95E5",
3038"x+ c #7C95E6",
3039"y+ c #7493E3",
3040"z+ c #7290DF",
3041"A+ c #6C8DDE",
3042"B+ c #6B89E1",
3043"C+ c #6486DF",
3044"D+ c #5D81DF",
3045"E+ c #567DDE",
3046"F+ c #4F73DE",
3047"G+ c #496EDA",
3048"H+ c #355ED6",
3049"I+ c #345ED5",
3050"J+ c #7E95E5",
3051"K+ c #7C97E8",
3052"L+ c #7C97E7",
3053"M+ c #7B94E6",
3054"N+ c #7A95E4",
3055"O+ c #7695E5",
3056"P+ c #7694E4",
3057"Q+ c #7994E6",
3058"R+ c #7995E4",
3059"S+ c #7594E4",
3060"T+ c #7391E2",
3061"U+ c #6E8EDE",
3062"V+ c #6B8ADE",
3063"W+ c #6688DF",
3064"X+ c #5F84E0",
3065"Y+ c #5980E0",
3066"Z+ c #4D72DD",
3067"`+ c #456BD7",
3068" @ c #4168D6",
3069".@ c #3C64D7",
3070"+@ c #335ED0",
3071"@@ c #4659C7",
3072"#@ c #7292E1",
3073"$@ c #7392E1",
3074"%@ c #7492E1",
3075"&@ c #718FDF",
3076"*@ c #6F8EDE",
3077"=@ c #6D8BDE",
3078"-@ c #6B88DF",
3079";@ c #597FDF",
3080">@ c #557ADD",
3081",@ c #5176DC",
3082"'@ c #4D74DD",
3083")@ c #496DDA",
3084"!@ c #3860D8",
3085"~@ c #7391E0",
3086"{@ c #7290DE",
3087"]@ c #6D8EDD",
3088"^@ c #6D8DDD",
3089"/@ c #7190E0",
3090"(@ c #6C8DDD",
3091"_@ c #6B89DF",
3092":@ c #6487E0",
3093"<@ c #6085DF",
3094"[@ c #5F81DE",
3095"}@ c #567EDE",
3096"|@ c #4F74D9",
3097"1@ c #466BD7",
3098"2@ c #4067D5",
3099"3@ c #3C63D7",
3100"4@ c #335ED3",
3101"5@ c #335ED1",
3102"6@ c #718EDD",
3103"7@ c #728EDD",
3104"8@ c #748EDD",
3105"9@ c #708EDD",
3106"0@ c #6F8DDD",
3107"a@ c #6E8DDD",
3108"b@ c #6C8ADE",
3109"c@ c #6C89DF",
3110"d@ c #6988DF",
3111"e@ c #6387DF",
3112"f@ c #6282DE",
3113"g@ c #5681E0",
3114"h@ c #577BDD",
3115"i@ c #5277DB",
3116"j@ c #4D73D8",
3117"k@ c #4A70D8",
3118"l@ c #436AD5",
3119"m@ c #3F66D6",
3120"n@ c #3C63D8",
3121"o@ c #3960D8",
3122"p@ c #3860D7",
3123"q@ c #335ED2",
3124"r@ c #345ED4",
3125"s@ c #6C88DF",
3126"t@ c #6D88DF",
3127"u@ c #6B89DE",
3128"v@ c #6888DF",
3129"w@ c #6587E0",
3130"x@ c #6989DF",
3131"y@ c #6687E0",
3132"z@ c #6287E0",
3133"A@ c #6281DD",
3134"B@ c #5881E0",
3135"C@ c #557ADB",
3136"D@ c #5176D9",
3137"E@ c #4E75D7",
3138"F@ c #4A6FD8",
3139"G@ c #476BD6",
3140"H@ c #4067D6",
3141"I@ c #3C62D7",
3142"J@ c #3C60D4",
3143"K@ c #365ED1",
3144"L@ c #345ED3",
3145"M@ c #6786DF",
3146"N@ c #5F85E0",
3147"O@ c #5F86E0",
3148"P@ c #6186DF",
3149"Q@ c #6286E0",
3150"R@ c #6284DF",
3151"S@ c #6384DF",
3152"T@ c #5B7FDE",
3153"U@ c #577DDC",
3154"V@ c #557BDA",
3155"W@ c #5278D8",
3156"X@ c #4E76D6",
3157"Y@ c #4C72D7",
3158"Z@ c #486DD8",
3159"`@ c #4469D6",
3160" # c #3F62D2",
3161".# c #3C60CF",
3162"+# c #345ECF",
3163"@# c #6086DF",
3164"## c #6085E0",
3165"$# c #6285DF",
3166"%# c #6383DD",
3167"&# c #6481DC",
3168"*# c #6380DD",
3169"=# c #6183DE",
3170"-# c #6083DD",
3171";# c #6081DC",
3172"># c #6080DD",
3173",# c #6083DE",
3174"'# c #6181DC",
3175")# c #6280DD",
3176"!# c #577EDB",
3177"~# c #557CD7",
3178"{# c #4F76D6",
3179"]# c #4E74D7",
3180"^# c #466CD7",
3181"/# c #3B64D6",
3182"(# c #4261CD",
3183"_# c #375FCE",
3184":# c #5A7FD8",
3185"<# c #6281DA",
3186"[# c #5F81D8",
3187"}# c #5C80D8",
3188"|# c #557DD7",
3189"1# c #577ED8",
3190"2# c #567ED7",
3191"3# c #587DD8",
3192"4# c #577DD8",
3193"5# c #587ED8",
3194"6# c #567DD8",
3195"7# c #5379D9",
3196"8# c #5177D7",
3197"9# c #4D74D5",
3198"0# c #486ED9",
3199"a# c #4068D4",
3200"b# c #3D65D2",
3201"c# c #4361CC",
3202"d# c #345ECE",
3203"e# c #325DCF",
3204"f# c #2C5AD1",
3205"g# c #3959C5",
3206"h# c #547BD8",
3207"i# c #567DD7",
3208"j# c #557BD8",
3209"k# c #5279D9",
3210"l# c #5278D9",
3211"m# c #4D74D6",
3212"n# c #4B71D8",
3213"o# c #496CD8",
3214"p# c #4669D7",
3215"q# c #3D66D3",
3216"r# c #3F62CF",
3217"s# c #4260CC",
3218"t# c #5379D8",
3219"u# c #4E75D4",
3220"v# c #4C73D7",
3221"w# c #476CD7",
3222"x# c #4869D0",
3223"y# c #4067D2",
3224"z# c #3D64D1",
3225"A# c #4261CC",
3226"B# c #395FCE",
3227"C# c #4F75D3",
3228"D# c #5074D2",
3229"E# c #5174D1",
3230"F# c #5175D1",
3231"G# c #4F74D3",
3232"H# c #4C73D5",
3233"I# c #4C73D4",
3234"J# c #4A72D1",
3235"K# c #4B70CF",
3236"L# c #506CCC",
3237"M# c #4D6BCE",
3238"N# c #4167D0",
3239"O# c #3D65D1",
3240"P# c #3F63CF",
3241"Q# c #3B5FCD",
3242"R# c #3159CD",
3243"S# c #4971D0",
3244"T# c #4870CF",
3245"U# c #4C6FCF",
3246"V# c #4E6CCE",
3247"W# c #4E6BCE",
3248"X# c #4769CF",
3249"Y# c #3D66D0",
3250"Z# c #3C65D1",
3251"`# c #4062CE",
3252" $ c #3D5FCD",
3253".$ c #365FCF",
3254"+$ c #325DCD",
3255"@$ c #2D5AD0",
3256"#$ c #3859C5",
3257"$$ c #355FCF",
3258"%$ c #355ECF",
3259"&$ c #335ECE",
3260"*$ c #305CCD",
3261"=$ c #2B5ACE",
3262"-$ c #3056C9",
3263";$ c #2553C6",
3264">$ c #2153C8",
3265",$ c #1F4FC7",
3266"'$ c #274CC5",
3267")$ c #214AC7",
3268"!$ c #1C48C8",
3269"~$ c #1244C9",
3270"{$ c #1043C9",
3271"]$ c #1144C9",
3272"^$ c #2A45BE",
3273"/$ c #2744B5",
3274"($ c #1D49C0",
3275"_$ c #2B58DE",
3276":$ c #002D94",
3277"<$ c #2B59CA",
3278"[$ c #2A59CA",
3279"}$ c #2E57C8",
3280"|$ c #3255C6",
3281"1$ c #3355C5",
3282"2$ c #1C52C8",
3283"3$ c #1D50C7",
3284"4$ c #234FC6",
3285"5$ c #264CC5",
3286"6$ c #1D48C7",
3287"7$ c #1245C8",
3288"8$ c #1F44C2",
3289"9$ c #2945BE",
3290"0$ c #2A45BD",
3291"a$ c #2040BF",
3292"b$ c #3156C7",
3293"c$ c #3056C7",
3294"d$ c #3354C5",
3295"e$ c #3355C6",
3296"f$ c #3255C5",
3297"g$ c #3254C5",
3298"h$ c #1952C7",
3299"i$ c #1951C8",
3300"j$ c #2050C7",
3301"k$ c #274CC4",
3302"l$ c #244CC6",
3303"m$ c #1F49C7",
3304"n$ c #1E47C5",
3305"o$ c #2045C3",
3306"p$ c #1C44BF",
3307"q$ c #2045BE",
3308"r$ c #2040B8",
3309"s$ c #3254C6",
3310"t$ c #3055C6",
3311"u$ c #2A54C6",
3312"v$ c #2353C7",
3313"w$ c #3054C5",
3314"x$ c #2F55C5",
3315"y$ c #2A54C5",
3316"z$ c #2553C5",
3317"A$ c #2F54C5",
3318"B$ c #3155C6",
3319"C$ c #2A54C7",
3320"D$ c #1A52C8",
3321"E$ c #204FC2",
3322"F$ c #264DC6",
3323"G$ c #234BC5",
3324"H$ c #1D48C1",
3325"I$ c #1E48BF",
3326"J$ c #2646BE",
3327"K$ c #2B45BD",
3328"L$ c #1E43BE",
3329"M$ c #2643BF",
3330"N$ c #2243BF",
3331"O$ c #3049BC",
3332"P$ c #1E50BE",
3333"Q$ c #1D50C0",
3334"R$ c #1D50BF",
3335"S$ c #1852C1",
3336"T$ c #1E51C0",
3337"U$ c #214FBF",
3338"V$ c #2050C0",
3339"W$ c #244EBF",
3340"X$ c #2151C0",
3341"Y$ c #234FBF",
3342"Z$ c #2350C0",
3343"`$ c #2351C0",
3344" % c #244FBF",
3345".% c #2250C0",
3346"+% c #2051C0",
3347"@% c #1E50C0",
3348"#% c #244DBE",
3349"$% c #274DBF",
3350"%% c #244CBF",
3351"&% c #1C48C0",
3352"*% c #2247BF",
3353"=% c #2C44BD",
3354"-% c #1C44BE",
3355";% c #1444BF",
3356">% c #1841BF",
3357",% c #1F40BF",
3358"'% c #254DBE",
3359")% c #224FBE",
3360"!% c #224FBF",
3361"~% c #234EBF",
3362"{% c #254CBD",
3363"]% c #244DBD",
3364"^% c #244CBD",
3365"/% c #264DBE",
3366"(% c #264DBD",
3367"_% c #214BC0",
3368":% c #1D48C0",
3369"<% c #2347BF",
3370"[% c #2B44BD",
3371"}% c #2444BE",
3372"|% c #0F42BF",
3373"1% c #0641BF",
3374"2% c #0F41BF",
3375"3% c #1741BE",
3376"4% c #1F40BD",
3377"5% c #234BBF",
3378"6% c #234CBE",
3379"7% c #214BBE",
3380"8% c #244CBE",
3381"9% c #214ABE",
3382"0% c #214ABF",
3383"a% c #1F48C0",
3384"b% c #2746BE",
3385"c% c #1F43BE",
3386"d% c #0941BE",
3387"e% c #0342BA",
3388"f% c #0242BC",
3389"g% c #1241B8",
3390"h% c #1F40B7",
3391"i% c #2F41AC",
3392"j% c #2644AE",
3393"k% c #2D49B4",
3394"l% c #2649B6",
3395"m% c #2949B7",
3396"n% c #2849B5",
3397"o% c #2149B8",
3398"p% c #1E49B9",
3399"q% c #1F48B8",
3400"r% c #1F49B9",
3401"s% c #2545B6",
3402"t% c #2744B7",
3403"u% c #2844B7",
3404"v% c #2043B8",
3405"w% c #1241B7",
3406"x% c #1340B8",
3407"y% c #0D41B8",
3408"z% c #1941B8",
3409"A% c #1F40B8",
3410"B% c #203FB8",
3411"C% c #2549B5",
3412"D% c #2648B6",
3413"E% c #2547B7",
3414"F% c #2248B7",
3415"G% c #2048B7",
3416"H% c #2346B6",
3417"I% c #2146B6",
3418"J% c #2247B7",
3419"K% c #2148B7",
3420"L% c #2743B4",
3421"M% c #2643B5",
3422"N% c #2542B6",
3423"O% c #1D42B7",
3424"P% c #0E42B8",
3425"Q% c #0C41B8",
3426"R% c #1341B8",
3427"S% c #1740B8",
3428"T% c #1C41B8",
3429"U% c #1F40B1",
3430"V% c #2644B5",
3431"W% c #2544B5",
3432"X% c #2544B4",
3433"Y% c #2444B5",
3434"Z% c #2444B4",
3435"`% c #2744B4",
3436" & c #2241B7",
3437".& c #1D41B8",
3438"+& c #0B42B8",
3439"@& c #0942B8",
3440"#& c #0C42B8",
3441"$& c #0F41B8",
3442"%& c #1641B8",
3443"&& c #2442B5",
3444"*& c #2543B3",
3445"=& c #2342B2",
3446"-& c #2341B4",
3447";& c #2141B3",
3448">& c #2141B5",
3449",& c #2140B5",
3450"'& c #2040B5",
3451")& c #1C40B7",
3452"!& c #1B41B3",
3453"~& c #0142B6",
3454"{& c #0E41B7",
3455"]& c #1141B7",
3456"^& c #1440B2",
3457"/& c #113FB0",
3458"(& c #1440B0",
3459"_& c #213EAF",
3460":& c #233DAE",
3461"<& c #223EAF",
3462"[& c #1E40B1",
3463"}& c #173EAD",
3464"|& c #1440AF",
3465"1& c #0D40AF",
3466"2& c #0941B0",
3467"3& c #0D3FAE",
3468"4& c #1B3CAC",
3469"5& c #233CAD",
3470"6& c #203FB0",
3471"7& c #273BAD",
3472"8& c #1D40B0",
3473"9& c #2040B1",
3474"0& c #1E40B0",
3475"a& c #1C40B0",
3476"b& c #1B3DAC",
3477"c& c #143DAC",
3478"d& c #193DAD",
3479"e& c #1B3DAD",
3480"f& c #173DAD",
3481"g& c #153DAC",
3482"h& c #1C3CAC",
3483"i& c #243CAD",
3484"j& c #213FB0",
3485"k& c #263BAA",
3486"l& c #253CAE",
3487"m& c #273AAC",
3488"n& c #273AAD",
3489"o& c #253BAD",
3490"p& c #1D3CAC",
3491"q& c #243BAD",
3492"r& c #1E3CAC",
3493"s& c #263BAD",
3494"t& c #1A3DAC",
3495"u& c #143DAB",
3496"v& c #163DAC",
3497"w& c #1A3CAC",
3498"x& c #1F3CAD",
3499"y& c #263BAB",
3500"z& c #263BA6",
3501"A& c #1E42A4",
3502"B& c #2D40A5",
3503"C& c #253BA6",
3504"D& c #253CA7",
3505"E& c #263AA5",
3506"F& c #253BA7",
3507"G& c #1E3BA6",
3508"H& c #193DA6",
3509"I& c #173DA5",
3510"J& c #143DA6",
3511"K& c #1A3DA7",
3512"L& c #133DA6",
3513"M& c #123DA5",
3514"N& c #1A3CA7",
3515"O& c #243BA6",
3516"P& c #263AA7",
3517"Q& c #273BA7",
3518"R& c #263AA6",
3519"S& c #223BA6",
3520"T& c #1D3BA6",
3521"U& c #173CA6",
3522"V& c #133DA5",
3523"W& c #1B3DA6",
3524"X& c #193DA5",
3525"Y& c #123DA4",
3526"Z& c #163CA5",
3527"`& c #213CA6",
3528" * c #273BA8",
3529".* c #263BA7",
3530"+* c #253BA5",
3531"@* c #263BA5",
3532"#* c #1C3BA6",
3533"$* c #1B3BA9",
3534"%* c #133BA8",
3535"&* c #0A3BA7",
3536"** c #083AA6",
3537"=* c #123CA5",
3538"-* c #0839A8",
3539";* c #0239A6",
3540">* c #123AA8",
3541",* c #1F49C8",
3542"'* c #2F4DA4",
3543")* c #2E4DA3",
3544"!* c #384CA4",
3545"~* c #3C4DA7",
3546"{* c #394EA7",
3547"]* c #3B4CA5",
3548"^* c #3C52B1",
3549"/* c #3551A8",
3550"(* c #3759BE",
3551"_* c #4161C7",
3552":* c #0033A8",
3553"<* c #596FA9",
3554"[* c #2F4DA3",
3555"}* c #2D4BA5",
3556"|* c #2E4CA4",
3557"1* c #2C4AA5",
3558"2* c #2D4BA4",
3559"3* c #354DA4",
3560"4* c #3A4BA4",
3561"5* c #394DA6",
3562"6* c #4056AD",
3563"7* c #445BBB",
3564"8* c #B5B7B4",
3565"9* c #1B2F85",
3566"0* c #242F79",
3567"a* c #B5B5B5",
3568"b* c #B5B2B6",
3569"c* c #C0C3C3",
3570"d* c #E3E3E4",
3571"e* c #EBEDEA",
3572". + @ + # $ % & # $ % & # $ % & # $ % & & * = - ; > , ' ) ! ~ { { { { { { { ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ / / / ( / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / _ _ / / : / < [ } | | | 1 1 ",
3573"2 2 2 2 3 2 4 @ 3 2 4 @ 3 2 4 @ 3 2 4 @ # 5 6 7 8 ; > 9 0 a b c d e f { { { ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ( ( ( ( ( ( ( ( ( / / / / / / / / / / / / / / / / / _ _ _ _ _ _ _ _ _ _ _ g g _ / / : : : h i } 1 | 1 ",
3574"j k l m n o p q n o p q r s t u v w x y z A B C D E F G H I J K L M N O P O O Q R S T T T T T T T T T T T T T T T T T T U U U U U U U U U U U U U U U U U U U U U U U U U U U U V V V U U W X : [ Y | | ",
3575"Z ` . ...+.@.#...+.@.#.Z $.%.&.Z $.*.=.-.;.>.,.'.).!.~.{.].^./.(._.:.<.[.}.|.1.2.3.4.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.6.7.8.: h Y } 1 ",
3576"9.0.a.b.c.c.d.e.f.c.d.e.f.c.d.e.f.c.d.e.g.h.i.j.k.l.m.n.o.p.q.r.s.s.t.u.u.v.w.x.4.4.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.y.5.7.6.: / z.A.} ",
3577"-.B.C.D.-.E.g.F.G.E.g.F.G.E.g.F.G.E.g.F.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.V.U.U.W.X.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y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+`.p+`.p+`.p+`.p+`.p+`.p+`.p+`.p+^+`.^+^+z.z.Y Y | | 1 ",
3616"d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*d*A.Y A.Y A.Y A.Y Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y A.Y } } | | | | 1 1 ",
3617"e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*e*} | } | } | } | | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | } | | | | 1 | | | 1 1 1 "};
3618
3619
3620static char * tabmiddle_xpm[] = {
3621"33 42 32 1",
3622" c None",
3623". c #CECFEF",
3624"+ c #CECBE7",
3625"@ c #C6C7E7",
3626"# c #C6CBE7",
3627"$ c #BDBEDE",
3628"% c #BDC3DE",
3629"& c #CECBEF",
3630"* c #B5B6D6",
3631"= c #ADAECE",
3632"- c #ADB2CE",
3633"; c #BDBAD6",
3634"> c #B5BAD6",
3635", c #C6C3DE",
3636"' c #ADAAC6",
3637") c #B5B2CE",
3638"! c #B5B6CE",
3639"~ c #A5A2BD",
3640"{ c #A5A6BD",
3641"] c #9C9EB5",
3642"^ c #9CA2BD",
3643"/ c #ADAEC6",
3644"( c #C6C3E7",
3645"_ c #9C9AB5",
3646": c #A5A6C6",
3647"< c #949AAD",
3648"[ c #A5AAC6",
3649"} c #9496AD",
3650"| c #BDBADE",
3651"1 c #BDBED6",
3652"2 c #9CA2B5",
3653"3 c #A5AABD",
3654"..........................+@.#.#.",
3655"........................$@%&#.#..",
3656"......................**$$@@&#.#.",
3657".....................=-;>,%+@.#..",
3658"....................'')!$$@@&#.#.",
3659"...................~{=)$$@@&#.#..",
3660"..................]^'/;;(%&#.#...",
3661"................._]:/*>,%&@.#.#..",
3662".................<{[)!$%+@.#.#...",
3663"................}~{=!$%@@.#......",
3664"................]^/-|$@@.#.......",
3665"................]'/*;@@&#........",
3666"...............<~[)>,%&#.#.......",
3667"...............]~=)$%+#.#........",
3668"...............]'/;1@@.#.........",
3669"...............~{)*,%&#..........",
3670"...............2/-$$@#...........",
3671"...............~[*>(@&#..........",
3672"...............^=)$%+#...........",
3673"...............{'*>(@.#..........",
3674"...............^=)$%+#...........",
3675"...............{'*>(@.#..........",
3676"...............^=)$%+#...........",
3677"...............{'*>(@.#..........",
3678"...............^=)$%+#...........",
3679"...............{'*>(@.#..........",
3680"...............^=)$%+#...........",
3681"...............{'*>@@.#..........",
3682"...............^=!$%&#...........",
3683"...............{/*;@@.#..........",
3684"...............{)!$%&#...........",
3685"..............]'/;1@@.#..........",
3686"..............23)>,%&#...........",
3687"..............~=-$$@@.#..........",
3688".............]{/*;@@.#...........",
3689"............<^[)>,%&#............",
3690"............]{/!$%@@.#...........",
3691"..........]^[-!$%@@.#............",
3692".........]^3/!>$@@.#.............",
3693".......<]^3/!>$@@&#..............",
3694".....<]2{[/!>$%@&#.#.............",
3695"}<<_]2{3/-!>$%@&#.#.............."};
3696
3697
3698static char * tabselectedbeginn_xpm[] = {
3699"33 39 28 1",
3700" c None",
3701". c #CECFEF",
3702"+ c #EFF3EF",
3703"@ c #FFFBFF",
3704"# c #F7FBF7",
3705"$ c #FFFFFF",
3706"% c #EFEFEF",
3707"& c #F7F7F7",
3708"* c #DEDFDE",
3709"= c #E7E7E7",
3710"- c #D6D3D6",
3711"; c #DEE3DE",
3712"> c #EFEBEF",
3713", c #F7F3F7",
3714"' c #CECBCE",
3715") c #CECFCE",
3716"! c #D6D7D6",
3717"~ c #DEDBDE",
3718"{ c #E7EBE7",
3719"] c #C6C7C6",
3720"^ c #E7E3E7",
3721"/ c #BDC3BD",
3722"( c #CED3CE",
3723"_ c #BDBABD",
3724": c #C6C3C6",
3725"< c #C6CBC6",
3726"[ c #D6DBD6",
3727"} c #BDBEBD",
3728"..........................+@#$#$$",
3729"........................%%&&@#$#$",
3730"......................*==%%&&@#$$",
3731"....................--*;>%,&@#$#$",
3732"...................')!~={,+@#$#$$",
3733"...................]-!^=%%&&@#$#$",
3734"................../'(~;>%&&@#$#$$",
3735"................._])!*={,&@#$#$$$",
3736"................_])~*>%&&$#$$$$$$",
3737"................:<![={&&@#$$$$$$$",
3738"................:)!^=,+@#$$$$$$$$",
3739"...............}'(*^%+@#$#$$$$$$$",
3740"...............:<!*>%&&$#$$$$$$$$",
3741".............../)!^{,&@#$$$$$$$$$",
3742"...............](*^%+@#$$$$$$$$$$",
3743"...............]!~=%&&$$$$$$$$$$$",
3744"...............'(*=,+@#$$$$$$$$$$",
3745"...............<!*>%&&$$$$$$$$$$$",
3746"...............'-^=,+@#$$$$$$$$$$",
3747"...............<!*>%&#$$$$$$$$$$$",
3748"...............'-^=,+@#$$$$$$$$$$",
3749"...............<!*>%&#$$$$$$$$$$$",
3750"...............'-^=,+@#$$$$$$$$$$",
3751"...............<!*>%&#$$$$$$$$$$$",
3752"...............'-^=,+@#$$$$$$$$$$",
3753"...............<!*>%&#$$$$$$$$$$$",
3754"...............'!^=,&@#$$$$$$$$$$",
3755"...............<~*>%&#$$$$$$$$$$$",
3756"...............)!^{,&@#$$$$$$$$$$",
3757"..............])~;%+@#$$$$$$$$$$$",
3758"..............]-[={&&$#$$$$$$$$$$",
3759".............])!^=,&@#$$$$$$$$$$$",
3760"............:'-*^%+@#$$$$$$$$$$$$",
3761"............])~*>%&&$#$$$$$$$$$$$",
3762"...........:'!*={,&@#$$$$$$$$$$$$",
3763"..........:'-~^=,+@#$$$$$$$$$$$$$",
3764".......}]'-~^=%,&@#$$$$$$$$$$$$$$",
3765".....}:])-~^=%,+@#$#$$$$$$$$$$$$$",
3766"}}}:]')-!*^=%,&@#$#$$$$$$$$$$$$$$"};
3767
3768
3769static char * tabselectedend_xpm[] = {
3770"33 42 33 1",
3771" c None",
3772". c #FFFFFF",
3773"+ c #CECBE7",
3774"@ c #C6C7E7",
3775"# c #CECFEF",
3776"$ c #C6CBE7",
3777"% c #BDBEDE",
3778"& c #BDC3DE",
3779"* c #CECBEF",
3780"= c #B5B6D6",
3781"- c #ADAECE",
3782"; c #ADB2CE",
3783"> c #BDBAD6",
3784", c #B5BAD6",
3785"' c #C6C3DE",
3786") c #ADAAC6",
3787"! c #B5B2CE",
3788"~ c #B5B6CE",
3789"{ c #A5A2BD",
3790"] c #A5A6BD",
3791"^ c #9C9EB5",
3792"/ c #9CA2BD",
3793"( c #ADAEC6",
3794"_ c #C6C3E7",
3795": c #9C9AB5",
3796"< c #A5A6C6",
3797"[ c #949AAD",
3798"} c #A5AAC6",
3799"| c #9496AD",
3800"1 c #BDBADE",
3801"2 c #BDBED6",
3802"3 c #9CA2B5",
3803"4 c #A5AABD",
3804"..........................+@#$#$#",
3805"........................%@&*$#$##",
3806"......................==%%@@*$#$#",
3807".....................-;>,'&+@#$##",
3808"....................))!~%%@@*$#$#",
3809"...................{]-!%%@@*$#$##",
3810"..................^/)(>>_&*$#$###",
3811".................:^<(=,'&*@#$#$##",
3812".................[]}!~%&+@#$#$###",
3813"................|{]-~%&@@#$######",
3814"................^/(;1%@@#$#######",
3815"................^)(=>@@*$########",
3816"...............[{}!,'&*$#$#######",
3817"...............^{-!%&+$#$########",
3818"...............^)(>2@@#$#########",
3819"...............{]!='&*$##########",
3820"...............3(;%%@$###########",
3821"...............{}=,_@*$##########",
3822".............../-!%&+$###########",
3823"...............])=,_@#$##########",
3824".............../-!%&+$###########",
3825"...............])=,_@#$##########",
3826".............../-!%&+$###########",
3827"...............])=,_@#$##########",
3828".............../-!%&+$###########",
3829"...............])=,_@#$##########",
3830".............../-!%&+$###########",
3831"...............])=,@@#$##########",
3832".............../-~%&*$###########",
3833"...............](=>@@#$##########",
3834"...............]!~%&*$###########",
3835"..............^)(>2@@#$##########",
3836"..............34!,'&*$###########",
3837"..............{-;%%@@#$##########",
3838".............^](=>@@#$###########",
3839"............[/}!,'&*$############",
3840"............^](~%&@@#$###########",
3841"..........^/};~%&@@#$############",
3842".........^/4(~,%@@#$#############",
3843".......[^/4(~,%@@*$##############",
3844".....[^3]}(~,%&@*$#$#############",
3845"|[[:^3]4(;~,%&@*$#$##############"};
3846
3847
3848static char * tabend_xpm[] = {
3849"33 42 3 1",
3850" c None",
3851". c #CECFEF",
3852"+ c #FFFFFF",
3853"..........................+++++++",
3854"........................+++++++++",
3855"......................+++++++++++",
3856".....................++++++++++++",
3857"....................+++++++++++++",
3858"...................++++++++++++++",
3859"..................+++++++++++++++",
3860".................++++++++++++++++",
3861".................++++++++++++++++",
3862"................+++++++++++++++++",
3863"................+++++++++++++++++",
3864"................+++++++++++++++++",
3865"...............++++++++++++++++++",
3866"...............++++++++++++++++++",
3867"...............++++++++++++++++++",
3868"...............++++++++++++++++++",
3869"...............++++++++++++++++++",
3870"...............++++++++++++++++++",
3871"...............++++++++++++++++++",
3872"...............++++++++++++++++++",
3873"...............++++++++++++++++++",
3874"...............++++++++++++++++++",
3875"...............++++++++++++++++++",
3876"...............++++++++++++++++++",
3877"...............++++++++++++++++++",
3878"...............++++++++++++++++++",
3879"...............++++++++++++++++++",
3880"...............++++++++++++++++++",
3881"...............++++++++++++++++++",
3882"...............++++++++++++++++++",
3883"...............++++++++++++++++++",
3884"..............+++++++++++++++++++",
3885"..............+++++++++++++++++++",
3886"..............+++++++++++++++++++",
3887".............++++++++++++++++++++",
3888"............+++++++++++++++++++++",
3889"............+++++++++++++++++++++",
3890"..........+++++++++++++++++++++++",
3891".........++++++++++++++++++++++++",
3892".......++++++++++++++++++++++++++",
3893".....++++++++++++++++++++++++++++",
3894"+++++++++++++++++++++++++++++++++"};
3895
3896
3897
3898
3899QColor fromHsl(QColor c)
3900{
3901 const qreal h = c.hueF();
3902 const qreal s = c.saturationF();
3903 const qreal l = c.valueF();
3904
3905 qreal ca[3] = {0, 0, 0};
3906
3907 if (s == 0 || h == 1) {
3908 // achromatic case
3909 ca[0] = ca[1] = ca[2] = l;
3910 } else {
3911 // chromatic case
3912 qreal temp2;
3913 if (l < qreal(0.5))
3914 temp2 = l * (qreal(1.0) + s);
3915 else
3916 temp2 = l + s - (l * s);
3917
3918 const qreal temp1 = (qreal(2.0) * l) - temp2;
3919 qreal temp3[3] = { h + (qreal(1.0) / qreal(3.0)),
3920 h,
3921 h - (qreal(1.0) / qreal(3.0)) };
3922
3923 for (int i = 0; i != 3; ++i) {
3924 if (temp3[i] < qreal(0.0))
3925 temp3[i] += qreal(1.0);
3926 else if (temp3[i] > qreal(1.0))
3927 temp3[i] -= qreal(1.0);
3928
3929 const qreal sixtemp3 = temp3[i] * qreal(6.0);
3930
3931 if (sixtemp3 < qreal(1.0))
3932 ca[i] = ((temp1 + (temp2 - temp1) * sixtemp3));
3933 else if ((temp3[i] * qreal(2.0)) < qreal(1.0))
3934 ca[i] = (temp2);
3935 else if ((temp3[i] * qreal(3.0)) < qreal(2.0))
3936 ca[i] = temp1 + (temp2 -temp1) * (qreal(2.0) /qreal(3.0) - temp3[i]) * qreal(6.0);
3937 else ca[i] = temp1;
3938 }
3939 }
3940
3941 return QColor::fromRgbF(ca[0], ca[1], ca[2]);
3942}
3943
3944#define Q_MAX_3(a, b, c) ( ( a > b && a > c) ? a : (b > c ? b : c) )
3945#define Q_MIN_3(a, b, c) ( ( a < b && a < c) ? a : (b < c ? b : c) )
3946
3947QColor toHsl(QColor c)
3948{
3949 QColor color;
3950 qreal h;
3951 qreal s;
3952 qreal l;
3953
3954 const qreal r = c.redF();
3955 const qreal g = c.greenF();
3956 const qreal b = c.blueF();
3957 const qreal max = Q_MAX_3(r, g, b);
3958 const qreal min = Q_MIN_3(r, g, b);
3959 const qreal delta = max - min;
3960 const qreal delta2 = max + min;
3961 const qreal lightness = qreal(0.5) * delta2;
3962 l = (lightness);
3963 if (qFuzzyIsNull(delta)) {
3964 // achromatic case, hue is undefined
3965 h = 0;
3966 s = 0;
3967 } else {
3968 // chromatic case
3969 qreal hue = 0;
3970 if (lightness < qreal(0.5))
3971 s = ((delta / delta2));
3972 else
3973 s = ((delta / (qreal(2.0) - delta2)));
3974 if (qFuzzyCompare(r, max)) {
3975 hue = ((g - b) /delta);
3976 } else if (qFuzzyCompare(g, max)) {
3977 hue = (2.0 + (b - r) / delta);
3978 } else if (qFuzzyCompare(b, max)) {
3979 hue = (4.0 + (r - g) / delta);
3980 } else {
3981 Q_ASSERT_X(false, "QColor::toHsv", "internal error");
3982 }
3983 hue *= 60.0;
3984 if (hue < 0.0)
3985 hue += 360.0;
3986 h = (hue * 100);
3987 }
3988
3989 h = h / 36000;
3990
3991 return QColor::fromHsvF(h, s, l);
3992}
3993
3994void tintColor(QColor &color, QColor tintColor, qreal _saturation)
3995{
3996 tintColor = toHsl(tintColor);
3997 color = toHsl(color);
3998 qreal hue = tintColor.hueF();
3999
4000 qreal saturation = color.saturationF();
4001 if (_saturation)
4002 saturation = _saturation;
4003 qreal lightness = color.valueF();
4004 color.setHsvF(hue, saturation, lightness);
4005
4006 color = fromHsl(color);
4007 color.toRgb();
4008}
4009
4010void tintImagePal(QImage *image, QColor color, qreal saturation)
4011{
4012 QVector<QRgb> colorTable = image->colorTable();
4013 for (int i=2;i< colorTable.size();i++) {
4014 QColor c(toHsl(colorTable.at(i)));
4015 tintColor(c, color, saturation);
4016 colorTable[i] = c.rgb();
4017 }
4018 image->setColorTable(colorTable);
4019}
4020
4021
4022void tintImage(QImage *image, QColor color, qreal saturation)
4023{
4024 *image = image->convertToFormat(QImage::Format_RGB32);
4025
4026 for (int x = 0; x < image->width(); x++)
4027 for (int y = 0; y < image->height(); y++) {
4028 QColor c(image->pixel(x,y));
4029 tintColor(c, color, saturation);
4030 image->setPixel(x, y, c.rgb());
4031 }
4032}
4033
4034#endif //Q_WS_WINCE_WM
4035
4036
4037enum QSliderDirection { SliderUp, SliderDown, SliderLeft, SliderRight };
4038
4039#ifdef Q_WS_WINCE_WM
4040
4041void QWindowsMobileStylePrivate::tintImagesButton(QColor color)
4042{
4043 if (currentTintButton == color)
4044 return;
4045
4046 imageTabEnd = QImage(tabend_xpm);
4047 imageTabSelectedEnd = QImage(tabselectedend_xpm);
4048 imageTabSelectedBegin = QImage(tabselectedbeginn_xpm);
4049 imageTabMiddle = QImage(tabmiddle_xpm);
4050 tintImage(&imageTabEnd, color, 0.0);
4051 tintImage(&imageTabSelectedEnd, color, 0.0);
4052 tintImage(&imageTabSelectedBegin, color, 0.0);
4053 tintImage(&imageTabMiddle, color, 0.0);
4054
4055 if (!doubleControls) {
4056 int height = imageTabMiddle.height() / 2 + 1;
4057 imageTabEnd = imageTabEnd.scaledToHeight(height);
4058 imageTabMiddle = imageTabMiddle.scaledToHeight(height);
4059 imageTabSelectedEnd = imageTabSelectedEnd.scaledToHeight(height);
4060 imageTabSelectedBegin = imageTabSelectedBegin.scaledToHeight(height);
4061 }
4062}
4063
4064void QWindowsMobileStylePrivate::tintImagesHigh(QColor color)
4065{
4066 if (currentTintHigh == color)
4067 return;
4068 currentTintHigh = color;
4069 tintListViewHighlight(color);
4070 imageScrollbarHandleUpHigh = imageScrollbarHandleUp;
4071 imageScrollbarHandleDownHigh = imageScrollbarHandleDown;
4072 tintImagePal(&imageScrollbarHandleDownHigh, color, qreal(0.8));
4073 tintImagePal(&imageScrollbarHandleUpHigh, color, qreal(0.8));
4074}
4075
4076void QWindowsMobileStylePrivate::tintListViewHighlight(QColor color)
4077{
4078 imageListViewHighlightCornerRight = QImage(listviewhighcornerright_xpm);
4079 tintImage(&imageListViewHighlightCornerRight, color, qreal(0.0));
4080
4081 imageListViewHighlightCornerLeft = QImage(listviewhighcornerleft_xpm);
4082 tintImage(&imageListViewHighlightCornerLeft, color, qreal(0.0));
4083
4084 imageListViewHighlightMiddle = QImage(listviewhighmiddle_xpm);
4085 tintImage(&imageListViewHighlightMiddle, color, qreal(0.0));
4086
4087 int height = imageListViewHighlightMiddle.height();
4088 if (!doubleControls) {
4089 height = height / 2;
4090 imageListViewHighlightCornerRight = imageListViewHighlightCornerRight.scaledToHeight(height);
4091 imageListViewHighlightCornerLeft = imageListViewHighlightCornerLeft.scaledToHeight(height);
4092 imageListViewHighlightMiddle = imageListViewHighlightMiddle.scaledToHeight(height);
4093 }
4094}
4095
4096#endif //Q_WS_WINCE_WM
4097
4098void QWindowsMobileStylePrivate::setupWindowsMobileStyle65()
4099{
4100#ifdef Q_WS_WINCE_WM
4101 wm65 = qt_wince_is_windows_mobile_65();
4102 if (wm65) {
4103 imageScrollbarHandleUp = QImage(sbhandleup_xpm);
4104 imageScrollbarHandleDown = QImage(sbhandledown_xpm);
4105 imageScrollbarGripUp = QImage(sbgripup_xpm);
4106 imageScrollbarGripDown = QImage(sbgripdown_xpm);
4107 imageScrollbarGripMiddle = QImage(sbgripmiddle_xpm);
4108
4109 if (!doubleControls) {
4110 imageScrollbarHandleUp = imageScrollbarHandleUp.scaledToHeight(imageScrollbarHandleUp.height() / 2);
4111 imageScrollbarHandleDown = imageScrollbarHandleDown.scaledToHeight(imageScrollbarHandleDown.height() / 2);
4112 imageScrollbarGripMiddle = imageScrollbarGripMiddle.scaledToHeight(imageScrollbarGripMiddle.height() / 2);
4113 imageScrollbarGripUp = imageScrollbarGripUp.scaledToHeight(imageScrollbarGripUp.height() / 2);
4114 imageScrollbarGripDown = imageScrollbarGripDown.scaledToHeight(imageScrollbarGripDown.height() / 2);
4115 } else {
4116 }
4117 tintImagesHigh(Qt::blue);
4118 }
4119#endif //Q_WS_WINCE_WM
4120}
4121
4122void QWindowsMobileStylePrivate::drawTabBarTab(QPainter *painter, const QStyleOptionTab *tab)
4123{
4124#ifndef QT_NO_TABBAR
4125#ifdef Q_WS_WINCE_WM
4126 if (wm65) {
4127 tintImagesButton(tab->palette.button().color());
4128 QRect r;
4129 r.setTopLeft(tab->rect.topRight() - QPoint(imageTabMiddle.width(), 0));
4130 r.setBottomRight(tab->rect.bottomRight());
4131 if (tab->state & QStyle::State_Selected) {
4132 painter->fillRect(tab->rect, tab->palette.window());
4133 } else {
4134 painter->fillRect(tab->rect, QColor(imageTabMiddle.pixel(0,0)));
4135 }
4136 if (tab->selectedPosition == QStyleOptionTab::NextIsSelected) {
4137 painter->drawImage(r, imageTabSelectedBegin);
4138 } else if (tab->position == QStyleOptionTab::End ||
4139 tab->position == QStyleOptionTab::OnlyOneTab) {
4140 if (!(tab->state & QStyle::State_Selected)) {
4141 painter->drawImage(r, imageTabEnd);
4142 }
4143 } else if (tab->state & QStyle::State_Selected) {
4144 painter->drawImage(r, imageTabSelectedEnd);
4145 } else {
4146 painter->drawImage(r, imageTabMiddle);
4147 }
4148 if (tab->position == QStyleOptionTab::Beginning && ! (tab->state & QStyle::State_Selected)) {
4149 painter->drawImage(tab->rect.topLeft() - QPoint(imageTabMiddle.width() * 0.60, 0), imageTabSelectedEnd);
4150 }
4151 //imageTabBarBig
4152 return;
4153 }
4154#endif //Q_WS_WINCE_WM
4155 painter->save();
4156 painter->setPen(tab->palette.shadow().color());
4157 if (doubleControls) {
4158 QPen pen = painter->pen();
4159 pen.setWidth(2);
4160 pen.setCapStyle(Qt::FlatCap);
4161 painter->setPen(pen);
4162 }
4163 if(tab->shape == QTabBar::RoundedNorth) {
4164 if (tab->state & QStyle::State_Selected) {
4165 painter->fillRect(tab->rect, tab->palette.light());
4166 painter->drawLine(tab->rect.topRight(), tab->rect.bottomRight());
4167 }
4168 else {
4169 painter->fillRect(tab->rect, tab->palette.button());
4170 painter->drawLine(tab->rect.bottomLeft() , tab->rect.bottomRight());
4171 painter->drawLine(tab->rect.topRight(), tab->rect.bottomRight());
4172 }
4173 }
4174 else if(tab->shape == QTabBar::RoundedSouth) {
4175 if (tab->state & QStyle::State_Selected) {
4176 painter->fillRect(tab->rect.adjusted(0,-2,0,0), tab->palette.light());
4177 painter->drawLine(tab->rect.topRight(), tab->rect.bottomRight());
4178 }
4179 else {
4180 painter->fillRect(tab->rect, tab->palette.button());
4181 if (doubleControls)
4182 painter->drawLine(tab->rect.topLeft() + QPoint(0,1), tab->rect.topRight() + QPoint(0,1));
4183 else
4184 painter->drawLine(tab->rect.topLeft(), tab->rect.topRight());
4185 painter->drawLine(tab->rect.topRight(), tab->rect.bottomRight());
4186 }
4187 }
4188 else if(tab->shape == QTabBar::RoundedEast) {
4189 if (tab->state & QStyle::State_Selected) {
4190 painter->fillRect(tab->rect, tab->palette.light());
4191 painter->drawLine(tab->rect.topLeft(), tab->rect.topRight());
4192 }
4193 else {
4194 painter->fillRect(tab->rect, tab->palette.button());
4195 painter->drawLine(tab->rect.topLeft(), tab->rect.bottomLeft());
4196 painter->drawLine(tab->rect.topLeft(), tab->rect.topRight());
4197 }
4198 }
4199 else if(tab->shape == QTabBar::RoundedWest) {
4200 if (tab->state & QStyle::State_Selected) {
4201 painter->fillRect(tab->rect, tab->palette.light());
4202 painter->drawLine(tab->rect.bottomLeft(), tab->rect.bottomRight());
4203 }
4204 else {
4205 painter->fillRect(tab->rect, tab->palette.button());
4206 painter->drawLine(tab->rect.topRight(), tab->rect.bottomRight());
4207 painter->drawLine(tab->rect.bottomLeft(), tab->rect.bottomRight());
4208 }
4209 }
4210 painter->restore();
4211#endif //QT_NO_TABBAR
4212}
4213
4214void QWindowsMobileStylePrivate::drawPanelItemViewSelected(QPainter *painter, const QStyleOptionViewItemV4 *option, QRect rect)
4215{
4216#ifdef Q_WS_WINCE_WM
4217 if (wm65) {
4218 QRect r;
4219 if (rect.isValid())
4220 r = rect;
4221 else
4222 r = option->rect;
4223 tintImagesHigh(option->palette.highlight().color());
4224
4225 painter->setPen(QColor(Qt::lightGray));
4226
4227 if (option->viewItemPosition == QStyleOptionViewItemV4::Middle) {
4228 painter->drawImage(r, imageListViewHighlightMiddle);
4229 } else if (option->viewItemPosition == QStyleOptionViewItemV4::Beginning) {
4230 painter->drawImage(r.adjusted(10, 0, 0, 0), imageListViewHighlightMiddle);
4231 } else if (option->viewItemPosition == QStyleOptionViewItemV4::End) {
4232 painter->drawImage(r.adjusted(0, 0, -10, 0), imageListViewHighlightMiddle);
4233 } else {
4234 painter->drawImage(r.adjusted(10, 0, -10, 0), imageListViewHighlightMiddle);
4235 }
4236
4237 QImage cornerLeft = imageListViewHighlightCornerLeft;
4238 QImage cornerRight = imageListViewHighlightCornerRight;
4239
4240 int width = r.width() > cornerRight.width() ? r.width() : cornerRight.width();
4241
4242 if ((width * 2) > r.width()) {
4243 width = (r.width() - 5) / 2;
4244 }
4245
4246 cornerLeft = cornerLeft.scaled(width, r.height());
4247 cornerRight = cornerRight.scaled(width, r.height());
4248
4249 if ((option->viewItemPosition == QStyleOptionViewItemV4::Beginning) || (option->viewItemPosition == QStyleOptionViewItemV4::OnlyOne) || !option->viewItemPosition) {
4250 painter->drawImage(r.topLeft(), cornerLeft);
4251 }
4252 if ((option->viewItemPosition == QStyleOptionViewItemV4::End) || (option->viewItemPosition == QStyleOptionViewItemV4::OnlyOne) || !option->viewItemPosition) {
4253 painter->drawImage(r.topRight() - QPoint(cornerRight.width(),0), cornerRight);
4254 }
4255 return;
4256 }
4257#endif //Q_WS_WINCE_WM
4258 QPalette::ColorGroup cg = option->state & QStyle::State_Enabled
4259 ? QPalette::Normal : QPalette::Disabled;
4260
4261 if (rect.isValid())
4262 painter->fillRect(rect, option->palette.brush(cg, QPalette::Highlight));
4263 else
4264 painter->fillRect(option->rect, option->palette.brush(cg, QPalette::Highlight));
4265}
4266
4267void QWindowsMobileStylePrivate::drawScrollbarGrip(QPainter *p, QStyleOptionSlider *newScrollbar, const QStyleOptionComplex *option, bool drawCompleteFrame)
4268{
4269#ifdef Q_WS_WINCE_WM
4270 if (wm65) {
4271 if (newScrollbar->orientation == Qt::Horizontal) {
4272 QTransform transform;
4273 transform.rotate(-90);
4274 QRect r = newScrollbar->rect;
4275 p->drawImage(r.adjusted(10, 0, -10, 0), imageScrollbarGripMiddle.transformed(transform));
4276 p->drawImage(r.topLeft(), imageScrollbarGripUp.transformed(transform));
4277 p->drawImage(r.topRight() - QPoint(imageScrollbarGripDown.height() - 1, 0), imageScrollbarGripDown.transformed(transform));
4278 } else {
4279 QRect r = newScrollbar->rect;
4280 p->drawImage(r.adjusted(0, 10, 0, -10), imageScrollbarGripMiddle);
4281 p->drawImage(r.topLeft(), imageScrollbarGripUp);
4282 p->drawImage(r.bottomLeft() - QPoint(0, imageScrollbarGripDown.height() - 1), imageScrollbarGripDown);
4283 }
4284 return ;
4285 }
4286#endif
4287 if (newScrollbar->orientation == Qt::Horizontal) {
4288 p->fillRect(newScrollbar->rect,option->palette.button());
4289 QRect r = newScrollbar->rect;
4290 p->drawLine(r.topLeft(), r.bottomLeft());
4291 p->drawLine(r.topRight(), r.bottomRight());
4292 if (smartphone) {
4293 p->drawLine(r.topLeft(), r.topRight());
4294 p->drawLine(r.bottomLeft(), r.bottomRight());
4295 }
4296 }
4297 else {
4298 p->fillRect(newScrollbar->rect,option->palette.button());
4299 QRect r = newScrollbar->rect;
4300 p->drawLine(r.topLeft(), r.topRight());
4301 p->drawLine(r.bottomLeft(), r.bottomRight());
4302 if (smartphone) {
4303 p->drawLine(r.topLeft(), r.bottomLeft());
4304 p->drawLine(r.topRight(), r.bottomRight());
4305 }
4306 }
4307 if (newScrollbar->state & QStyle::State_HasFocus) {
4308 QStyleOptionFocusRect fropt;
4309 fropt.QStyleOption::operator=(*newScrollbar);
4310 fropt.rect.setRect(newScrollbar->rect.x() + 2, newScrollbar->rect.y() + 2,
4311 newScrollbar->rect.width() - 5,
4312 newScrollbar->rect.height() - 5);
4313 }
4314 int gripMargin = doubleControls ? 4 : 2;
4315 int doubleLines = doubleControls ? 2 : 1;
4316 //If there is a frame around the scrollbar (abstractScrollArea),
4317 //then the margin is different, because of the missing frame
4318 int gripMarginFrame = doubleControls ? 3 : 1;
4319 if (drawCompleteFrame)
4320 gripMarginFrame = 0;
4321 //draw grips
4322 if (!smartphone)
4323 if (newScrollbar->orientation == Qt::Horizontal) {
4324 for (int i = -3; i < 3; i += 2) {
4325 p->drawLine(
4326 QPoint(newScrollbar->rect.center().x() + i * doubleLines + 1,
4327 newScrollbar->rect.top() + gripMargin +gripMarginFrame),
4328 QPoint(newScrollbar->rect.center().x() + i * doubleLines + 1,
4329 newScrollbar->rect.bottom() - gripMargin));
4330 }
4331 } else {
4332 for (int i = -2; i < 4 ; i += 2) {
4333 p->drawLine(
4334 QPoint(newScrollbar->rect.left() + gripMargin + gripMarginFrame ,
4335 newScrollbar->rect.center().y() + 1 + i * doubleLines - 1),
4336 QPoint(newScrollbar->rect.right() - gripMargin,
4337 newScrollbar->rect.center().y() + 1 + i * doubleLines - 1));
4338 }
4339 }
4340 if (!smartphone) {
4341 QRect r;
4342 if (doubleControls)
4343 r = option->rect.adjusted(1, 1, -1, 0);
4344 else
4345 r = option->rect.adjusted(0, 0, -1, 0);
4346 if (drawCompleteFrame && doubleControls)
4347 r.adjust(0, 0, 0, -1);
4348 //Check if the scrollbar is part of an abstractItemView and draw the frame according
4349 if (drawCompleteFrame)
4350 p->drawRect(r);
4351 else
4352 if (newScrollbar->orientation == Qt::Horizontal)
4353 p->drawLine(r.topLeft(), r.topRight());
4354 else
4355 p->drawLine(r.topLeft(), r.bottomLeft());
4356 }
4357}
4358
4359void QWindowsMobileStylePrivate::drawScrollbarHandleUp(QPainter *p, QStyleOptionSlider *opt, bool completeFrame, bool )
4360{
4361#ifdef Q_WS_WINCE_WM
4362 if (wm65) {
4363 tintImagesHigh(opt->palette.highlight().color());
4364 QRect r = opt->rect;
4365 if (opt->orientation == Qt::Horizontal) {
4366 QTransform transform;
4367 transform.rotate(-90);
4368 if (opt->state & QStyle::State_Sunken)
4369 p->drawImage(r.topLeft(), imageScrollbarHandleUpHigh.transformed(transform));
4370 else
4371 p->drawImage(r.topLeft(), imageScrollbarHandleUp.transformed(transform));
4372 } else {
4373 if (opt->state & QStyle::State_Sunken)
4374 p->drawImage(r.topLeft(), imageScrollbarHandleUpHigh);
4375 else
4376 p->drawImage(r.topLeft(), imageScrollbarHandleUp);
4377 }
4378 return ;
4379 }
4380#endif //Q_WS_WINCE_WM
4381
4382 QBrush fill = opt->palette.button();
4383 if (opt->state & QStyle::State_Sunken)
4384 fill = opt->palette.shadow();
4385
4386 QStyleOption arrowOpt = *opt;
4387 if (doubleControls)
4388 arrowOpt.rect = opt->rect.adjusted(4, 6, -5, -3);
4389 else
4390 arrowOpt.rect = opt->rect.adjusted(5, 6, -4, -3);
4391
4392 bool horizontal = (opt->orientation == Qt::Horizontal);
4393
4394 if (horizontal) {
4395 p->fillRect(opt->rect,fill);
4396 QRect r = opt->rect.adjusted(0,0,1,0);
4397 p->drawLine(r.topRight(), r.bottomRight());
4398 if (doubleControls)
4399 arrowOpt.rect.adjust(0, -2 ,0, -2);
4400 q_func()->proxy()->drawPrimitive(QStyle::PE_IndicatorArrowLeft, &arrowOpt, p, 0);
4401 } else {
4402 p->fillRect(opt->rect,fill);
4403 QRect r = opt->rect.adjusted(0, 0, 0, 1);
4404 p->drawLine(r.bottomLeft(), r.bottomRight());
4405 if (completeFrame)
4406 arrowOpt.rect.adjust(-2, 0, -2, 0);
4407 if (doubleControls)
4408 arrowOpt.rect.adjust(0, -4 , 0, -4);
4409 if (completeFrame && doubleControls)
4410 arrowOpt.rect.adjust(2, 0, 2, 0);
4411 q_func()->proxy()->drawPrimitive(QStyle::PE_IndicatorArrowUp, &arrowOpt, p, 0);
4412 }
4413}
4414
4415void QWindowsMobileStylePrivate::drawScrollbarHandleDown(QPainter *p, QStyleOptionSlider *opt, bool completeFrame, bool secondScrollBar)
4416{
4417#ifndef QT_NO_SCROLLBAR
4418#ifdef Q_WS_WINCE_WM
4419 if (wm65) {
4420 tintImagesHigh(opt->palette.highlight().color());
4421 QRect r = opt->rect;
4422 if (opt->orientation == Qt::Horizontal) {
4423 QTransform transform;
4424 transform.rotate(-90);
4425 if (opt->state & QStyle::State_Sunken)
4426 p->drawImage(r.topLeft(), imageScrollbarHandleDownHigh.transformed(transform));
4427 else
4428 p->drawImage(r.topLeft(), imageScrollbarHandleDown.transformed(transform));
4429 } else {
4430 if (opt->state & QStyle::State_Sunken)
4431 p->drawImage(r.topLeft(), imageScrollbarHandleDownHigh);
4432 else
4433 p->drawImage(r.topLeft(), imageScrollbarHandleDown);
4434 }
4435 return ;
4436 }
4437#endif //Q_WS_WINCE_WM
4438
4439 QBrush fill = opt->palette.button();
4440 if (opt->state & QStyle::State_Sunken)
4441 fill = opt->palette.shadow();
4442
4443 QStyleOption arrowOpt = *opt;
4444 if (doubleControls)
4445 arrowOpt.rect = opt->rect.adjusted(4, 0, -5, 3);
4446 else
4447 arrowOpt.rect = opt->rect.adjusted(5, 6, -4, -3);
4448
4449 bool horizontal = (opt->orientation == Qt::Horizontal);
4450
4451 if (horizontal) {
4452 p->fillRect(opt->rect,fill);
4453 QRect r = opt->rect.adjusted(0, 0, 0, 0);
4454 p->drawLine(r.topLeft(), r.bottomLeft());
4455 if (secondScrollBar)
4456 p->drawLine(r.topRight(), r.bottomRight());
4457 if (doubleControls)
4458 arrowOpt.rect.adjust(0, 4, 0, 4 );
4459 q_func()->proxy()->drawPrimitive(QStyle::PE_IndicatorArrowRight, &arrowOpt, p, 0);
4460 } else {
4461 p->fillRect(opt->rect,fill);
4462 QRect r = opt->rect.adjusted(0, -1, 0, -1);
4463 p->drawLine(r.topLeft(), r.topRight());
4464 if (secondScrollBar)
4465 p->drawLine(r.bottomLeft() + QPoint(0,1), r.bottomRight() + QPoint(0, 1));
4466 if (completeFrame)
4467 arrowOpt.rect.adjust(-2, 0, -2, 0);
4468 if (doubleControls)
4469 arrowOpt.rect.adjust(1, 0, 1, 0 );
4470 if (completeFrame && doubleControls)
4471 arrowOpt.rect.adjust(1, 0, 1, 0);
4472 q_func()->proxy()->drawPrimitive(QStyle::PE_IndicatorArrowDown, &arrowOpt, p, 0);
4473 }
4474#endif //QT_NO_SCROLLBAR
4475}
4476
4477void QWindowsMobileStylePrivate::drawScrollbarGroove(QPainter *p,const QStyleOptionSlider *opt)
4478{
4479#ifndef QT_NO_SCROLLBAR
4480#ifdef Q_OS_WINCE_WM
4481 if (wm65) {
4482 p->fillRect(opt->rect, QColor(231, 231, 231));
4483 return ;
4484 }
4485#endif
4486 QBrush fill;
4487 if (smartphone) {
4488 fill = opt->palette.light();
4489 p->fillRect(opt->rect, fill);
4490 fill = opt->palette.button();
4491 QImage image;
4492#ifndef QT_NO_IMAGEFORMAT_XPM
4493 if (opt->orientation == Qt::Horizontal)
4494 image = QImage(vertlines_xpm);
4495 else
4496 image = QImage(horlines_xpm);
4497#endif
4498 image.setColor(1, opt->palette.button().color().rgb());
4499 fill.setTextureImage(image);
4500 }
4501 else {
4502 fill = opt->palette.light();
4503 }
4504 p->fillRect(opt->rect, fill);
4505#endif //QT_NO_SCROLLBAR
4506}
4507
4508QWindowsMobileStyle::QWindowsMobileStyle(QWindowsMobileStylePrivate &dd) : QWindowsStyle(dd) {
4509 qApp->setEffectEnabled(Qt::UI_FadeMenu, false);
4510 qApp->setEffectEnabled(Qt::UI_AnimateMenu, false);
4511}
4512
4513QWindowsMobileStyle::QWindowsMobileStyle() : QWindowsStyle(*new QWindowsMobileStylePrivate) {
4514 qApp->setEffectEnabled(Qt::UI_FadeMenu, false);
4515 qApp->setEffectEnabled(Qt::UI_AnimateMenu, false);
4516}
4517
4518QWindowsMobileStylePrivate::QWindowsMobileStylePrivate() :QWindowsStylePrivate() {
4519
4520#ifdef Q_WS_WINCE
4521 doubleControls = qt_wince_is_high_dpi();
4522 smartphone = qt_wince_is_smartphone();
4523#else
4524 doubleControls = false;
4525 smartphone = false;
4526#endif //Q_WS_WINCE
4527
4528#ifndef QT_NO_IMAGEFORMAT_XPM
4529
4530 imageArrowDown = QImage(arrowdown_xpm);
4531 imageArrowUp = QImage(arrowdown_xpm).mirrored();
4532 imageArrowLeft = QImage(arrowleft_xpm);
4533 imageArrowRight = QImage(arrowleft_xpm).mirrored(true, false);
4534 if (doubleControls) {
4535 imageRadioButton = QImage(radiobutton_xpm);
4536 imageRadioButtonChecked = QImage(radiochecked_xpm);
4537 imageChecked = QImage(checkedlight_xpm);
4538 imageCheckedBold = QImage(checkedbold_xpm);
4539 imageRadioButtonHighlighted = QImage(highlightedradiobutton_xpm);
4540 imageClose = QImage(cross_big_xpm);
4541 imageMaximize = QImage(max_big_xpm);
4542 imageMinimize = QImage(min_big_xpm);
4543 imageNormalize = QImage(normal_big_xpm);
4544 } else {
4545 imageRadioButton = QImage(radiobutton_low_xpm);
4546 imageRadioButtonChecked = QImage(radiochecked_low_xpm);
4547 imageChecked = QImage(checkedlight_low_xpm);
4548 imageCheckedBold = QImage(checkedbold_low_xpm);
4549 imageRadioButtonHighlighted = QImage(highlightedradiobutton_low_xpm);
4550 imageClose = QImage(cross_small_xpm);
4551 imageMaximize = QImage(max_small_xpm);
4552 imageMinimize = QImage(min_small_xpm);
4553 imageNormalize = QImage(normal_small_xpm);
4554 }
4555
4556 setupWindowsMobileStyle65();
4557
4558
4559 imageArrowDownBig = QImage(arrowdown_big_xpm);
4560 imageArrowUpBig = QImage(arrowdown_big_xpm).mirrored();
4561 imageArrowLeftBig = QImage(arrowleft_big_xpm);
4562 imageArrowRightBig = QImage(arrowleft_big_xpm).mirrored(true, false);
4563
4564#endif
4565}
4566
4567void QWindowsMobileStyle::drawPrimitive(PrimitiveElement element, const QStyleOption *option,
4568 QPainter *painter, const QWidget *widget) const {
4569
4570 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
4571
4572 bool doRestore = false;
4573 QRect rect = option->rect;
4574 painter->setClipping(false);
4575
4576 switch (element) {
4577 case PE_PanelButtonTool: {
4578 int penSize = 1;
4579 if (d->doubleControls)
4580 penSize = 2;
4581 if (widget)
4582 if (QWidget *parent = widget->parentWidget())
4583#ifndef QT_NO_TABWIDGET
4584 if (qobject_cast<QTabWidget *>(parent->parentWidget())) {
4585#else
4586 if (false) {
4587#endif //QT_NO_TABBAR
4588 rect.adjust(0,2*penSize,0,-1*penSize);
4589 qDrawPlainRect(painter, rect, option->palette.shadow().color(), penSize, &option->palette.light());
4590 if (option->state & (State_Sunken))
4591 qDrawPlainRect(painter, rect, option->palette.shadow().color(), penSize, &option->palette.shadow());
4592 }
4593 else {
4594 if (!(option->state & State_AutoRaise) || (option->state & (State_Sunken | State_On)))
4595 qDrawPlainRect(painter,option->rect.adjusted(0, penSize, 0, -1 * penSize) ,
4596 option->palette.button().color(), 0, &option->palette.button());
4597 if (option->state & (State_Sunken)) {
4598 qDrawPlainRect(painter, rect, option->palette.shadow().color(), penSize, &option->palette.light());
4599 }
4600 if (option->state & (State_On)){
4601 QBrush fill = QBrush(option->palette.light().color());
4602 painter->fillRect(rect.adjusted(windowsItemFrame , windowsItemFrame ,
4603 -windowsItemFrame , -windowsItemFrame ), fill);
4604 qDrawPlainRect(painter, rect, option->palette.shadow().color(), penSize, &option->palette.light());
4605 }
4606 }
4607 break; }
4608 case PE_IndicatorButtonDropDown:
4609 if (d->doubleControls)
4610 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(), 2, &option->palette.button());
4611 else
4612 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(), 1, &option->palette.button());
4613 break;
4614#ifndef QT_NO_TABBAR
4615 case PE_IndicatorTabTear:
4616 if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
4617 bool rtl = tab->direction == Qt::RightToLeft;
4618 QRect rect = tab->rect;
4619 QPainterPath path;
4620 rect.setTop(rect.top() + ((tab->state & State_Selected) ? 1 : 3));
4621 rect.setBottom(rect.bottom() - ((tab->state & State_Selected) ? 0 : 2));
4622 path.moveTo(QPoint(rtl ? rect.right() : rect.left(), rect.top()));
4623 int count = 3;
4624 for(int jags = 1; jags <= count; ++jags, rtl = !rtl)
4625 path.lineTo(QPoint(rtl ? rect.left() : rect.right(), rect.top() + jags * rect.height()/count));
4626 painter->setPen(QPen(tab->palette.light(), qreal(.8)));
4627 painter->setBrush(tab->palette.background());
4628 painter->setRenderHint(QPainter::Antialiasing);
4629 painter->drawPath(path);
4630 }
4631 break;
4632#endif //QT_NO_TABBAR
4633
4634#ifndef QT_NO_TOOLBAR
4635 case PE_IndicatorToolBarSeparator: {
4636 painter->save();
4637 QPoint p1, p2;
4638 if (option->state & State_Horizontal) {
4639 p1 = QPoint(option->rect.width()/2, 0);
4640 p2 = QPoint(p1.x(), option->rect.height());
4641 } else {
4642 p1 = QPoint(0, option->rect.height()/2);
4643 p2 = QPoint(option->rect.width(), p1.y());
4644 }
4645
4646
4647 painter->setPen(option->palette.mid().color());
4648 if (d->doubleControls) {
4649 QPen pen = painter->pen();
4650 pen.setWidth(2);
4651 pen.setCapStyle(Qt::FlatCap);
4652 painter->setPen(pen);
4653 }
4654 painter->drawLine(p1, p2);
4655 painter->restore();
4656 break; }
4657#endif // QT_NO_TOOLBAR
4658 case PE_IndicatorToolBarHandle:
4659 painter->save();
4660 painter->translate(option->rect.x(), option->rect.y());
4661 if (option->state & State_Horizontal) {
4662 int x = option->rect.width() / 2 - 4;
4663 if (QApplication::layoutDirection() == Qt::RightToLeft)
4664 x -= 2;
4665 if (option->rect.height() > 4) {
4666 qDrawWinButton(painter,x-1,0,7,option->rect.height(), option->palette, false, 0);
4667
4668 qDrawShadePanel(painter, x, 1, 3, option->rect.height() - 1,
4669 option->palette, false, 0);
4670 qDrawShadePanel(painter, x + 3, 1, 3, option->rect.height() - 1,
4671 option->palette, false, 0);
4672 painter->setPen(option->palette.button().color());
4673 }
4674 } else {
4675 if (option->rect.width() > 4) {
4676 int y = option->rect.height() / 2 - 4;
4677 qDrawShadePanel(painter, 2, y, option->rect.width() - 2, 3,
4678 option->palette, false, 0);
4679 qDrawShadePanel(painter, 2, y + 3, option->rect.width() - 2, 3,
4680 option->palette, false, 0);
4681 }
4682 }
4683 painter->restore();
4684 break;
4685
4686#ifndef QT_NO_PROGRESSBAR
4687 case PE_IndicatorProgressChunk: {
4688 bool vertical = false;
4689 if (const QStyleOptionProgressBarV2 *pb2 = qstyleoption_cast<const QStyleOptionProgressBarV2 *>(option))
4690 vertical = (pb2->orientation == Qt::Vertical);
4691 if (!vertical) {
4692 painter->fillRect(option->rect.x(), option->rect.y()+2, option->rect.width(), option->rect.height()-4,
4693 option->palette.brush(QPalette::Highlight));
4694 } else {
4695 painter->fillRect(option->rect.x()+2, option->rect.y(), option->rect.width()-4, option->rect.height(),
4696 option->palette.brush(QPalette::Highlight));
4697 }
4698 }
4699 break;
4700#endif // QT_NO_PROGRESSBAR
4701
4702 case PE_FrameButtonTool: {
4703#ifndef QT_NO_DOCKWIDGET
4704 if (widget && widget->inherits("QDockWidgetTitleButton")) {
4705 if (const QDockWidget *dw = qobject_cast<const QDockWidget *>(widget->parent()))
4706 if (dw->isFloating()){
4707 qDrawPlainRect(painter,option->rect.adjusted(1, 1, 0, 0),
4708 option->palette.shadow().color(),1,&option->palette.button());
4709 return;
4710 }
4711 }
4712#endif // QT_NO_DOCKWIDGET
4713 QBrush fill;
4714 bool stippled;
4715 bool panel = (element == PE_PanelButtonTool);
4716 if ((!(option->state & State_Sunken ))
4717 && (!(option->state & State_Enabled)
4718 || ((option->state & State_Enabled ) && !(option->state & State_MouseOver)))
4719 && (option->state & State_On)) {
4720 fill = QBrush(option->palette.light().color(), Qt::Dense4Pattern);
4721 stippled = true;
4722 } else {
4723 fill = option->palette.brush(QPalette::Button);
4724 stippled = false;
4725 }
4726 if (option->state & (State_Raised | State_Sunken | State_On)) {
4727 if (option->state & State_AutoRaise) {
4728 if(option->state & (State_Enabled | State_Sunken | State_On)){
4729 if (panel)
4730 qDrawPlainRect(painter, option->rect,option->palette.shadow().color(),d->doubleControls, &fill);
4731 else
4732 qDrawPlainRect(painter, option->rect,option->palette.shadow().color(),d->doubleControls, &fill);
4733 }
4734 if (stippled) {
4735 painter->setPen(option->palette.button().color());
4736 painter->drawRect(option->rect.adjusted(1, 1, -2, -2));
4737 }
4738 } else {
4739 qDrawPlainRect(painter, option->rect,option->palette.shadow().color(),d->doubleControls, &fill);
4740 }
4741 } else {
4742 painter->fillRect(option->rect, fill);
4743 }
4744 break; }
4745
4746 case PE_FrameFocusRect:
4747 if (const QStyleOptionFocusRect *fropt = qstyleoption_cast<const QStyleOptionFocusRect *>(option)) {
4748 //### check for d->alt_down
4749 int penSize;
4750 d->doubleControls ? penSize = 2 : penSize = 1;
4751 bool alternateFocusStyle = false;
4752 if (!widget)
4753 alternateFocusStyle = true;
4754#ifndef QT_NO_COMBOBOX
4755 if (qobject_cast<const QComboBox*>(widget))
4756 alternateFocusStyle = true;
4757#endif
4758 if (!(fropt->state & State_KeyboardFocusChange) && !styleHint(SH_UnderlineShortcut, option))
4759 return;
4760 QRect r = option->rect;
4761 painter->save();
4762 painter->setBackgroundMode(Qt::TransparentMode);
4763 if (alternateFocusStyle) {
4764 QColor bg_col = fropt->backgroundColor;
4765 if (!bg_col.isValid())
4766 bg_col = painter->background().color();
4767 // Create an "XOR" color.
4768 QColor patternCol((bg_col.red() ^ 0xff) & 0xff,
4769 (bg_col.green() ^ 0xff) & 0xff,
4770 (bg_col.blue() ^ 0xff) & 0xff);
4771 painter->setBrush(QBrush(patternCol, Qt::Dense4Pattern));
4772 painter->setBrushOrigin(r.topLeft());
4773 }
4774 else {
4775 painter->setPen(option->palette.highlight().color());
4776 painter->setBrush(option->palette.highlight());
4777 }
4778 painter->setPen(Qt::NoPen);
4779 painter->setBrushOrigin(r.topLeft());
4780 painter->drawRect(r.left(), r.top(), r.width(), penSize); // Top
4781 painter->drawRect(r.left(), r.bottom(), r.width() + penSize - 1, penSize); // Bottom
4782 painter->drawRect(r.left(), r.top(), penSize, r.height()); // Left
4783 painter->drawRect(r.right(), r.top(), penSize, r.height()); // Right
4784 painter->restore();
4785 }
4786 break;
4787
4788 case PE_PanelButtonBevel: {
4789 QBrush fill;
4790 bool panel = element != PE_FrameButtonBevel;
4791 painter->setBrushOrigin(option->rect.topLeft());
4792 if (!(option->state & State_Sunken) && (option->state & State_On))
4793 fill = QBrush(option->palette.light().color(), Qt::Dense4Pattern);
4794 else
4795 fill = option->palette.brush(QPalette::Button);
4796
4797 if (option->state & (State_Raised | State_On | State_Sunken)) {
4798 if (d->doubleControls)
4799 qDrawPlainRect(painter, option->rect,option->palette.shadow().color(),2,&fill);
4800 else
4801 qDrawPlainRect(painter, option->rect,option->palette.shadow().color(),1,&fill);
4802 } else {
4803 if (panel)
4804 painter->fillRect(option->rect, fill);
4805 else
4806 painter->drawRect(option->rect);
4807 }
4808 break; }
4809
4810 case PE_FrameGroupBox:
4811 if (const QStyleOptionFrame *frame = qstyleoption_cast<const QStyleOptionFrame *>(option)) {
4812
4813 const QStyleOptionFrameV2 *frame2 = qstyleoption_cast<const QStyleOptionFrameV2 *>(option);
4814 if (frame2 && !(frame2->features & QStyleOptionFrameV2::Flat)) {
4815 QPen oldPen = painter->pen();
4816 QRect r = frame->rect;
4817 painter->setPen(frame->palette.shadow().color());
4818 painter->fillRect(r.x(), r.y(), r.x() + r.width()-1,
4819 r.y() + r.height() - windowsMobileFrameGroupBoxOffset,
4820 frame->palette.light());
4821 painter ->drawLine(r.topLeft() + QPoint(-2, 1), r.topRight()+ QPoint(0, 1));
4822 if (d->doubleControls)
4823 painter ->drawLine(r.topLeft() + QPoint(-2, 2), r.topRight()+ QPoint(0, 2));
4824 painter->setPen(oldPen);
4825 }
4826 }
4827 break;
4828
4829 case PE_IndicatorCheckBox: {
4830 QBrush fill;
4831 QRect r = d->doubleControls ? option->rect.adjusted(0,1,0,-1) : option->rect;
4832 if (option->state & State_NoChange)
4833 fill = QBrush(option->palette.shadow().color(), Qt::Dense4Pattern);
4834 else if (option->state & State_Sunken)
4835 fill = option->palette.button();
4836 else if (option->state & State_Enabled)
4837 fill = option->palette.base();
4838 else
4839 fill = option->palette.background();
4840 painter->save();
4841 doRestore = true;
4842 if (d->doubleControls && (option->state & State_NoChange))
4843 painter->fillRect(r, fill);
4844 else
4845 painter->fillRect(option->rect, fill);
4846 painter->setPen(option->palette.shadow().color());
4847 painter->drawLine(r.topLeft(), r.topRight());
4848 painter->drawLine(r.topRight(), r.bottomRight());
4849 painter->drawLine(r.bottomLeft(), r.bottomRight());
4850 painter->drawLine(r.bottomLeft(), r.topLeft());
4851 if (d->doubleControls) {
4852 QRect r0 = r.adjusted(1, 1, -1, -1);
4853 painter->drawLine(r0.topLeft(), r0.topRight());
4854 painter->drawLine(r0.topRight(), r0.bottomRight());
4855 painter->drawLine(r0.bottomLeft(), r0.bottomRight());
4856 painter->drawLine(r0.bottomLeft(), r0.topLeft());
4857 }
4858 if (option->state & State_HasFocus) {
4859 painter->setPen(option->palette.highlight().color());
4860 QRect r2 = d->doubleControls ? r.adjusted(2, 2, -2, -2) : r.adjusted(1, 1, -1, -1);
4861 painter->drawLine(r2.topLeft(), r2.topRight());
4862 painter->drawLine(r2.topRight(), r2.bottomRight());
4863 painter->drawLine(r2.bottomLeft(), r2.bottomRight());
4864 painter->drawLine(r2.bottomLeft(), r2.topLeft());
4865 if (d->doubleControls) {
4866 QRect r3 = r2.adjusted(1, 1, -1, -1);
4867 painter->drawLine(r3.topLeft(), r3.topRight());
4868 painter->drawLine(r3.topRight(), r3.bottomRight());
4869 painter->drawLine(r3.bottomLeft(), r3.bottomRight());
4870 painter->drawLine(r3.bottomLeft(), r3.topLeft());
4871 }
4872 painter->setPen(option->palette.shadow().color());
4873 }
4874 //fall through...
4875 }
4876 case PE_IndicatorViewItemCheck:
4877 case PE_Q3CheckListIndicator: {
4878 if (!doRestore) {
4879 painter->save();
4880 doRestore = true;
4881 }
4882 if (element == PE_Q3CheckListIndicator || element == PE_IndicatorViewItemCheck) {
4883 painter->setPen(option->palette.shadow().color());
4884 if (option->state & State_NoChange)
4885 painter->setBrush(option->palette.brush(QPalette::Button));
4886 if (d->doubleControls) {
4887 QRect r = QRect(option->rect.x(), option->rect.y(), windowsMobileitemViewCheckBoxSize * 2, windowsMobileitemViewCheckBoxSize * 2);
4888 qDrawPlainRect(painter, r, option->palette.shadow().color(), 2);
4889 } else {
4890 QRect r = QRect(option->rect.x(), option->rect.y(), windowsMobileitemViewCheckBoxSize, windowsMobileitemViewCheckBoxSize);
4891 qDrawPlainRect(painter, r, option->palette.shadow().color(), 1);
4892 }
4893 if (option->state & State_Enabled)
4894 d->imageChecked.setColor(1, option->palette.shadow().color().rgba());
4895 else
4896 d->imageChecked.setColor(1, option->palette.dark().color().rgba());
4897 if (!(option->state & State_Off)) {
4898 if (d->doubleControls)
4899 painter->drawImage(option->rect.x(), option->rect.y(), d->imageChecked);
4900 else
4901 painter->drawImage(option->rect.x() + 3, option->rect.y() + 3, d->imageChecked);
4902 }
4903 }
4904 else {
4905 if (option->state & State_NoChange)
4906 d->imageCheckedBold.setColor(1, option->palette.dark().color().rgba());
4907 else if (option->state & State_Enabled)
4908 d->imageCheckedBold.setColor(1, option->palette.shadow().color().rgba());
4909 else
4910 d->imageCheckedBold.setColor(1, option->palette.dark().color().rgba());
4911 if (!(option->state & State_Off)) {
4912 if (d->doubleControls)
4913 painter->drawImage(option->rect.x() + 2, option->rect.y(), d->imageCheckedBold);
4914 else
4915 painter->drawImage(option->rect.x() + 3, option->rect.y() + 3, d->imageCheckedBold);
4916 }
4917 }
4918 if (doRestore)
4919 painter->restore();
4920 break; }
4921 case PE_IndicatorRadioButton: {
4922 painter->save();
4923
4924 if (option->state & State_HasFocus) {
4925 d->imageRadioButtonHighlighted.setColor(1, option->palette.shadow().color().rgba());
4926 d->imageRadioButtonHighlighted.setColor(2, option->palette.highlight().color().rgba());
4927 painter->drawImage(option->rect.x(), option->rect.y(), d->imageRadioButtonHighlighted);
4928 }
4929 else {
4930 d->imageRadioButton.setColor(1, option->palette.shadow().color().rgba());
4931 painter->drawImage(option->rect.x(), option->rect.y(), d->imageRadioButton);
4932 }
4933 if (option->state & (State_Sunken | State_On)) {
4934 if (option->state & State_Enabled)
4935 d->imageRadioButtonChecked.setColor(1, option->palette.shadow().color().rgba());
4936 else
4937 d->imageRadioButtonChecked.setColor(1, option->palette.dark().color().rgba());
4938
4939 static const int offset = d->doubleControls ? 6 : 3;
4940 painter->drawImage(option->rect.x() + offset, option->rect.y() + offset, d->imageRadioButtonChecked);
4941 }
4942 painter->restore();
4943 break; }
4944 case PE_PanelButtonCommand:
4945 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
4946 QBrush fill;
4947 State flags = option->state;
4948 QPalette pal = option->palette;
4949 QRect r = option->rect;
4950 if ((flags & State_Sunken || flags & State_On) )
4951 fill = pal.brush(QPalette::Shadow);
4952 else
4953 fill = pal.brush(QPalette::Button);
4954 int singleLine = 1;
4955 int doubleLine = 2;
4956 if (d->doubleControls) {
4957 singleLine = 2;
4958 doubleLine = 4;
4959 }
4960 if (button->features & QStyleOptionButton::DefaultButton && flags & State_Sunken) {
4961 if (d->doubleControls) {
4962 qDrawPlainRect(painter, r, pal.shadow().color(), 1, &fill);
4963 qDrawPlainRect(painter, r.adjusted(1, 1, -1, 1), pal.shadow().color(), 1, &fill);
4964 }
4965 else {
4966 qDrawPlainRect(painter, r, pal.shadow().color(), 1, &fill);
4967 }
4968 } else if (flags & (State_Raised | State_Sunken | State_On | State_Sunken)) {
4969 qDrawPlainRect(painter, r, pal.shadow().color(), singleLine, &fill);
4970 } else {
4971 painter->fillRect(r, fill);
4972 }
4973 }
4974 break;
4975 case PE_FrameDefaultButton: {
4976 painter->save();
4977 painter->setPen(option->palette.shadow().color());
4978 QRect rect = option->rect;
4979 if (d->doubleControls) {
4980 rect.adjust(1, 1, -2, -2);
4981 painter->drawRect(rect);
4982 painter->drawRect(rect.adjusted(1, 1, -1, -1));
4983 }
4984
4985 else {
4986 rect.adjust(2, 2, -3, -3);
4987 painter->drawRect(rect);
4988 }
4989 painter->restore();
4990 break; }
4991 case PE_IndicatorSpinPlus:
4992 case PE_IndicatorSpinMinus: {
4993 QRect r = option->rect;
4994 int fw = proxy()->pixelMetric(PM_DefaultFrameWidth, option, widget)+2;
4995 QRect br = r.adjusted(fw, fw, -fw, -fw);
4996 int offset = (option->state & State_Sunken) ? 1 : 0;
4997 int step = (br.width() + 4) / 5;
4998 painter->fillRect(br.x() + offset, br.y() + offset +br.height() / 2 - step / 2,
4999 br.width(), step, option->palette.buttonText());
5000 if (element == PE_IndicatorSpinPlus)
5001 painter->fillRect(br.x() + br.width() / 2 - step / 2 + offset, br.y() + offset+4,
5002 step, br.height() - 7, option->palette.buttonText());
5003 break; }
5004 case PE_IndicatorSpinUp:
5005 case PE_IndicatorSpinDown: {
5006 painter->save();
5007 QPoint points[7];
5008 switch (element) {
5009 case PE_IndicatorSpinUp:
5010 points[0] = QPoint(-2, -4);
5011 points[1] = QPoint(-2, 2);
5012 points[2] = QPoint(-1, -3);
5013 points[3] = QPoint(-1, 1);
5014 points[4] = QPoint(0, -2);
5015 points[5] = QPoint(0, 0);
5016 points[6] = QPoint(1, -1);
5017 break;
5018 case PE_IndicatorSpinDown:
5019 points[0] = QPoint(0, -4);
5020 points[1] = QPoint(0, 2);
5021 points[2] = QPoint(-1, -3);
5022 points[3] = QPoint(-1, 1);
5023 points[4] = QPoint(-2, -2);
5024 points[5] = QPoint(-2, 0);
5025 points[6] = QPoint(-3, -1);
5026 break;
5027 default:
5028 break;
5029 }
5030 if (option->state & State_Sunken)
5031 painter->translate(proxy()->pixelMetric(PM_ButtonShiftHorizontal),
5032 proxy()->pixelMetric(PM_ButtonShiftVertical));
5033 if (option->state & State_Enabled) {
5034 painter->translate(option->rect.x() + option->rect.width() / 2,
5035 option->rect.y() + option->rect.height() / 2);
5036 painter->setPen(option->palette.buttonText().color());
5037 painter->drawLine(points[0], points[1]);
5038 painter->drawLine(points[2], points[3]);
5039 painter->drawLine(points[4], points[5]);
5040 painter->drawPoint(points[6]);
5041 } else {
5042 painter->translate(option->rect.x() + option->rect.width() / 2 + 1,
5043 option->rect.y() + option->rect.height() / 2 + 1);
5044 painter->setPen(option->palette.light().color());
5045 painter->drawLine(points[0], points[1]);
5046 painter->drawLine(points[2], points[3]);
5047 painter->drawLine(points[4], points[5]);
5048 painter->drawPoint(points[6]);
5049 painter->translate(-1, -1);
5050 painter->setPen(option->palette.mid().color());
5051 painter->drawLine(points[0], points[1]);
5052 painter->drawLine(points[2], points[3]);
5053 painter->drawLine(points[4], points[5]);
5054 painter->drawPoint(points[6]);
5055 }
5056 painter->restore();
5057 break; }
5058
5059 case PE_IndicatorArrowUpBig:
5060 case PE_IndicatorArrowDownBig:
5061 case PE_IndicatorArrowLeftBig:
5062 case PE_IndicatorArrowRightBig:
5063
5064 case PE_IndicatorArrowUp:
5065 case PE_IndicatorArrowDown:
5066 case PE_IndicatorArrowRight:
5067 case PE_IndicatorArrowLeft: {
5068 painter->save();
5069
5070 if (d->doubleControls) {
5071 QColor color;
5072 if (option->state & State_Sunken)
5073 color = option->palette.light().color();
5074 else
5075 color = option->palette.buttonText().color();
5076 QImage image;
5077 int xoffset, yoffset;
5078 switch (element) {
5079 case PE_IndicatorArrowUp:
5080 image = d->imageArrowUp;
5081 xoffset = 1;
5082 yoffset = 12;
5083 break;
5084 case PE_IndicatorArrowDown:
5085 image = d->imageArrowDown;
5086 xoffset = 1;
5087 yoffset =12;
5088 break;
5089 case PE_IndicatorArrowLeft:
5090 image = d->imageArrowLeft;
5091 xoffset = 8;
5092 yoffset = 2;
5093 break;
5094 case PE_IndicatorArrowRight:
5095 image = d->imageArrowRight;
5096 xoffset = 8;
5097 yoffset = 2;
5098 break;
5099 case PE_IndicatorArrowUpBig:
5100 image = d->imageArrowUpBig;
5101 xoffset = 3;
5102 yoffset = 12;
5103 break;
5104 case PE_IndicatorArrowDownBig:
5105 image = d->imageArrowDownBig;
5106 xoffset = 2;
5107 yoffset =12;
5108 break;
5109 case PE_IndicatorArrowLeftBig:
5110 image = d->imageArrowLeftBig;
5111 xoffset = 8;
5112 yoffset = 2;
5113 break;
5114 case PE_IndicatorArrowRightBig:
5115 image = d->imageArrowRightBig;
5116 xoffset = 8;
5117 yoffset = 2;
5118 break;
5119 default:
5120 break;
5121 }
5122 image.setColor(1, color.rgba());
5123 painter->drawImage(option->rect.x() + xoffset, option->rect.y() + yoffset, image);
5124 }
5125 else {
5126 QPoint points[7];
5127 switch (element) {
5128 case PE_IndicatorArrowUp:
5129 case PE_IndicatorArrowUpBig:
5130 points[0] = QPoint(-3, 1);
5131 points[1] = QPoint(3, 1);
5132 points[2] = QPoint(-2, 0);
5133 points[3] = QPoint(2, 0);
5134 points[4] = QPoint(-1, -1);
5135 points[5] = QPoint(1, -1);
5136 points[6] = QPoint(0, -2);
5137 break;
5138 case PE_IndicatorArrowDown:
5139 case PE_IndicatorArrowDownBig:
5140 points[0] = QPoint(-3, -1);
5141 points[1] = QPoint(3, -1);
5142 points[2] = QPoint(-2, 0);
5143 points[3] = QPoint(2, 0);
5144 points[4] = QPoint(-1, 1);
5145 points[5] = QPoint(1, 1);
5146 points[6] = QPoint(0, 2);
5147 break;
5148 case PE_IndicatorArrowRight:
5149 case PE_IndicatorArrowRightBig:
5150 points[0] = QPoint(-2, -3);
5151 points[1] = QPoint(-2, 3);
5152 points[2] = QPoint(-1, -2);
5153 points[3] = QPoint(-1, 2);
5154 points[4] = QPoint(0, -1);
5155 points[5] = QPoint(0, 1);
5156 points[6] = QPoint(1, 0);
5157 break;
5158 case PE_IndicatorArrowLeft:
5159 case PE_IndicatorArrowLeftBig:
5160 points[0] = QPoint(0, -3);
5161 points[1] = QPoint(0, 3);
5162 points[2] = QPoint(-1, -2);
5163 points[3] = QPoint(-1, 2);
5164 points[4] = QPoint(-2, -1);
5165 points[5] = QPoint(-2, 1);
5166 points[6] = QPoint(-3, 0);
5167 break;
5168 default:
5169 break;
5170 }
5171 if (option->state & State_Sunken)
5172 painter->setPen(option->palette.light().color());
5173 else
5174 painter->setPen(option->palette.buttonText().color());
5175 if (option->state & State_Enabled) {
5176 painter->translate(option->rect.x() + option->rect.width() / 2,
5177 option->rect.y() + option->rect.height() / 2 - 1);
5178 painter->drawLine(points[0], points[1]);
5179 painter->drawLine(points[2], points[3]);
5180 painter->drawLine(points[4], points[5]);
5181 painter->drawPoint(points[6]);
5182 } else {
5183 painter->translate(option->rect.x() + option->rect.width() / 2,
5184 option->rect.y() + option->rect.height() / 2 - 1);
5185 painter->setPen(option->palette.mid().color());
5186 painter->drawLine(points[0], points[1]);
5187 painter->drawLine(points[2], points[3]);
5188 painter->drawLine(points[4], points[5]);
5189 painter->drawPoint(points[6]);
5190 }
5191 }
5192 painter->restore();
5193 break; }
5194#ifndef QT_NO_TABWIDGET
5195 case PE_FrameTabWidget:
5196 if (const QStyleOptionTabWidgetFrame *tab = qstyleoption_cast<const QStyleOptionTabWidgetFrame *>(option)) {
5197 QRect rect = option->rect;
5198 QPalette pal = option->palette;
5199 painter->save();
5200 QBrush fill = pal.light();
5201 painter->fillRect(rect, fill);
5202 painter->setPen(pal.shadow().color());
5203 if (d->doubleControls) {
5204 QPen pen = painter->pen();
5205 pen.setWidth(2);
5206 pen.setCapStyle(Qt::FlatCap);
5207 painter->setPen(pen);
5208 }
5209 switch (tab->shape) {
5210 case QTabBar::RoundedNorth:
5211#ifdef Q_WS_WINCE_WM
5212 if (!d->wm65)
5213#endif
5214 {
5215 if (d->doubleControls)
5216 painter->drawLine(rect.topLeft() + QPoint(0, 1), rect.topRight() + QPoint(0, 1));
5217 else
5218 painter->drawLine(rect.topLeft(), rect.topRight());
5219 }
5220 break;
5221 case QTabBar::RoundedSouth:
5222#ifdef Q_WS_WINCE_WM
5223 if (!d->wm65)
5224#endif
5225 {
5226 if (d->doubleControls)
5227 painter->drawLine(rect.bottomLeft(), rect.bottomRight());
5228 else
5229 painter->drawLine(rect.bottomLeft(), rect.bottomRight());
5230 }
5231 break;
5232 case QTabBar::RoundedEast:
5233#ifdef Q_WS_WINCE_WM
5234 if (!d->wm65)
5235#endif
5236 painter->drawLine(rect.topRight(), rect.bottomRight());
5237 break;
5238 case QTabBar::RoundedWest:
5239#ifdef Q_WS_WINCE_WM
5240 if (!d->wm65)
5241#endif
5242 painter->drawLine(rect.topLeft(), rect.bottomLeft());
5243 break;
5244 case QTabBar::TriangularWest:
5245 case QTabBar::TriangularEast:
5246 case QTabBar::TriangularSouth:
5247 case QTabBar::TriangularNorth:
5248 if (d->doubleControls)
5249 qDrawPlainRect(painter, rect.adjusted(0,-2,0,0), option->palette.shadow().color(),2,&pal.light());
5250 else
5251 qDrawPlainRect(painter, rect, option->palette.shadow().color(),1,&pal.light());
5252 break;
5253 default:
5254 break;
5255 }
5256 painter->restore();
5257 }
5258 break;
5259#endif //QT_NO_TABBAR
5260#ifndef QT_NO_ITEMVIEWS
5261 case PE_PanelItemViewRow:
5262 if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast<const QStyleOptionViewItemV4 *>(option)) {
5263 QPalette::ColorGroup cg = vopt->state & QStyle::State_Enabled
5264 ? QPalette::Normal : QPalette::Disabled;
5265 if (cg == QPalette::Normal && !(vopt->state & QStyle::State_Active))
5266 cg = QPalette::Inactive;
5267
5268 if ((vopt->state & QStyle::State_Selected) && proxy()->styleHint(QStyle::SH_ItemView_ShowDecorationSelected, option, widget))
5269 d->drawPanelItemViewSelected(painter, vopt);
5270 else if (vopt->features & QStyleOptionViewItemV2::Alternate)
5271 painter->fillRect(vopt->rect, vopt->palette.brush(cg, QPalette::AlternateBase));
5272 else if (!(vopt->state & QStyle::State_Enabled))
5273 painter->fillRect(vopt->rect, vopt->palette.brush(cg, QPalette::Base));
5274 }
5275 break;
5276 case PE_PanelItemViewItem:
5277 if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast<const QStyleOptionViewItemV4 *>(option)) {
5278 QPalette::ColorGroup cg = vopt->state & QStyle::State_Enabled
5279 ? QPalette::Normal : QPalette::Disabled;
5280 if (cg == QPalette::Normal && !(vopt->state & QStyle::State_Active))
5281 cg = QPalette::Inactive;
5282
5283 if (vopt->showDecorationSelected && (vopt->state & QStyle::State_Selected)) {
5284 d->drawPanelItemViewSelected(painter, vopt);
5285 } else {
5286 if (vopt->backgroundBrush.style() != Qt::NoBrush) {
5287 QPointF oldBO = painter->brushOrigin();
5288 painter->setBrushOrigin(vopt->rect.topLeft());
5289 painter->fillRect(vopt->rect, vopt->backgroundBrush);
5290 painter->setBrushOrigin(oldBO);
5291 }
5292
5293 if (vopt->state & QStyle::State_Selected) {
5294 QRect textRect = proxy()->subElementRect(QStyle::SE_ItemViewItemText, option, widget);
5295 d->drawPanelItemViewSelected(painter, vopt, textRect);
5296 }
5297 }
5298 }
5299 break;
5300#endif //QT_NO_ITEMVIEWS
5301
5302 case PE_FrameWindow: {
5303 QPalette popupPal = option->palette;
5304 popupPal.setColor(QPalette::Light, option->palette.background().color());
5305 popupPal.setColor(QPalette::Midlight, option->palette.light().color());
5306 if (d->doubleControls)
5307 qDrawPlainRect(painter, option->rect, popupPal.shadow().color(),2,0);
5308 else
5309 qDrawPlainRect(painter, option->rect, popupPal.shadow().color(),1,0);
5310 break; }
5311 case PE_FrameTabBarBase: {
5312 break; }
5313 case PE_Widget:
5314 break;
5315 case PE_IndicatorMenuCheckMark: {
5316 int markW = option->rect.width() > 7 ? 7 : option->rect.width();
5317 int markH = markW;
5318 if (d->doubleControls)
5319 markW*=2;
5320 markH*=2;
5321 int posX = option->rect.x() + (option->rect.width() - markW)/2 + 1;
5322 int posY = option->rect.y() + (option->rect.height() - markH)/2;
5323
5324 QVector<QLineF> a;
5325 a.reserve(markH);
5326
5327 int i, xx, yy;
5328 xx = posX;
5329 yy = 3 + posY;
5330 for (i = 0; i < markW/2; ++i) {
5331 a << QLineF(xx, yy, xx, yy + 2);
5332 ++xx;
5333 ++yy;
5334 }
5335 yy -= 2;
5336 for (; i < markH; ++i) {
5337 a << QLineF(xx, yy, xx, yy + 2);
5338 ++xx;
5339 --yy;
5340 }
5341 if (!(option->state & State_Enabled) && !(option->state & State_On)) {
5342 int pnt;
5343 painter->setPen(option->palette.highlightedText().color());
5344 QPoint offset(1, 1);
5345 for (pnt = 0; pnt < a.size(); ++pnt)
5346 a[pnt].translate(offset.x(), offset.y());
5347 painter->drawLines(a);
5348 for (pnt = 0; pnt < a.size(); ++pnt)
5349 a[pnt].translate(offset.x(), offset.y());
5350 }
5351 painter->setPen(option->palette.text().color());
5352 painter->drawLines(a);
5353 break; }
5354 case PE_Frame:
5355 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),
5356 d->doubleControls ? 2 : 1, &option->palette.background());
5357 break;
5358 case PE_FrameLineEdit:
5359 case PE_FrameMenu:
5360 if (d->doubleControls)
5361 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),2);
5362 else
5363 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),1);
5364 break;
5365 case PE_FrameStatusBar:
5366 if (d->doubleControls)
5367 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),2,0);
5368 else
5369 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(),1,0);
5370 break;
5371
5372 default:
5373 QWindowsStyle::drawPrimitive(element, option, painter, widget);
5374 break;
5375 }
5376}
5377
5378void QWindowsMobileStyle::drawControl(ControlElement element, const QStyleOption *option,
5379 QPainter *painter, const QWidget *widget) const {
5380
5381
5382 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
5383
5384
5385 painter->setClipping(false);
5386 switch (element) {
5387 case CE_MenuBarEmptyArea:
5388 painter->setClipping(true);
5389 QWindowsStyle::drawControl(element, option, painter, widget);
5390 break;
5391 case CE_PushButtonBevel:
5392 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5393 QRect br = button->rect;
5394 int dbi = proxy()->pixelMetric(PM_ButtonDefaultIndicator, button, widget);
5395
5396 if (button->features & QStyleOptionButton::AutoDefaultButton)
5397 br.setCoords(br.left() + dbi, br.top() + dbi, br.right() - dbi, br.bottom() - dbi);
5398 QStyleOptionButton tmpBtn = *button;
5399 tmpBtn.rect = br;
5400 proxy()->drawPrimitive(PE_PanelButtonCommand, &tmpBtn, painter, widget);
5401 if (button->features & QStyleOptionButton::HasMenu) {
5402 int mbi = proxy()->pixelMetric(PM_MenuButtonIndicator, button, widget);
5403 QRect ir = button->rect;
5404 QStyleOptionButton newButton = *button;
5405 if (d->doubleControls)
5406 newButton.rect = QRect(ir.right() - mbi, ir.height() - 30, mbi, ir.height() - 4);
5407 else
5408 newButton.rect = QRect(ir.right() - mbi, ir.height() - 20, mbi, ir.height() - 4);
5409 proxy()->drawPrimitive(PE_IndicatorArrowDown, &newButton, painter, widget);
5410 }
5411 if (button->features & QStyleOptionButton::DefaultButton)
5412 proxy()->drawPrimitive(PE_FrameDefaultButton, option, painter, widget);
5413 }
5414 break;
5415 case CE_RadioButton:
5416 case CE_CheckBox:
5417 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5418 bool isRadio = (element == CE_RadioButton);
5419 QStyleOptionButton subopt = *button;
5420 subopt.rect = proxy()->subElementRect(isRadio ? SE_RadioButtonIndicator
5421 : SE_CheckBoxIndicator, button, widget);
5422 proxy()->drawPrimitive(isRadio ? PE_IndicatorRadioButton : PE_IndicatorCheckBox,
5423 &subopt, painter, widget);
5424 subopt.rect = proxy()->subElementRect(isRadio ? SE_RadioButtonContents
5425 : SE_CheckBoxContents, button, widget);
5426 proxy()->drawControl(isRadio ? CE_RadioButtonLabel : CE_CheckBoxLabel, &subopt, painter, widget);
5427 if (button->state & State_HasFocus) {
5428 QStyleOptionFocusRect fropt;
5429 fropt.QStyleOption::operator=(*button);
5430 fropt.rect = proxy()->subElementRect(isRadio ? SE_RadioButtonFocusRect
5431 : SE_CheckBoxFocusRect, button, widget);
5432 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
5433 }
5434 }
5435 break;
5436 case CE_RadioButtonLabel:
5437 case CE_CheckBoxLabel:
5438 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5439 uint alignment = visualAlignment(button->direction, Qt::AlignLeft | Qt::AlignVCenter);
5440 if (!styleHint(SH_UnderlineShortcut, button, widget))
5441 alignment |= Qt::TextHideMnemonic;
5442 QPixmap pix;
5443 QRect textRect = button->rect;
5444 if (!button->icon.isNull()) {
5445 pix = button->icon.pixmap(button->iconSize, button->state & State_Enabled ? QIcon::Normal : QIcon::Disabled);
5446 proxy()->drawItemPixmap(painter, button->rect, alignment, pix);
5447 if (button->direction == Qt::RightToLeft)
5448 textRect.setRight(textRect.right() - button->iconSize.width() - 4);
5449 else
5450 textRect.setLeft(textRect.left() + button->iconSize.width() + 4);
5451 }
5452 if (!button->text.isEmpty()){
5453 if (button->state & State_Enabled)
5454 proxy()->drawItemText(painter, textRect, alignment | Qt::TextShowMnemonic,
5455 button->palette, false, button->text, QPalette::WindowText);
5456 else
5457 proxy()->drawItemText(painter, textRect, alignment | Qt::TextShowMnemonic,
5458 button->palette, false, button->text, QPalette::Mid);
5459 }
5460 }
5461 break;
5462#ifndef QT_NO_PROGRESSBAR
5463 case CE_ProgressBarGroove:
5464 if (d->doubleControls)
5465 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(), 2, &option->palette.brush(QPalette::Window));
5466 else
5467 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(), 1, &option->palette.brush(QPalette::Window));
5468 break;
5469#endif //QT_NO_PROGRESSBAR
5470#ifndef QT_NO_TABBAR
5471 case CE_TabBarTab:
5472 if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
5473 proxy()->drawControl(CE_TabBarTabShape, tab, painter, widget);
5474 proxy()->drawControl(CE_TabBarTabLabel, tab, painter, widget);
5475 }
5476 break;
5477 case CE_TabBarTabShape:
5478 if (const QStyleOptionTab *tab = qstyleoption_cast<const QStyleOptionTab *>(option)) {
5479
5480 if (tab->shape == QTabBar::RoundedNorth || tab->shape == QTabBar::RoundedEast ||
5481 tab->shape == QTabBar::RoundedSouth || tab->shape == QTabBar::RoundedWest) {
5482 d->drawTabBarTab(painter, tab);
5483 } else {
5484 QCommonStyle::drawControl(element, option, painter, widget);
5485 }
5486 break; }
5487
5488#endif // QT_NO_TABBAR
5489
5490#ifndef QT_NO_TOOLBAR
5491 case CE_ToolBar:
5492 if (const QStyleOptionToolBar *toolBar = qstyleoption_cast<const QStyleOptionToolBar *>(option)) {
5493 QRect rect = option->rect;
5494 painter->save();
5495 painter->setPen(option->palette.dark().color());
5496 painter->fillRect(rect,option->palette.button());
5497 if (d->doubleControls) {
5498 QPen pen = painter->pen();
5499 pen.setWidth(4);
5500 painter->setPen(pen);
5501 }
5502 if (toolBar->toolBarArea == Qt::TopToolBarArea)
5503 painter->drawLine(rect.bottomLeft(), rect.bottomRight());
5504 else
5505 painter->drawLine(rect.topLeft(), rect.topRight());
5506 painter->restore();
5507 break; }
5508#endif //QT_NO_TOOLBAR
5509 case CE_Header:
5510 if (const QStyleOptionHeader *header = qstyleoption_cast<const QStyleOptionHeader *>(option)) {
5511 QRegion clipRegion = painter->clipRegion();
5512 painter->setClipRect(option->rect);
5513 proxy()->drawControl(CE_HeaderSection, header, painter, widget);
5514 QStyleOptionHeader subopt = *header;
5515 subopt.rect = proxy()->subElementRect(SE_HeaderLabel, header, widget);
5516 if (header->state & State_Sunken)
5517 subopt.palette.setColor(QPalette::ButtonText, header->palette.brightText().color());
5518 subopt.state |= QStyle::State_On;
5519 if (subopt.rect.isValid())
5520 proxy()->drawControl(CE_HeaderLabel, &subopt, painter, widget);
5521 if (header->sortIndicator != QStyleOptionHeader::None) {
5522 subopt.rect = proxy()->subElementRect(SE_HeaderArrow, option, widget);
5523 proxy()->drawPrimitive(PE_IndicatorHeaderArrow, &subopt, painter, widget);
5524 }
5525 painter->setClipRegion(clipRegion);
5526 }
5527 break;
5528
5529 case CE_HeaderSection:
5530 if (const QStyleOptionHeader *header = qstyleoption_cast<const QStyleOptionHeader *>(option)) {
5531 QBrush fill;
5532 QColor color;
5533 QRect rect = option->rect;
5534 painter->setPen(option->palette.shadow().color());
5535
5536 int penSize = 1;
5537
5538 if (d->doubleControls) {
5539 penSize = 2;
5540 QPen pen = painter->pen();
5541 pen.setWidth(2);
5542 pen.setCapStyle(Qt::FlatCap);
5543 painter->setPen(pen);
5544 }
5545
5546 //fix Frame
5547
5548 if (header->position == QStyleOptionHeader::End
5549 || (header->position == QStyleOptionHeader::OnlyOneSection
5550 && !header->text.isEmpty()))
5551 if (Qt::Horizontal == header->orientation )
5552 rect.adjust(0, 0, penSize, 0);
5553 else
5554 rect.adjust(0, 0, 0, penSize);
5555
5556 if (option->state & State_Sunken) {
5557 fill = option->palette.brush(QPalette::Shadow);
5558 color = option->palette.light().color();
5559 painter->drawLine(rect.bottomLeft(), rect.bottomRight());
5560 painter->drawLine(rect.topRight(), rect.bottomRight());
5561 rect.adjust(0, 0, -penSize, -penSize);
5562 }
5563 else {
5564 fill = option->palette.brush(QPalette::Button);
5565 color = option->palette.shadow().color();
5566 if (Qt::Horizontal == header->orientation )
5567 rect.adjust(-penSize, 0, 0, 0);
5568 else
5569 rect.adjust(0, -penSize, 0, 0);
5570 }
5571 if (Qt::Horizontal == header->orientation )
5572 rect.adjust(0,-penSize,0,0);
5573 else
5574 rect.adjust(-penSize, 0, 0, 0);
5575
5576 if (option->state & State_Sunken) {
5577 qDrawPlainRect(painter, rect, color, penSize, &fill);
5578 } else {
5579 //Corner
5580 rect.adjust(-penSize, 0, 0, 0);
5581 qDrawPlainRect(painter, rect, color, penSize, &fill);
5582 }
5583
5584 //Hack to get rid of some double lines... StyleOptions need a clean flag for that
5585 rect = option->rect;
5586#ifndef QT_NO_SCROLLAREA
5587 if (const QAbstractScrollArea *abstractScrollArea = qobject_cast<const QAbstractScrollArea *> (widget) ) {
5588 QRect rectScrollArea = abstractScrollArea->geometry();
5589 if (Qt::Horizontal == header->orientation )
5590 if ((rectScrollArea.right() - rect.right() ) > 1)
5591 painter->drawLine(rect.topRight(), rect.bottomRight());
5592 else ;
5593 else
5594 if ((rectScrollArea.bottom() - rect.bottom() ) > 1)
5595 painter->drawLine(rect.bottomLeft(), rect.bottomRight());
5596 }
5597#endif // QT_NO_SCROLLAREA
5598 break;
5599 }
5600#ifndef QT_NO_COMBOBOX
5601 case CE_ComboBoxLabel:
5602 // This is copied from qcommonstyle.cpp with the difference, that
5603 // the editRect isn't adjusted when calling drawItemText.
5604 if (const QStyleOptionComboBox *cb = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
5605 QRect editRect = proxy()->subControlRect(CC_ComboBox, cb, SC_ComboBoxEditField, widget);
5606 painter->save();
5607 painter->setClipRect(editRect);
5608 if (!cb->currentIcon.isNull()) {
5609 QIcon::Mode mode = cb->state & State_Enabled ? QIcon::Normal
5610 : QIcon::Disabled;
5611 QPixmap pixmap = cb->currentIcon.pixmap(cb->iconSize, mode);
5612 QRect iconRect(editRect);
5613 iconRect.setWidth(cb->iconSize.width() + 4);
5614 iconRect = alignedRect(cb->direction,
5615 Qt::AlignLeft | Qt::AlignVCenter,
5616 iconRect.size(), editRect);
5617 if (cb->editable)
5618 painter->fillRect(iconRect, option->palette.brush(QPalette::Base));
5619 proxy()->drawItemPixmap(painter, iconRect, Qt::AlignCenter, pixmap);
5620
5621 if (cb->direction == Qt::RightToLeft)
5622 editRect.translate(-4 - cb->iconSize.width(), 0);
5623 else
5624 editRect.translate(cb->iconSize.width() + 4, 0);
5625 }
5626 if (!cb->currentText.isEmpty() && !cb->editable) {
5627 proxy()->drawItemText(painter, editRect,
5628 visualAlignment(cb->direction, Qt::AlignLeft | Qt::AlignVCenter),
5629 cb->palette, cb->state & State_Enabled, cb->currentText);
5630 }
5631 painter->restore();
5632 }
5633 break;
5634#endif // QT_NO_COMBOBOX
5635#ifndef QT_NO_DOCKWIDGET
5636 case CE_DockWidgetTitle:
5637 if (const QStyleOptionDockWidget *dwOpt = qstyleoption_cast<const QStyleOptionDockWidget *>(option)) {
5638 const QStyleOptionDockWidgetV2 *v2
5639 = qstyleoption_cast<const QStyleOptionDockWidgetV2*>(option);
5640 bool verticalTitleBar = v2 == 0 ? false : v2->verticalTitleBar;
5641
5642 QRect rect = dwOpt->rect;
5643 QRect r = rect;
5644
5645 if (verticalTitleBar) {
5646 QSize s = r.size();
5647 s.transpose();
5648 r.setSize(s);
5649
5650 painter->save();
5651 painter->translate(r.left(), r.top() + r.width());
5652 painter->rotate(-90);
5653 painter->translate(-r.left(), -r.top());
5654 }
5655
5656 bool floating = false;
5657 bool active = dwOpt->state & State_Active;
5658 int menuOffset = 0; //used to center text when floated
5659 QColor inactiveCaptionTextColor = option->palette.highlightedText().color();
5660 if (dwOpt->movable) {
5661 QColor left, right;
5662
5663 //Titlebar gradient
5664 if (widget && widget->isWindow()) {
5665 floating = true;
5666 if (active) {
5667 right = option->palette.highlight().color();
5668 left = right.lighter(125);
5669 } else {
5670 left = option->palette.highlight().color().lighter(125);
5671 right = QColor(0xff, 0xff, 0xff);
5672 }
5673 menuOffset = 2;
5674 QBrush fillBrush(left);
5675 if (left != right) {
5676 QPoint p1(r.x(), r.top() + r.height()/2);
5677 QPoint p2(rect.right(), r.top() + r.height()/2);
5678 QLinearGradient lg(p1, p2);
5679 lg.setColorAt(0, left);
5680 lg.setColorAt(1, right);
5681 fillBrush = lg;
5682 }
5683 painter->fillRect(r.adjusted(0, 0, 0, -3), fillBrush);
5684 } else {
5685 painter->fillRect(r.adjusted(0, 0, 0, -3), option->palette.button().color());
5686 }
5687 painter->setPen(dwOpt->palette.color(QPalette::Light));
5688 if (!widget || !widget->isWindow()) {
5689 painter->drawLine(r.topLeft(), r.topRight());
5690 painter->setPen(dwOpt->palette.color(QPalette::Dark));
5691 painter->drawLine(r.bottomLeft(), r.bottomRight()); }
5692 }
5693 if (!dwOpt->title.isEmpty()) {
5694 QFont oldFont = painter->font();
5695 QFont newFont = oldFont;
5696 if (newFont.pointSize() > 2)
5697 newFont.setPointSize(newFont.pointSize() - 2);
5698 if (floating)
5699 newFont.setBold(true);
5700 painter->setFont(newFont);
5701 QPalette palette = dwOpt->palette;
5702 palette.setColor(QPalette::Window, inactiveCaptionTextColor);
5703 QRect titleRect = proxy()->subElementRect(SE_DockWidgetTitleBarText, option, widget);
5704 if (verticalTitleBar) {
5705 titleRect = QRect(r.left() + rect.bottom()
5706 - titleRect.bottom(),
5707 r.top() + titleRect.left() - rect.left(),
5708 titleRect.height(), titleRect.width());
5709 }
5710 proxy()->drawItemText(painter, titleRect,
5711 Qt::AlignLeft | Qt::AlignVCenter | Qt::TextShowMnemonic, palette,
5712 dwOpt->state & State_Enabled, dwOpt->title,
5713 floating ? (active ? QPalette::BrightText : QPalette::Window) : QPalette::WindowText);
5714 painter->setFont(oldFont);
5715 }
5716 if (verticalTitleBar)
5717 painter->restore();
5718 }
5719 return;
5720#endif // QT_NO_DOCKWIDGET
5721
5722 case CE_PushButtonLabel:
5723 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
5724 painter->save();
5725 QRect ir = button->rect;
5726 QPalette::ColorRole colorRole;
5727 uint tf = Qt::AlignVCenter | Qt::TextShowMnemonic;
5728 if (!styleHint(SH_UnderlineShortcut, button, widget))
5729 tf |= Qt::TextHideMnemonic;
5730
5731 if (button->state & (State_On | State_Sunken))
5732 colorRole = QPalette::Light;
5733 else
5734 colorRole = QPalette::ButtonText;
5735
5736 if (!button->icon.isNull()) {
5737 QIcon::Mode mode = button->state & State_Enabled ? QIcon::Normal
5738 : QIcon::Disabled;
5739 if (mode == QIcon::Normal && button->state & State_HasFocus)
5740 mode = QIcon::Active;
5741 QIcon::State state = QIcon::Off;
5742 if (button->state & State_On)
5743 state = QIcon::On;
5744 QPixmap pixmap = button->icon.pixmap(button->iconSize, mode, state);
5745 int pixw = pixmap.width();
5746 int pixh = pixmap.height();
5747 //Center the icon if there is no text
5748
5749 QPoint point;
5750 if (button->text.isEmpty()) {
5751 point = QPoint(ir.x() + ir.width() / 2 - pixw / 2,
5752 ir.y() + ir.height() / 2 - pixh / 2);
5753 } else {
5754 point = QPoint(ir.x() + 2, ir.y() + ir.height() / 2 - pixh / 2);
5755 }
5756 if (button->direction == Qt::RightToLeft)
5757 point.rx() += pixw;
5758
5759 if ((button->state & (State_On | State_Sunken)) && button->direction == Qt::RightToLeft)
5760 point.rx() -= proxy()->pixelMetric(PM_ButtonShiftHorizontal, option, widget) * 2;
5761
5762 painter->drawPixmap(visualPos(button->direction, button->rect, point), pixmap);
5763
5764 if (button->direction == Qt::RightToLeft)
5765 ir.translate(-4, 0);
5766 else
5767 ir.translate(pixw + 4, 0);
5768 ir.setWidth(ir.width() - (pixw + 4));
5769 // left-align text if there is
5770 if (!button->text.isEmpty())
5771 tf |= Qt::AlignLeft;
5772 } else {
5773 tf |= Qt::AlignHCenter;
5774 }
5775 if (button->state & State_Enabled)
5776 proxy()->drawItemText(painter, ir, tf, button->palette, true, button->text, colorRole);
5777 else
5778 proxy()->drawItemText(painter, ir, tf, button->palette, true, button->text, QPalette::Mid);
5779 painter->restore();
5780 }
5781 break;
5782 default:
5783 QWindowsStyle::drawControl(element, option, painter, widget);
5784 break;
5785 }
5786}
5787
5788void QWindowsMobileStyle::drawComplexControl(ComplexControl control, const QStyleOptionComplex *option,
5789 QPainter *painter, const QWidget *widget) const {
5790
5791 painter->setClipping(false);
5792 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
5793
5794 switch (control) {
5795#ifndef QT_NO_SLIDER
5796 case CC_Slider:
5797 if (const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
5798 int thickness = proxy()->pixelMetric(PM_SliderControlThickness, slider, widget);
5799 int len = proxy()->pixelMetric(PM_SliderLength, slider, widget);
5800 int ticks = slider->tickPosition;
5801 QRect groove = proxy()->subControlRect(CC_Slider, slider, SC_SliderGroove, widget);
5802 QRect handle = proxy()->subControlRect(CC_Slider, slider, SC_SliderHandle, widget);
5803
5804 if ((slider->subControls & SC_SliderGroove) && groove.isValid()) {
5805 int mid = thickness / 2;
5806 if (ticks & QSlider::TicksAbove)
5807 mid += len / 8;
5808 if (ticks & QSlider::TicksBelow)
5809 mid -= len / 8;
5810
5811 painter->setPen(slider->palette.shadow().color());
5812 if (slider->orientation == Qt::Horizontal) {
5813 qDrawPlainRect(painter, groove.x(), groove.y() + mid - 2,
5814 groove.width(), 4, option->palette.shadow().color(),1,0);
5815 } else {
5816 qDrawPlainRect(painter, groove.x()+mid-2, groove.y(),
5817 4, groove.height(), option->palette.shadow().color(),1,0);
5818 }
5819 }
5820 if (slider->subControls & SC_SliderTickmarks) {
5821 QStyleOptionSlider tmpSlider = *slider;
5822 tmpSlider.subControls = SC_SliderTickmarks;
5823 QCommonStyle::drawComplexControl(control, &tmpSlider, painter, widget);
5824 }
5825
5826 if (slider->subControls & SC_SliderHandle) {
5827 const QColor c0 = slider->palette.shadow().color();
5828 const QColor c1 = slider->palette.dark().color();
5829 const QColor c3 = slider->palette.midlight().color();
5830 const QColor c4 = slider->palette.dark().color();
5831 QBrush handleBrush;
5832
5833 if (slider->state & State_Enabled) {
5834 handleBrush = slider->palette.color(QPalette::Light);
5835 } else {
5836 handleBrush = QBrush(slider->palette.color(QPalette::Shadow),
5837 Qt::Dense4Pattern);
5838 }
5839 int x = handle.x(), y = handle.y(),
5840 wi = handle.width(), he = handle.height();
5841 int x1 = x;
5842 int x2 = x+wi-1;
5843 int y1 = y;
5844 int y2 = y+he-1;
5845
5846 Qt::Orientation orient = slider->orientation;
5847 bool tickAbove = slider->tickPosition == QSlider::TicksAbove;
5848 bool tickBelow = slider->tickPosition == QSlider::TicksBelow;
5849
5850 if (slider->state & State_HasFocus) {
5851 QStyleOptionFocusRect fropt;
5852 fropt.QStyleOption::operator=(*slider);
5853 fropt.rect = proxy()->subElementRect(SE_SliderFocusRect, slider, widget);
5854 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
5855 }
5856 if ((tickAbove && tickBelow) || (!tickAbove && !tickBelow)) {
5857 Qt::BGMode oldMode = painter->backgroundMode();
5858 painter->setBackgroundMode(Qt::OpaqueMode);
5859 qDrawPlainRect(painter, QRect(x, y, wi, he)
5860 ,slider->palette.shadow().color(),1,&handleBrush);
5861 painter->setBackgroundMode(oldMode);
5862 QBrush fill = QBrush(option->palette.light().color(), Qt::Dense4Pattern);
5863 if (slider->state & State_Sunken)
5864 painter->fillRect(QRectF(x1 + 2, y1 + 2, x2 - x1 - 3, y2 - y1 - 3),fill);
5865 return;
5866 }
5867 QSliderDirection dir;
5868 if (orient == Qt::Horizontal)
5869 if (tickAbove)
5870 dir = SliderUp;
5871 else
5872 dir = SliderDown;
5873 else
5874 if (tickAbove)
5875 dir = SliderLeft;
5876 else
5877 dir = SliderRight;
5878 QPolygon polygon;
5879 int d = 0;
5880 switch (dir) {
5881 case SliderUp:
5882 x2++;
5883 y1 = y1 + wi / 2;
5884 d = (wi + 1) / 2 - 1;
5885 polygon.setPoints(5, x1, y1, x1, y2, x2, y2, x2, y1, x1 + d,y1 - d);
5886 break;
5887 case SliderDown:
5888 x2++;
5889 y2 = y2 - wi/2;
5890 d = (wi + 1) / 2 - 1;
5891 polygon.setPoints(5, x1, y1, x1, y2, x1 + d,y2 + d, x2, y2, x2, y1);
5892 break;
5893 case SliderLeft:
5894 d = (he + 1) / 2 - 1;
5895 x1 = x1 + he/2;
5896 polygon.setPoints(5, x1, y1, x1 - d, y1 + d, x1,y2, x2, y2, x2, y1);
5897 y1--;
5898 break;
5899 case SliderRight:
5900 d = (he + 1) / 2 - 1;
5901 x2 = x2 - he/2;
5902 polygon.setPoints(5, x1, y1, x1, y2, x2,y2, x2 + d, y1 + d, x2, y1);
5903 y1--;
5904 break;
5905 }
5906 QBrush oldBrush = painter->brush();
5907 painter->setPen(Qt::NoPen);
5908 painter->setBrush(handleBrush);
5909 Qt::BGMode oldMode = painter->backgroundMode();
5910 painter->setBackgroundMode(Qt::OpaqueMode);
5911 painter->drawRect(x1, y1, x2-x1+1, y2-y1+1);
5912 painter->drawPolygon(polygon);
5913 QBrush fill = QBrush(option->palette.button().color(), Qt::Dense4Pattern);
5914 painter->setBrush(oldBrush);
5915 painter->setBackgroundMode(oldMode);
5916 if (slider->state & State_Sunken)
5917 painter->fillRect(QRectF(x1, y1, x2 - x1 + 1, y2 - y1 + 1),fill);
5918
5919 if (dir != SliderUp) {
5920 painter->setPen(c0);
5921 painter->drawLine(x1, y1, x2, y1);
5922 }
5923 if (dir != SliderLeft) {
5924 painter->setPen(c0);
5925 painter->drawLine(x1, y1, x1, y2);
5926 }
5927 if (dir != SliderRight) {
5928 painter->setPen(c0);
5929 painter->drawLine(x2, y1, x2, y2);
5930 }
5931 if (dir != SliderDown) {
5932 painter->setPen(c0);
5933 painter->drawLine(x1, y2, x2, y2);
5934 }
5935 switch (dir) {
5936 case SliderUp:
5937 if (slider->state & State_Sunken)
5938 painter->fillRect(QRectF(x1 + 3, y1 - d + 2, x2 - x1 - 4, y1),fill);
5939 painter->setPen(c0);
5940 painter->drawLine(x1, y1, x1 + d, y1 - d);
5941 d = wi - d - 1;
5942 painter->drawLine(x2, y1, x2 -d , y1 -d );
5943 d--;
5944 break;
5945 case SliderDown:
5946 if (slider->state & State_Sunken)
5947 painter->fillRect(QRectF(x1+3, y2 - d, x2 - x1 -4,y2 - 8),fill);
5948 painter->setPen(c0);
5949 painter->drawLine(x1, y2, x1 + d, y2 + d);
5950 d = wi - d - 1;
5951 painter->drawLine(x2, y2, x2 - d, y2 + d);
5952 d--;
5953 break;
5954 case SliderLeft:
5955 if (slider->state & State_Sunken)
5956 painter->fillRect(QRectF(x1 - d + 2, y1 + 2, x1, y2 - y1 - 3),fill);
5957 painter->setPen(c0);
5958 painter->drawLine(x1, y1, x1 - d, y1 + d);
5959 d = he - d - 1;
5960 painter->drawLine(x1, y2, x1 - d, y2 - d);
5961 d--;
5962 break;
5963 case SliderRight:
5964 if (slider->state & State_Sunken)
5965 painter->fillRect(QRectF(x2 - d - 4, y1 + 2, x2 - 4, y2 - y1 - 3),fill);
5966 painter->setPen(c0);
5967 painter->drawLine(x2, y1, x2 + d, y1 + d);
5968 painter->setPen(c0);
5969 d = he - d - 1;
5970 painter->drawLine(x2, y2, x2 + d, y2 - d);
5971 d--;
5972 break;
5973 }
5974 }
5975 }
5976 break;
5977#endif //QT_NO_SLIDER
5978#ifndef QT_NO_SCROLLBAR
5979 case CC_ScrollBar:
5980 painter->save();
5981 painter->setPen(option->palette.shadow().color());
5982 if (d->doubleControls) {
5983 QPen pen = painter->pen();
5984 pen.setWidth(2);
5985 pen.setCapStyle(Qt::SquareCap);
5986 painter->setPen(pen);
5987 }
5988 if (const QStyleOptionSlider *scrollbar = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
5989 d->drawScrollbarGroove(painter, scrollbar);
5990 // Make a copy here and reset it for each primitive.
5991 QStyleOptionSlider newScrollbar = *scrollbar;
5992 State saveFlags = scrollbar->state;
5993 //Check if the scrollbar is part of an abstractItemView and draw the frame according
5994 bool drawCompleteFrame = true;
5995 bool secondScrollBar = false;
5996 if (widget)
5997 if (QWidget *parent = widget->parentWidget()) {
5998 if (QAbstractScrollArea *abstractScrollArea = qobject_cast<QAbstractScrollArea *>(parent->parentWidget())) {
5999 drawCompleteFrame = (abstractScrollArea->frameStyle() == QFrame::NoFrame) || (abstractScrollArea->frameStyle() == QFrame::StyledPanel);
6000 secondScrollBar = (abstractScrollArea->horizontalScrollBar()->isVisible()
6001 && abstractScrollArea->verticalScrollBar()->isVisible()) ;
6002 }
6003#ifndef QT_NO_LISTVIEW
6004 if (QListView *listView = qobject_cast<QListView *>(parent->parentWidget()))
6005 drawCompleteFrame = false;
6006#endif
6007 }
6008 if (scrollbar->minimum == scrollbar->maximum)
6009 saveFlags |= State_Enabled;
6010 if (scrollbar->subControls & SC_ScrollBarSubLine) {
6011 newScrollbar.state = saveFlags;
6012 newScrollbar.rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarSubLine, widget);
6013 if (newScrollbar.rect.isValid()) {
6014 if (!(scrollbar->activeSubControls & SC_ScrollBarSubLine))
6015 newScrollbar.state &= ~(State_Sunken | State_MouseOver);
6016 d->drawScrollbarHandleUp(painter, &newScrollbar, drawCompleteFrame, secondScrollBar);
6017 }
6018 }
6019 if (scrollbar->subControls & SC_ScrollBarAddLine) {
6020 newScrollbar.rect = scrollbar->rect;
6021 newScrollbar.state = saveFlags;
6022 newScrollbar.rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarAddLine, widget);
6023 if (newScrollbar.rect.isValid()) {
6024 if (!(scrollbar->activeSubControls & SC_ScrollBarAddLine))
6025 newScrollbar.state &= ~(State_Sunken | State_MouseOver);
6026 d->drawScrollbarHandleDown(painter, &newScrollbar, drawCompleteFrame, secondScrollBar);
6027 }
6028 }
6029 if (scrollbar->subControls & SC_ScrollBarSlider) {
6030
6031 newScrollbar.rect = scrollbar->rect;
6032 newScrollbar.state = saveFlags;
6033 newScrollbar.rect = proxy()->subControlRect(control, &newScrollbar, SC_ScrollBarSlider, widget);
6034
6035 if (newScrollbar.rect.isValid()) {
6036 if (!(scrollbar->activeSubControls & SC_ScrollBarSlider))
6037 newScrollbar.state &= ~(State_Sunken | State_MouseOver);
6038 d->drawScrollbarGrip(painter, &newScrollbar, option, drawCompleteFrame);
6039 }
6040 }
6041 }
6042 painter->restore();
6043 break;
6044#endif // QT_NO_SCROLLBAR
6045 case CC_ToolButton:
6046 if (const QStyleOptionToolButton *toolbutton
6047 = qstyleoption_cast<const QStyleOptionToolButton *>(option)) {
6048 QRect button, menuarea;
6049 bool isTabWidget = false;
6050#ifndef QT_NO_TABWIDGET
6051 if (widget)
6052 if (QWidget *parent = widget->parentWidget())
6053 isTabWidget = (qobject_cast<QTabWidget *>(parent->parentWidget()));
6054#endif //QT_NO_TABWIDGET
6055
6056 button = proxy()->subControlRect(control, toolbutton, SC_ToolButton, widget);
6057 menuarea = proxy()->subControlRect(control, toolbutton, SC_ToolButtonMenu, widget);
6058 State buttonFlags = toolbutton->state;
6059 if (buttonFlags & State_AutoRaise) {
6060 if (!(buttonFlags & State_MouseOver)) {
6061 buttonFlags &= ~State_Raised;
6062 }
6063 }
6064 State menuFlags = buttonFlags;
6065 if (toolbutton->activeSubControls & SC_ToolButton)
6066 buttonFlags |= State_Sunken;
6067 if (toolbutton->activeSubControls & SC_ToolButtonMenu)
6068 menuFlags |= State_On;
6069 QStyleOption tool(0);
6070 tool.palette = toolbutton->palette;
6071 if (toolbutton->subControls & SC_ToolButton) {
6072 tool.rect = button;
6073 tool.state = buttonFlags;
6074 proxy()->drawPrimitive(PE_PanelButtonTool, &tool, painter, widget);
6075 }
6076 if (toolbutton->subControls & SC_ToolButtonMenu) {
6077 tool.rect = menuarea;
6078 tool.state = buttonFlags & State_Enabled;
6079 QStyleOption toolMenu(0);
6080 toolMenu = *toolbutton;
6081 toolMenu.state = menuFlags;
6082 if (buttonFlags & State_Sunken)
6083 proxy()->drawPrimitive(PE_PanelButtonTool, &toolMenu, painter, widget);
6084 QStyleOption arrowOpt(0);
6085 arrowOpt.rect = tool.rect;
6086 arrowOpt.palette = tool.palette;
6087 State flags = State_None;
6088 if (menuFlags & State_Enabled)
6089 flags |= State_Enabled;
6090 if ((menuFlags & State_On) && !(buttonFlags & State_Sunken)) {
6091 flags |= State_Sunken;
6092 painter->fillRect(menuarea, option->palette.shadow());
6093 }
6094 arrowOpt.state = flags;
6095 proxy()->drawPrimitive(PE_IndicatorArrowDown, &arrowOpt, painter, widget);
6096 }
6097 if (toolbutton->state & State_HasFocus) {
6098 QStyleOptionFocusRect focusRect;
6099 focusRect.QStyleOption::operator=(*toolbutton);
6100 focusRect.rect.adjust(3, 3, -3, -3);
6101 if (toolbutton->features & QStyleOptionToolButton::Menu)
6102 focusRect.rect.adjust(0, 0, -proxy()->pixelMetric(QStyle::PM_MenuButtonIndicator,
6103 toolbutton, widget), 0);
6104 proxy()->drawPrimitive(PE_FrameFocusRect, &focusRect, painter, widget);
6105 }
6106 QStyleOptionToolButton label = *toolbutton;
6107 if (isTabWidget)
6108 label.state = toolbutton->state;
6109 else
6110 label.state = toolbutton->state & State_Enabled;
6111 int fw = proxy()->pixelMetric(PM_DefaultFrameWidth, option, widget);
6112 label.rect = button.adjusted(fw, fw, -fw, -fw);
6113 proxy()->drawControl(CE_ToolButtonLabel, &label, painter, widget);
6114 }
6115 break;
6116
6117#ifndef QT_NO_GROUPBOX
6118 case CC_GroupBox:
6119 if (const QStyleOptionGroupBox *groupBox = qstyleoption_cast<const QStyleOptionGroupBox *>(option)) {
6120 // Draw frame
6121 painter->save();
6122 QFont font = painter->font();
6123 font.setBold(true);
6124 painter->setFont(font);
6125 QStyleOptionGroupBox groupBoxFont = *groupBox;
6126 groupBoxFont.fontMetrics = QFontMetrics(font);
6127 QRect textRect = proxy()->subControlRect(CC_GroupBox, &groupBoxFont, SC_GroupBoxLabel, widget);
6128 QRect checkBoxRect = proxy()->subControlRect(CC_GroupBox, option, SC_GroupBoxCheckBox, widget).adjusted(0,0,0,0);
6129 if (groupBox->subControls & QStyle::SC_GroupBoxFrame) {
6130 QStyleOptionFrameV2 frame;
6131 frame.QStyleOption::operator=(*groupBox);
6132 frame.features = groupBox->features;
6133 frame.lineWidth = groupBox->lineWidth;
6134 frame.midLineWidth = groupBox->midLineWidth;
6135 frame.rect = proxy()->subControlRect(CC_GroupBox, option, SC_GroupBoxFrame, widget);
6136 painter->save();
6137 QRegion region(groupBox->rect);
6138 if (!groupBox->text.isEmpty()) {
6139 bool ltr = groupBox->direction == Qt::LeftToRight;
6140 QRect finalRect = checkBoxRect.united(textRect);
6141 if (groupBox->subControls & QStyle::SC_GroupBoxCheckBox)
6142 finalRect.adjust(ltr ? -4 : 0, 0, ltr ? 0 : 4, 0);
6143 region -= finalRect;
6144 }
6145 proxy()->drawPrimitive(PE_FrameGroupBox, &frame, painter, widget);
6146 painter->restore();
6147 }
6148 // Draw checkbox
6149 if (groupBox->subControls & SC_GroupBoxCheckBox) {
6150 QStyleOptionButton box;
6151 box.QStyleOption::operator=(*groupBox);
6152 box.rect = checkBoxRect;
6153 proxy()->drawPrimitive(PE_IndicatorCheckBox, &box, painter, widget);
6154 }
6155 // Draw title
6156 if ((groupBox->subControls & QStyle::SC_GroupBoxLabel) && !groupBox->text.isEmpty()) {
6157 QColor textColor = groupBox->textColor;
6158 if (textColor.isValid())
6159 painter->setPen(textColor);
6160 else
6161 painter->setPen(groupBox->palette.link().color());
6162 painter->setPen(groupBox->palette.link().color());
6163
6164 int alignment = int(groupBox->textAlignment);
6165 if (!styleHint(QStyle::SH_UnderlineShortcut, option, widget))
6166 alignment |= Qt::TextHideMnemonic;
6167
6168 if (groupBox->state & State_Enabled)
6169 proxy()->drawItemText(painter, textRect, Qt::TextShowMnemonic | Qt::AlignHCenter | alignment,
6170 groupBox->palette, true, groupBox->text,
6171 textColor.isValid() ? QPalette::NoRole : QPalette::Link);
6172 else
6173 proxy()->drawItemText(painter, textRect, Qt::TextShowMnemonic | Qt::AlignHCenter | alignment,
6174 groupBox->palette, true, groupBox->text, QPalette::Mid);
6175 if (groupBox->state & State_HasFocus) {
6176 QStyleOptionFocusRect fropt;
6177 fropt.QStyleOption::operator=(*groupBox);
6178 fropt.rect = textRect;
6179 proxy()->drawPrimitive(PE_FrameFocusRect, &fropt, painter, widget);
6180 }
6181 }
6182 painter->restore();
6183 }
6184 break;
6185#endif //QT_NO_GROUPBOX
6186
6187#ifndef QT_NO_COMBOBOX
6188 case CC_ComboBox:
6189 if (const QStyleOptionComboBox *cmb = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6190 QBrush editBrush = cmb->palette.brush(QPalette::Base);
6191 if ((cmb->subControls & SC_ComboBoxFrame) && cmb->frame)
6192 qDrawPlainRect(painter, option->rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_ComboBoxFrameWidth, option, widget), &editBrush);
6193 else
6194 painter->fillRect(option->rect, editBrush);
6195 State flags = State_None;
6196 QRect ar = proxy()->subControlRect(CC_ComboBox, cmb, SC_ComboBoxArrow, widget);
6197 if ((option->state & State_On)) {
6198 painter->fillRect(ar.adjusted(0, 0, 1, 1),cmb->palette.brush(QPalette::Shadow));
6199 }
6200 if (d->doubleControls)
6201 ar.adjust(5, 0, 5, 0);
6202 else
6203 ar.adjust(2, 0, -2, 0);
6204 if (option->state & State_Enabled)
6205 flags |= State_Enabled;
6206 if (option->state & State_On)
6207 flags |= State_Sunken;
6208 QStyleOption arrowOpt(0);
6209 arrowOpt.rect = ar;
6210 arrowOpt.palette = cmb->palette;
6211 arrowOpt.state = flags;
6212 proxy()->drawPrimitive(PrimitiveElement(PE_IndicatorArrowDownBig), &arrowOpt, painter, widget);
6213 if (cmb->subControls & SC_ComboBoxEditField) {
6214 QRect re = proxy()->subControlRect(CC_ComboBox, cmb, SC_ComboBoxEditField, widget);
6215 if (cmb->state & State_HasFocus && !cmb->editable)
6216 painter->fillRect(re.x(), re.y(), re.width(), re.height(),
6217 cmb->palette.brush(QPalette::Highlight));
6218 if (cmb->state & State_HasFocus) {
6219 painter->setPen(cmb->palette.highlightedText().color());
6220 painter->setBackground(cmb->palette.highlight());
6221 } else {
6222 painter->setPen(cmb->palette.text().color());
6223 painter->setBackground(cmb->palette.background());
6224 }
6225 if (cmb->state & State_HasFocus && !cmb->editable) {
6226 QStyleOptionFocusRect focus;
6227 focus.QStyleOption::operator=(*cmb);
6228 focus.rect = proxy()->subElementRect(SE_ComboBoxFocusRect, cmb, widget);
6229 focus.state |= State_FocusAtBorder;
6230 focus.backgroundColor = cmb->palette.highlight().color();
6231 if ((option->state & State_On))
6232 proxy()->drawPrimitive(PE_FrameFocusRect, &focus, painter, widget);
6233 }
6234 }
6235 }
6236 break;
6237#endif // QT_NO_COMBOBOX
6238
6239
6240#ifndef QT_NO_SPINBOX
6241 case CC_SpinBox:
6242 if (const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6243 QStyleOptionSpinBox copy = *spinBox;
6244 //PrimitiveElement primitiveElement;
6245 int primitiveElement;
6246
6247 if (spinBox->frame && (spinBox->subControls & SC_SpinBoxFrame)) {
6248 QRect r = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxFrame, widget);
6249 qDrawPlainRect(painter, r, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget),0);
6250 }
6251 QPalette shadePal(option->palette);
6252 shadePal.setColor(QPalette::Button, option->palette.light().color());
6253 shadePal.setColor(QPalette::Light, option->palette.base().color());
6254 if (spinBox->subControls & SC_SpinBoxUp) {
6255 copy.subControls = SC_SpinBoxUp;
6256 QPalette pal2 = spinBox->palette;
6257 if (!(spinBox->stepEnabled & QAbstractSpinBox::StepUpEnabled)) {
6258 pal2.setCurrentColorGroup(QPalette::Disabled);
6259 copy.state &= ~State_Enabled;
6260 }
6261 copy.palette = pal2;
6262 if (spinBox->activeSubControls == SC_SpinBoxUp && (spinBox->state & State_Sunken)) {
6263 copy.state |= State_On;
6264 copy.state |= State_Sunken;
6265 } else {
6266 copy.state |= State_Raised;
6267 copy.state &= ~State_Sunken;
6268 }
6269 primitiveElement = (spinBox->buttonSymbols == QAbstractSpinBox::PlusMinus ? PE_IndicatorArrowUpBig
6270 : PE_IndicatorArrowUpBig);
6271 copy.rect = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxUp, widget);
6272 if (copy.state & (State_Sunken | State_On))
6273 qDrawPlainRect(painter, copy.rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), &copy.palette.brush(QPalette::Shadow));
6274 else
6275 qDrawPlainRect(painter, copy.rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), &copy.palette.brush(QPalette::Base));
6276 copy.rect.adjust(proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0, -pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0);
6277 proxy()->drawPrimitive(PrimitiveElement(primitiveElement), &copy, painter, widget);
6278 }
6279 if (spinBox->subControls & SC_SpinBoxDown) {
6280 copy.subControls = SC_SpinBoxDown;
6281 copy.state = spinBox->state;
6282 QPalette pal2 = spinBox->palette;
6283 if (!(spinBox->stepEnabled & QAbstractSpinBox::StepDownEnabled)) {
6284 pal2.setCurrentColorGroup(QPalette::Disabled);
6285 copy.state &= ~State_Enabled;
6286 }
6287 copy.palette = pal2;
6288 if (spinBox->activeSubControls == SC_SpinBoxDown && (spinBox->state & State_Sunken)) {
6289 copy.state |= State_On;
6290 copy.state |= State_Sunken;
6291 } else {
6292 copy.state |= State_Raised;
6293 copy.state &= ~State_Sunken;
6294 }
6295 primitiveElement = (spinBox->buttonSymbols == QAbstractSpinBox::PlusMinus ? PE_IndicatorArrowDownBig
6296 : PE_IndicatorArrowDownBig);
6297 copy.rect = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxDown, widget);
6298 qDrawPlainRect(painter, copy.rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), &copy.palette.brush(QPalette::Base));
6299 if (copy.state & (State_Sunken | State_On))
6300 qDrawPlainRect(painter, copy.rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), &copy.palette.brush(QPalette::Shadow));
6301 else
6302 qDrawPlainRect(painter, copy.rect, option->palette.shadow().color(), proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), &copy.palette.brush(QPalette::Base));
6303 copy.rect.adjust(3, 0, -4, 0);
6304 if (primitiveElement == PE_IndicatorArrowUp || primitiveElement == PE_IndicatorArrowDown) {
6305 int frameWidth = proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget);
6306 copy.rect = copy.rect.adjusted(frameWidth, frameWidth, -frameWidth, -frameWidth);
6307 proxy()->drawPrimitive(PrimitiveElement(primitiveElement), &copy, painter, widget);
6308 }
6309 else {
6310 proxy()->drawPrimitive(PrimitiveElement(primitiveElement), &copy, painter, widget);
6311 }
6312 if (spinBox->frame && (spinBox->subControls & SC_SpinBoxFrame)) {
6313 QRect r = proxy()->subControlRect(CC_SpinBox, spinBox, SC_SpinBoxEditField, widget);
6314 }
6315 }
6316 }
6317 break;
6318#endif // QT_NO_SPINBOX
6319
6320 default:
6321 QWindowsStyle::drawComplexControl(control, option, painter, widget);
6322 break;
6323 }
6324}
6325
6326QSize QWindowsMobileStyle::sizeFromContents(ContentsType type, const QStyleOption *option,
6327 const QSize &size, const QWidget *widget) const {
6328
6329 QSize newSize = QWindowsStyle::sizeFromContents(type, option, size, widget);
6330 switch (type) {
6331 case CT_PushButton:
6332 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
6333 newSize = QCommonStyle::sizeFromContents(type, option, size, widget);
6334 int w = newSize.width(),
6335 h = newSize.height();
6336 int defwidth = 0;
6337 if (button->features & QStyleOptionButton::AutoDefaultButton)
6338 defwidth = 2 * proxy()->pixelMetric(PM_ButtonDefaultIndicator, button, widget);
6339
6340 int minwidth = int(QStyleHelper::dpiScaled(55.0f));
6341 int minheight = int(QStyleHelper::dpiScaled(19.0f));
6342
6343 if (w < minwidth + defwidth && button->icon.isNull())
6344 w = minwidth + defwidth;
6345 if (h < minheight + defwidth)
6346 h = minheight + defwidth;
6347 newSize = QSize(w + 4, h + 4);
6348 }
6349 break;
6350
6351#ifndef QT_NO_GROUPBOX
6352 case CT_GroupBox:
6353 if (const QGroupBox *grb = static_cast<const QGroupBox *>(widget)) {
6354 newSize = size + QSize(!grb->isFlat() ? 16 : 0, !grb->isFlat() ? 16 : 0);
6355 }
6356 break;
6357#endif // QT_NO_GROUPBOX
6358
6359 case CT_RadioButton:
6360 case CT_CheckBox:
6361 newSize = size;
6362 if (const QStyleOptionButton *button = qstyleoption_cast<const QStyleOptionButton *>(option)) {
6363 bool isRadio = (type == CT_RadioButton);
6364 QRect irect = visualRect(button->direction, button->rect,
6365 proxy()->subElementRect(isRadio ? SE_RadioButtonIndicator
6366 : SE_CheckBoxIndicator, button, widget));
6367 int h = proxy()->pixelMetric(isRadio ? PM_ExclusiveIndicatorHeight
6368 : PM_IndicatorHeight, button, widget);
6369 int margins = (!button->icon.isNull() && button->text.isEmpty()) ? 0 : 10;
6370 if (d_func()->doubleControls)
6371 margins *= 2;
6372 newSize += QSize(irect.right() + margins, 1);
6373 newSize.setHeight(qMax(newSize.height(), h));
6374 }
6375 break;
6376#ifndef QT_NO_COMBOBOX
6377 case CT_ComboBox:
6378 if (const QStyleOptionComboBox *comboBox = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6379 int fw = comboBox->frame ? proxy()->pixelMetric(PM_ComboBoxFrameWidth, option, widget) * 2 : 0;
6380 newSize = QSize(newSize.width() + fw + 9, newSize.height() + fw); //Nine is a magic Number - See CommonStyle for real magic (23)
6381 }
6382 break;
6383#endif
6384#ifndef QT_NO_SPINBOX
6385 case CT_SpinBox:
6386 if (const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6387 int fw = spinBox->frame ? proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget) * 2 : 0;
6388 newSize = QSize(newSize.width() + fw-5, newSize.height() + fw-6);
6389 }
6390 break;
6391#endif
6392#ifndef QT_NO_LINEEDIT
6393 case CT_LineEdit:
6394 newSize += QSize(0,1);
6395 break;
6396#endif
6397 case CT_ToolButton:
6398 newSize = QSize(newSize.width() + 1, newSize.height());
6399 break;
6400 case CT_TabBarTab:
6401 if (d_func()->doubleControls)
6402 newSize = QSize(newSize.width(), 42);
6403 else
6404 newSize = QSize(newSize.width(), 21);
6405 break;
6406 case CT_HeaderSection:
6407 newSize += QSize(4, 2);
6408 break;
6409#ifndef QT_NO_ITEMVIEWS
6410#ifdef Q_WS_WINCE_WM
6411 case CT_ItemViewItem:
6412 if (d_func()->wm65)
6413 if (d_func()->doubleControls)
6414 newSize.setHeight(46);
6415 else
6416 newSize.setHeight(23);
6417 break;
6418#endif //Q_WS_WINCE_WM
6419#endif //QT_NO_ITEMVIEWS
6420 default:
6421 break;
6422 }
6423 return newSize;
6424}
6425
6426QRect QWindowsMobileStyle::subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const {
6427
6428 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
6429 QRect rect = QWindowsStyle::subElementRect(element, option, widget);
6430 switch (element) {
6431#ifndef QT_NO_TABWIDGET
6432 case SE_TabWidgetTabBar:
6433 if (d->doubleControls)
6434 rect.adjust(-2, 0, 2, 0);
6435 else
6436 rect.adjust(-2, 0, 2, 0);
6437 break;
6438#endif //QT_NO_TABWIDGET
6439 case SE_CheckBoxFocusRect:
6440 rect.adjust(1,0,-2,-1);
6441 break;
6442 case SE_RadioButtonFocusRect:
6443 rect.adjust(1,1,-2,-2);
6444 break;
6445 default:
6446 break;
6447#ifndef QT_NO_SLIDER
6448 case SE_SliderFocusRect:
6449 if (const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6450 rect = slider->rect;
6451 }
6452 break;
6453 case SE_PushButtonFocusRect:
6454 if (d->doubleControls)
6455 rect.adjust(-1, -1, 0, 0);
6456 break;
6457#endif // QT_NO_SLIDER
6458#ifndef QT_NO_ITEMVIEWS
6459 case SE_ItemViewItemFocusRect:
6460#ifdef Q_WS_WINCE_WM
6461 if (d->wm65)
6462 rect = QRect();
6463#endif
6464 break;
6465#endif //QT_NO_ITEMVIEWS
6466 }
6467 return rect;
6468}
6469
6470QRect QWindowsMobileStyle::subControlRect(ComplexControl control, const QStyleOptionComplex *option,
6471 SubControl subControl, const QWidget *widget) const {
6472
6473 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
6474
6475 QRect rect = QCommonStyle::subControlRect(control, option, subControl, widget);
6476 switch (control) {
6477
6478#ifndef QT_NO_SCROLLBAR
6479 case CC_ScrollBar:
6480 if (const QStyleOptionSlider *scrollbar = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6481 int sliderButtonExtent = proxy()->pixelMetric(PM_ScrollBarExtent, scrollbar, widget);
6482 float stretchFactor = 1.4f;
6483 int sliderButtonExtentDir = int (sliderButtonExtent * stretchFactor);
6484
6485#ifdef Q_WS_WINCE_WM
6486 if (d->wm65)
6487 {
6488 sliderButtonExtent = d->imageScrollbarHandleUp.width();
6489 sliderButtonExtentDir = d->imageScrollbarHandleUp.height();
6490 }
6491#endif //Q_WS_WINCE_WM
6492
6493 int sliderlen;
6494 int maxlen = ((scrollbar->orientation == Qt::Horizontal) ?
6495 scrollbar->rect.width() : scrollbar->rect.height()) - (sliderButtonExtentDir * 2);
6496 // calculate slider length
6497 if (scrollbar->maximum != scrollbar->minimum) {
6498 uint range = scrollbar->maximum - scrollbar->minimum;
6499 sliderlen = (qint64(scrollbar->pageStep) * maxlen) / (range + scrollbar->pageStep);
6500
6501 int slidermin = proxy()->pixelMetric(PM_ScrollBarSliderMin, scrollbar, widget);
6502 if (sliderlen < slidermin || range > INT_MAX / 2)
6503 sliderlen = slidermin;
6504 if (sliderlen > maxlen)
6505 sliderlen = maxlen;
6506 } else {
6507 sliderlen = maxlen;
6508 }
6509 int sliderstart = sliderButtonExtentDir + sliderPositionFromValue(scrollbar->minimum,
6510 scrollbar->maximum,
6511 scrollbar->sliderPosition,
6512 maxlen - sliderlen,
6513 scrollbar->upsideDown);
6514 if (d->smartphone) {
6515 sliderstart -= sliderButtonExtentDir;
6516 sliderlen += 2*sliderButtonExtent;
6517 }
6518 switch (subControl) {
6519 case SC_ScrollBarSubLine: // top/left button
6520 if (scrollbar->orientation == Qt::Horizontal) {
6521 int buttonWidth = qMin(scrollbar->rect.width() / 2, sliderButtonExtentDir );
6522 rect.setRect(0, 0, buttonWidth, sliderButtonExtent);
6523 } else {
6524 int buttonHeight = qMin(scrollbar->rect.height() / 2, sliderButtonExtentDir);
6525 rect.setRect(0, 0, sliderButtonExtent, buttonHeight);
6526 }
6527 if (d->smartphone)
6528 rect.setRect(0, 0, 0, 0);
6529 break;
6530 case SC_ScrollBarAddLine: // bottom/right button
6531 if (scrollbar->orientation == Qt::Horizontal) {
6532 int buttonWidth = qMin(scrollbar->rect.width()/2, sliderButtonExtentDir);
6533 rect.setRect(scrollbar->rect.width() - buttonWidth, 0, buttonWidth, sliderButtonExtent);
6534 } else {
6535 int buttonHeight = qMin(scrollbar->rect.height()/2, sliderButtonExtentDir );
6536 rect.setRect(0, scrollbar->rect.height() - buttonHeight, sliderButtonExtent, buttonHeight);
6537 }
6538 if (d->smartphone)
6539 rect.setRect(0, 0, 0, 0);
6540 break;
6541 case SC_ScrollBarSubPage: // between top/left button and slider
6542 if (scrollbar->orientation == Qt::Horizontal)
6543 if (d->smartphone)
6544 rect.setRect(0, 0, sliderstart, sliderButtonExtent);
6545 else
6546 rect.setRect(sliderButtonExtent, 0, sliderstart - sliderButtonExtent, sliderButtonExtent);
6547 else
6548 if (d->smartphone)
6549 rect.setRect(0, 0, sliderButtonExtent, sliderstart);
6550 else
6551 rect.setRect(0, sliderButtonExtent, sliderButtonExtent, sliderstart - sliderButtonExtent);
6552 break;
6553 case SC_ScrollBarAddPage: // between bottom/right button and slider
6554 if (scrollbar->orientation == Qt::Horizontal)
6555 if (d->smartphone)
6556 rect.setRect(sliderstart + sliderlen, 0,
6557 maxlen - sliderstart - sliderlen + 2*sliderButtonExtent, sliderButtonExtent);
6558 else
6559 rect.setRect(sliderstart + sliderlen, 0,
6560 maxlen - sliderstart - sliderlen + sliderButtonExtent, sliderButtonExtent);
6561 else
6562 if (d->smartphone)
6563 rect.setRect(0, sliderstart + sliderlen, sliderButtonExtent,
6564 maxlen - sliderstart - sliderlen + 2*sliderButtonExtent);
6565 else
6566 rect.setRect(0, sliderstart + sliderlen, sliderButtonExtent,
6567 maxlen - sliderstart - sliderlen + sliderButtonExtent);
6568 break;
6569 case SC_ScrollBarGroove:
6570 if (scrollbar->orientation == Qt::Horizontal)
6571 rect.setRect(sliderButtonExtent, 0, scrollbar->rect.width() - sliderButtonExtent * 2,
6572 scrollbar->rect.height());
6573 else
6574 rect.setRect(0, sliderButtonExtent, scrollbar->rect.width(),
6575 scrollbar->rect.height() - sliderButtonExtent * 2);
6576 break;
6577 case SC_ScrollBarSlider:
6578 if (scrollbar->orientation == Qt::Horizontal)
6579 rect.setRect(sliderstart, 0, sliderlen, sliderButtonExtent);
6580 else
6581 rect.setRect(0, sliderstart, sliderButtonExtent, sliderlen);
6582 break;
6583 default:
6584 break;
6585 }
6586 rect = visualRect(scrollbar->direction, scrollbar->rect, rect);
6587 }
6588 break;
6589#endif // QT_NO_SCROLLBAR
6590
6591
6592
6593#ifndef QT_NO_TOOLBUTTON
6594 case CC_ToolButton:
6595 if (const QStyleOptionToolButton *toolButton = qstyleoption_cast<const QStyleOptionToolButton *>(option)) {
6596 int mbi = proxy()->pixelMetric(PM_MenuButtonIndicator, toolButton, widget);
6597 rect = toolButton->rect;
6598 switch (subControl) {
6599 case SC_ToolButton:
6600 if ((toolButton->features
6601 & (QStyleOptionToolButton::Menu | QStyleOptionToolButton::PopupDelay))
6602 == QStyleOptionToolButton::Menu)
6603 rect.adjust(0, 0, -mbi, 0);
6604 break;
6605 case SC_ToolButtonMenu:
6606 if ((toolButton->features
6607 & (QStyleOptionToolButton::Menu | QStyleOptionToolButton::PopupDelay))
6608 == QStyleOptionToolButton::Menu)
6609 rect.adjust(rect.width() - mbi, 1, 0, 1);
6610 break;
6611 default:
6612 break;
6613 }
6614 rect = visualRect(toolButton->direction, toolButton->rect, rect);
6615 }
6616 break;
6617#endif // QT_NO_TOOLBUTTON
6618
6619#ifndef QT_NO_SLIDER
6620 case CC_Slider:
6621 if (const QStyleOptionSlider *slider = qstyleoption_cast<const QStyleOptionSlider *>(option)) {
6622 int tickOffset = proxy()->pixelMetric(PM_SliderTickmarkOffset, slider, widget);
6623 int thickness = proxy()->pixelMetric(PM_SliderControlThickness, slider, widget);
6624 switch (subControl) {
6625 case SC_SliderHandle: {
6626 int sliderPos = 0;
6627 int len = proxy()->pixelMetric(PM_SliderLength, slider, widget);
6628 bool horizontal = slider->orientation == Qt::Horizontal;
6629 sliderPos = sliderPositionFromValue(slider->minimum, slider->maximum,
6630 slider->sliderPosition,
6631 (horizontal ? slider->rect.width()
6632 : slider->rect.height()) - len,
6633 slider->upsideDown);
6634 if (horizontal)
6635 rect.setRect(slider->rect.x() + sliderPos, slider->rect.y() + tickOffset, len, thickness);
6636 else
6637 rect.setRect(slider->rect.x() + tickOffset, slider->rect.y() + sliderPos, thickness, len);
6638 break; }
6639 default:
6640 break;
6641 }
6642 rect = visualRect(slider->direction, slider->rect, rect);
6643 }
6644 break;
6645#endif //QT_NO_SLIDER
6646#ifndef QT_NO_COMBOBOX
6647 case CC_ComboBox:
6648 if (const QStyleOptionComboBox *comboBox = qstyleoption_cast<const QStyleOptionComboBox *>(option)) {
6649 int x = comboBox->rect.x(),
6650 y = comboBox->rect.y(),
6651 wi = comboBox->rect.width(),
6652 he = comboBox->rect.height();
6653 int xpos = x;
6654 int margin = comboBox->frame ? (d->doubleControls ? 2 : 1) : 0;
6655 int bmarg = comboBox->frame ? (d->doubleControls ? 2 : 1) : 0;
6656 if (subControl == SC_ComboBoxArrow)
6657 xpos += wi - int((he - 2*bmarg)*0.9) - bmarg;
6658 else
6659 xpos += wi - (he - 2*bmarg) - bmarg;
6660 switch (subControl) {
6661 case SC_ComboBoxArrow:
6662 rect.setRect(xpos, y + bmarg, he - 2*bmarg, he - 2*bmarg);
6663 break;
6664 case SC_ComboBoxEditField:
6665 rect.setRect(x + margin, y + margin, wi - 2 * margin - int((he - 2*bmarg) * 0.84f), he - 2 * margin);
6666 if (d->doubleControls) {
6667 if (comboBox->editable)
6668 rect.adjust(2, 0, 0, 0);
6669 else
6670 rect.adjust(4, 2, 0, -2);
6671 } else if (!comboBox->editable) {
6672 rect.adjust(2, 1, 0, -1);
6673 }
6674 break;
6675 case SC_ComboBoxFrame:
6676 rect = comboBox->rect;
6677 break;
6678 default:
6679 break;
6680 }
6681 }
6682#endif //QT_NO_COMBOBOX
6683#ifndef QT_NO_SPINBOX
6684 case CC_SpinBox:
6685 if (const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) {
6686 QSize bs;
6687 int fw = spinBox->frame ? proxy()->pixelMetric(PM_SpinBoxFrameWidth, spinBox, widget) : 0;
6688 bs.setHeight(qMax(d->doubleControls ? 28 : 14, (spinBox->rect.height())));
6689 // 1.6 -approximate golden mean
6690 bs.setWidth(qMax(d->doubleControls ? 28 : 14, qMin((bs.height()*7/8), (spinBox->rect.width() / 8))));
6691 bs = bs.expandedTo(QApplication::globalStrut());
6692 int x, lx, rx;
6693 x = spinBox->rect.width() - bs.width()*2;
6694 lx = fw;
6695 rx = x - fw;
6696 switch (subControl) {
6697 case SC_SpinBoxUp:
6698 rect = QRect(x + proxy()->pixelMetric(PM_SpinBoxFrameWidth, option, widget), 0 , bs.width(), bs.height());
6699 break;
6700 case SC_SpinBoxDown:
6701 rect = QRect(x + bs.width(), 0, bs.width(), bs.height());
6702 break;
6703 case SC_SpinBoxEditField:
6704 if (spinBox->buttonSymbols == QAbstractSpinBox::NoButtons) {
6705 rect = QRect(lx, fw, spinBox->rect.width() - 2*fw - 2, spinBox->rect.height() - 2*fw);
6706 } else {
6707 rect = QRect(lx, fw, rx-2, spinBox->rect.height() - 2*fw);
6708 }
6709 break;
6710 case SC_SpinBoxFrame:
6711 rect = spinBox->rect;
6712 default:
6713 break;
6714 }
6715 rect = visualRect(spinBox->direction, spinBox->rect, rect);
6716 }
6717 break;
6718#endif // Qt_NO_SPINBOX
6719#ifndef QT_NO_GROUPBOX
6720 case CC_GroupBox: {
6721 if (const QStyleOptionGroupBox *groupBox = qstyleoption_cast<const QStyleOptionGroupBox *>(option)) {
6722 switch (subControl) {
6723 case SC_GroupBoxFrame:
6724 // FALL THROUGH
6725 case SC_GroupBoxContents: {
6726 int topMargin = 0;
6727 int topHeight = 0;
6728 int bottomMargin = 0;
6729 int labelMargin = 2;
6730
6731 QRect frameRect = groupBox->rect;
6732 int verticalAlignment = styleHint(SH_GroupBox_TextLabelVerticalAlignment, groupBox, widget);
6733 if (groupBox->text.size()) {
6734 topHeight = groupBox->fontMetrics.height();
6735 if (verticalAlignment & Qt::AlignVCenter)
6736 topMargin = topHeight+5;
6737 else if (verticalAlignment & Qt::AlignTop)
6738 topMargin = -topHeight+5;
6739 }
6740 if (subControl == SC_GroupBoxFrame) {
6741 frameRect.setTop(topMargin);
6742 frameRect.setBottom(frameRect.height() + bottomMargin);
6743 rect = frameRect;
6744 break;
6745 }
6746 int frameWidth = 0;
6747 if (groupBox->text.size()) {
6748 frameWidth = proxy()->pixelMetric(PM_DefaultFrameWidth, groupBox, widget);
6749 rect = frameRect.adjusted(frameWidth, frameWidth + topHeight + labelMargin, -frameWidth, -frameWidth);
6750 }
6751 else {
6752 rect = groupBox->rect;
6753 }
6754 break;
6755 }
6756 case SC_GroupBoxCheckBox:
6757 // FALL THROUGH
6758 case SC_GroupBoxLabel: {
6759 QFontMetrics fontMetrics = groupBox->fontMetrics;
6760 int h = fontMetrics.height();
6761 int textWidth = fontMetrics.size(Qt::TextShowMnemonic, groupBox->text + QLatin1Char(' ')).width();
6762 int margX = (groupBox->features & QStyleOptionFrameV2::Flat) ? 0 : 2;
6763 int margY = (groupBox->features & QStyleOptionFrameV2::Flat) ? 0 : 2;
6764 rect = groupBox->rect.adjusted(margX, margY, -margX, 0);
6765 if (groupBox->text.size())
6766 rect.setHeight(h);
6767 else
6768 rect.setHeight(0);
6769 int indicatorWidth = proxy()->pixelMetric(PM_IndicatorWidth, option, widget);
6770 int indicatorSpace = proxy()->pixelMetric(PM_CheckBoxLabelSpacing, option, widget) - 1;
6771 bool hasCheckBox = groupBox->subControls & QStyle::SC_GroupBoxCheckBox;
6772 int checkBoxSize = hasCheckBox ? (indicatorWidth + indicatorSpace) : 0;
6773
6774 // Adjusted rect for label + indicatorWidth + indicatorSpace
6775 QRect totalRect = alignedRect(groupBox->direction, groupBox->textAlignment,
6776 QSize(textWidth + checkBoxSize, h), rect);
6777
6778 // Adjust totalRect if checkbox is set
6779 if (hasCheckBox) {
6780 bool ltr = groupBox->direction == Qt::LeftToRight;
6781 int left = 2;
6782 // Adjust for check box
6783 if (subControl == SC_GroupBoxCheckBox) {
6784 int indicatorHeight = proxy()->pixelMetric(PM_IndicatorHeight, option, widget);
6785 left = ltr ? totalRect.left() : (totalRect.right() - indicatorWidth);
6786 int top = totalRect.top() + (fontMetrics.height() - indicatorHeight) / 2;
6787 totalRect.setRect(left, top, indicatorWidth, indicatorHeight);
6788 // Adjust for label
6789 } else {
6790 left = ltr ? (totalRect.left() + checkBoxSize - 2) : totalRect.left();
6791 totalRect.setRect(left, totalRect.top(),
6792 totalRect.width() - checkBoxSize, totalRect.height());
6793 }
6794 }
6795 if ((subControl== SC_GroupBoxLabel))
6796 totalRect.adjust(-2,0,6,0);
6797 rect = totalRect;
6798 break;
6799 }
6800 default:
6801 break;
6802 }
6803 }
6804 break;
6805 }
6806#endif // QT_NO_GROUPBOX
6807 default:
6808 break;
6809 }
6810 return rect;
6811}
6812
6813QPalette QWindowsMobileStyle::standardPalette() const {
6814 QPalette palette (Qt::black,QColor(198, 195, 198), QColor(222, 223, 222 ),
6815 QColor(132, 130, 132), QColor(198, 195, 198), Qt::black, Qt::white, Qt::white, QColor(198, 195, 198));
6816 palette.setColor(QPalette::Window, QColor(206, 223, 239));
6817 palette.setColor(QPalette::Link, QColor(8,77,123)); //Alternate TextColor for labels...
6818 palette.setColor(QPalette::Base, Qt::white);
6819 palette.setColor(QPalette::Button, QColor(206, 223, 239));
6820 palette.setColor(QPalette::Highlight, QColor(49, 146, 214));
6821 palette.setColor(QPalette::Light, Qt::white);
6822 palette.setColor(QPalette::Text, Qt::black);
6823 palette.setColor(QPalette::ButtonText, Qt::black);
6824 palette.setColor(QPalette::Midlight, QColor(222, 223, 222 ));
6825 palette.setColor(QPalette::Dark, QColor(132, 130, 132));
6826 palette.setColor(QPalette::Mid, QColor(189, 190, 189));
6827 palette.setColor(QPalette::Shadow, QColor(0, 0, 0));
6828 palette.setColor(QPalette::BrightText, QColor(33, 162, 33)); //color for ItemView checked indicator (arrow)
6829 return palette;
6830}
6831
6832
6833/*! \reimp */
6834void QWindowsMobileStyle::polish(QApplication *application) {
6835 QWindowsStyle::polish(application);
6836}
6837
6838/*! \reimp */
6839void QWindowsMobileStyle::polish(QWidget *widget) {
6840
6841#ifndef QT_NO_TOOLBAR
6842 if (QToolBar *toolBar = qobject_cast<QToolBar*>(widget)) {
6843 QPalette pal = toolBar->palette();
6844 pal.setColor(QPalette::Background, pal.button().color());
6845 toolBar->setPalette(pal);
6846 }
6847 else
6848#endif //QT_NO_TOOLBAR
6849
6850 QWindowsStyle::polish(widget);
6851}
6852
6853void QWindowsMobileStyle::unpolish(QWidget *widget)
6854{
6855 QWindowsStyle::unpolish(widget);
6856}
6857
6858void QWindowsMobileStyle::unpolish(QApplication *app)
6859{
6860 QWindowsStyle::unpolish(app);
6861}
6862
6863/*! \reimp */
6864void QWindowsMobileStyle::polish(QPalette &palette) {
6865 QWindowsStyle::polish(palette);
6866}
6867
6868int QWindowsMobileStyle::pixelMetric(PixelMetric pm, const QStyleOption *opt, const QWidget *widget) const {
6869
6870 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
6871 int ret;
6872
6873 switch (pm) {
6874 case PM_DefaultTopLevelMargin:
6875 ret =0;
6876 break;
6877 case PM_DefaultLayoutSpacing:
6878 d->doubleControls ? ret = 8 : ret = 4;
6879 break;
6880 case PM_HeaderMargin:
6881 d->doubleControls ? ret = 2 : ret = 1;
6882 break;
6883 case PM_DefaultChildMargin:
6884 d->doubleControls ? ret = 10 : ret = 5;
6885 break;
6886 case PM_ToolBarSeparatorExtent:
6887 d->doubleControls ? ret = 6 : ret = 3;
6888 break;
6889 case PM_DefaultFrameWidth:
6890 d->doubleControls ? ret = 2 : ret = 1;
6891 break;
6892 case PM_MenuVMargin:
6893 ret = 1;
6894 break;
6895 case PM_MenuHMargin:
6896 ret = 1;
6897 break;
6898 case PM_MenuButtonIndicator:
6899 ret = d->doubleControls ? 24 : 14;
6900 break;
6901 case PM_ComboBoxFrameWidth:
6902 d->doubleControls ? ret = 2 : ret = 1;
6903 break;
6904 case PM_SpinBoxFrameWidth:
6905 d->doubleControls ? ret = 2 : ret = 1;
6906 break;
6907 case PM_ButtonDefaultIndicator:
6908 case PM_ButtonShiftHorizontal:
6909 case PM_ButtonShiftVertical:
6910 d->doubleControls ? ret = 2 : ret = 1;
6911 break;
6912#ifndef QT_NO_TABBAR
6913 case PM_TabBarTabShiftHorizontal:
6914 ret = 0;
6915 break;
6916 case PM_TabBarTabShiftVertical:
6917 ret = 0;
6918 break;
6919#endif
6920 case PM_MaximumDragDistance:
6921 ret = 60;
6922 break;
6923 case PM_TabBarTabVSpace:
6924 ret = d->doubleControls ? 12 : 6;
6925 break;
6926 case PM_TabBarBaseHeight:
6927 ret = 0;
6928 break;
6929 case PM_IndicatorWidth:
6930 ret = d->doubleControls ? windowsMobileIndicatorSize * 2 : windowsMobileIndicatorSize;
6931 break;
6932 case PM_IndicatorHeight:
6933 ret = d->doubleControls ? windowsMobileIndicatorSize * 2 : windowsMobileIndicatorSize;
6934 break;
6935 case PM_ExclusiveIndicatorWidth:
6936 ret = d->doubleControls ? windowsMobileExclusiveIndicatorSize * 2 + 4: windowsMobileExclusiveIndicatorSize + 2;
6937 break;
6938 case PM_ExclusiveIndicatorHeight:
6939 ret = d->doubleControls ? windowsMobileExclusiveIndicatorSize * 2 + 4: windowsMobileExclusiveIndicatorSize + 2;
6940 break;
6941#ifndef QT_NO_SLIDER
6942 case PM_SliderLength:
6943 ret = d->doubleControls ? 16 : 8;
6944 break;
6945 case PM_FocusFrameHMargin:
6946 ret = d->doubleControls ? 1 : 2;
6947 break;
6948 case PM_SliderThickness:
6949 ret = d->doubleControls ? windowsMobileSliderThickness * 2: windowsMobileSliderThickness;
6950 break;
6951 case PM_TabBarScrollButtonWidth:
6952 ret = d->doubleControls ? 14 * 2 : 18;
6953 case PM_CheckBoxLabelSpacing:
6954 case PM_RadioButtonLabelSpacing:
6955 ret = d->doubleControls ? 6 * 2 : 6;
6956 break;
6957 // Returns the number of pixels to use for the business part of the
6958 // slider (i.e., the non-tickmark portion). The remaining space is shared
6959 // equally between the tickmark regions.
6960 case PM_SliderControlThickness:
6961 if (const QStyleOptionSlider *sl = qstyleoption_cast<const QStyleOptionSlider *>(opt)) {
6962 int space = (sl->orientation == Qt::Horizontal) ? sl->rect.height() : sl->rect.width();
6963 int ticks = sl->tickPosition;
6964 int n = 0;
6965 if (ticks & QSlider::TicksAbove)
6966 ++n;
6967 if (ticks & QSlider::TicksBelow)
6968 ++n;
6969 if (!n) {
6970 ret = space;
6971 break;
6972 }
6973 int thick = 8;
6974 if (ticks != QSlider::TicksBothSides && ticks != QSlider::NoTicks)
6975 thick += proxy()->pixelMetric(PM_SliderLength, sl, widget) / 4;
6976
6977 space -= thick;
6978 if (space > 0)
6979 thick += (space * 2) / (n + 2);
6980 ret = thick;
6981 } else {
6982 ret = 0;
6983 }
6984 break;
6985#endif // QT_NO_SLIDER
6986#ifndef QT_NO_MENU
6987 case PM_SmallIconSize:
6988 d->doubleControls ? ret = windowsMobileIconSize * 2 : ret = windowsMobileIconSize;
6989 break;
6990 case PM_ButtonMargin:
6991 d->doubleControls ? ret = 8 : ret = 4;
6992 break;
6993 case PM_LargeIconSize:
6994 d->doubleControls ? ret = 64 : ret = 32;
6995 break;
6996 case PM_IconViewIconSize:
6997 ret = proxy()->pixelMetric(PM_LargeIconSize, opt, widget);
6998 break;
6999 case PM_ToolBarIconSize:
7000 d->doubleControls ? ret = 2 * windowsMobileIconSize : ret = windowsMobileIconSize;
7001 break;
7002 case PM_DockWidgetTitleMargin:
7003 ret = 2;
7004 break;
7005#if defined(Q_WS_WIN)
7006#else
7007 case PM_DockWidgetFrameWidth:
7008 ret = 4;
7009 break;
7010#endif // Q_WS_WIN
7011 break;
7012#endif // QT_NO_MENU
7013
7014 case PM_TitleBarHeight:
7015 d->doubleControls ? ret = 42 : ret = 21;
7016 break;
7017 case PM_ScrollBarSliderMin:
7018#ifdef Q_WS_WINCE_WM
7019 if (d->wm65)
7020#else
7021 if (false)
7022#endif
7023 {
7024 d->doubleControls ? ret = 68 : ret = 34;
7025 } else {
7026 d->doubleControls ? ret = 36 : ret = 18;
7027 }
7028 break;
7029 case PM_ScrollBarExtent: {
7030
7031 if (d->smartphone)
7032 ret = 9;
7033 else
7034 d->doubleControls ? ret = 25 : ret = 13;
7035
7036#ifdef Q_WS_WINCE_WM
7037 if (d->wm65)
7038#else
7039 if (false)
7040#endif
7041 {
7042 d->doubleControls ? ret = 26 : ret = 13;
7043 break;
7044 }
7045
7046#ifndef QT_NO_SCROLLAREA
7047 //Check if the scrollbar is part of an abstractItemView and set size according
7048 if (widget)
7049 if (QWidget *parent = widget->parentWidget())
7050 if (qobject_cast<QAbstractScrollArea *>(parent->parentWidget()))
7051 if (d->smartphone)
7052 ret = 8;
7053 else
7054 d->doubleControls ? ret = 24 : ret = 12;
7055#endif
7056 }
7057 break;
7058 case PM_SplitterWidth:
7059 ret = qMax(4, QApplication::globalStrut().width());
7060 break;
7061
7062#if defined(Q_WS_WIN)
7063 case PM_MDIFrameWidth:
7064 ret = 1;
7065 break;
7066#endif
7067 case PM_ToolBarExtensionExtent:
7068 d->doubleControls ? ret = 32 : ret = 16;
7069 break;
7070 case PM_ToolBarItemMargin:
7071 d->doubleControls ? ret = 2 : ret = 1;
7072 break;
7073 case PM_ToolBarItemSpacing:
7074 d->doubleControls ? ret = 2 : ret = 1;
7075 break;
7076 case PM_ToolBarHandleExtent:
7077 d->doubleControls ? ret = 16 : ret = 8;
7078 break;
7079 case PM_ButtonIconSize:
7080 d->doubleControls ? ret = 32 : ret = 16;
7081 break;
7082 case PM_TextCursorWidth:
7083 ret = 2;
7084 break;
7085 case PM_TabBar_ScrollButtonOverlap:
7086 ret = 0;
7087 break;
7088 default:
7089 ret = QWindowsStyle::pixelMetric(pm, opt, widget);
7090 break;
7091 }
7092 return ret;
7093}
7094
7095int QWindowsMobileStyle::styleHint(StyleHint hint, const QStyleOption *opt, const QWidget *widget,
7096 QStyleHintReturn *returnData) const {
7097
7098 int ret;
7099 switch (hint) {
7100 case SH_Menu_MouseTracking:
7101 case SH_ComboBox_ListMouseTracking:
7102 case SH_EtchDisabledText:
7103 ret = 0;
7104 break;
7105 case SH_DitherDisabledText:
7106 ret = 0;
7107 break;
7108 case SH_ItemView_ShowDecorationSelected:
7109 ret = 0;
7110 break;
7111#ifndef QT_NO_TABWIDGET
7112 case SH_TabWidget_DefaultTabPosition:
7113 ret = QTabWidget::South;
7114 break;
7115#endif
7116 case SH_ToolBar_Movable:
7117 ret = false;
7118 break;
7119 case SH_ScrollBar_ContextMenu:
7120 ret = false;
7121 break;
7122 case SH_MenuBar_AltKeyNavigation:
7123 ret = false;
7124 break;
7125 case SH_RequestSoftwareInputPanel:
7126 ret = RSIP_OnMouseClick;
7127 break;
7128 default:
7129 ret = QWindowsStyle::styleHint(hint, opt, widget, returnData);
7130 break;
7131 }
7132 return ret;
7133}
7134
7135QPixmap QWindowsMobileStyle::standardPixmap(StandardPixmap sp, const QStyleOption *option,
7136 const QWidget *widget) const {
7137
7138 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
7139 switch (sp) {
7140#ifndef QT_NO_IMAGEFORMAT_XPM
7141 case SP_ToolBarHorizontalExtensionButton: {
7142 QPixmap pixmap = QCommonStyle::standardPixmap(sp, option, widget);
7143 if (d->doubleControls)
7144 return pixmap.scaledToHeight(pixmap.height() * 2);
7145 else
7146 return pixmap;
7147 }
7148 case SP_TitleBarMaxButton:
7149 case SP_TitleBarCloseButton:
7150 case SP_TitleBarNormalButton:
7151 case SP_TitleBarMinButton: {
7152 QImage image;
7153 switch (sp) {
7154 case SP_TitleBarMaxButton:
7155 image = d->imageMaximize;
7156 break;
7157 case SP_TitleBarCloseButton:
7158 image = d->imageClose;
7159 break;
7160 case SP_TitleBarNormalButton:
7161 image = d->imageNormalize;
7162 break;
7163 case SP_TitleBarMinButton:
7164 image = d->imageMinimize;
7165 break;
7166 default:
7167 break;
7168 }
7169 if (option) {
7170 image.setColor(0, option->palette.shadow().color().rgba());
7171 image.setColor(1, option->palette.highlight().color().rgba());
7172 image.setColor(2, option->palette.highlight().color().lighter(150).rgba());
7173 image.setColor(3, option->palette.highlightedText().color().rgba());
7174 }
7175
7176 return QPixmap::fromImage(image);
7177 }
7178
7179#endif
7180 default:
7181 return QWindowsStyle::standardPixmap(sp, option, widget);
7182 }
7183}
7184
7185QPixmap QWindowsMobileStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap,
7186 const QStyleOption *option) const {
7187
7188 switch (iconMode) {
7189 case QIcon::Selected: {
7190#ifdef Q_WS_WINCE_WM
7191 if (d_func()->wm65)
7192 return pixmap;
7193#endif //Q_WS_WINCE_WM
7194 QImage img = pixmap.toImage().convertToFormat(QImage::Format_ARGB32);
7195 int imgh = img.height();
7196 int imgw = img.width();
7197 for (int y = 0; y < imgh; y += 2) {
7198 for (int x = 0; x < imgw; x += 2) {
7199 QColor c = option->palette.highlight().color().rgb();
7200 c.setAlpha( qAlpha(img.pixel(x, y)));
7201 QRgb pixel = c.rgba();
7202 img.setPixel(x, y, pixel);
7203 }
7204 }
7205 return QPixmap::fromImage(img);
7206 }
7207 default:
7208 break;
7209 }
7210 return QWindowsStyle::generatedIconPixmap(iconMode, pixmap, option);
7211}
7212
7213
7214bool QWindowsMobileStyle::doubleControls() const {
7215
7216 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
7217
7218 return d->doubleControls;
7219}
7220
7221void QWindowsMobileStyle::setDoubleControls(bool doubleControls) {
7222
7223 QWindowsMobileStylePrivate *d = const_cast<QWindowsMobileStylePrivate*>(d_func());
7224
7225 d->doubleControls = doubleControls;
7226}
7227
7228QT_END_NAMESPACE
7229
7230#endif // QT_NO_STYLE_WINDOWSMOBILE
7231
Note: See TracBrowser for help on using the repository browser.