115f5c67c23149590b54df930a60065ff29ed52c
[profile/ivi/efl-theme-tizen.git] / themes / groups / dayselector.edc
1 /*
2  *  nbeat-theme
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
7  * 
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  * 
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #define DAYSELECTOR_CHECK_WIDTH 63
25 #define DAYSELECTOR_CHECK_HEIGHT 56
26 #define DAYSELECTOR_TOTAL_WIDTH (DAYSELECTOR_CHECK_WIDTH*7)
27 group {
28    name: "elm/dayselector/base/default";
29    alias: "elm/dayselector/base/sun_first";
30        min: ((DAYSELECTOR_CHECK_WIDTH*7)+6) DAYSELECTOR_CHECK_HEIGHT;
31        parts {
32           part {
33              name: "bg";
34              type: RECT;
35              mouse_events: 0;
36              scale: 1;
37              description {
38                 rel1 { relative: 0.0 0.0; offset: 4 0; }
39                 rel2 { relative: 1.0 1.0; offset: -4 0; }
40                 color: DAYSELECTOR_BACKGROUND_COLOR_INC;
41               }
42           }
43       part {
44          name: "sun";
45          type: SWALLOW;
46          mouse_events: 1;
47          scale: 1;
48          description {
49             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*1)/DAYSELECTOR_TOTAL_WIDTH) 1;}
50          }
51       }
52       part {
53          name: "mon";
54          type: SWALLOW;
55          mouse_events: 1;
56          scale: 1;
57          description {
58             rel1 { to: "sun";  relative: 1 0; offset: 1 0; }
59             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*2)/DAYSELECTOR_TOTAL_WIDTH) 1;}
60          }
61       }
62       part {
63          name: "tue";
64          type: SWALLOW;
65          mouse_events: 1;
66          scale: 1;
67          description {
68             rel1 { to: "mon"; relative: 1 0; offset: 1 0; }
69             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*3)/DAYSELECTOR_TOTAL_WIDTH) 1;}
70          }
71       }
72       part {
73          name: "wed";
74          type: SWALLOW;
75          mouse_events: 1;
76          scale: 1;
77          description {
78             rel1 { to: "tue"; relative: 1 0; offset: 1 0; }
79             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*4)/DAYSELECTOR_TOTAL_WIDTH) 1;}
80          }
81       }
82       part {
83          name: "thu";
84          type: SWALLOW;
85          mouse_events: 1;
86          scale: 1;
87          description {
88             rel1 { to: "wed"; relative: 1 0; offset: 1 0; }
89             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*5)/DAYSELECTOR_TOTAL_WIDTH) 1;}
90          }
91       }
92       part {
93          name: "fri";
94          type: SWALLOW;
95          mouse_events: 1;
96          scale: 1;
97          description {
98             rel1 { to: "thu"; relative: 1 0; offset: 1 0; }
99             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*6)/DAYSELECTOR_TOTAL_WIDTH) 1;}
100          }
101       }
102       part {
103          name: "sat";
104          type: SWALLOW;
105          mouse_events: 1;
106          scale: 1;
107          description {
108             rel1 { to: "fri"; relative: 1 0; offset: 1 0; }
109          }
110       }
111    }
112 }
113 group {
114    name: "elm/dayselector/base/mon_first";
115    min: (DAYSELECTOR_CHECK_WIDTH*7) DAYSELECTOR_CHECK_HEIGHT;
116        parts {
117          part {
118             name: "bg";
119             type: RECT;
120             mouse_events: 0;
121             scale: 1;
122             description {
123                rel1 { relative: 0.0 0.0; offset: 4 0; }
124                rel2 { relative: 1.0 1.0; offset: -4 0; }
125                color: DAYSELECTOR_BACKGROUND_COLOR_INC;
126             }
127         }
128       part {
129          name: "mon";
130          type: SWALLOW;
131          mouse_events: 1;
132          scale: 1;
133          description {
134             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*1)/DAYSELECTOR_TOTAL_WIDTH) 1;}
135          }
136       }
137       part {
138          name: "tue";
139          type: SWALLOW;
140          mouse_events: 1;
141          scale: 1;
142          description {
143             rel1 { to: "mon";  relative: 1 0; offset: 1 0; }
144             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*2)/DAYSELECTOR_TOTAL_WIDTH) 1;}
145          }
146       }
147       part {
148          name: "wed";
149          type: SWALLOW;
150          mouse_events: 1;
151          scale: 1;
152          description {
153             rel1 { to: "tue"; relative: 1 0; offset: 1 0; }
154             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*3)/DAYSELECTOR_TOTAL_WIDTH) 1;}
155          }
156       }
157       part {
158          name: "thu";
159          type: SWALLOW;
160          mouse_events: 1;
161          scale: 1;
162          description {
163             rel1 { to: "wed"; relative: 1 0; offset: 1 0; }
164             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*4)/DAYSELECTOR_TOTAL_WIDTH) 1;}
165          }
166       }
167       part {
168          name: "fri";
169          type: SWALLOW;
170          mouse_events: 1;
171          scale: 1;
172          description {
173             rel1 { to: "thu"; relative: 1 0; offset: 1 0; }
174             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*5)/DAYSELECTOR_TOTAL_WIDTH) 1;}
175          }
176       }
177       part {
178          name: "sat";
179          type: SWALLOW;
180          mouse_events: 1;
181          scale: 1;
182          description {
183             rel1 { to: "fri"; relative: 1 0; offset: 1 0; }
184             rel2 { relative: ((DAYSELECTOR_CHECK_WIDTH*6)/DAYSELECTOR_TOTAL_WIDTH) 1;}
185          }
186       }
187       part {
188          name: "sun";
189          type: SWALLOW;
190          mouse_events: 1;
191          scale: 1;
192          description {
193             rel1 { to: "sat"; relative: 1 0; offset: 1 0; }
194          }
195       }
196    }
197 }
198 group {
199    name: "elm/check/base/dayselector/sun_first_sun";
200    images {
201       image: "00_alarm_repeat_button_normal_01.png" COMP;
202       image: "00_alarm_repeat_button_press_01.png" COMP;
203    }
204    parts {
205       part {
206          name: "bg";
207          mouse_events: 0;
208          scale: 1;
209          description {
210             state: "default" 0.0;
211             align: 0.5 0.5;
212             image {
213                normal: "00_alarm_repeat_button_normal_01.png";
214                border: 4 0 4 4;
215                border_scale: 1;
216             }
217          }
218       }
219       part {
220          name: "check";
221          mouse_events: 0;
222          scale: 1;
223          description {
224             state: "default" 0.0;
225             rel1 {to: "bg";}
226             rel2 {to: "bg";}
227             visible: 0;
228             image {
229                normal: "00_alarm_repeat_button_press_01.png";
230                border: 4 0 4 4;
231                border_scale: 1;
232             }
233          }
234          description {
235             state: "visible" 0.0;
236             inherit: "default" 0.0;
237             visible: 1;
238          }
239       }
240       part {
241          name: "elm.swallow.content";
242          type: SWALLOW;
243          description {
244             state: "default" 0.0;
245             fixed: 1 0;
246             visible: 0;
247             align: 0.0 0.5;
248             rel1.to_x: "bg";
249             rel1.relative: 1.0 0.0;
250             rel2.to_x: "bg";
251          }
252          description {
253             state: "visible" 0.0;
254             inherit: "default" 0.0;
255             fixed: 1 1;
256             visible: 1;
257             aspect: 1.0 1.0;
258             aspect_preference: VERTICAL;
259          }
260       }
261       part {
262          name: "elm.text";
263          type: TEXT;
264          mouse_events: 0;
265          scale: 1;
266          effect: SHADOW;
267          description {
268             state: "default" 0.0;
269             visible: 1;
270             rel1 {to: "bg";}
271             rel2 {to: "bg";}
272             color: DAYSELECTOR_SUNDAY_COLOR_INC;
273             align: 0.5 0.5;
274             text {
275                font: "SLP:style=Medium";
276                size: 32;
277                min: 1 1;
278                align: 0.5 0.5;
279             }
280          }
281          description {
282             state: "hide" 0.0;
283             inherit: "default" 0.0;
284             visible: 0;
285          }
286          description {
287             state: "checked" 0.0;
288             inherit: "default" 0.0;
289             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
290          }
291       }
292       part {
293          name: "events";
294          type: RECT;
295          ignore_flags: ON_HOLD;
296          description {
297             state: "default" 0.0;
298             rel1 {to: "bg";}
299             rel2 {to: "bg";}
300             color: 0 0 0 0;
301          }
302       }
303    }
304    programs {
305       program {
306          name: "click";
307          signal: "mouse,up,1";
308          source: "events";
309          action: SIGNAL_EMIT "elm,action,check,toggle" "";
310       }
311       program {
312          name: "check_on";
313          signal: "elm,state,check,on";
314          source: "elm";
315          after: "checkon";
316       }
317       program {
318          name: "checkon";
319          script {
320             set_state(PART:"check", "visible", 0.0);
321             set_state(PART:"elm.text", "checked", 0.0);
322          }
323       }
324       program {
325          name: "check_off";
326          signal: "elm,state,check,off";
327          source: "elm";
328          after:"checkoff";
329       }
330       program {
331          name: "checkoff";
332          script {
333             set_state(PART:"check", "default", 0.0);
334             set_state(PART:"elm.text", "default", 0.0);
335          }
336       }
337       program {
338          name: "text_show";
339          signal: "elm,state,text,visible";
340          source: "elm";
341          action:  STATE_SET "default" 0.0;
342          target: "elm.text";
343        }
344       program {
345          name: "text_hide";
346          signal: "elm,state,text,hidden";
347          source: "elm";
348          action:  STATE_SET "hide" 0.0;
349          target: "elm.text";
350       }
351    }
352 }
353 group {
354    name: "elm/check/base/dayselector/mon_first_mon";
355    images {
356       image: "00_alarm_repeat_button_normal_01.png" COMP;
357       image: "00_alarm_repeat_button_press_01.png" COMP;
358    }
359    parts {
360       part {
361          name: "bg";
362          mouse_events: 0;
363          scale: 1;
364          description {
365             state: "default" 0.0;
366             align: 0.5 0.5;
367             image {
368                normal: "00_alarm_repeat_button_normal_01.png";
369                border: 4 0 4 4;
370                border_scale: 1;
371             }
372          }
373       }
374       part {
375          name: "check";
376          mouse_events: 0;
377          scale: 1;
378          description {
379             state: "default" 0.0;
380             rel1 {to: "bg";}
381             rel2 {to: "bg";}
382             visible: 0;
383             image {
384                normal: "00_alarm_repeat_button_press_01.png";
385                border: 4 0 4 4;
386                border_scale: 1;
387             }
388          }
389          description {
390             state: "visible" 0.0;
391             inherit: "default" 0.0;
392             visible: 1;
393          }
394       }
395       part {
396          name: "elm.swallow.content";
397          type: SWALLOW;
398          description {
399             state: "default" 0.0;
400             fixed: 1 0;
401             visible: 0;
402             align: 0.0 0.5;
403             rel1.to_x: "bg";
404             rel1.relative: 1.0 0.0;
405             rel2.to_x: "bg";
406          }
407          description {
408             state: "visible" 0.0;
409             inherit: "default" 0.0;
410             fixed: 1 1;
411             visible: 1;
412             aspect: 1.0 1.0;
413             aspect_preference: VERTICAL;
414          }
415       }
416       part {
417          name: "elm.text";
418          type: TEXT;
419          mouse_events: 0;
420          scale: 1;
421          effect: SHADOW;
422          description {
423             state: "default" 0.0;
424             visible: 1;
425             rel1 {to: "bg";}
426             rel2 {to: "bg";}
427             color: DAYSELECTOR_WEEKDAY_COLOR_INC;
428             align: 0.5 0.5;
429             text {
430                font: "SLP:style=Medium";
431                size: 32;
432                min: 1 1;
433                align: 0.5 0.5;
434             }
435          }
436          description {
437             state: "hide" 0.0;
438             inherit: "default" 0.0;
439             visible: 0;
440          }
441          description {
442             state: "checked" 0.0;
443             inherit: "default" 0.0;
444             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
445          }
446       }
447       part {
448          name: "events";
449          type: RECT;
450          ignore_flags: ON_HOLD;
451          description {
452             state: "default" 0.0;
453             rel1 {to: "bg";}
454             rel2 {to: "bg";}
455             color: 0 0 0 0;
456          }
457       }
458    }
459    programs {
460       program {
461          name: "click";
462          signal: "mouse,up,1";
463          source: "events";
464          action: SIGNAL_EMIT "elm,action,check,toggle" "";
465       }
466       program {
467          name: "check_on";
468          signal: "elm,state,check,on";
469          source: "elm";
470          after: "checkon";
471       }
472       program {
473          name: "checkon";
474          script {
475             set_state(PART:"check", "visible", 0.0);
476             set_state(PART:"elm.text", "checked", 0.0);
477          }
478       }
479       program {
480          name: "check_off";
481          signal: "elm,state,check,off";
482          source: "elm";
483          after:"checkoff";
484       }
485       program {
486          name: "checkoff";
487          script {
488             set_state(PART:"check", "default", 0.0);
489             set_state(PART:"elm.text", "default", 0.0);
490          }
491       }
492       program {
493          name: "text_show";
494          signal: "elm,state,text,visible";
495          source: "elm";
496          action:  STATE_SET "default" 0.0;
497          target: "elm.text";
498        }
499       program {
500          name: "text_hide";
501          signal: "elm,state,text,hidden";
502          source: "elm";
503          action:  STATE_SET "hide" 0.0;
504          target: "elm.text";
505       }
506    }
507 }
508 group {
509    name: "elm/check/base/dayselector/sun_first_mon";
510    alias: "elm/check/base/dayselector/sun_first_tue";
511    alias: "elm/check/base/dayselector/sun_first_wed";
512    alias: "elm/check/base/dayselector/sun_first_thu";
513    alias: "elm/check/base/dayselector/sun_first_fri";
514    alias: "elm/check/base/dayselector/mon_first_tue";
515    alias: "elm/check/base/dayselector/mon_first_wed";
516    alias: "elm/check/base/dayselector/mon_first_thu";
517    alias: "elm/check/base/dayselector/mon_first_fri";
518    images {
519       image: "00_alarm_repeat_button_normal_02.png" COMP;
520       image: "00_alarm_repeat_button_press_02.png" COMP;
521    }
522    parts {
523       part {
524          name: "bg";
525          mouse_events: 0;
526          scale: 1;
527          description {
528             state: "default" 0.0;
529             align: 0.5 0.5;
530             image {
531                normal: "00_alarm_repeat_button_normal_02.png";
532                border: 0 0 4 4;
533                border_scale: 1;
534             }
535          }
536       }
537       part {
538          name: "check";
539          mouse_events: 0;
540          scale: 1;
541          description {
542             state: "default" 0.0;
543             rel1 {to: "bg";}
544             rel2 {to: "bg";}
545             visible: 0;
546             image {
547                normal: "00_alarm_repeat_button_press_02.png";
548                border: 0 0 4 4;
549                border_scale: 1;
550             }
551          }
552          description {
553             state: "visible" 0.0;
554             inherit: "default" 0.0;
555             visible: 1;
556          }
557       }
558       part {
559          name: "elm.swallow.content";
560          type: SWALLOW;
561          description {
562             state: "default" 0.0;
563             fixed: 1 0;
564             visible: 0;
565             align: 0.0 0.5;
566             rel1.to_x: "bg";
567             rel1.relative: 1.0 0.0;
568             rel2.to_x: "bg";
569          }
570          description {
571             state: "visible" 0.0;
572             inherit: "default" 0.0;
573             fixed: 1 1;
574             visible: 1;
575             aspect: 1.0 1.0;
576             aspect_preference: VERTICAL;
577          }
578       }
579       part {
580          name: "elm.text";
581          type: TEXT;
582          mouse_events: 0;
583          scale: 1;
584          effect: SHADOW;
585          description {
586             state: "default" 0.0;
587             visible: 1;
588             rel1 {to: "bg";}
589             rel2 {to: "bg";}
590             color: DAYSELECTOR_WEEKDAY_COLOR_INC;
591             align: 0.5 0.5;
592             text {
593                font: "SLP:style=Medium";
594                size: 32;
595                min: 1 1;
596                align: 0.5 0.5;
597             }
598          }
599          description {
600             state: "hide" 0.0;
601             inherit: "default" 0.0;
602             visible: 0;
603          }
604          description {
605             state: "checked" 0.0;
606             inherit: "default" 0.0;
607             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
608          }
609       }
610       part {
611          name: "events";
612          type: RECT;
613          ignore_flags: ON_HOLD;
614          description {
615             state: "default" 0.0;
616             rel1 {to: "bg";}
617             rel2 {to: "bg";}
618             color: 0 0 0 0;
619          }
620       }
621    }
622    programs {
623       program {
624          name: "click";
625          signal: "mouse,up,1";
626          source: "events";
627          action: SIGNAL_EMIT "elm,action,check,toggle" "";
628       }
629       program {
630          name: "check_on";
631          signal: "elm,state,check,on";
632          source: "elm";
633          after: "checkon";
634       }
635       program {
636          name: "checkon";
637          script {
638             set_state(PART:"check", "visible", 0.0);
639             set_state(PART:"elm.text", "checked", 0.0);
640          }
641       }
642       program {
643          name: "check_off";
644          signal: "elm,state,check,off";
645          source: "elm";
646          after:"checkoff";
647       }
648       program {
649          name: "checkoff";
650          script {
651             set_state(PART:"check", "default", 0.0);
652             set_state(PART:"elm.text", "default", 0.0);
653          }
654       }
655       program {
656          name: "text_show";
657          signal: "elm,state,text,visible";
658          source: "elm";
659          action:  STATE_SET "default" 0.0;
660          target: "elm.text";
661        }
662       program {
663          name: "text_hide";
664          signal: "elm,state,text,hidden";
665          source: "elm";
666          action:  STATE_SET "hide" 0.0;
667          target: "elm.text";
668       }
669    }
670 }
671
672 group {
673    name: "elm/check/base/dayselector/mon_first_sat";
674    images {
675       image: "00_alarm_repeat_button_normal_02.png" COMP;
676       image: "00_alarm_repeat_button_press_02.png" COMP;
677    }
678    parts {
679       part {
680          name: "bg";
681          mouse_events: 0;
682          scale: 1;
683          description {
684             state: "default" 0.0;
685             align: 0.5 0.5;
686             image {
687                normal: "00_alarm_repeat_button_normal_02.png";
688                border: 0 0 4 4;
689                border_scale: 1;
690             }
691          }
692       }
693       part {
694          name: "check";
695          mouse_events: 0;
696          scale: 1;
697          description {
698             state: "default" 0.0;
699             rel1 {to: "bg";}
700             rel2 {to: "bg";}
701             visible: 0;
702             image {
703                normal: "00_alarm_repeat_button_press_02.png";
704                border: 0 0 4 4;
705                border_scale: 1;
706             }
707          }
708          description {
709             state: "visible" 0.0;
710             inherit: "default" 0.0;
711             visible: 1;
712          }
713       }
714       part {
715          name: "elm.swallow.content";
716          type: SWALLOW;
717          description {
718             state: "default" 0.0;
719             fixed: 1 0;
720             visible: 0;
721             align: 0.0 0.5;
722             rel1.to_x: "bg";
723             rel1.relative: 1.0 0.0;
724             rel2.to_x: "bg";
725          }
726          description {
727             state: "visible" 0.0;
728             inherit: "default" 0.0;
729             fixed: 1 1;
730             visible: 1;
731             aspect: 1.0 1.0;
732             aspect_preference: VERTICAL;
733          }
734       }
735       part {
736          name: "elm.text";
737          type: TEXT;
738          mouse_events: 0;
739          scale: 1;
740          effect: SHADOW;
741          description {
742             state: "default" 0.0;
743             visible: 1;
744             rel1 {to: "bg";}
745             rel2 {to: "bg";}
746             color: DAYSELECTOR_SATURDAY_COLOR_INC;
747             align: 0.5 0.5;
748             text {
749                font: "SLP:style=Medium";
750                size: 32;
751                min: 1 1;
752                align: 0.5 0.5;
753             }
754          }
755          description {
756             state: "hide" 0.0;
757             inherit: "default" 0.0;
758             visible: 0;
759          }
760          description {
761             state: "checked" 0.0;
762             inherit: "default" 0.0;
763             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
764          }
765       }
766       part {
767          name: "events";
768          type: RECT;
769          ignore_flags: ON_HOLD;
770          description {
771             state: "default" 0.0;
772             rel1 {to: "bg";}
773             rel2 {to: "bg";}
774             color: 0 0 0 0;
775          }
776       }
777    }
778    programs {
779       program {
780          name: "click";
781          signal: "mouse,up,1";
782          source: "events";
783          action: SIGNAL_EMIT "elm,action,check,toggle" "";
784       }
785       program {
786          name: "check_on";
787          signal: "elm,state,check,on";
788          source: "elm";
789          after: "checkon";
790       }
791       program {
792          name: "checkon";
793          script {
794             set_state(PART:"check", "visible", 0.0);
795             set_state(PART:"elm.text", "checked", 0.0);
796          }
797       }
798       program {
799          name: "check_off";
800          signal: "elm,state,check,off";
801          source: "elm";
802          after:"checkoff";
803       }
804       program {
805          name: "checkoff";
806          script {
807             set_state(PART:"check", "default", 0.0);
808             set_state(PART:"elm.text", "default", 0.0);
809          }
810       }
811       program {
812          name: "text_show";
813          signal: "elm,state,text,visible";
814          source: "elm";
815          action:  STATE_SET "default" 0.0;
816          target: "elm.text";
817        }
818       program {
819          name: "text_hide";
820          signal: "elm,state,text,hidden";
821          source: "elm";
822          action:  STATE_SET "hide" 0.0;
823          target: "elm.text";
824       }
825    }
826 }
827
828 group {
829    name: "elm/check/base/dayselector/sun_first_sat";
830    images {
831       image: "00_alarm_repeat_button_normal_03.png" COMP;
832       image: "00_alarm_repeat_button_press_03.png" COMP;
833    }
834    parts {
835       part {
836          name: "bg";
837          mouse_events: 0;
838          scale: 1;
839          description {
840             state: "default" 0.0;
841             align: 0.5 0.5;
842             image {
843                normal: "00_alarm_repeat_button_normal_03.png";
844                border: 0 4 4 4;
845                border_scale: 1;
846             }
847          }
848       }
849       part {
850          name: "check";
851          mouse_events: 0;
852          scale: 1;
853          description {
854             state: "default" 0.0;
855             rel1 {to: "bg";}
856             rel2 {to: "bg";}
857             visible: 0;
858             image {
859                normal: "00_alarm_repeat_button_press_03.png";
860                border: 0 4 4 4;
861                border_scale: 1;
862             }
863          }
864          description {
865             state: "visible" 0.0;
866             inherit: "default" 0.0;
867             visible: 1;
868          }
869       }
870       part {
871          name: "elm.swallow.content";
872          type: SWALLOW;
873          description {
874             state: "default" 0.0;
875             fixed: 1 0;
876             visible: 0;
877             align: 0.0 0.5;
878             rel1.to_x: "bg";
879             rel1.relative: 1.0 0.0;
880             rel2.to_x: "bg";
881          }
882          description {
883             state: "visible" 0.0;
884             inherit: "default" 0.0;
885             fixed: 1 1;
886             visible: 1;
887             aspect: 1.0 1.0;
888             aspect_preference: VERTICAL;
889          }
890       }
891       part {
892          name: "elm.text";
893          type: TEXT;
894          mouse_events: 0;
895          scale: 1;
896          effect: SHADOW;
897          description {
898             state: "default" 0.0;
899             visible: 1;
900             rel1 {to: "bg";}
901             rel2 {to: "bg";}
902             color: DAYSELECTOR_SATURDAY_COLOR_INC;
903             align: 0.5 0.5;
904             text {
905                font: "SLP:style=Medium";
906                size: 32;
907                min: 1 1;
908                align: 0.5 0.5;
909             }
910          }
911          description {
912             state: "hide" 0.0;
913             inherit: "default" 0.0;
914             visible: 0;
915          }
916          description {
917             state: "checked" 0.0;
918             inherit: "default" 0.0;
919             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
920          }
921       }
922       part {
923          name: "events";
924          type: RECT;
925          ignore_flags: ON_HOLD;
926          description {
927             state: "default" 0.0;
928             rel1 {to: "bg";}
929             rel2 {to: "bg";}
930             color: 0 0 0 0;
931          }
932       }
933    }
934    programs {
935       program {
936          name: "click";
937          signal: "mouse,up,1";
938          source: "events";
939          action: SIGNAL_EMIT "elm,action,check,toggle" "";
940       }
941       program {
942          name: "check_on";
943          signal: "elm,state,check,on";
944          source: "elm";
945          after: "checkon";
946       }
947       program {
948          name: "checkon";
949          script {
950             set_state(PART:"check", "visible", 0.0);
951             set_state(PART:"elm.text", "checked", 0.0);
952          }
953       }
954       program {
955          name: "check_off";
956          signal: "elm,state,check,off";
957          source: "elm";
958          after:"checkoff";
959       }
960       program {
961          name: "checkoff";
962          script {
963             set_state(PART:"check", "default", 0.0);
964             set_state(PART:"elm.text", "default", 0.0);
965          }
966       }
967       program {
968          name: "text_show";
969          signal: "elm,state,text,visible";
970          source: "elm";
971          action:  STATE_SET "default" 0.0;
972          target: "elm.text";
973        }
974       program {
975          name: "text_hide";
976          signal: "elm,state,text,hidden";
977          source: "elm";
978          action:  STATE_SET "hide" 0.0;
979          target: "elm.text";
980       }
981    }
982 }
983
984 group {
985    name: "elm/check/base/dayselector/mon_first_sun";
986    images {
987       image: "00_alarm_repeat_button_normal_03.png" COMP;
988       image: "00_alarm_repeat_button_press_03.png" COMP;
989    }
990    parts {
991       part {
992          name: "bg";
993          mouse_events: 0;
994          scale: 1;
995          description {
996             state: "default" 0.0;
997             align: 0.5 0.5;
998             image {
999                normal: "00_alarm_repeat_button_normal_03.png";
1000                border: 0 4 4 4;
1001                border_scale: 1;
1002             }
1003          }
1004       }
1005       part {
1006          name: "check";
1007          mouse_events: 0;
1008          scale: 1;
1009          description {
1010             state: "default" 0.0;
1011             rel1 {to: "bg";}
1012             rel2 {to: "bg";}
1013             visible: 0;
1014             image {
1015                normal: "00_alarm_repeat_button_press_03.png";
1016                border: 0 4 4 4;
1017                border_scale: 1;
1018             }
1019          }
1020          description {
1021             state: "visible" 0.0;
1022             inherit: "default" 0.0;
1023             visible: 1;
1024          }
1025       }
1026       part {
1027          name: "elm.swallow.content";
1028          type: SWALLOW;
1029          description {
1030             state: "default" 0.0;
1031             fixed: 1 0;
1032             visible: 0;
1033             align: 0.0 0.5;
1034             rel1.to_x: "bg";
1035             rel1.relative: 1.0 0.0;
1036             rel2.to_x: "bg";
1037          }
1038          description {
1039             state: "visible" 0.0;
1040             inherit: "default" 0.0;
1041             fixed: 1 1;
1042             visible: 1;
1043             aspect: 1.0 1.0;
1044             aspect_preference: VERTICAL;
1045          }
1046       }
1047       part {
1048          name: "elm.text";
1049          type: TEXT;
1050          mouse_events: 0;
1051          scale: 1;
1052          effect: SHADOW;
1053          description {
1054             state: "default" 0.0;
1055             visible: 1;
1056             rel1 {to: "bg";}
1057             rel2 {to: "bg";}
1058             color: DAYSELECTOR_SUNDAY_COLOR_INC;
1059             align: 0.5 0.5;
1060             text {
1061                font: "SLP:style=Medium";
1062                size: 32;
1063                min: 1 1;
1064                align: 0.5 0.5;
1065             }
1066          }
1067          description {
1068             state: "hide" 0.0;
1069             inherit: "default" 0.0;
1070             visible: 0;
1071          }
1072          description {
1073             state: "checked" 0.0;
1074             inherit: "default" 0.0;
1075             color: DAYSELECTOR_DAY_PRESSED_COLOR_INC;
1076          }
1077       }
1078       part {
1079          name: "events";
1080          type: RECT;
1081          ignore_flags: ON_HOLD;
1082          description {
1083             state: "default" 0.0;
1084             rel1 {to: "bg";}
1085             rel2 {to: "bg";}
1086             color: 0 0 0 0;
1087          }
1088       }
1089    }
1090    programs {
1091       program {
1092          name: "click";
1093          signal: "mouse,up,1";
1094          source: "events";
1095          action: SIGNAL_EMIT "elm,action,check,toggle" "";
1096       }
1097       program {
1098          name: "check_on";
1099          signal: "elm,state,check,on";
1100          source: "elm";
1101          after: "checkon";
1102       }
1103       program {
1104          name: "checkon";
1105          script {
1106             set_state(PART:"check", "visible", 0.0);
1107             set_state(PART:"elm.text", "checked", 0.0);
1108          }
1109       }
1110       program {
1111          name: "check_off";
1112          signal: "elm,state,check,off";
1113          source: "elm";
1114          after:"checkoff";
1115       }
1116       program {
1117          name: "checkoff";
1118          script {
1119             set_state(PART:"check", "default", 0.0);
1120             set_state(PART:"elm.text", "default", 0.0);
1121          }
1122       }
1123       program {
1124          name: "text_show";
1125          signal: "elm,state,text,visible";
1126          source: "elm";
1127          action:  STATE_SET "default" 0.0;
1128          target: "elm.text";
1129        }
1130       program {
1131          name: "text_hide";
1132          signal: "elm,state,text,hidden";
1133          source: "elm";
1134          action:  STATE_SET "hide" 0.0;
1135          target: "elm.text";
1136       }
1137    }
1138 }