tizen 2.3.1 release
[framework/uifw/elementary.git] / data / themes / widgets / photocam.edc
1 group { name: "elm/photocam/base/default";
2    script {
3       public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
4       public timer0(val) {
5          new v;
6          v = get_int(sbvis_v);
7          if (v) {
8             v = get_int(sbalways_v);
9             if (!v) {
10                emit("do-hide-vbar", "");
11                set_int(sbvis_v, 0);
12             }
13          }
14          v = get_int(sbvis_h);
15          if (v) {
16             v = get_int(sbalways_h);
17             if (!v) {
18                emit("do-hide-hbar", "");
19                set_int(sbvis_h, 0);
20             }
21          }
22          set_int(sbvis_timer, 0);
23          return 0;
24       }
25    }
26    images {
27       image: "shelf_inset.png" COMP;
28       image: "bt_sm_base2.png" COMP;
29       image: "bt_sm_shine.png" COMP;
30       image: "bt_sm_hilight.png" COMP;
31       image: "busy-1.png" COMP;
32       image: "busy-2.png" COMP;
33       image: "busy-3.png" COMP;
34       image: "busy-4.png" COMP;
35       image: "busy-5.png" COMP;
36       image: "busy-6.png" COMP;
37       image: "busy-7.png" COMP;
38       image: "busy-8.png" COMP;
39       image: "busy-9.png" COMP;
40    }
41    parts {
42       part { name: "bg";
43          type: RECT;
44          description { state: "default" 0.0;
45             rel1.offset: 1 1;
46             rel2.offset: -2 -2;
47             color: 255 255 255 0;
48          }
49       }
50       part { name: "clipper";
51          type: RECT;
52          mouse_events: 0;
53          description { state: "default" 0.0;
54             rel1.to: "bg";
55             rel2.to: "bg";
56          }
57       }
58       part { name: "elm.swallow.content";
59          clip_to: "clipper";
60          type: SWALLOW;
61          description { state: "default" 0.0;
62             rel1.offset: 1 1;
63             rel2.offset: -2 -2;
64          }
65       }
66       part { name: "busy_clip";
67          type: RECT;
68          mouse_events: 0;
69          description { state: "default" 0.0;
70             visible: 0;
71             color: 255 255 255 0;
72          }
73          description { state: "active" 0.0;
74             visible: 1;
75             color: 255 255 255 255;
76          }
77       }
78       part { name: "busy";
79          clip_to: "busy_clip";
80          mouse_events: 0;
81          description { state: "default" 0.0;
82             fixed: 1 1;
83             min: 32 32;
84             aspect: 1.0 1.0;
85             align: 1.0 1.0;
86             aspect_preference: BOTH;
87             rel1 {
88                relative: 0.9 0.9;
89                offset:   -9 -9;
90             }
91             rel2 {
92                relative: 0.9 0.9;
93                offset:   -9 -9;
94             }
95             image {
96                normal: "busy-9.png";
97                tween:  "busy-1.png";
98                tween:  "busy-2.png";
99                tween:  "busy-3.png";
100                tween:  "busy-4.png";
101                tween:  "busy-5.png";
102                tween:  "busy-6.png";
103                tween:  "busy-7.png";
104                tween:  "busy-8.png";
105             }
106          }
107       }
108       part { name: "conf_over";
109          mouse_events:  0;
110          description { state: "default" 0.0;
111             rel1.offset: 0 0;
112             rel2.offset: -1 -1;
113             image {
114                normal: "shelf_inset.png";
115                border: 7 7 7 7;
116                middle: 0;
117             }
118             fill.smooth : 0;
119          }
120       }
121       part { name: "sb_vbar_clip_master";
122          type: RECT;
123          mouse_events: 0;
124          description { state: "default" 0.0;
125          }
126          description { state: "hidden" 0.0;
127             visible: 0;
128             color: 255 255 255 0;
129          }
130       }
131       part { name: "sb_vbar_clip";
132          clip_to: "sb_vbar_clip_master";
133          type: RECT;
134          mouse_events: 0;
135          description { state: "default" 0.0;
136          }
137          description { state: "hidden" 0.0;
138             visible: 0;
139             color: 255 255 255 0;
140          }
141       }
142       part { name: "sb_vbar";
143          type: RECT;
144          mouse_events: 0;
145          description { state: "default" 0.0;
146             fixed: 1 1;
147             visible: 0;
148             min: 10 17;
149             align: 1.0 0.0;
150             rel1 {
151                relative: 1.0 0.0;
152                offset:   -2 0;
153             }
154             rel2 {
155                relative: 1.0 0.0;
156                offset:   -2 -1;
157                to_y:     "sb_hbar";
158             }
159          }
160       }
161       part { name: "elm.dragable.vbar";
162          clip_to: "sb_vbar_clip";
163          mouse_events: 0;
164          dragable {
165             x: 0 0 0;
166             y: 1 1 0;
167             confine: "sb_vbar";
168          }
169          description { state: "default" 0.0;
170             fixed: 1 1;
171             min: 10 17;
172             max: 10 99999;
173             rel1 {
174                relative: 0.5  0.5;
175                offset:   0    0;
176                to: "sb_vbar";
177             }
178             rel2 {
179                relative: 0.5  0.5;
180                offset:   0    0;
181                to: "sb_vbar";
182             }
183             image {
184                normal: "bt_sm_base2.png";
185                border: 6 6 6 6;
186                middle: SOLID;
187             }
188          }
189       }
190       part { name: "sb_vbar_over1";
191          clip_to: "sb_vbar_clip";
192          mouse_events: 0;
193          description { state: "default" 0.0;
194             rel1.to: "elm.dragable.vbar";
195             rel2.relative: 1.0 0.5;
196             rel2.to: "elm.dragable.vbar";
197             image {
198                normal: "bt_sm_hilight.png";
199                border: 6 6 6 0;
200             }
201          }
202       }
203       part { name: "sb_vbar_over2";
204          clip_to: "sb_vbar_clip";
205          mouse_events: 0;
206          description { state: "default" 0.0;
207             rel1.to: "elm.dragable.vbar";
208             rel2.to: "elm.dragable.vbar";
209             image {
210                normal: "bt_sm_shine.png";
211                border: 6 6 6 0;
212             }
213          }
214       }
215
216       part { name: "sb_hbar_clip_master";
217          type: RECT;
218          mouse_events: 0;
219          description { state: "default" 0.0;
220          }
221          description { state: "hidden" 0.0;
222             visible: 0;
223             color: 255 255 255 0;
224          }
225       }
226       part { name: "sb_hbar_clip";
227          clip_to: "sb_hbar_clip_master";
228          type: RECT;
229          mouse_events: 0;
230          description { state: "default" 0.0;
231          }
232          description { state: "hidden" 0.0;
233             visible: 0;
234             color: 255 255 255 0;
235          }
236       }
237       part { name: "sb_hbar";
238          type: RECT;
239          mouse_events: 0;
240          description { state: "default" 0.0;
241             fixed: 1 1;
242             visible: 0;
243             min: 17 10;
244             align: 0.0 1.0;
245             rel1 {
246                relative: 0.0 1.0;
247                offset:   0 -2;
248             }
249             rel2 {
250                relative: 0.0 1.0;
251                offset:   -1 -2;
252                to_x:     "sb_vbar";
253             }
254          }
255       }
256       part { name: "elm.dragable.hbar";
257          clip_to: "sb_hbar_clip";
258          mouse_events: 0;
259          dragable {
260             x: 1 1 0;
261             y: 0 0 0;
262             confine: "sb_hbar";
263          }
264          description { state: "default" 0.0;
265             fixed: 1 1;
266             min: 17 10;
267             max: 99999 10;
268             rel1 {
269                relative: 0.5  0.5;
270                offset:   0    0;
271                to: "sb_hbar";
272             }
273             rel2 {
274                relative: 0.5  0.5;
275                offset:   0    0;
276                to: "sb_hbar";
277             }
278             image {
279                normal: "bt_sm_base2.png";
280                border: 4 4 4 4;
281                middle: SOLID;
282             }
283          }
284       }
285       part { name: "sb_hbar_over1";
286          clip_to: "sb_hbar_clip";
287          mouse_events: 0;
288          description { state: "default" 0.0;
289             rel1.to: "elm.dragable.hbar";
290             rel2.relative: 1.0 0.5;
291             rel2.to: "elm.dragable.hbar";
292             image {
293                normal: "bt_sm_hilight.png";
294                border: 4 4 4 0;
295             }
296          }
297       }
298       part { name: "sb_hbar_over2";
299          clip_to: "sb_hbar_clip";
300          mouse_events: 0;
301          description { state: "default" 0.0;
302             rel1.to: "elm.dragable.hbar";
303             rel2.to: "elm.dragable.hbar";
304             image {
305                normal: "bt_sm_shine.png";
306                border: 4 4 4 0;
307             }
308          }
309       }
310    }
311    programs {
312       program { name: "load";
313          signal: "load";
314          source: "";
315          script {
316             set_state(PART:"sb_hbar_clip", "hidden", 0.0);
317             set_state(PART:"sb_vbar_clip", "hidden", 0.0);
318             set_int(sbvis_h, 0);
319             set_int(sbvis_v, 0);
320             set_int(sbalways_v, 0);
321             set_int(sbalways_h, 0);
322             set_int(sbvis_timer, 0);
323          }
324       }
325
326       program { name: "vbar_show";
327          signal: "elm,action,show,vbar";
328          source: "elm";
329          action:  STATE_SET "default" 0.0;
330          target: "sb_vbar_clip_master";
331       }
332       program { name: "vbar_hide";
333          signal: "elm,action,hide,vbar";
334          source: "elm";
335          action:  STATE_SET "hidden" 0.0;
336          target: "sb_vbar_clip_master";
337       }
338       program { name: "vbar_show_always";
339          signal: "elm,action,show_always,vbar";
340          source: "elm";
341          script {
342             new v;
343             v = get_int(sbvis_v);
344             v |= get_int(sbalways_v);
345             if (!v) {
346                set_int(sbalways_v, 1);
347                emit("do-show-vbar", "");
348                set_int(sbvis_v, 1);
349             }
350          }
351       }
352       program { name: "vbar_show_notalways";
353          signal: "elm,action,show_notalways,vbar";
354          source: "elm";
355          script {
356             new v;
357             v = get_int(sbalways_v);
358             if (v) {
359                set_int(sbalways_v, 0);
360                v = get_int(sbvis_v);
361                if (!v) {
362                   emit("do-hide-vbar", "");
363                   set_int(sbvis_v, 0);
364                }
365             }
366          }
367       }
368       program { name: "sb_vbar_show";
369          signal: "do-show-vbar";
370          source: "";
371          action:  STATE_SET "default" 0.0;
372          transition: LINEAR 0.5;
373          target: "sb_vbar_clip";
374       }
375       program { name: "sb_vbar_hide";
376          signal: "do-hide-vbar";
377          source: "";
378          action:  STATE_SET "hidden" 0.0;
379          transition: LINEAR 0.5;
380          target: "sb_vbar_clip";
381       }
382
383       program { name: "hbar_show";
384          signal: "elm,action,show,hbar";
385          source: "elm";
386          action:  STATE_SET "default" 0.0;
387          target: "sb_hbar_clip_master";
388       }
389       program { name: "hbar_hide";
390          signal: "elm,action,hide,hbar";
391          source: "elm";
392          action:  STATE_SET "hidden" 0.0;
393          target: "sb_hbar_clip_master";
394       }
395       program { name: "hbar_show_always";
396          signal: "elm,action,show_always,hbar";
397          source: "elm";
398          script {
399             new v;
400             v = get_int(sbvis_h);
401             v |= get_int(sbalways_h);
402             if (!v) {
403                set_int(sbalways_h, 1);
404                emit("do-show-hbar", "");
405                set_int(sbvis_h, 1);
406             }
407          }
408       }
409       program { name: "hbar_show_notalways";
410          signal: "elm,action,show_notalways,hbar";
411          source: "elm";
412          script {
413             new v;
414             v = get_int(sbalways_h);
415             if (v) {
416                set_int(sbalways_h, 0);
417                v = get_int(sbvis_h);
418                if (!v) {
419                   emit("do-hide-hbar", "");
420                   set_int(sbvis_h, 0);
421                }
422             }
423          }
424       }
425       program { name: "sb_hbar_show";
426          signal: "do-show-hbar";
427          source: "";
428          action:  STATE_SET "default" 0.0;
429          transition: LINEAR 0.5;
430          target: "sb_hbar_clip";
431       }
432       program { name: "sb_hbar_hide";
433          signal: "do-hide-hbar";
434          source: "";
435          action:  STATE_SET "hidden" 0.0;
436          transition: LINEAR 0.5;
437          target: "sb_hbar_clip";
438       }
439
440       program { name: "scroll";
441          signal: "elm,action,scroll";
442          source: "elm";
443          script {
444             new v;
445             v = get_int(sbvis_v);
446             v |= get_int(sbalways_v);
447             if (!v) {
448                emit("do-show-vbar", "");
449                set_int(sbvis_v, 1);
450             }
451             v = get_int(sbvis_h);
452             v |= get_int(sbalways_h);
453             if (!v) {
454                emit("do-show-hbar", "");
455                set_int(sbvis_h, 1);
456             }
457             v = get_int(sbvis_timer);
458             if (v > 0) cancel_timer(v);
459             v = timer(1.0, "timer0", 0);
460             set_int(sbvis_timer, v);
461          }
462       }
463       program { name: "go1";
464          signal: "elm,state,busy,start";
465          source: "elm";
466          action: STATE_SET "active" 0.0;
467          transition: SINUSOIDAL 1.0;
468          target:  "busy_clip";
469       }
470       program { name: "go2";
471          signal: "elm,state,busy,start";
472          source: "elm";
473          action: STATE_SET "default" 0.0;
474          transition: LINEAR 0.5;
475          target: "busy";
476          after:  "go2";
477       }
478       program { name: "stop1";
479          signal: "elm,state,busy,stop";
480          source: "elm";
481          action: STATE_SET "default" 0.0;
482          transition: SINUSOIDAL 1.0;
483          target: "busy_clip";
484          after: "stop2";
485       }
486       program { name: "stop2";
487          action: ACTION_STOP;
488          target: "go2";
489       }
490    }
491 }
492
493 ///////////////////////////////////////////////////////////////////////////////