Initialize Tizen 2.3
[framework/uifw/elementary.git] / mobile / data / themes / widgets / clock.edc
1 group { name: "elm/clock/flipdigit/default";
2    images {
3       image: "flip_base.png" COMP;
4       image: "flip_base_shad.png" COMP;
5       image: "flip_shad.png" COMP;
6       image: "flip_0t.png" COMP;
7       image: "flip_0b.png" COMP;
8       image: "flip_1t.png" COMP;
9       image: "flip_1b.png" COMP;
10       image: "flip_2t.png" COMP;
11       image: "flip_2b.png" COMP;
12       image: "flip_3t.png" COMP;
13       image: "flip_3b.png" COMP;
14       image: "flip_4t.png" COMP;
15       image: "flip_4b.png" COMP;
16       image: "flip_5t.png" COMP;
17       image: "flip_5b.png" COMP;
18       image: "flip_6t.png" COMP;
19       image: "flip_6b.png" COMP;
20       image: "flip_7t.png" COMP;
21       image: "flip_7b.png" COMP;
22       image: "flip_8t.png" COMP;
23       image: "flip_8b.png" COMP;
24       image: "flip_9t.png" COMP;
25       image: "flip_9b.png" COMP;
26       image: "arrow_up.png" COMP;
27       image: "arrow_down.png" COMP;
28    }
29    script {
30       public v0_cur, v0_pre, v0_lock, v0_next;
31
32       public animator2(val, Float:pos) {
33          new st1[11], st2[11], v;
34
35          v = get_int(v0_cur);
36          snprintf(st1, 10, "%ih", v);
37          snprintf(st2, 10, "%i", v);
38          set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0);
39          set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0);
40          if (pos >= 1.0) {
41             set_state(PART:"sh", "default", 0.0);
42             set_int(v0_lock, 0);
43             v = get_int(v0_next);
44             if (v >= 0) {
45                set_int(v0_next, -1);
46                message(MSG_INT, 1, v);
47             }
48          }
49       }
50       public animator1(val, Float:pos) {
51          new st1[11], st2[11], v;
52
53          v = get_int(v0_pre);
54          snprintf(st1, 10, "%i", v);
55          snprintf(st2, 10, "%ih", v);
56          set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0);
57          set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0);
58          if (pos >= 1.0) anim(0.2, "animator2", val);
59       }
60       public message(Msg_Type:type, id, ...) {
61          if ((type == MSG_INT) && (id == 1)) {
62             new value, v, buf[11];
63
64             value = getarg(2);
65             if (get_int(v0_lock) == 1) {
66                set_int(v0_next, value);
67                return;
68             }
69             v = get_int(v0_cur);
70             set_int(v0_pre, v);
71             set_int(v0_cur, value);
72             set_int(v0_lock, 1);
73             snprintf(buf, 10, "%i", get_int(v0_pre));
74             set_state(PART:"bot0", buf, 0.0);
75             snprintf(buf, 10, "%ih", get_int(v0_cur));
76             set_state(PART:"bot", buf, 0.0);
77             snprintf(buf, 10, "%i", get_int(v0_cur));
78             set_state(PART:"top0", buf, 0.0);
79             snprintf(buf, 10, "%i", get_int(v0_pre));
80             set_state(PART:"top", buf, 0.0);
81             set_state(PART:"sh", "default", 0.0);
82             anim(0.2, "animator1", 1);
83          }
84       }
85    }
86    parts {
87       part { name: "shad";
88          mouse_events: 0;
89          description { state: "default" 0.0;
90             rel1.offset: -4 -4;
91             rel1.to: "base";
92             rel2.offset: 3 3;
93             rel2.to: "base";
94             image {
95                normal: "flip_base_shad.png";
96                border: 8 8 8 8;
97             }
98          }
99       }
100       part { name: "base";
101          scale: 1;
102          description { state: "default" 0.0;
103             rel1.offset: 4 4;
104             rel2.offset: -5 -5;
105             // FIXME 48x96 should be the native pixel design, right now
106             // its 80x160. fix int he artwork later
107             min: 24 48;
108             aspect: 0.5 0.5;
109                     //               max: 24 48;
110             image.normal: "flip_base.png";
111          }
112       }
113       part { name: "b";
114          type: RECT;
115          mouse_events: 1;
116          description { state: "default" 0.0;
117             visible: 0;
118             rel1.to: "base";
119             rel1.relative: 0.0 0.5;
120             rel2.to: "base";
121             color: 0 0 0 0;
122          }
123          description { state: "visible" 0.0;
124             inherit: "default" 0.0;
125             visible: 1;
126          }
127       }
128       part { name: "t";
129          type: RECT;
130          mouse_events: 1;
131          description { state: "default" 0.0;
132             visible: 0;
133             rel1.to: "base";
134             rel2.to: "base";
135             rel2.relative: 1.0 0.5;
136             color: 0 0 0 0;
137          }
138          description { state: "visible" 0.0;
139             inherit: "default" 0.0;
140             visible: 1;
141          }
142       }
143       part { name: "bot0";
144          mouse_events: 0;
145          description { state: "default" 0.0;
146             rel1.to: "b";
147             rel2.to: "b";
148             image.normal: "flip_0b.png";
149          }
150          description { state: "0" 0.0;
151             inherit: "default" 0.0;
152             image.normal: "flip_0b.png";
153          }
154          description { state: "1" 0.0;
155             inherit: "default" 0.0;
156             image.normal: "flip_1b.png";
157          }
158          description { state: "2" 0.0;
159             inherit: "default" 0.0;
160             image.normal: "flip_2b.png";
161          }
162          description { state: "3" 0.0;
163             inherit: "default" 0.0;
164             image.normal: "flip_3b.png";
165          }
166          description { state: "4" 0.0;
167             inherit: "default" 0.0;
168             image.normal: "flip_4b.png";
169          }
170          description { state: "5" 0.0;
171             inherit: "default" 0.0;
172             image.normal: "flip_5b.png";
173          }
174          description { state: "6" 0.0;
175             inherit: "default" 0.0;
176             image.normal: "flip_6b.png";
177          }
178          description { state: "7" 0.0;
179             inherit: "default" 0.0;
180             image.normal: "flip_7b.png";
181          }
182          description { state: "8" 0.0;
183             inherit: "default" 0.0;
184             image.normal: "flip_8b.png";
185          }
186          description { state: "9" 0.0;
187             inherit: "default" 0.0;
188             image.normal: "flip_9b.png";
189          }
190       }
191       part { name: "sh";
192          mouse_events: 0;
193          description { state: "default" 0.0;
194             rel1.to: "b";
195             rel2.to: "b";
196             rel2.relative: 1.0 0.0;
197             image.normal: "flip_shad.png";
198          }
199          description { state: "half" 0.0;
200             inherit: "default" 0.0;
201             rel2.relative: 1.0 0.5;
202          }
203          description { state: "full" 0.0;
204             inherit: "default" 0.0;
205             rel2.relative: 1.0 1.0;
206          }
207       }
208       part { name: "bot";
209          mouse_events: 0;
210          description { state: "default" 0.0;
211             visible: 1;
212             rel1.to: "b";
213             rel2.to: "b";
214             image.normal: "flip_0b.png";
215          }
216          description { state: "0" 0.0;
217             inherit: "default" 0.0;
218             visible: 1;
219             rel2.relative: 1.0 1.0;
220             image.normal: "flip_0b.png";
221          }
222          description { state: "0h" 0.0;
223             inherit: "default" 0.0;
224             visible: 0;
225             rel2.relative: 1.0 0.0;
226             image.normal: "flip_0b.png";
227          }
228          description { state: "1" 0.0;
229             inherit: "default" 0.0;
230             visible: 1;
231             rel2.relative: 1.0 1.0;
232             image.normal: "flip_1b.png";
233          }
234          description { state: "1h" 0.0;
235             inherit: "default" 0.0;
236             visible: 0;
237             rel2.relative: 1.0 0.0;
238             image.normal: "flip_1b.png";
239          }
240          description { state: "2" 0.0;
241             inherit: "default" 0.0;
242             visible: 1;
243             rel2.relative: 1.0 1.0;
244             image.normal: "flip_2b.png";
245          }
246          description { state: "2h" 0.0;
247             inherit: "default" 0.0;
248             visible: 0;
249             rel2.relative: 1.0 0.0;
250             image.normal: "flip_2b.png";
251          }
252          description { state: "3" 0.0;
253             inherit: "default" 0.0;
254             visible: 1;
255             rel2.relative: 1.0 1.0;
256             image.normal: "flip_3b.png";
257          }
258          description { state: "3h" 0.0;
259             inherit: "default" 0.0;
260             visible: 0;
261             rel2.relative: 1.0 0.0;
262             image.normal: "flip_3b.png";
263          }
264          description { state: "4" 0.0;
265             inherit: "default" 0.0;
266             visible: 1;
267             rel2.relative: 1.0 1.0;
268             image.normal: "flip_4b.png";
269          }
270          description { state: "4h" 0.0;
271             inherit: "default" 0.0;
272             visible: 0;
273             rel2.relative: 1.0 0.0;
274             image.normal: "flip_4b.png";
275          }
276          description { state: "5" 0.0;
277             inherit: "default" 0.0;
278             visible: 1;
279             rel2.relative: 1.0 1.0;
280             image.normal: "flip_5b.png";
281          }
282          description { state: "5h" 0.0;
283             inherit: "default" 0.0;
284             visible: 0;
285             rel2.relative: 1.0 0.0;
286             image.normal: "flip_5b.png";
287          }
288          description { state: "6" 0.0;
289             inherit: "default" 0.0;
290             visible: 1;
291             rel2.relative: 1.0 1.0;
292             image.normal: "flip_6b.png";
293          }
294          description { state: "6h" 0.0;
295             inherit: "default" 0.0;
296             visible: 0;
297             rel2.relative: 1.0 0.0;
298             image.normal: "flip_6b.png";
299          }
300          description { state: "7" 0.0;
301             inherit: "default" 0.0;
302             visible: 1;
303             rel2.relative: 1.0 1.0;
304             image.normal: "flip_7b.png";
305          }
306          description { state: "7h" 0.0;
307             inherit: "default" 0.0;
308             visible: 0;
309             rel2.relative: 1.0 0.0;
310             image.normal: "flip_7b.png";
311          }
312          description { state: "8" 0.0;
313             inherit: "default" 0.0;
314             visible: 1;
315             rel2.relative: 1.0 1.0;
316             image.normal: "flip_8b.png";
317          }
318          description { state: "8h" 0.0;
319             inherit: "default" 0.0;
320             visible: 0;
321             rel2.relative: 1.0 0.0;
322             image.normal: "flip_8b.png";
323          }
324          description { state: "9" 0.0;
325             inherit: "default" 0.0;
326             visible: 1;
327             rel2.relative: 1.0 1.0;
328             image.normal: "flip_9b.png";
329          }
330          description { state: "9h" 0.0;
331             inherit: "default" 0.0;
332             visible: 0;
333             rel2.relative: 1.0 0.0;
334             image.normal: "flip_9b.png";
335          }
336       }
337       part { name: "top0";
338          mouse_events: 0;
339          description { state: "default" 0.0;
340             rel1.to: "t";
341             rel2.to: "t";
342             image.normal: "flip_0t.png";
343          }
344          description { state: "0" 0.0;
345             inherit: "default" 0.0;
346             image.normal: "flip_0t.png";
347          }
348          description { state: "1" 0.0;
349             inherit: "default" 0.0;
350             image.normal: "flip_1t.png";
351          }
352          description { state: "2" 0.0;
353             inherit: "default" 0.0;
354             image.normal: "flip_2t.png";
355          }
356          description { state: "3" 0.0;
357             inherit: "default" 0.0;
358             image.normal: "flip_3t.png";
359          }
360          description { state: "4" 0.0;
361             inherit: "default" 0.0;
362             image.normal: "flip_4t.png";
363          }
364          description { state: "5" 0.0;
365             inherit: "default" 0.0;
366             image.normal: "flip_5t.png";
367          }
368          description { state: "6" 0.0;
369             inherit: "default" 0.0;
370             image.normal: "flip_6t.png";
371          }
372          description { state: "7" 0.0;
373             inherit: "default" 0.0;
374             image.normal: "flip_7t.png";
375          }
376          description { state: "8" 0.0;
377             inherit: "default" 0.0;
378             image.normal: "flip_8t.png";
379          }
380          description { state: "9" 0.0;
381             inherit: "default" 0.0;
382             image.normal: "flip_9t.png";
383          }
384       }
385       part { name: "top";
386          mouse_events: 0;
387          description { state: "default" 0.0;
388             visible: 1;
389             rel1.to: "t";
390             rel2.to: "t";
391             image.normal: "flip_0t.png";
392          }
393          description { state: "0" 0.0;
394             inherit: "default" 0.0;
395             visible: 1;
396             rel1.relative: 0.0 0.0;
397             image.normal: "flip_0t.png";
398          }
399          description { state: "0h" 0.0;
400             inherit: "default" 0.0;
401             color: 128 128 128 255;
402             visible: 0;
403             rel1.relative: 0.0 1.0;
404             image.normal: "flip_0t.png";
405          }
406          description { state: "1" 0.0;
407             inherit: "default" 0.0;
408             visible: 1;
409             rel1.relative: 0.0 0.0;
410             image.normal: "flip_1t.png";
411          }
412          description { state: "1h" 0.0;
413             inherit: "default" 0.0;
414             color: 128 128 128 255;
415             visible: 0;
416             rel1.relative: 0.0 1.0;
417             image.normal: "flip_1t.png";
418          }
419          description { state: "2" 0.0;
420             inherit: "default" 0.0;
421             visible: 1;
422             rel1.relative: 0.0 0.0;
423             image.normal: "flip_2t.png";
424          }
425          description { state: "2h" 0.0;
426             inherit: "default" 0.0;
427             color: 128 128 128 255;
428             visible: 0;
429             rel1.relative: 0.0 1.0;
430             image.normal: "flip_2t.png";
431          }
432          description { state: "3" 0.0;
433             inherit: "default" 0.0;
434             visible: 1;
435             rel1.relative: 0.0 0.0;
436             image.normal: "flip_3t.png";
437          }
438          description { state: "3h" 0.0;
439             inherit: "default" 0.0;
440             color: 128 128 128 255;
441             visible: 0;
442             rel1.relative: 0.0 1.0;
443             image.normal: "flip_3t.png";
444          }
445          description { state: "4" 0.0;
446             inherit: "default" 0.0;
447             visible: 1;
448             rel1.relative: 0.0 0.0;
449             image.normal: "flip_4t.png";
450          }
451          description { state: "4h" 0.0;
452             inherit: "default" 0.0;
453             color: 128 128 128 255;
454             visible: 0;
455             rel1.relative: 0.0 1.0;
456             image.normal: "flip_4t.png";
457          }
458          description { state: "5" 0.0;
459             inherit: "default" 0.0;
460             visible: 1;
461             rel1.relative: 0.0 0.0;
462             image.normal: "flip_5t.png";
463          }
464          description { state: "5h" 0.0;
465             inherit: "default" 0.0;
466             color: 128 128 128 255;
467             visible: 0;
468             rel1.relative: 0.0 1.0;
469             image.normal: "flip_5t.png";
470          }
471          description { state: "6" 0.0;
472             inherit: "default" 0.0;
473             visible: 1;
474             rel1.relative: 0.0 0.0;
475             image.normal: "flip_6t.png";
476          }
477          description { state: "6h" 0.0;
478             inherit: "default" 0.0;
479             color: 128 128 128 255;
480             visible: 0;
481             rel1.relative: 0.0 1.0;
482             image.normal: "flip_6t.png";
483          }
484          description { state: "7" 0.0;
485             inherit: "default" 0.0;
486             visible: 1;
487             rel1.relative: 0.0 0.0;
488             image.normal: "flip_7t.png";
489          }
490          description { state: "7h" 0.0;
491             inherit: "default" 0.0;
492             color: 128 128 128 255;
493             visible: 0;
494             rel1.relative: 0.0 1.0;
495             image.normal: "flip_7t.png";
496          }
497          description { state: "8" 0.0;
498             inherit: "default" 0.0;
499             visible: 1;
500             rel1.relative: 0.0 0.0;
501             image.normal: "flip_8t.png";
502          }
503          description { state: "8h" 0.0;
504             inherit: "default" 0.0;
505             color: 128 128 128 255;
506             visible: 0;
507             rel1.relative: 0.0 1.0;
508             image.normal: "flip_8t.png";
509          }
510          description { state: "9" 0.0;
511             inherit: "default" 0.0;
512             visible: 1;
513             rel1.relative: 0.0 0.0;
514             image.normal: "flip_9t.png";
515          }
516          description { state: "9h" 0.0;
517             inherit: "default" 0.0;
518             color: 128 128 128 255;
519             visible: 0;
520             rel1.relative: 0.0 1.0;
521             image.normal: "flip_9t.png";
522          }
523       }
524       part { name: "atop";
525          mouse_events: 0;
526          scale: 1;
527          description { state: "default" 0.0;
528             visible: 0;
529             min: 15 15;
530             max: 15 15;
531             align: 0.5 0.0;
532             rel1.to: "t";
533             rel2.to: "t";
534             image.normal: "arrow_up.png";
535          }
536          description { state: "visible" 0.0;
537             inherit: "default" 0.0;
538             visible: 1;
539          }
540       }
541       part { name: "abot";
542          mouse_events: 0;
543          scale: 1;
544          description { state: "default" 0.0;
545             visible: 0;
546             min: 15 15;
547             max: 15 15;
548             align: 0.5 1.0;
549             rel1.to: "b";
550             rel2.to: "b";
551             image.normal: "arrow_down.png";
552          }
553          description { state: "visible" 0.0;
554             inherit: "default" 0.0;
555             visible: 1;
556          }
557       }
558       part { name: "access.t";
559          type: RECT;
560          description { state: "default" 0.0;
561             rel1.to: "t";
562             rel2.to: "t";
563             color: 0 0 0 0;
564             visible: 0;
565          }
566          description { state: "visible" 0.0;
567             inherit: "default" 0.0;
568             visible: 1;
569          }
570       }
571       part { name: "access.b";
572          type: RECT;
573          description { state: "default" 0.0;
574             rel1.to: "b";
575             rel2.to: "b";
576             color: 0 0 0 0;
577             visible: 0;
578          }
579          description { state: "visible" 0.0;
580             inherit: "default" 0.0;
581             visible: 1;
582          }
583       }
584    }
585    programs {
586       program { name: "load";
587          signal: "load";
588          source: "";
589          script {
590             set_int(v0_cur, 0);
591             set_int(v0_pre, 0);
592             set_int(v0_lock, 0);
593             set_int(v0_next, -1);
594          }
595       }
596       program { name: "edit_on";
597          signal: "elm,state,edit,on";
598          source: "elm";
599          action: STATE_SET "visible" 0.0;
600          target: "atop";
601          target: "abot";
602          target: "t";
603          target: "b";
604       }
605       program { name: "edit_off";
606          signal: "elm,state,edit,off";
607          source: "elm";
608          action: STATE_SET "default" 0.0;
609          target: "atop";
610          target: "abot";
611          target: "t";
612          target: "b";
613       }
614       program { name: "up";
615          signal: "mouse,down,1";
616          source: "t";
617          action: SIGNAL_EMIT "elm,action,up,start" "";
618       }
619       program { name: "up,stop";
620          signal: "mouse,up,1";
621          source: "t";
622          action: SIGNAL_EMIT "elm,action,up,stop" "";
623       }
624       program { name: "down";
625          signal: "mouse,down,1";
626          source: "b";
627          action: SIGNAL_EMIT "elm,action,down,start" "";
628       }
629       program { name: "down,stop";
630          signal: "mouse,up,1";
631          source: "b";
632          action: SIGNAL_EMIT "elm,action,down,stop" "";
633       }
634       program { name: "access_edit_on";
635          signal: "elm,state,access,edit,on";
636          source: "elm";
637          action: STATE_SET "visible" 0.0;
638          target: "access.t";
639          target: "access.b";
640       }
641       program { name: "access_edit_off";
642          signal: "elm,state,access,edit,off";
643          source: "elm";
644          action: STATE_SET "default" 0.0;
645          target: "access.t";
646          target: "access.b";
647       }
648       program { name: "access,up";
649          signal: "mouse,down,1";
650          source: "access.t";
651          action: SIGNAL_EMIT "elm,action,up,start" "";
652       }
653       program { name: "access,up,stop";
654          signal: "mouse,up,1";
655          source: "access.t";
656          action: SIGNAL_EMIT "elm,action,up,stop" "";
657       }
658       program { name: "access,down";
659          signal: "mouse,down,1";
660          source: "access.b";
661          action: SIGNAL_EMIT "elm,action,down,start" "";
662       }
663       program { name: "access,down,stop";
664          signal: "mouse,up,1";
665          source: "access.b";
666          action: SIGNAL_EMIT "elm,action,down,stop" "";
667       }
668    }
669 }
670
671 group { name: "elm/clock/flipampm/default";
672    images {
673       image: "flip_base.png" COMP;
674       image: "flip_base_shad.png" COMP;
675       image: "flip_shad.png" COMP;
676       image: "flip_amt.png" COMP;
677       image: "flip_amb.png" COMP;
678       image: "flip_pmt.png" COMP;
679       image: "flip_pmb.png" COMP;
680       image: "arrow_up.png" COMP;
681       image: "arrow_down.png" COMP;
682    }
683    script {
684       public v0_cur, v0_pre, v0_lock, v0_next;
685
686       public animator2(val, Float:pos) {
687          new st1[11], st2[11], v;
688
689          v = get_int(v0_cur);
690          snprintf(st1, 10, "%ih", v);
691          snprintf(st2, 10, "%i", v);
692          set_tween_state(PART:"bot", pos, st1, 0.0, st2, 0.0);
693          set_tween_state(PART:"sh", pos, "half", 0.0, "full", 0.0);
694          if (pos >= 1.0) {
695             set_state(PART:"sh", "default", 0.0);
696             set_int(v0_lock, 0);
697             v = get_int(v0_next);
698             if (v >= 0) {
699                set_int(v0_next, -1);
700                message(MSG_INT, 1, v);
701             }
702          }
703       }
704       public animator1(val, Float:pos) {
705          new st1[11], st2[11], v;
706
707          v = get_int(v0_pre);
708          snprintf(st1, 10, "%i", v);
709          snprintf(st2, 10, "%ih", v);
710          set_tween_state(PART:"top", pos, st1, 0.0, st2, 0.0);
711          set_tween_state(PART:"sh", pos, "default", 0.0, "half", 0.0);
712          if (pos >= 1.0) anim(0.2, "animator2", val);
713       }
714       public message(Msg_Type:type, id, ...) {
715          if ((type == MSG_INT) && (id == 1)) {
716             new value, v, buf[11];
717
718             value = getarg(2);
719             if (get_int(v0_lock) == 1) {
720                set_int(v0_next, value);
721                return;
722             }
723             v = get_int(v0_cur);
724             set_int(v0_pre, v);
725             set_int(v0_cur, value);
726             set_int(v0_lock, 1);
727             snprintf(buf, 10, "%i", get_int(v0_pre));
728             set_state(PART:"bot0", buf, 0.0);
729             snprintf(buf, 10, "%ih", get_int(v0_cur));
730             set_state(PART:"bot", buf, 0.0);
731             snprintf(buf, 10, "%i", get_int(v0_cur));
732             set_state(PART:"top0", buf, 0.0);
733             snprintf(buf, 10, "%i", get_int(v0_pre));
734             set_state(PART:"top", buf, 0.0);
735             set_state(PART:"sh", "default", 0.0);
736             anim(0.2, "animator1", 1);
737          }
738       }
739    }
740    parts {
741       part { name: "shad";
742          mouse_events: 0;
743          description { state: "default" 0.0;
744             rel1.offset: -4 -4;
745             rel1.to: "base";
746             rel2.offset: 3 3;
747             rel2.to: "base";
748             image {
749                normal: "flip_base_shad.png";
750                border: 8 8 8 8;
751             }
752          }
753       }
754       part { name: "base";
755          mouse_events: 0;
756          scale: 1;
757          description { state: "default" 0.0;
758             rel1.offset: 4 4;
759             rel2.offset: -5 -5;
760             // FIXME 48x96 should be the native pixel design, right now
761             // its 80x160. fix int he artwork later
762             aspect: 0.5 0.5;
763             min: 24 48;
764                  //               max: 24 48;
765             image.normal: "flip_base.png";
766          }
767       }
768       part { name: "b";
769          type: RECT;
770          mouse_events: 1;
771          description { state: "default" 0.0;
772             rel1.to: "base";
773             rel1.relative: 0.0 0.5;
774             rel2.to: "base";
775             color: 0 0 0 0;
776          }
777       }
778       part { name: "t";
779          type: RECT;
780          mouse_events: 1;
781          description { state: "default" 0.0;
782             rel1.to: "base";
783             rel2.to: "base";
784             rel2.relative: 1.0 0.5;
785             color: 0 0 0 0;
786          }
787       }
788       part { name: "bot0";
789          mouse_events: 0;
790          description { state: "default" 0.0;
791             rel1.to: "b";
792             rel2.to: "b";
793             image.normal: "flip_amb.png";
794          }
795          description { state: "0" 0.0;
796             inherit: "default" 0.0;
797             image.normal: "flip_amb.png";
798          }
799          description { state: "1" 0.0;
800             inherit: "default" 0.0;
801             image.normal: "flip_pmb.png";
802          }
803       }
804       part { name: "sh";
805          mouse_events: 0;
806          description { state: "default" 0.0;
807             rel1.to: "b";
808             rel2.to: "b";
809             rel2.relative: 1.0 0.0;
810             image.normal: "flip_shad.png";
811          }
812          description { state: "half" 0.0;
813             inherit: "default" 0.0;
814             rel2.relative: 1.0 0.5;
815          }
816          description { state: "full" 0.0;
817             inherit: "default" 0.0;
818             rel2.relative: 1.0 1.0;
819          }
820       }
821       part { name: "bot";
822          mouse_events: 0;
823          description { state: "default" 0.0;
824             visible: 1;
825             rel1.to: "b";
826             rel2.to: "b";
827             image.normal: "flip_amb.png";
828          }
829          description { state: "0" 0.0;
830             inherit: "default" 0.0;
831             visible: 1;
832             rel2.relative: 1.0 1.0;
833             image.normal: "flip_amb.png";
834          }
835          description { state: "0h" 0.0;
836             inherit: "default" 0.0;
837             visible: 0;
838             rel2.relative: 1.0 0.0;
839             image.normal: "flip_amb.png";
840          }
841          description { state: "1" 0.0;
842             inherit: "default" 0.0;
843             visible: 1;
844             rel2.relative: 1.0 1.0;
845             image.normal: "flip_pmb.png";
846          }
847          description { state: "1h" 0.0;
848             inherit: "default" 0.0;
849             visible: 0;
850             rel2.relative: 1.0 0.0;
851             image.normal: "flip_pmb.png";
852          }
853       }
854       part { name: "top0";
855          mouse_events: 0;
856          description { state: "default" 0.0;
857             rel1.to: "t";
858             rel2.to: "t";
859             image.normal: "flip_amt.png";
860          }
861          description { state: "0" 0.0;
862             inherit: "default" 0.0;
863             image.normal: "flip_amt.png";
864          }
865          description { state: "1" 0.0;
866             inherit: "default" 0.0;
867             image.normal: "flip_pmt.png";
868          }
869       }
870       part { name: "top";
871          mouse_events: 0;
872          description { state: "default" 0.0;
873             visible: 1;
874             rel1.to: "t";
875             rel2.to: "t";
876             image.normal: "flip_amt.png";
877          }
878          description { state: "0" 0.0;
879             inherit: "default" 0.0;
880             visible: 1;
881             rel1.relative: 0.0 0.0;
882             image.normal: "flip_amt.png";
883          }
884          description { state: "0h" 0.0;
885             inherit: "default" 0.0;
886             color: 128 128 128 255;
887             visible: 0;
888             rel1.relative: 0.0 1.0;
889             image.normal: "flip_amt.png";
890          }
891          description { state: "1" 0.0;
892             inherit: "default" 0.0;
893             visible: 1;
894             rel1.relative: 0.0 0.0;
895             image.normal: "flip_pmt.png";
896          }
897          description { state: "1h" 0.0;
898             inherit: "default" 0.0;
899             color: 128 128 128 255;
900             visible: 0;
901             rel1.relative: 0.0 1.0;
902             image.normal: "flip_pmt.png";
903          }
904       }
905       part { name: "atop";
906          mouse_events: 0;
907          scale: 1;
908          description { state: "default" 0.0;
909             visible: 0;
910             min: 15 15;
911             max: 15 15;
912             align: 0.5 0.0;
913             rel1.to: "t";
914             rel2.to: "t";
915             image.normal: "arrow_up.png";
916          }
917          description { state: "visible" 0.0;
918             inherit: "default" 0.0;
919             visible: 1;
920          }
921       }
922       part { name: "abot";
923          mouse_events: 0;
924          scale: 1;
925          description { state: "default" 0.0;
926             visible: 0;
927             min: 15 15;
928             max: 15 15;
929             align: 0.5 1.0;
930             rel1.to: "b";
931             rel2.to: "b";
932             image.normal: "arrow_down.png";
933          }
934          description { state: "visible" 0.0;
935             inherit: "default" 0.0;
936             visible: 1;
937          }
938       }
939       part { name: "access.t";
940          type: RECT;
941          description { state: "default" 0.0;
942             rel1.to: "t";
943             rel2.to: "t";
944             color: 0 0 0 0;
945             visible: 0;
946          }
947          description { state: "visible" 0.0;
948             inherit: "default" 0.0;
949             visible: 1;
950          }
951       }
952       part { name: "access.b";
953          type: RECT;
954          description { state: "default" 0.0;
955             rel1.to: "b";
956             rel2.to: "b";
957             color: 0 0 0 0;
958             visible: 0;
959          }
960          description { state: "visible" 0.0;
961             inherit: "default" 0.0;
962             visible: 1;
963          }
964       }
965    }
966    programs {
967       program { name: "load";
968          signal: "load";
969          source: "";
970          script {
971             set_int(v0_cur, 0);
972             set_int(v0_pre, 0);
973             set_int(v0_lock, 0);
974             set_int(v0_next, -1);
975          }
976       }
977       program { name: "edit_on";
978          signal: "elm,state,edit,on";
979          source: "elm";
980          action: STATE_SET "visible" 0.0;
981          target: "atop";
982          target: "abot";
983       }
984       /*
985       program { name: "edit_off";
986       signal: "elm,state,edit,off";
987       source: "elm";
988       action: STATE_SET "default" 0.0;
989       target: "atop";
990       target: "abot";
991       }
992       */
993    program { name: "up";
994       signal: "mouse,down,1";
995       source: "t";
996       action: SIGNAL_EMIT "elm,action,up,start" "";
997    }
998    program { name: "up,stop";
999       signal: "mouse,up,1";
1000       source: "t";
1001       action: SIGNAL_EMIT "elm,action,up,stop" "";
1002    }
1003    program { name: "down";
1004       signal: "mouse,down,1";
1005       source: "b";
1006       action: SIGNAL_EMIT "elm,action,down,start" "";
1007    }
1008    program { name: "down,stop";
1009       signal: "mouse,up,1";
1010       source: "b";
1011       action: SIGNAL_EMIT "elm,action,down,stop" "";
1012    }
1013       program { name: "access_edit_on";
1014          signal: "elm,state,access,edit,on";
1015          source: "elm";
1016          action: STATE_SET "visible" 0.0;
1017          target: "access.t";
1018          target: "access.b";
1019       }
1020       program { name: "access_edit_off";
1021          signal: "elm,state,edit,off";
1022          source: "elm";
1023          action: STATE_SET "default" 0.0;
1024          target: "access.t";
1025          target: "access.b";
1026       }
1027       program { name: "access,up";
1028          signal: "mouse,down,1";
1029          source: "access.t";
1030          action: SIGNAL_EMIT "elm,action,up,start" "";
1031       }
1032       program { name: "access,up,stop";
1033          signal: "mouse,up,1";
1034          source: "access.t";
1035          action: SIGNAL_EMIT "elm,action,up,stop" "";
1036       }
1037       program { name: "access,down";
1038          signal: "mouse,down,1";
1039          source: "access.b";
1040          action: SIGNAL_EMIT "elm,action,down,start" "";
1041       }
1042       program { name: "access,down,stop";
1043          signal: "mouse,up,1";
1044          source: "access.b";
1045          action: SIGNAL_EMIT "elm,action,down,stop" "";
1046       }
1047    }
1048 }
1049
1050 group { name: "elm/clock/base-all/default";
1051    parts {
1052       part { name: "d0";
1053          type: SWALLOW;
1054          description { state: "default" 0.0;
1055             rel1.relative: 0.0000000 0.0;
1056             rel2.relative: 0.1250000 1.0;
1057          }
1058       }
1059       part { name: "d1";
1060          type: SWALLOW;
1061          description { state: "default" 0.0;
1062             rel1.relative: 0.1250000 0.0;
1063             rel2.relative: 0.2500000 1.0;
1064          }
1065       }
1066       part { name: "c0";
1067          type: TEXT;
1068          mouse_events:  0;
1069          scale: 1;
1070          description { state: "default" 0.0;
1071             rel1.relative: 0.2500000 0.0;
1072             rel2.relative: 0.3125000 1.0;
1073             color: 0 0 0 255;
1074             text {
1075                font:     "Sans,Edje-Vera";
1076                text:     ":";
1077                size:     10;
1078                min:      1 1;
1079                align:    0.5 0.5;
1080             }
1081          }
1082       }
1083       part { name: "d2";
1084          type: SWALLOW;
1085          description { state: "default" 0.0;
1086             rel1.relative: 0.3125000 0.0;
1087             rel2.relative: 0.4375000 1.0;
1088          }
1089       }
1090       part { name: "d3";
1091          type: SWALLOW;
1092          description { state: "default" 0.0;
1093             rel1.relative: 0.4375000 0.0;
1094             rel2.relative: 0.5625000 1.0;
1095          }
1096       }
1097       // (if seconds)
1098       part { name: "c1";
1099          type: TEXT;
1100          mouse_events:  0;
1101          scale: 1;
1102          description { state: "default" 0.0;
1103             rel1.relative: 0.5625000 0.0;
1104             rel2.relative: 0.6250000 1.0;
1105             color: 0 0 0 255;
1106             text {
1107                font:     "Sans,Edje-Vera";
1108                text:     ":";
1109                size:     10;
1110                min:      1 1;
1111                align:    0.5 0.5;
1112             }
1113          }
1114       }
1115       // (if seconds)
1116       part { name: "d4";
1117          type: SWALLOW;
1118          description { state: "default" 0.0;
1119             rel1.relative: 0.6250000 0.0;
1120             rel2.relative: 0.7500000 1.0;
1121          }
1122       }
1123       // (if seconds)
1124       part { name: "d5";
1125          type: SWALLOW;
1126          description { state: "default" 0.0;
1127             rel1.relative: 0.7500000 0.0;
1128             rel2.relative: 0.8750000 1.0;
1129          }
1130       }
1131       // (if am_pm)
1132       part { name: "ampm";
1133          type: SWALLOW;
1134          description { state: "default" 0.0;
1135             rel1.relative: 0.8750000 0.0;
1136             rel2.relative: 1.0 1.0;
1137          }
1138       }
1139    }
1140 }
1141
1142 ///////////////////////////////////////////////////////////////////////////////
1143 group { name: "elm/clock/base-seconds/default";
1144    parts {
1145       part { name: "d0";
1146          type: SWALLOW;
1147          description { state: "default" 0.0;
1148             rel1.relative: 0.000000000 0.0;
1149             rel2.relative: 0.142857143 1.0;
1150          }
1151       }
1152       part { name: "d1";
1153          type: SWALLOW;
1154          description { state: "default" 0.0;
1155             rel1.relative: 0.142857143 0.0;
1156             rel2.relative: 0.285714286 1.0;
1157          }
1158       }
1159       part { name: "c0";
1160          type: TEXT;
1161          mouse_events:  0;
1162          scale: 1;
1163          description { state: "default" 0.0;
1164             rel1.relative: 0.285714286 0.0;
1165             rel2.relative: 0.357142857 1.0;
1166             color: 0 0 0 255;
1167             text {
1168                font:     "Sans,Edje-Vera";
1169                text:     ":";
1170                size:     10;
1171                min:      1 1;
1172                align:    0.5 0.5;
1173             }
1174          }
1175       }
1176       part { name: "d2";
1177          type: SWALLOW;
1178          description { state: "default" 0.0;
1179             rel1.relative: 0.357142857 0.0;
1180             rel2.relative: 0.500000000 1.0;
1181          }
1182       }
1183       part { name: "d3";
1184          type: SWALLOW;
1185          description { state: "default" 0.0;
1186             rel1.relative: 0.500000000 0.0;
1187             rel2.relative: 0.642857143 1.0;
1188          }
1189       }
1190       // (if seconds)
1191       part { name: "c1";
1192          type: TEXT;
1193          mouse_events:  0;
1194          scale: 1;
1195          description { state: "default" 0.0;
1196             rel1.relative: 0.642857143 0.0;
1197             rel2.relative: 0.714285714 1.0;
1198             color: 0 0 0 255;
1199             text {
1200                font:     "Sans,Edje-Vera";
1201                text:     ":";
1202                size:     10;
1203                min:      1 1;
1204                align:    0.5 0.5;
1205             }
1206          }
1207       }
1208       // (if seconds)
1209       part { name: "d4";
1210          type: SWALLOW;
1211          description { state: "default" 0.0;
1212             rel1.relative: 0.714285714 0.0;
1213             rel2.relative: 0.857142857 1.0;
1214          }
1215       }
1216       // (if seconds)
1217       part { name: "d5";
1218          type: SWALLOW;
1219          description { state: "default" 0.0;
1220             rel1.relative: 0.857142857 0.0;
1221             rel2.relative: 1.000000000 1.0;
1222          }
1223       }
1224    }
1225 }
1226
1227 ///////////////////////////////////////////////////////////////////////////////
1228 group { name: "elm/clock/base-am_pm/default";
1229    parts {
1230       part { name: "d0";
1231          type: SWALLOW;
1232          description { state: "default" 0.0;
1233             rel1.relative: 0.000000000 0.0;
1234             rel2.relative: 0.181818182 1.0;
1235          }
1236       }
1237       part { name: "d1";
1238          type: SWALLOW;
1239          description { state: "default" 0.0;
1240             rel1.relative: 0.181818182 0.0;
1241             rel2.relative: 0.363636364 1.0;
1242          }
1243       }
1244       part { name: "c0";
1245          type: TEXT;
1246          mouse_events:  0;
1247          scale: 1;
1248          description { state: "default" 0.0;
1249             rel1.relative: 0.363636364 0.0;
1250             rel2.relative: 0.454545455 1.0;
1251             color: 0 0 0 255;
1252             text {
1253                font:     "Sans,Edje-Vera";
1254                text:     ":";
1255                size:     10;
1256                min:      1 1;
1257                align:    0.5 0.5;
1258             }
1259          }
1260       }
1261       part { name: "d2";
1262          type: SWALLOW;
1263          description { state: "default" 0.0;
1264             rel1.relative: 0.454545455 0.0;
1265             rel2.relative: 0.636363636 1.0;
1266          }
1267       }
1268       part { name: "d3";
1269          type: SWALLOW;
1270          description { state: "default" 0.0;
1271             rel1.relative: 0.636363636 0.0;
1272             rel2.relative: 0.818181818 1.0;
1273          }
1274       }
1275       // (if am_pm)
1276       part { name: "ampm";
1277          type: SWALLOW;
1278          description { state: "default" 0.0;
1279             rel1.relative: 0.818181818 0.0;
1280             rel2.relative: 1.0 1.0;
1281          }
1282       }
1283    }
1284 }
1285
1286 ///////////////////////////////////////////////////////////////////////////////
1287 group { name: "elm/clock/base/default";
1288    parts {
1289       part { name: "base";
1290          type: RECT;
1291          scale : 1;
1292          description { state: "default" 0.0;
1293             color: 0 0 0 0;
1294             visible: 0;
1295          }
1296          description { state: "visible" 0.0;
1297             inherit: "default" 0.0;
1298             visible: 1;
1299          }
1300       }
1301       part { name: "d0";
1302          type: SWALLOW;
1303          description { state: "default" 0.0;
1304             rel1.relative: 0.000000000 0.0;
1305             rel2.relative: 0.222222222 1.0;
1306          }
1307       }
1308       part { name: "d1";
1309          type: SWALLOW;
1310          description { state: "default" 0.0;
1311             rel1.relative: 0.222222222 0.0;
1312             rel2.relative: 0.444444444 1.0;
1313          }
1314       }
1315       part { name: "c0";
1316          type: TEXT;
1317          mouse_events:  0;
1318          scale: 1;
1319          description { state: "default" 0.0;
1320             rel1.relative: 0.444444444 0.0;
1321             rel2.relative: 0.555555556 1.0;
1322             color: 0 0 0 255;
1323             text {
1324                font:     "Sans,Edje-Vera";
1325                text:     ":";
1326                size:     10;
1327                min:      1 1;
1328                align:    0.5 0.5;
1329             }
1330          }
1331       }
1332       part { name: "d2";
1333          type: SWALLOW;
1334          description { state: "default" 0.0;
1335             rel1.relative: 0.555555556 0.0;
1336             rel2.relative: 0.777777778 1.0;
1337          }
1338       }
1339       part { name: "d3";
1340          type: SWALLOW;
1341          description { state: "default" 0.0;
1342             rel1.relative: 0.777777778 0.0;
1343             rel2.relative: 1.000000000 1.0;
1344          }
1345       }
1346    }
1347    programs {
1348       program { name: "access_on";
1349          signal: "elm,state,access,on";
1350          source: "elm";
1351          action: STATE_SET "visible" 0.0;
1352          target: "base";
1353       }
1354       program { name: "access_off";
1355          signal: "elm,state,access,off";
1356          source: "elm";
1357          action: STATE_SET "default" 0.0;
1358          target: "base";
1359       }
1360    }
1361 }
1362