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