Merge "[Button]Naviframe_control style macro's modified."
[profile/ivi/efl-theme-tizen.git] / themes / widgets / calendar.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define CH(_pos) \
20     part { name: "ch_"#_pos".base"; \
21        type: RECT; \
22        scale: 1;\
23        description { state: "default" 0.0; \
24           rel1 { \
25              relative: (_pos % 7 / 7) 0; \
26              to: "header"; \
27           } \
28           rel2 { \
29             relative: (_pos % 7 / 7 + 1 / 7) 1; \
30             to: "header"; \
31           } \
32           color: 0 0 0 0; \
33           visible: 0; \
34        } \
35     } \
36     part { name: "ch_"#_pos".text"; \
37        type: TEXT; \
38        mouse_events: 0; \
39        scale: 1; \
40        clip_to: "ch_"#_pos".clipper"; \
41        description { \
42           state: "default" 0.0; \
43           rel1.to: "ch_"#_pos".base"; \
44           rel2.to: "ch_"#_pos".base"; \
45           color: CALENDAR_WEEKDAY_FONT_COLOR_INC; \
46           text { \
47              font: "SLP:style=Roman"; \
48              size: CALENDAR_DAY_FONT_SIZE_INC; \
49              min: 1 1; \
50              align: 0.5 0.5; \
51              text_class: "slp_roman"; \
52           } \
53        } \
54     } \
55     part { name: "ch_"#_pos".clipper"; \
56        type: RECT; \
57        scale: 1; \
58        description { state: "default" 0.0; \
59           rel1.to: "ch_"#_pos".base"; \
60           rel2.to: "ch_"#_pos".base"; \
61        } \
62     }
63
64 #define CIT(_pos) \
65     part { name: "cit_"#_pos".rect"; \
66        scale: 1;\
67        description { state: "default" 0.0; \
68           rel1 { \
69             relative: (_pos % 7 / 7) \
70                   (_pos / 7 / 6 - _pos % 7 / 7 / 6); \
71             to: "base"; \
72           } \
73           rel2 { \
74             relative: (_pos % 7 / 7 + 1 / 7) \
75                   (_pos / 7 / 6 - _pos % 7 / 7 / 6 + 1 / 6); \
76             to: "base"; \
77             offset: 0 0; \
78           } \
79            image { \
80               normal: "00_picker_field_bg.png"; \
81            } \
82           visible: 1; \
83        } \
84        description { state: "selected" 0.0; \
85            inherit: "default" 0.0; \
86            image { \
87               normal: "00_picker_btn_press.png"; \
88               border: 2 2 4 4; \
89            } \
90        } \
91        description { state: "expand" 0.0; \
92           inherit: "default" 0.0; \
93           rel1 { \
94             relative: (_pos % 7 / 7) \
95                    (_pos / 7 / 5 - _pos % 7 / 7 / 5); \
96             to: "base"; \
97           } \
98           rel2 { \
99             relative: (_pos % 7 / 7 + 1 / 7) \
100                    (_pos / 7 / 5 - _pos % 7 / 7 / 5 + 1 / 5); \
101             to: "base"; \
102             offset: 0 0; \
103           } \
104        } \
105        description { state: "invisible" 0.0; \
106           inherit: "default" 0.0; \
107           min: 0 0; \
108           max: 0 0;\
109        } \
110        description { state: "today_normal" 0.0; \
111           inherit: "default" 0.0; \
112            image { \
113               normal: "00_picker_btn_current.png"; \
114               border: 5 4 4 4; \
115            } \
116        }\
117        description { state: "today_expand" 0.0; \
118            inherit: "expand" 0.0; \
119            image { \
120               normal: "00_picker_btn_current.png"; \
121               border: 5 4 4 4; \
122            } \
123         } \
124     } \
125     part { \
126        name: "cit_"#_pos".event"; \
127        type: RECT; \
128        scale: 1;\
129        repeat_events: 1; \
130        description { \
131           rel1.to: "cit_"#_pos".rect"; \
132           rel2.to: "cit_"#_pos".rect"; \
133           state: "default" 0.0; \
134           color: 0 0 0 0; \
135        } \
136     } \
137     part { \
138        name: "cit_"#_pos".bg"; \
139        mouse_events: 0; \
140        scale: 1;\
141        description { state: "default" 0.0; \
142           visible: 0; \
143           color: 255 255 255 0; \
144           rel1 { \
145             to: "cit_"#_pos".rect"; \
146             relative: 0.0 0.0; \
147           } \
148           rel2 { \
149             to: "cit_"#_pos".rect"; \
150             relative: 1.0 1.0; \
151            } \
152            image { \
153               normal: "00_calend_picker_day_press.png"; \
154            } \
155            image.middle: SOLID; \
156        } \
157        description { state: "selected" 0.0; \
158           inherit: "default" 0.0; \
159           visible: 1; \
160           color: 255 255 255 255; \
161        } \
162     } \
163     part { name: "cit_"#_pos".text"; \
164        type: TEXT; \
165        mouse_events: 0; \
166        scale: 1; \
167        description { \
168           state: "default" 0.0; \
169           rel1.to: "cit_"#_pos".rect"; \
170           rel2.to: "cit_"#_pos".rect"; \
171           color: CALENDAR_WEEKDAY_FONT_COLOR_INC; \
172           text { \
173              font: "SLP:style=Medium"; \
174              size: CALENDAR_DATE_FONT_SIZE_INC; \
175               min: 1 1; \
176               align: 0.5 0.5; \
177               text_class: "slp_medium"; \
178           } \
179         } \
180         description { state: "saturday" 0.0; \
181            inherit: "default" 0.0; \
182            color: CALENDAR_SATURDAY_FONT_COLOR_INC; \
183         } \
184         description { state: "sunday" 0.0; \
185             inherit: "default" 0.0; \
186             color:  CALENDAR_SUNDAY_FONT_COLOR_INC; \
187          } \
188          description { state: "selected" 0.0; \
189             inherit: "default" 0.0; \
190             color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
191          } \
192         description { state: "selected_saturday" 0.0; \
193            inherit: "default" 0.0; \
194            color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
195         } \
196         description { state: "selected_sunday" 0.0; \
197            inherit: "default" 0.0; \
198            color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
199         } \
200     } \
201     part { name: "cit_"#_pos".check"; \
202        mouse_events: 0; \
203        scale: 1;\
204        description { state: "default" 0.0; \
205            rel1 { \
206              to: "cit_"#_pos".rect"; \
207              relative: 0.7 0.6; \
208              offset: 1 1; \
209            } \
210            rel2 { \
211              to: "cit_"#_pos".rect"; \
212              relative: 1.1 1.2; \
213               offset: -2 -2; \
214            } \
215            aspect: 1 1; \
216            visible: 0; \
217            image.normal: "00_check_checking.png"; \
218        } \
219        description { state: "visible" 0.0; \
220           inherit: "default" 0.0; \
221           visible: 1; \
222        } \
223     } \
224    programs { \
225       program { \
226          name:    "cit_"#_pos".go_active"; \
227          signal:  "cit_"#_pos",selected"; \
228          source:  "elm"; \
229          script { \
230             new st[31]; \
231             new Float:vl; \
232             get_state(PART:"cit_"#_pos".text", st, 30, vl); \
233             if (!strcmp(st, "saturday")) \
234                set_state(PART:"cit_"#_pos".text", "selected_saturday", 0.0); \
235             else if (!strcmp(st, "sunday")) \
236                set_state(PART:"cit_"#_pos".text", "selected_sunday", 0.0); \
237             else \
238                set_state(PART:"cit_"#_pos".text", "selected", 0.0); \
239             set_state(PART:"cit_"#_pos".bg", "selected", 0.0); \
240          } \
241       } \
242       program { \
243          name:    "cit_"#_pos".go_passive"; \
244          signal:  "cit_"#_pos",unselected"; \
245          source:  "elm"; \
246          script { \
247             new st[31]; \
248             new Float:vl; \
249             get_state(PART:"cit_"#_pos".text", st, 30, vl); \
250             if (!strcmp(st, "selected_saturday")) \
251                set_state(PART:"cit_"#_pos".text", "saturday", 0.0); \
252             else if (!strcmp(st, "selected_sunday")) \
253                set_state(PART:"cit_"#_pos".text", "sunday", 0.0); \
254             else \
255                set_state(PART:"cit_"#_pos".text", "default", 0.0); \
256             set_state(PART:"cit_"#_pos".bg", "default", 0.0); \
257          } \
258       } \
259       program { \
260          name:    "cit_"#_pos".weekday"; \
261          signal:  "cit_"#_pos",weekday"; \
262          source:  "elm"; \
263          action:  STATE_SET "default" 0.0; \
264          target:  "cit_"#_pos".text"; \
265       } \
266       program { \
267          name:    "cit_"#_pos".saturday"; \
268          signal:  "cit_"#_pos",saturday"; \
269          source:  "elm"; \
270          action:  STATE_SET "saturday" 0.0; \
271          target:  "cit_"#_pos".text"; \
272       } \
273       program { \
274          name:    "cit_"#_pos".sunday"; \
275          signal:  "cit_"#_pos",sunday"; \
276          source:  "elm"; \
277          action:  STATE_SET "sunday" 0.0; \
278          target:  "cit_"#_pos".text"; \
279       } \
280       program { \
281          name:    "cit_"#_pos".is_today"; \
282          signal:  "cit_"#_pos",today"; \
283          source:  "elm"; \
284          script { \
285            new st[31]; \
286            new Float:vl; \
287            get_state(PART:"cit_"#_pos".rect", st, 30, vl); \
288            if (!strcmp(st, "expand")) \
289              { \
290                set_state(PART:"cit_"#_pos".rect", "today_expand", 0.0); \
291              } \
292            else \
293              { \
294                set_state(PART:"cit_"#_pos".rect", "today_normal", 0.0); \
295              } \
296           } \
297       } \
298       program { \
299          name:    "cit_"#_pos".not_today"; \
300          signal:  "cit_"#_pos",not_today"; \
301          source:  "elm"; \
302          action:  STATE_SET "default" 0.0; \
303          target: "cit_"#_pos".rect"; \
304       } \
305       program { \
306          source: "cit_"#_pos".clicked"; \
307          signal: "mouse,clicked,1"; \
308          source: "cit_"#_pos".event"; \
309          action: SIGNAL_EMIT "elm,action,selected" #_pos; \
310       } \
311       program { \
312          name:    "cit_"#_pos".clear"; \
313          signal:  "cit_"#_pos",clear"; \
314          source:  "elm"; \
315          action:  STATE_SET "default" 0.0; \
316          target: "cit_"#_pos".check"; \
317       } \
318       program { \
319          name:    "cit_"#_pos".checked"; \
320          signal:  "cit_"#_pos",checked"; \
321          source:  "elm"; \
322          action:  STATE_SET "visible" 0.0; \
323          target: "cit_"#_pos".check"; \
324       } \
325       program { \
326          name:    "cit_"#_pos".go_expanded"; \
327          signal:  "cit_"#_pos",cell_expanded"; \
328          source:  "elm"; \
329          action:  STATE_SET "expand" 0.0; \
330          target:  "cit_"#_pos".rect"; \
331       } \
332       program { \
333          name:    "cit_"#_pos".go_default"; \
334          signal:  "cit_"#_pos",cell_default"; \
335          source:  "elm"; \
336          action:  STATE_SET "default" 0.0; \
337          target:  "cit_"#_pos".rect"; \
338       } \
339       program { \
340          name:    "cit_"#_pos".go_invisible"; \
341          signal:  "cit_"#_pos",cell_invisible"; \
342          source:  "elm"; \
343          action:  STATE_SET "invisible" 0.0; \
344          target:  "cit_"#_pos".rect"; \
345       } \
346    }
347
348 #define CSEPV(_pos) \
349     part { name: "csep_"#_pos".vertical"; \
350        type: RECT; \
351        scale: 1;\
352        description { state: "default" 0.0; \
353           rel1 { \
354             relative: (_pos / 7) 0; \
355             to: "base"; \
356           } \
357           rel2 { \
358             relative: (_pos / 7) 1; \
359             to: "base"; \
360             offset: 1 0; \
361           } \
362           color: CALENDAR_SEPERATOR_FONT_COLOR_INC; \
363           visible: 1; \
364        } \
365     }
366
367 #define CSEPH(_pos) \
368     part { name: "csep_"#_pos".horizontal"; \
369        type: RECT; \
370        scale: 1;\
371        description { state: "default" 0.0; \
372           rel1 { \
373             relative: 0 (_pos / 6); \
374             to: "base"; \
375           } \
376           rel2 { \
377             relative: 1 (_pos / 6); \
378             to: "base"; \
379             offset: 0 1; \
380           } \
381           color: CALENDAR_SEPERATOR_FONT_COLOR_INC; \
382           visible: 1; \
383        } \
384        description { state: "expand" 0.0; \
385           inherit: "default" 0.0; \
386           rel1 { \
387             relative: 0 (_pos / 5); \
388             to: "base"; \
389           } \
390           rel2 { \
391             relative: 1 (_pos / 5); \
392             to: "base"; \
393             offset: 0 1; \
394           } \
395        } \
396        description { state: "invisible" 0.0; \
397           inherit: "default" 0.0; \
398           visible: 0; \
399        } \
400     } \
401       programs { \
402          program { \
403             name:    "cseph_"_pos".go_show"; \
404             signal:  "cseph_"#_pos",row_show"; \
405             source:  "elm"; \
406             action:  STATE_SET "default" 0.0; \
407             target:  "csep_"#_pos".horizontal"; \
408          } \
409         program { \
410             name:    "cseph_"_pos".go_hide"; \
411             signal:  "cseph_"#_pos",row_hide"; \
412             source:  "elm"; \
413             action:  STATE_SET "expand" 0.0; \
414             target:  "csep_"#_pos".horizontal"; \
415          } \
416        program { \
417             name:    "cseph_"_pos".go_invisible"; \
418             signal:  "cseph_"#_pos",row_invisible"; \
419             source:  "elm"; \
420             action:  STATE_SET "invisible" 0.0; \
421             target:  "csep_"#_pos".horizontal"; \
422          } \
423     }
424
425    group { name: "elm/calendar/base/default";
426       images {
427          image: "00_check_checking.png" COMP;
428          image: "00_picker_arrow_left.png" COMP;
429          image: "00_picker_arrow_left_press.png" COMP;
430          image: "00_picker_arrow_right.png" COMP;
431          image: "00_picker_arrow_right_press.png" COMP;
432          image: "00_picker_btn_press.png" COMP;
433          image: "00_picker_btn_normal.png" COMP;
434          image: "00_calend_picker_day_press.png" COMP;
435          image: "00_picker_btn_current.png" COMP;
436          image: "00_picker_btn_press.png" COMP;
437          image: "00_picker_field_bg.png" COMP;
438       }
439       script { 
440          public day_type; 
441       } 
442       parts {
443          part { name: "bg";
444             type: RECT;
445             scale: 1;
446             description { state: "default" 0.0;
447                min: 0 30;
448                color: CALENDAR_BACKGROUND_COLOR_INC;
449                align: 0.0 0.5;
450             }
451          }
452          part { name: "spinner-base";
453             type: RECT;
454             mouse_events: 0;
455             scale: 1;
456             description { state: "default" 0.0;
457                min: CALENDAR_HEADER_MIN_WIDTH_INC CALENDAR_HEADER_MIN_HEIGHT_INC;
458                max: 999999 CALENDAR_HEADER_MIN_HEIGHT_INC;
459                rel1.to: "bg";
460                rel1.offset: 5 9;
461                rel2.to: "bg";
462                rel2.offset: -5 -9;
463                color: CALENDAR_BACKGROUND_COLOR_INC;
464                align: 0.0 0.0;
465             }
466          }
467          part { name: "table-base";
468             type: RECT;
469             mouse_events: 0;
470             scale: 1;
471             description { state: "default" 0.0;
472                min: CALENDAR_BASE_MIN_WIDTH_INC CALENDAR_BASE_MIN_HEIGHT_INC;
473                rel1.to_x: "bg";
474                rel1.to_y: "spinner-base";
475                rel1.offset: 6 0;
476                rel1.relative: 0 1;
477                rel2.to: "bg";
478                rel2.offset: -6 -3;
479                color: CALENDAR_BACKGROUND_COLOR_INC;
480             }
481          }
482          part { name: "header";
483             type: RECT;
484             mouse_events: 0;
485             scale: 1;
486             description { state: "default" 0.0;
487                rel1.to: "table-base";
488                rel1.relative: 0 0;
489                rel2.to: "table-base";
490                rel2.relative: 1 0.1;
491                color: CALENDAR_BACKGROUND_COLOR_INC;
492             }
493          }
494          part { name: "sep_header";
495             type: RECT;
496             mouse_events: 0;
497             scale: 1;
498             description { state: "default" 0.0;
499                rel1.to: "header";
500                rel1.relative: 0 1;
501                rel2.to: "header";
502                rel2.relative: 1 1;
503                rel2.offset: 0 2;
504                color: CALENDAR_SEPERATOR_FONT_COLOR_INC;
505             }
506          }
507          part { name: "base";
508             type: RECT;
509             mouse_events: 0;
510             scale: 1;
511             description { state: "default" 0.0;
512                rel1.to_x: "table-base";
513                rel1.to_y: "sep_header";
514                rel1.relative: 0 1;
515                rel1.offset: 3 0;
516                rel2.to: "table-base";
517                rel2.relative: 1 1;
518                rel2.offset: -3 -5;
519                color: 202 2 2 0;
520             }
521          }
522          part { name: "sep_vertical1";
523             type: RECT;
524             scale: 1;
525             description { state: "default" 0.0;
526                rel1.to: "base";
527                rel1.relative: 1/7 0;
528                rel2.to: "base";
529                rel2.relative: 1/7 1;
530                rel2.offset: 1 0;
531                color: CALENDAR_SEPERATOR_FONT_COLOR_INC;
532             }
533          }
534          part { name: "left_bt";
535             mouse_events:  1;
536             scale: 1;
537             description { state: "default" 0.0;
538                rel1 { to: "spinner-base";
539                   offset: 0 0;
540                }
541                rel2 { to: "spinner-base";
542                   offset: 0 0;
543                }
544                align: 0.0 0.5;
545                min: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
546                max: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
547                fixed: 1 1;
548                image {
549                   normal: "00_picker_btn_normal.png";
550                   border: 4 4 4 4;
551                   border_scale: 1;
552                }
553                fill.smooth : 0;
554             }
555             description { state: "clicked" 0.0;
556                inherit: "default" 0.0;
557                image.normal: "00_picker_btn_press.png";
558             }
559          }
560          part { name: "left_arrow";
561             mouse_events: 0;
562             scale: 1;
563             description { state: "default" 0.0;
564                rel1 { to: "left_bt"; }
565                rel2 { to: "left_bt"; }
566                align: 0.5 0.5;
567                min: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
568                max: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
569                fixed: 1 1;
570                image {
571                  normal: "00_picker_arrow_left.png";
572                }
573             }
574             description { state: "clicked" 0.0;
575                inherit: "default" 0.0;
576                image.normal: "00_picker_arrow_left_press.png";
577             }
578          }
579          part { name: "right_bt";
580             mouse_events:  1;
581             scale: 1;
582             description { state: "default" 0.0;
583                rel1 { to: "spinner-base";
584                   offset: 0 0;
585                }
586                rel2 { to: "spinner-base";
587                   offset: 0 0;
588                }
589                align: 1.0 0.5;
590                min: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
591                max: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
592                fixed: 1 1;
593                image {
594                   normal: "00_picker_btn_normal.png";
595                   border: 4 4 4 4;
596                   border_scale: 1;
597                }
598                fill.smooth : 0;
599             }
600             description { state: "clicked" 0.0;
601                inherit: "default" 0.0;
602                image.normal: "00_picker_btn_press.png";
603             }
604          }
605          part { name: "right_arrow";
606             mouse_events:  0;
607             scale: 1;
608             description { state: "default" 0.0;
609                rel1 { to: "right_bt"; }
610                rel2 { to: "right_bt"; }
611                align: 0.5 0.5;
612                fixed: 1 1;
613                min: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
614                max: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
615                image {
616                   normal: "00_picker_arrow_right.png";
617                }
618             }
619             description { state: "clicked" 0.0;
620                inherit: "default" 0.0;
621                image.normal: "00_picker_arrow_right_press.png";
622             }
623          }
624          part { name: "month_text";
625             type: TEXT;
626             mouse_events: 0;
627             scale: 1;
628             description { state: "default" 0.0;
629                align: 0 0.5;
630                fixed: 1 1;
631                rel1 { relative: 1.0 0.0;
632                   offset: 3 2;
633                   to: "left_bt";
634                   to_y: "spinner-base";
635                }
636                rel2 { relative: 0.0 1.0;
637                   offset: -3 -2;
638                   to_x: "right_bt";
639                   to_y: "spinner-base";
640                }
641                color: CALENDAR_MONTH_FONT_COLOR_INC;
642                text {
643                   font: "SLP:style=Medium";
644                   size: CALENDAR_MONTH_FONT_SIZE_INC;
645                   min: 1 1;
646                   align: 0.5 0.5;
647                   text_class: "slp_medium";
648                }
649             }
650          }
651          CH(0)   CH(1)   CH(2)   CH(3)   CH(4)   CH(5)   CH(6)
652          CIT(0)  CIT(1)  CIT(2)  CIT(3)  CIT(4)  CIT(5)  CIT(6)
653          CIT(7)  CIT(8)  CIT(9)  CIT(10) CIT(11) CIT(12) CIT(13)
654          CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20)
655          CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27)
656          CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34)
657          CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41)
658          CSEPV(1) CSEPV(2) CSEPV(3) CSEPV(4) CSEPV(5) CSEPV(6)
659          CSEPH(1) CSEPH(2) CSEPH(3) CSEPH(4) CSEPH(5) CSEPH(6)
660       }
661       programs {
662          program { name: "dec_start";
663             signal: "mouse,down,1";
664             source: "left_bt";
665             action: SIGNAL_EMIT "elm,action,decrement,start" "";
666          }
667          program { name: "dec_stop";
668             signal: "mouse,up,1";
669             source: "left_bt";
670             action: SIGNAL_EMIT "elm,action,stop" "";
671          }
672          program { name: "inc_start";
673             signal: "mouse,down,1";
674             source: "right_bt";
675             action: SIGNAL_EMIT "elm,action,increment,start" "";
676          }
677          program { name: "inc_stop";
678             signal: "mouse,up,1";
679             source: "right_bt";
680             action: SIGNAL_EMIT "elm,action,stop" "";
681          }
682          program {
683             name:   "left_bt_click";
684             signal: "mouse,down,1";
685             source: "left_bt";
686             action: STATE_SET "clicked" 0.0;
687             target: "left_bt";
688             target: "left_arrow";
689          }
690          program {
691             name:   "left_bt_unclick";
692             signal: "mouse,up,1";
693             source: "left_bt";
694             action: STATE_SET "default" 0.0;
695             target: "left_bt";
696             target: "left_arrow";
697          }
698          program {
699             name:   "right_bt_click";
700             signal: "mouse,down,1";
701             source: "right_bt";
702             action: STATE_SET "clicked" 0.0;
703             target: "right_bt";
704             target: "right_arrow";
705          }
706          program {
707             name:   "right_bt_unclick";
708             signal: "mouse,up,1";
709             source: "right_bt";
710             action: STATE_SET "default" 0.0;
711             target: "right_bt";
712             target: "right_arrow";
713          }
714       }
715    }
716
717 #undef CIT
718 #undef CH
719