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