6e32e3e3ce2a817808058f4b1164dc64bd6da18d
[framework/uifw/efl-theme-tizen.git] / themes / widgets / ctxpopup.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 ///////////////////////////////////////////////////////////////////////////////////////
21 //
22 // ctxpopup
23 //
24 ///////////////////////////////////////////////////////////////////////////////////////
25
26 #define CTXPOPUP_SHADOW_PADDING 10
27 #define CTXPOPUP_FRAME_CORNER_SIZE 4 4
28 #define CTXPOPUP_FONT_COLOR 0 0 0 255
29 #define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
30 #define CTXPOPUP_LIST_PADDING 10
31 #define CTXPOPUP_LIST_SHADOW_PADDING 3
32
33 ///////////////////////////////////////////////////////////////////////////////
34 sounds {
35    sample {
36       name: "touch_sound" RAW;
37       source: "button-pressed.wav";
38    }
39 }
40 group {
41    name: "elm/ctxpopup/layout/default";
42    alias: "elm/ctxpopup/layout/copypaste";
43    max: (CTXPOPUP_WIDTH_MAX_INC+CTXPOPUP_SHADOW_LEFT_PADDING+CTXPOPUP_SHADOW_RIGHT_PADDING) ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*7)+CTXPOPUP_SHADOW_TOP_PADDING+CTXPOPUP_SHADOW_BOTTOM_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*12));
44    parts {
45       part {
46          name:"top_padding";
47          type: RECT;
48          scale: 1;
49          description {
50             state: "default" 0.0;
51             min: 0 CTXPOPUP_MOVE_PAD_INC;
52             visible: 0;
53             fixed: 0 1;
54             align: 0.5 0.0;
55             rel1.relative: 0.0 0.0;
56             rel2.relative: 1.0 0.0;
57          }
58          description {
59             state: "show_up" 0.0;
60             inherit: "default" 0.0;
61          }
62          description {
63             state: "visible" 0.0;
64             inherit: "default" 0.0;
65             min: 0 0;
66          }
67       }
68       part {
69          name:"bottom_padding";
70          type: RECT;
71          scale: 1;
72          description {
73             state: "default" 0.0;
74             min: 0 CTXPOPUP_MOVE_PAD_INC;
75             visible: 0;
76             fixed: 0 1;
77             align: 0.5 1.0;
78             rel1.relative: 0.0 1.0;
79             rel2.relative: 1.0 1.0;
80          }
81          description {
82             state: "show_down" 0.0;
83             inherit: "default" 0.0;
84          }
85          description {
86             state: "visible" 0.0;
87             inherit: "default" 0.0;
88             min: 0 0;
89          }
90       }
91       part {
92          name:"left_padding";
93          type: RECT;
94          scale: 1;
95          description {
96             state: "default" 0.0;
97             min: CTXPOPUP_MOVE_PAD_INC 0;
98             visible: 0;
99             fixed: 1 0;
100             align: 0.0 0.5;
101             rel1.relative: 0.0 0.0;
102             rel2.relative: 0.0 1.0;
103          }
104          description {
105             state: "show_left" 0.0;
106             inherit: "default" 0.0;
107          }
108          description {
109             state: "visible" 0.0;
110             inherit: "default" 0.0;
111             min: 0 0;
112          }
113       }
114       part {
115          name:"right_padding";
116          type: RECT;
117          scale: 1;
118          description {
119             state: "default" 0.0;
120             min: CTXPOPUP_MOVE_PAD_INC 0;
121             visible: 0;
122             fixed: 1 0;
123             align: 1 0.5;
124             rel1.relative: 1.0 0.0;
125             rel2.relative: 1.0 1.0;
126          }
127          description {
128             state: "show_right" 0.0;
129             inherit: "default" 0.0;
130          }
131          description {
132             state: "visible" 0.0;
133             inherit: "default" 0.0;
134             min: 0 0;
135          }
136       }
137       part {
138          name: "swallow";
139          type: SWALLOW;
140          clip_to: "layout_clip";
141          scale: 1;
142          description {
143             state: "default" 0.0;
144             visible: 0;
145          }
146          description {
147             state: "show_up" 0.0;
148             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
149             rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
150             align: 0.5 0.0;
151          }
152          description {
153             state: "show_down" 0.0;
154             rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
155             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
156             align: 0.5 1.0;
157          }
158          description {
159             state: "show_left" 0.0;
160             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
161             rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
162             align: 0.0 0.5;
163          }
164          description {
165             state: "show_right" 0.0;
166             rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
167             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
168             align: 1.0 0.5;
169          }
170       }
171       part {
172          name: "layout_clip";
173          type: RECT;
174          scale: 1;
175          description {
176             state: "default" 0.0;
177             color: 255 255 255 0;
178             rel1 {to: "swallow"; relative: -0.2 -0.2; }
179             rel2 {to: "swallow"; relative: 1.2 1.2;}
180          }
181          description {
182             state: "show_up" 0.0;
183             inherit: "default" 0.0;
184          }
185          description {
186             state: "show_down" 0.0;
187             inherit: "default" 0.0;
188          }
189          description {
190             state: "show_left" 0.0;
191             inherit: "default" 0.0;
192          }
193          description {
194             state: "show_right" 0.0;
195             inherit: "default" 0.0;
196          }
197          description {
198             state: "visible" 0.0;
199             inherit: "default" 0.0;
200             color: 255 255 255 255;
201          }
202       }
203    }
204    programs {
205       program {
206          name:   "showup";
207          signal: "elm,state,show,up";
208          source: "elm";
209          action: STATE_SET "show_up" 0.0;
210          target: "swallow";
211          target: "top_padding";
212          target: "layout_clip";
213          after: "showupend";
214       }
215       program {
216          name:   "showdown";
217          signal: "elm,state,show,down";
218          source: "elm";
219          action: STATE_SET "show_down" 0.0;
220          target: "swallow";
221          target: "bottom_padding";
222          target: "layout_clip";
223          after: "showdownend";
224       }
225       program {
226          name:   "showleft";
227          signal: "elm,state,show,left";
228          source: "elm";
229          action: STATE_SET "show_left" 0.0;
230          target: "swallow";
231          target: "left_padding";
232          target: "layout_clip";
233          after: "showleftend";
234       }
235       program {
236          name:   "showright";
237          signal: "elm,state,show,right";
238          source: "elm";
239          action: STATE_SET "show_right" 0.0;
240          target: "swallow";
241          target: "right_padding";
242          target: "layout_clip";
243          after: "showrightend";
244       }
245       program {
246          name:   "showupend";
247          action: STATE_SET "visible" 0.0;
248          transition: SIN_FAC 0.33 1.1;
249          target: "top_padding";
250          target: "layout_clip";
251       }
252       program {
253          name:   "showdownend";
254          action: STATE_SET "visible" 0.0;
255          transition: SIN_FAC 0.33 1.1;
256          target: "bottom_padding";
257          target: "layout_clip";
258       }
259       program {
260          name:   "showleftend";
261          action: STATE_SET "visible" 0.0;
262          transition: SIN_FAC 0.33 1.1;
263          target: "left_padding";
264          target: "layout_clip";
265       }
266       program {
267          name:   "showrightend";
268          action: STATE_SET "visible" 0.0;
269          transition: SIN_FAC 0.33 1.1;
270          target: "right_padding";
271          target: "layout_clip";
272       }
273       program {
274          name:   "hideup";
275          signal: "elm,state,hide,up";
276          source: "elm";
277          action: STATE_SET "show_up" 0.0;
278          target: "swallow";
279          target: "top_padding";
280          transition: SIN_FAC 0.33 1.1;
281          after: "be_default";
282       }
283       program {
284          name:   "hidedown";
285          signal: "elm,state,hide,down";
286          source: "elm";
287          action: STATE_SET "show_down" 0.0;
288          target: "swallow";
289          target: "bottom_padding";
290          transition: SIN_FAC 0.33 1.1;
291          after: "be_default";
292       }
293       program {
294          name:   "hideleft";
295          signal: "elm,state,hide,left";
296          source: "elm";
297          action: STATE_SET "show_left" 0.0;
298          target: "swallow";
299          target: "left_padding";
300          transition: SIN_FAC 0.33 1.1;
301          after: "be_default";
302       }
303       program {
304          name:   "hideright";
305          signal: "elm,state,hide,right";
306          source: "elm";
307          action: STATE_SET "show_right" 0.0;
308          target: "swallow";
309          target: "right_padding";
310          transition: SIN_FAC 0.33 1.1;
311          after: "be_default";
312       }
313       program {
314          name:   "hideup_clip";
315          signal: "elm,state,hide,up";
316          source: "elm";
317          action: STATE_SET "default" 0.0;
318          target: "layout_clip";
319          transition: SIN_FAC 0.33 1.1;
320          after: "be_default";
321       }
322       program {
323          name:   "hidedown_clip";
324          signal: "elm,state,hide,down";
325          source: "elm";
326          action: STATE_SET "default" 0.0;
327          target: "layout_clip";
328          transition: SIN_FAC 0.33 1.1;
329          after: "be_default";
330       }
331       program {
332          name:   "hideleft_clip";
333          signal: "elm,state,hide,left";
334          source: "elm";
335          action: STATE_SET "default" 0.0;
336          target: "layout_clip";
337          transition: SIN_FAC 0.33 1.1;
338          after: "be_default";
339       }
340       program {
341          name:   "hideright_clip";
342          signal: "elm,state,hide,right";
343          source: "elm";
344          action: STATE_SET "default" 0.0;
345          target: "layout_clip";
346          transition: SIN_FAC 0.33 1.1;
347          after: "be_default";
348       }
349       program {
350          name: "be_default";
351          action: STATE_SET "default" 0.0;
352          target: "swallow";
353          target: "top_padding";
354          target: "bottom_padding";
355          target: "left_padding";
356          target: "right_padding";
357          after: "hidefinished";
358       }
359       program {
360          name: "hidefinished";
361          action: SIGNAL_EMIT "elm,action,hide,finished" "";
362       }
363    }
364 }
365 ///////////////////////////////////////////////////////////////////////////////
366 group {
367    name: "elm/ctxpopup/layout/landscape/default";
368    inherit: "elm/ctxpopup/layout/default";
369    max: (CTXPOPUP_WIDTH_MAX_INC+CTXPOPUP_SHADOW_LEFT_PADDING+CTXPOPUP_SHADOW_RIGHT_PADDING) ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*5)+CTXPOPUP_SHADOW_TOP_PADDING+CTXPOPUP_SHADOW_BOTTOM_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*8));
370 }
371 ///////////////////////////////////////////////////////////////////////////////
372 group {
373    name: "elm/ctxpopup/layout/datetime/default";
374    alias: "elm/ctxpopup/layout/timepicker";
375    parts {
376       part {
377          name:"top_padding";
378          type: RECT;
379          scale: 1;
380          description {
381             state: "default" 0.0;
382             min: 0 20;
383             visible: 0;
384             fixed: 0 1;
385             align: 0.5 0.0;
386             rel1.relative: 0.0 0.0;
387             rel2.relative: 1.0 0.0;
388          }
389          description {
390             state: "show_up" 0.0;
391             inherit: "default" 0.0;
392          }
393          description {
394             state: "visible" 0.0;
395             inherit: "default" 0.0;
396             min: 0 0;
397          }
398       }
399       part {
400          name:"bottom_padding";
401          type: RECT;
402          scale: 1;
403          description {
404             state: "default" 0.0;
405             min: 0 20;
406             visible: 0;
407             fixed: 0 1;
408             align: 0.5 1.0;
409             rel1.relative: 0.0 1.0;
410             rel2.relative: 1.0 1.0;
411          }
412          description {
413             state: "show_down" 0.0;
414             inherit: "default" 0.0;
415          }
416          description {
417             state: "visible" 0.0;
418             inherit: "default" 0.0;
419             min: 0 0;
420          }
421       }
422       part {
423          name:"left_padding";
424          type: RECT;
425          scale: 1;
426          description {
427             state: "default" 0.0;
428             min: 20 0;
429             visible: 0;
430             fixed: 1 0;
431             align: 0.0 0.5;
432             rel1.relative: 0.0 0.0;
433             rel2.relative: 0.0 1.0;
434          }
435          description {
436             state: "show_left" 0.0;
437             inherit: "default" 0.0;
438          }
439          description {
440             state: "visible" 0.0;
441             inherit: "default" 0.0;
442             min: 0 0;
443          }
444       }
445       part {
446          name:"right_padding";
447          type: RECT;
448          scale: 1;
449          description {
450             state: "default" 0.0;
451             min: 20 0;
452             visible: 0;
453             fixed: 1 0;
454             align: 1 0.5;
455             rel1.relative: 1.0 0.0;
456             rel2.relative: 1.0 1.0;
457          }
458          description {
459             state: "show_right" 0.0;
460             inherit: "default" 0.0;
461          }
462          description {
463             state: "visible" 0.0;
464             inherit: "default" 0.0;
465             min: 0 0;
466          }
467       }
468       part {
469          name: "swallow";
470          type: SWALLOW;
471          clip_to: "layout_clip";
472          scale: 1;
473          description {
474             state: "default" 0.0;
475             visible: 0;
476          }
477          description {
478             state: "show_up" 0.0;
479             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
480             rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
481             align: 0.5 0.0;
482          }
483          description {
484             state: "show_down" 0.0;
485             rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
486             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
487             align: 0.5 1.0;
488          }
489          description {
490             state: "show_left" 0.0;
491             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
492             rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
493             align: 0.0 0.5;
494          }
495          description {
496             state: "show_right" 0.0;
497             rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
498             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
499             align: 1.0 0.5;
500          }
501       }
502       part {
503          name: "layout_clip";
504          type: RECT;
505          scale: 1;
506          description {
507             state: "default" 0.0;
508             color: 255 255 255 0;
509             rel1 {to: "swallow"; relative: -0.2 -0.2; }
510             rel2 {to: "swallow"; relative: 1.2 1.2;}
511          }
512          description {
513             state: "show_up" 0.0;
514             inherit: "default" 0.0;
515          }
516          description {
517             state: "show_down" 0.0;
518             inherit: "default" 0.0;
519          }
520          description {
521             state: "show_left" 0.0;
522             inherit: "default" 0.0;
523          }
524          description {
525             state: "show_right" 0.0;
526             inherit: "default" 0.0;
527          }
528          description {
529             state: "visible" 0.0;
530             inherit: "default" 0.0;
531             color: 255 255 255 255;
532          }
533       }
534    }
535    programs {
536       program {
537          name:   "showup";
538          signal: "elm,state,show,up";
539          source: "elm";
540          action: STATE_SET "show_up" 0.0;
541          target: "swallow";
542          target: "top_padding";
543          target: "layout_clip";
544          after: "showupend";
545       }
546       program {
547          name:   "showdown";
548          signal: "elm,state,show,down";
549          source: "elm";
550          action: STATE_SET "show_down" 0.0;
551          target: "swallow";
552          target: "bottom_padding";
553          target: "layout_clip";
554          after: "showdownend";
555       }
556       program {
557          name:   "showleft";
558          signal: "elm,state,show,left";
559          source: "elm";
560          action: STATE_SET "show_left" 0.0;
561          target: "swallow";
562          target: "left_padding";
563          target: "layout_clip";
564          after: "showleftend";
565       }
566       program {
567          name:   "showright";
568          signal: "elm,state,show,right";
569          source: "elm";
570          action: STATE_SET "show_right" 0.0;
571          target: "swallow";
572          target: "right_padding";
573          target: "layout_clip";
574          after: "showrightend";
575       }
576       program {
577          name:   "showupend";
578          action: STATE_SET "visible" 0.0;
579          transition:LINEAR 0.25;
580          target: "top_padding";
581          target: "layout_clip";
582       }
583       program {
584          name:   "showdownend";
585          action: STATE_SET "visible" 0.0;
586          transition:LINEAR 0.25;
587          target: "bottom_padding";
588          target: "layout_clip";
589       }
590       program {
591          name:   "showleftend";
592          action: STATE_SET "visible" 0.0;
593          transition:LINEAR 0.25;
594          target: "left_padding";
595          target: "layout_clip";
596       }
597       program {
598          name:   "showrightend";
599          action: STATE_SET "visible" 0.0;
600          transition:LINEAR 0.25;
601          target: "right_padding";
602          target: "layout_clip";
603       }
604       program {
605          name:   "hideup";
606          signal: "elm,state,hide,up";
607          source: "elm";
608          action: STATE_SET "show_up" 0.0;
609          target: "swallow";
610          target: "top_padding";
611          transition: LINEAR 0.25;
612          after: "be_default";
613       }
614       program {
615          name:   "hidedown";
616          signal: "elm,state,hide,down";
617          source: "elm";
618          action: STATE_SET "show_down" 0.0;
619          target: "swallow";
620          target: "bottom_padding";
621          transition: LINEAR 0.25;
622          after: "be_default";
623       }
624       program {
625          name:   "hideleft";
626          signal: "elm,state,hide,left";
627          source: "elm";
628          action: STATE_SET "show_left" 0.0;
629          target: "swallow";
630          target: "left_padding";
631          transition: LINEAR 0.25;
632          after: "be_default";
633       }
634       program {
635          name:   "hideright";
636          signal: "elm,state,hide,right";
637          source: "elm";
638          action: STATE_SET "show_right" 0.0;
639          target: "swallow";
640          target: "right_padding";
641          transition: LINEAR 0.25;
642          after: "be_default";
643       }
644       program {
645          name:   "hideup_clip";
646          signal: "elm,state,hide,up";
647          source: "elm";
648          action: STATE_SET "default" 0.0;
649          target: "layout_clip";
650          transition: LINEAR 0.25;
651          after: "be_default";
652       }
653       program {
654          name:   "hidedown_clip";
655          signal: "elm,state,hide,down";
656          source: "elm";
657          action: STATE_SET "default" 0.0;
658          target: "layout_clip";
659          transition: LINEAR 0.25;
660          after: "be_default";
661       }
662       program {
663          name:   "hideleft_clip";
664          signal: "elm,state,hide,left";
665          source: "elm";
666          action: STATE_SET "default" 0.0;
667          target: "layout_clip";
668          transition: LINEAR 0.25;
669          after: "be_default";
670       }
671       program {
672          name:   "hideright_clip";
673          signal: "elm,state,hide,right";
674          source: "elm";
675          action: STATE_SET "default" 0.0;
676          target: "layout_clip";
677          transition: LINEAR 0.25;
678          after: "be_default";
679       }
680       program {
681          name: "be_default";
682          action: STATE_SET "default" 0.0;
683          target: "swallow";
684          target: "top_padding";
685          target: "bottom_padding";
686          target: "left_padding";
687          target: "right_padding";
688          after: "hidefinished";
689       }
690       program {
691          name: "hidefinished";
692          action: SIGNAL_EMIT "elm,action,hide,finished" "";
693       }
694    }
695 }
696 ///////////////////////////////////////////////////////////////////////////////
697 group {
698    name: "elm/ctxpopup/layout/more/default";
699    max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*7)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*12));
700    parts {
701       part {
702          name:"top_padding";
703          type: RECT;
704          scale: 1;
705          description {
706             state: "default" 0.0;
707             min: 0 CTXPOPUP_MOVE_PAD_INC;
708             visible: 0;
709             fixed: 0 1;
710             align: 0.5 0.0;
711             rel1.relative: 0.0 0.0;
712             rel2.relative: 1.0 0.0;
713          }
714          description {
715             state: "show_up" 0.0;
716             inherit: "default" 0.0;
717          }
718          description {
719             state: "visible" 0.0;
720             inherit: "default" 0.0;
721             min: 0 0;
722          }
723       }
724       part {
725          name:"bottom_padding";
726          type: RECT;
727          scale: 1;
728          description {
729             state: "default" 0.0;
730             min: 0 CTXPOPUP_MOVE_PAD_INC;
731             visible: 0;
732             fixed: 0 1;
733             align: 0.5 1.0;
734             rel1.relative: 0.0 1.0;
735             rel2.relative: 1.0 1.0;
736          }
737          description {
738             state: "show_down" 0.0;
739             inherit: "default" 0.0;
740          }
741          description {
742             state: "visible" 0.0;
743             inherit: "default" 0.0;
744             min: 0 0;
745          }
746       }
747       part {
748          name:"left_padding";
749          type: RECT;
750          scale: 1;
751          description {
752             state: "default" 0.0;
753             min: CTXPOPUP_MOVE_PAD_INC 0;
754             visible: 0;
755             fixed: 1 0;
756             align: 0.0 0.5;
757             rel1.relative: 0.0 0.0;
758             rel2.relative: 0.0 1.0;
759          }
760          description {
761             state: "show_left" 0.0;
762             inherit: "default" 0.0;
763          }
764          description {
765             state: "visible" 0.0;
766             inherit: "default" 0.0;
767             min: 0 0;
768          }
769       }
770       part {
771          name:"right_padding";
772          type: RECT;
773          scale: 1;
774          description {
775             state: "default" 0.0;
776             min: CTXPOPUP_MOVE_PAD_INC 0;
777             visible: 0;
778             fixed: 1 0;
779             align: 1 0.5;
780             rel1.relative: 1.0 0.0;
781             rel2.relative: 1.0 1.0;
782          }
783          description {
784             state: "show_right" 0.0;
785             inherit: "default" 0.0;
786          }
787          description {
788             state: "visible" 0.0;
789             inherit: "default" 0.0;
790             min: 0 0;
791          }
792       }
793       part {
794          name: "swallow";
795          type: SWALLOW;
796          clip_to: "layout_clip";
797          scale: 1;
798          description {
799             state: "default" 0.0;
800             visible: 0;
801          }
802          description {
803             state: "show_up" 0.0;
804             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
805             rel2 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
806             align: 0.5 0.0;
807          }
808          description {
809             state: "show_down" 0.0;
810             rel1 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
811             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
812             align: 0.5 1.0;
813          }
814          description {
815             state: "show_left" 0.0;
816             rel1 {to_x:"left_padding"; to_y:"top_padding"; relative: 1.0 1.0;}
817             rel2 {to_x:"left_padding"; to_y:"bottom_padding"; relative: 1.0 0.0;}
818             align: 0.0 0.5;
819          }
820          description {
821             state: "show_right" 0.0;
822             rel1 {to_x:"right_padding"; to_y:"top_padding"; relative: 0.0 1.0;}
823             rel2 {to_x:"right_padding"; to_y:"bottom_padding"; relative: 0.0 0.0;}
824             align: 1.0 0.5;
825          }
826       }
827       part {
828          name: "layout_clip";
829          type: RECT;
830          scale: 1;
831          description {
832             state: "default" 0.0;
833             color: 255 255 255 0;
834             rel1 {to: "swallow"; relative: -0.2 -0.2; }
835             rel2 {to: "swallow"; relative: 1.2 1.2;}
836          }
837          description {
838             state: "show_up" 0.0;
839             inherit: "default" 0.0;
840          }
841          description {
842             state: "show_down" 0.0;
843             inherit: "default" 0.0;
844          }
845          description {
846             state: "show_left" 0.0;
847             inherit: "default" 0.0;
848          }
849          description {
850             state: "show_right" 0.0;
851             inherit: "default" 0.0;
852          }
853          description {
854             state: "visible" 0.0;
855             inherit: "default" 0.0;
856             color: 255 255 255 255;
857          }
858       }
859    }
860    programs {
861       program {
862          name:   "showup";
863          signal: "elm,state,show,up";
864          source: "elm";
865          action: STATE_SET "show_up" 0.0;
866          target: "swallow";
867          target: "top_padding";
868          target: "layout_clip";
869          after: "showupend";
870       }
871       program {
872          name:   "showdown";
873          signal: "elm,state,show,down";
874          source: "elm";
875          action: STATE_SET "show_down" 0.0;
876          target: "swallow";
877          target: "bottom_padding";
878          target: "layout_clip";
879          after: "showdownend";
880       }
881       program {
882          name:   "showleft";
883          signal: "elm,state,show,left";
884          source: "elm";
885          action: STATE_SET "show_left" 0.0;
886          target: "swallow";
887          target: "left_padding";
888          target: "layout_clip";
889          after: "showleftend";
890       }
891       program {
892          name:   "showright";
893          signal: "elm,state,show,right";
894          source: "elm";
895          action: STATE_SET "show_right" 0.0;
896          target: "swallow";
897          target: "right_padding";
898          target: "layout_clip";
899          after: "showrightend";
900       }
901       program {
902          name:   "showupend";
903          action: STATE_SET "visible" 0.0;
904          transition: SIN_FAC 0.33 1.1;
905          target: "top_padding";
906          target: "layout_clip";
907       }
908       program {
909          name:   "showdownend";
910          action: STATE_SET "visible" 0.0;
911          transition: SIN_FAC 0.33 1.1;
912          target: "bottom_padding";
913          target: "layout_clip";
914       }
915       program {
916          name:   "showleftend";
917          action: STATE_SET "visible" 0.0;
918          transition: SIN_FAC 0.33 1.1;
919          target: "left_padding";
920          target: "layout_clip";
921       }
922       program {
923          name:   "showrightend";
924          action: STATE_SET "visible" 0.0;
925          transition: SIN_FAC 0.33 1.1;
926          target: "right_padding";
927          target: "layout_clip";
928       }
929       program {
930          name:   "hideup";
931          signal: "elm,state,hide,up";
932          source: "elm";
933          action: STATE_SET "show_up" 0.0;
934          target: "swallow";
935          target: "top_padding";
936          transition: SIN_FAC 0.33 1.1;
937          after: "be_default";
938       }
939       program {
940          name:   "hidedown";
941          signal: "elm,state,hide,down";
942          source: "elm";
943          action: STATE_SET "show_down" 0.0;
944          target: "swallow";
945          target: "bottom_padding";
946          transition: SIN_FAC 0.33 1.1;
947          after: "be_default";
948       }
949       program {
950          name:   "hideleft";
951          signal: "elm,state,hide,left";
952          source: "elm";
953          action: STATE_SET "show_left" 0.0;
954          target: "swallow";
955          target: "left_padding";
956          transition: SIN_FAC 0.33 1.1;
957          after: "be_default";
958       }
959       program {
960          name:   "hideright";
961          signal: "elm,state,hide,right";
962          source: "elm";
963          action: STATE_SET "show_right" 0.0;
964          target: "swallow";
965          target: "right_padding";
966          transition: SIN_FAC 0.33 1.1;
967          after: "be_default";
968       }
969       program {
970          name:   "hideup_clip";
971          signal: "elm,state,hide,up";
972          source: "elm";
973          action: STATE_SET "default" 0.0;
974          target: "layout_clip";
975          transition: SIN_FAC 0.33 1.1;
976          after: "be_default";
977       }
978       program {
979          name:   "hidedown_clip";
980          signal: "elm,state,hide,down";
981          source: "elm";
982          action: STATE_SET "default" 0.0;
983          target: "layout_clip";
984          transition: SIN_FAC 0.33 1.1;
985          after: "be_default";
986       }
987       program {
988          name:   "hideleft_clip";
989          signal: "elm,state,hide,left";
990          source: "elm";
991          action: STATE_SET "default" 0.0;
992          target: "layout_clip";
993          transition: SIN_FAC 0.33 1.1;
994          after: "be_default";
995       }
996       program {
997          name:   "hideright_clip";
998          signal: "elm,state,hide,right";
999          source: "elm";
1000          action: STATE_SET "default" 0.0;
1001          target: "layout_clip";
1002          transition: SIN_FAC 0.33 1.1;
1003          after: "be_default";
1004       }
1005       program {
1006          name: "be_default";
1007          action: STATE_SET "default" 0.0;
1008          target: "swallow";
1009          target: "top_padding";
1010          target: "bottom_padding";
1011          target: "left_padding";
1012          target: "right_padding";
1013          after: "hidefinished";
1014       }
1015       program {
1016          name: "hidefinished";
1017          action: SIGNAL_EMIT "elm,action,hide,finished" "";
1018       }
1019    }
1020 }
1021 ///////////////////////////////////////////////////////////////////////////////
1022 group {
1023    name: "elm/ctxpopup/layout/landscape/more/default";
1024    inherit: "elm/ctxpopup/layout/landscape/default";
1025    max: CTXPOPUP_MORE_WIDTH_MAX_INC ((CTXPOPUP_ITEM_HEIGHT_MIN_INC*5)+CTXPOPUP_SHADOW_TOP_PADDING+(CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC*8));
1026 }
1027 ///////////////////////////////////////////////////////////////////////////////
1028 group {
1029    name: "elm/scroller/base/ctxpopup";
1030    alias: "elm/scroller/base/more/default";
1031    script {
1032       public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
1033       public timer0(val) {
1034          new v;
1035          v = get_int(sbvis_v);
1036          if (v) {
1037             v = get_int(sbalways_v);
1038             if(!v) {
1039                emit("do-hide-vbar", "");
1040                set_int(sbvis_v, 0);
1041             }
1042          }
1043          v = get_int(sbvis_h);
1044          if (v) {
1045             v = get_int(sbalways_h);
1046             if(!v) {
1047                emit("do-hide-hbar", "");
1048                set_int(sbvis_h, 0);
1049             }
1050          }
1051          set_int(sbvis_timer, 0);
1052          return 0;
1053       }
1054    }
1055    images {
1056       image: "00_popup_scroll_v.png" COMP;
1057       image: "00_popup_scroll_h.png" COMP;
1058    }
1059    parts {
1060       part {
1061          name: "clipper";
1062          type: RECT;
1063          mouse_events: 0;
1064          scale: 1;
1065          description {
1066             state: "default" 0.0;
1067          }
1068       }
1069       part {
1070          name: "elm.swallow.content";
1071          clip_to: "clipper";
1072          type: SWALLOW;
1073          scale: 1;
1074          description {
1075             state: "default" 0.0;
1076             align: 0.5 0.5;
1077          }
1078       }
1079       part {
1080          name: "sb_vbar_clip_master";
1081          type: RECT;
1082          mouse_events: 0;
1083          description {
1084             state: "default" 0.0;
1085          }
1086          description {
1087             state: "hidden" 0.0;
1088             visible: 0;
1089             color: 255 255 255 0;
1090          }
1091       }
1092       part {
1093          name: "sb_vbar_clip";
1094          clip_to:"sb_vbar_clip_master";
1095          type: RECT;
1096          mouse_events: 0;
1097          scale: 1;
1098          description {
1099             state: "default" 0.0;
1100             align: 0.0 0.0;
1101             rel2{ to:"clipper"; relative: 1.0 1.0;}
1102          }
1103          description {
1104             state: "hidden" 0.0;
1105             visible: 0;
1106             color: 255 255 255 0;
1107          }
1108       }
1109       part {
1110          name: "sb_vbar_padding";
1111          type: RECT;
1112          mouse_events: 0;
1113          scale: 1;
1114          description {
1115             state: "default" 0.0;
1116             fixed: 1 1;
1117             min: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
1118             max: (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH) 0;
1119             visible: 0;
1120             align: 1.0 0.0;
1121             rel1 { to:"clipper"; relative: 1.0 0.0; }
1122             rel2 { to:"clipper"; relative: 1.0 1.0; }
1123          }
1124       }
1125       part {
1126          name: "sb_vbar";
1127          type: RECT;
1128          mouse_events: 0;
1129          scale: 1;
1130          description {
1131             state: "default" 0.0;
1132             fixed: 1 1;
1133             visible: 0;
1134             align: 1.0 0.0;
1135             rel1 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 0.0; }
1136             rel2 { to_x:"sb_vbar_padding"; to_y:"clipper"; relative: 0.0 1.0; }
1137          }
1138       }
1139       part {
1140          name: "elm.dragable.vbar";
1141          clip_to: "sb_vbar_clip";
1142          mouse_events: 0;
1143          scale: 1;
1144          dragable {
1145             x: 0 0 0;
1146             y: 1 1 0;
1147             confine: "sb_vbar";
1148          }
1149          description {
1150             state: "default" 0.0;
1151             fixed: 1 1;
1152             min: CTXPOPUP_SCROLLER_V_MIN_SIZE_INC;
1153             rel1 {
1154                relative: 0.5  0.5;
1155                to: "sb_vbar";
1156             }
1157             rel2 {
1158                relative: 0.5  0.5;
1159                to: "sb_vbar";
1160             }
1161             image {
1162                normal: "00_popup_scroll_v.png";
1163                border: 0 0 8 8;
1164                border_scale: 1;
1165             }
1166          }
1167       }
1168       part {
1169          name: "sb_hbar_clip_master";
1170          type: RECT;
1171          mouse_events: 0;
1172          description {
1173             state: "default" 0.0;
1174          }
1175          description {
1176             state: "hidden" 0.0;
1177             visible: 0;
1178             color: 255 255 255 0;
1179          }
1180       }
1181       part {
1182          name: "sb_hbar_clip";
1183          clip_to: "sb_hbar_clip_master";
1184          type: RECT;
1185          mouse_events: 0;
1186          scale: 1;
1187          description {
1188             state: "default" 0.0;
1189             align: 0.0 0.0;
1190             rel2{ to:"clipper"; relative: 1.0 1.0;}
1191          }
1192          description {
1193             state: "hidden" 0.0;
1194             visible: 0;
1195             color: 255 255 255 0;
1196          }
1197       }
1198       part {
1199          name: "sb_hbar_padding";
1200          type: RECT;
1201          mouse_events: 0;
1202          scale: 1;
1203          description {
1204             state: "default" 0.0;
1205             fixed: 1 1;
1206             min: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
1207             max: 0 (CTXPOPUP_SCROLLER_PADDING-CTXPOPUP_CONTENT_PADDING_HEIGHT);
1208             visible: 0;
1209             align: 0.0 1.0;
1210             rel1 { to:"clipper"; relative: 0.0 1.0; }
1211             rel2 { to:"clipper"; relative: 1.0 1.0; }
1212          }
1213       }
1214       part {
1215          name: "sb_hbar";
1216          type: RECT;
1217          mouse_events: 0;
1218          scale: 1;
1219          description {
1220             state: "default" 0.0;
1221             fixed: 1 1;
1222             visible: 0;
1223             align: 0.0 1.0;
1224             rel1 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 0.0 0.0;}
1225             rel2 {to_x:"clipper"; to_y: "sb_hbar_padding"; relative: 1.0 0.0;}
1226          }
1227       }
1228       part {
1229          name: "elm.dragable.hbar";
1230          clip_to: "sb_hbar_clip";
1231          mouse_events: 0;
1232          scale: 1;
1233          dragable {
1234             x: 1 1 0;
1235             y: 0 0 0;
1236             confine: "sb_hbar";
1237          }
1238          description {
1239             state: "default" 0.0;
1240             fixed: 1 1;
1241             min: CTXPOPUP_SCROLLER_H_MIN_SIZE_INC;
1242             rel1 {relative: 0.5  0.5; to: "sb_hbar";}
1243             rel2 {relative: 0.5  0.5; to: "sb_hbar";}
1244             image {
1245                normal: "00_popup_scroll_h.png";
1246                border: 8 8 0 0;
1247                border_scale: 1;
1248             }
1249          }
1250       }
1251    }
1252    programs {
1253       program {
1254          name: "load";
1255          signal: "load";
1256          source: "";
1257          script {
1258             set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1259             set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1260             set_int(sbvis_v, 0);
1261             set_int(sbvis_h, 0);
1262             set_int(sbalways_v, 0);
1263             set_int(sbalways_h, 0);
1264             set_int(sbvis_timer, 0);
1265             emit("reload", "elm");
1266          }
1267       }
1268       program {
1269          name: "vbar_show";
1270          signal: "elm,action,show,vbar";
1271          source: "elm";
1272          action: STATE_SET "default" 0.0;
1273          target: "sb_vbar_clip_master";
1274       }
1275       program {
1276          name: "vbar_hide";
1277          signal: "elm,action,hide,vbar";
1278          source: "elm";
1279          action:  STATE_SET "hidden" 0.0;
1280          target: "sb_vbar_clip_master";
1281       }
1282       program {
1283          name: "vbar_show_always";
1284          signal: "elm,action,show_always,vbar";
1285          source: "elm";
1286          script {
1287             new v;
1288             v = get_int(sbvis_v);
1289             v |= get_int(sbalways_v);
1290             if (!v) {
1291                set_int(sbalways_v, 1);
1292                emit("do-show-vbar", "");
1293                set_int(sbvis_v, 1);
1294             }
1295          }
1296       }
1297       program {
1298          name: "vbar_show_notalways";
1299          signal: "elm,action,show_notalways,vbar";
1300          source: "elm";
1301          script {
1302             new v;
1303             v = get_int(sbalways_v);
1304             if (v) {
1305                set_int(sbalways_v, 0);
1306                v = get_int(sbvis_v);
1307                if (!v) {
1308                   emit("do-hide-vbar", "");
1309                   set_int(sbvis_v, 0);
1310                }
1311             }
1312          }
1313       }
1314       program {
1315          name: "sb_vbar_show";
1316          signal: "do-show-vbar";
1317          source: "";
1318          action:  STATE_SET "default" 0.0;
1319          transition: LINEAR 1.0;
1320          target: "sb_vbar_clip";
1321       }
1322       program {
1323          name: "sb_vbar_hide";
1324          signal: "do-hide-vbar";
1325          source: "";
1326          action:  STATE_SET "hidden" 0.0;
1327          transition: LINEAR 1.0;
1328          target: "sb_vbar_clip";
1329       }
1330       program {
1331          name: "hbar_show";
1332          signal: "elm,action,show,hbar";
1333          source: "elm";
1334          action:  STATE_SET "default" 0.0;
1335          target: "sb_hbar_clip_master";
1336       }
1337       program {
1338          name: "hbar_hide";
1339          signal: "elm,action,hide,hbar";
1340          source: "elm";
1341          action:  STATE_SET "hidden" 0.0;
1342          target: "sb_hbar_clip_master";
1343       }
1344       program {
1345          name: "hbar_show_always";
1346          signal: "elm,action,show_always,hbar";
1347          source: "elm";
1348          script {
1349             new v;
1350             v = get_int(sbvis_h);
1351             v |= get_int(sbalways_h);
1352             if (!v) {
1353                set_int(sbalways_h, 1);
1354                emit("do-show-hbar", "");
1355                set_int(sbvis_h, 1);
1356             }
1357          }
1358       }
1359       program {
1360          name: "hbar_show_notalways";
1361          signal: "elm,action,show_notalways,hbar";
1362          source: "elm";
1363          script {
1364             new v;
1365             v = get_int(sbalways_h);
1366             if (v) {
1367                set_int(sbalways_h, 0);
1368                v = get_int(sbvis_h);
1369                if (!v) {
1370                   emit("do-hide-hbar", "");
1371                   set_int(sbvis_h, 0);
1372                }
1373             }
1374          }
1375       }
1376       program {
1377          name: "sb_hbar_show";
1378          signal: "do-show-hbar";
1379          source: "";
1380          action:  STATE_SET "default" 0.0;
1381          transition: LINEAR 1.0;
1382          target: "sb_hbar_clip";
1383       }
1384       program {
1385          name: "sb_hbar_hide";
1386          signal: "do-hide-hbar";
1387          source: "";
1388          action:  STATE_SET "hidden" 0.0;
1389          transition: LINEAR 1.0;
1390          target: "sb_hbar_clip";
1391       }
1392       program {
1393          name: "scroll";
1394          signal: "elm,action,scroll";
1395          source: "elm";
1396          action:  STATE_SET "default" 0.0;
1397          script {
1398             new v;
1399             v = get_int(sbvis_v);
1400             v |= get_int(sbalways_v);
1401             if (!v) {
1402                emit("do-show-vbar", "");
1403                set_int(sbvis_v, 1);
1404             }
1405             v = get_int(sbvis_h);
1406             v |= get_int(sbalways_h);
1407             if(!v) {
1408                emit("do-show-hbar", "");
1409                set_int(sbvis_h, 1);
1410             }
1411             v = get_int(sbvis_timer);
1412             if (v > 0) cancel_timer(v);
1413             v = timer(2.0, "timer0", 0);
1414             set_int(sbvis_timer, v);
1415          }
1416       }
1417       program { name: "show";
1418          signal: "show";
1419          source: "";
1420          script {
1421             new v;
1422             emit("do-show-vbar", "");
1423             set_int(sbvis_v, 1);
1424             v = get_int(sbalways_v);
1425             if (!v) {
1426                v = get_int(sbvis_timer);
1427                if (v > 0) cancel_timer(v);
1428                v = timer(1.0, "timer0", 0);
1429                set_int(sbvis_timer, v);
1430             }
1431             emit("do-show-hbar", "");
1432             set_int(sbvis_h, 1);
1433             v = get_int(sbalways_h);
1434             if (!v) {
1435                v = get_int(sbvis_timer);
1436                if (v > 0) cancel_timer(v);
1437                v = timer(1.0, "timer0", 0);
1438                set_int(sbvis_timer, v);
1439             }
1440          }
1441       }
1442    }
1443 }
1444 ///////////////////////////////////////////////////////////////////////////////
1445 group {
1446    name: "elm/ctxpopup/bg/timepicker";
1447    alias: "elm/ctxpopup/bg/datetime/default";
1448    parts {
1449       part {
1450          name: "bg";
1451          type: RECT;
1452          repeat_events: 1;
1453          description {
1454             state: "default" 0.0;
1455             visible: 0;
1456          }
1457          description {
1458             state: "visible" 0.0;
1459             color: 0 0 0 0;
1460             visible: 1;
1461          }
1462       }
1463    }
1464    programs {
1465       program {
1466          name:  "clicked_event";
1467          signal: "mouse,clicked,1";
1468          source: "bg";
1469          action: SIGNAL_EMIT "elm,action,click" "";
1470       }
1471       program {
1472          name: "show";
1473          signal: "elm,state,show";
1474          source: "elm";
1475          action: STATE_SET "visible" 0.0;
1476          target: "bg";
1477       }
1478       program {
1479          name: "hide";
1480          signal: "elm,state,hide";
1481          source: "elm";
1482          action: STATE_SET "default" 0.0;
1483          target: "bg";
1484       }
1485    }
1486 }
1487 ///////////////////////////////////////////////////////////////////////////////
1488 group {
1489    name: "elm/ctxpopup/bg/default";
1490    parts {
1491       part {
1492          name: "bg";
1493          type: RECT;
1494          mouse_events: 1;
1495          description {
1496             state: "default" 0.0;
1497             visible: 0;
1498          }
1499          description {
1500             state: "visible" 0.0;
1501             color: 0 0 0 0;
1502             min: 1280 1280;
1503             align: 0.0 0.0;
1504             visible: 1;
1505          }
1506       }
1507    }
1508    programs {
1509       program {
1510          name:  "clicked_event";
1511          signal: "mouse,clicked,1";
1512          source: "bg";
1513          action: SIGNAL_EMIT "elm,action,click" "";
1514       }
1515       program {
1516          name: "show";
1517          signal: "elm,state,show";
1518          source: "elm";
1519          action: STATE_SET "visible" 0.0;
1520          target: "bg";
1521       }
1522       program {
1523          name: "hide";
1524          signal: "elm,state,hide";
1525          source: "elm";
1526          action: STATE_SET "default" 0.0;
1527          target: "bg";
1528       }
1529    }
1530 }
1531
1532 group {
1533    name: "elm/ctxpopup/bg/copypaste";
1534    inherit: "elm/ctxpopup/bg/default";
1535    parts {
1536       part {
1537          name: "bg";
1538          repeat_events: 1;
1539       }
1540    }
1541 }
1542
1543 ///////////////////////////////////////////////////////////////////////////////
1544 group {
1545    name: "elm/ctxpopup/base/default";
1546    alias: "elm/ctxpopup/base/copypaste";
1547    images {
1548       image: "00_popup_bubble_bg.png" COMP;
1549    }
1550    parts {
1551       part {
1552          name:"frame_shadow_left_top_padding";
1553          type:RECT;
1554          scale: 1;
1555          mouse_events: 0;
1556          description {
1557             state: "default" 0.0;
1558             min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
1559             max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
1560             rel2 { relative: 0 0; }
1561             align: 0 0;
1562             fixed: 1 1;
1563             visible: 0;
1564          }
1565       }
1566       part {
1567          name:"frame_shadow_right_bottom_padding";
1568          type:RECT;
1569          scale: 1;
1570          mouse_events: 0;
1571          description {
1572             state: "default" 0.0;
1573             min: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
1574             max: CTXPOPUP_SHADOW_RIGHT_PADDING CTXPOPUP_SHADOW_BOTTOM_PADDING;
1575             rel1{relative: 1 1;}
1576             align: 1 1;
1577             fixed: 1 1;
1578             visible: 0;
1579          }
1580       }
1581       part {
1582          name: "frame_bg";
1583          type: IMAGE;
1584          scale: 1;
1585          mouse_events: 0;
1586          description {
1587             state: "default" 0.0;
1588             rel1 {to:"frame_shadow_left_top_padding";}
1589             rel2 {to:"frame_shadow_right_bottom_padding";}
1590             min: (CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC + CTXPOPUP_SHADOW_LEFT_PADDING + CTXPOPUP_SHADOW_RIGHT_PADDING) 0;
1591             image {
1592                normal: "00_popup_bubble_bg.png";
1593                border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER;
1594                border_scale: 1;
1595             }
1596          }
1597       }
1598       part { name: "arrow_area_left";
1599          type: RECT;
1600          mouse_events: 0;
1601          scale: 1;
1602          description { state: "default" 0.0;
1603             visible: 0;
1604             min: CTXPOPUP_ARROW_SIZE_INC;
1605             fixed: 1 1;
1606             align: 1 0.5;
1607             rel1 {
1608                relative: 1 1;
1609                to_x:"arrow_left_top_padding";
1610                to_y: "ctxpopup_frame_left_top";
1611             }
1612             rel2 {
1613                relative: 1 0;
1614                to_x:"arrow_left_top_padding";
1615                to_y:"ctxpopup_frame_right_bottom";
1616             }
1617          }
1618       }
1619       part { name: "arrow_area_right";
1620          type: RECT;
1621          mouse_events: 0;
1622          scale: 1;
1623          description { state: "default" 0.0;
1624             visible: 0;
1625             min: CTXPOPUP_ARROW_SIZE_INC;
1626             fixed: 1 1;
1627             align: 0 0.5;
1628             rel1 {
1629                relative: 0 1;
1630                to_x:"arrow_right_bottom_padding";
1631                to_y:"ctxpopup_frame_left_top";
1632             }
1633             rel2 {
1634                relative: 0 0;
1635                to_x:"arrow_right_bottom_padding";
1636                to_y: "ctxpopup_frame_right_bottom";
1637             }
1638          }
1639       }
1640       part { name: "arrow_area_up";
1641          type: RECT;
1642          mouse_events: 0;
1643          scale: 1;
1644          description { state: "default" 0.0;
1645             visible: 0;
1646             min: CTXPOPUP_ARROW_SIZE_INC;
1647             fixed: 1 1;
1648             align: 0.5 1;
1649             rel1 {
1650                relative: 1 1;
1651                to_x: "ctxpopup_frame_left_top";
1652                to_y: "arrow_left_top_padding";
1653             }
1654             rel2 {
1655                relative: 0 1;
1656                to_x:"ctxpopup_frame_right_bottom";
1657                to_y: "arrow_left_top_padding";
1658             }
1659          }
1660       }
1661       part { name: "arrow_area_down";
1662          type: RECT;
1663          mouse_events: 0;
1664          scale: 1;
1665          description { state: "default" 0.0;
1666             visible: 0;
1667             min: CTXPOPUP_ARROW_SIZE_INC;
1668             fixed: 1 1;
1669             align: 0.5 0;
1670             rel1 {
1671                relative: 1 0;
1672                to_x:"ctxpopup_frame_left_top";
1673                to_y:"arrow_right_bottom_padding";
1674             }
1675             rel2 {
1676                relative: 0 0;
1677                to_x: "ctxpopup_frame_right_bottom";
1678                to_y:"arrow_right_bottom_padding";
1679             }
1680          }
1681       }
1682       part { name: "elm.swallow.arrow_up";
1683          type: SWALLOW;
1684          mouse_events: 0;
1685          scale: 1;
1686          dragable {
1687             x: 1 1 0;
1688             y: 1 1 0;
1689             confine: "arrow_area_up";
1690          }
1691          description {
1692             state: "default" 0.0;
1693             min: CTXPOPUP_ARROW_SIZE_INC;
1694             fixed: 1 1;
1695             visible: 1;
1696          }
1697       }
1698       part { name: "elm.swallow.arrow_down";
1699          type: SWALLOW;
1700          mouse_events: 0;
1701          scale: 1;
1702          dragable {
1703             x: 1 1 0;
1704             y: 1 1 0;
1705             confine: "arrow_area_down";
1706          }
1707          description {
1708             state: "default" 0.0;
1709             min: CTXPOPUP_ARROW_SIZE_INC;
1710             fixed: 1 1;
1711             visible: 1;
1712          }
1713       }
1714       part { name: "elm.swallow.arrow_left";
1715          type: SWALLOW;
1716          mouse_events: 0;
1717          scale: 1;
1718          dragable {
1719             x: 1 1 0;
1720             y: 1 1 0;
1721             confine: "arrow_area_left";
1722          }
1723          description {
1724             state: "default" 0.0;
1725             min: CTXPOPUP_ARROW_SIZE_INC;
1726             fixed: 1 1;
1727             visible: 1;
1728          }
1729       }
1730       part { name: "elm.swallow.arrow_right";
1731          type: SWALLOW;
1732          mouse_events: 0;
1733          scale: 1;
1734          dragable {
1735             x: 1 1 0;
1736             y: 1 1 0;
1737             confine: "arrow_area_right";
1738          }
1739          description {
1740             state: "default" 0.0;
1741             min: CTXPOPUP_ARROW_SIZE_INC;
1742             fixed: 1 1;
1743             visible: 1;
1744          }
1745       }
1746       part {
1747          name: "ctxpopup_frame_left_top";
1748          type: RECT;
1749          scale: 1;
1750          description {
1751             state: "default" 0.0;
1752             visible: 0;
1753             align: 0 0;
1754             fixed: 1 1;
1755             min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1756             max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1757             rel1 {relative: 0 0; to: "content_left_top_padding";}
1758          }
1759       }
1760       part {
1761          name: "ctxpopup_frame_right_bottom";
1762          type: RECT;
1763          scale: 1;
1764          description {
1765             state: "default" 0.0;
1766             visible: 0;
1767             align: 1 1;
1768             fixed: 1 1;
1769             min: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1770             max: CTXPOPUP_FRAME_CORNER_ARROW_PADDING CTXPOPUP_FRAME_CORNER_ARROW_PADDING;
1771             rel2 {relative: 1 1; to: "content_right_bottom_padding";}
1772          }
1773       }
1774       part {
1775          name:"content_left_top_padding";
1776          type:RECT;
1777          scale: 1;
1778          mouse_events: 0;
1779          description {
1780             state: "default" 0.0;
1781             min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
1782             max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
1783             rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
1784             align: 0 0;
1785             fixed: 1 1;
1786             visible: 0;
1787          }
1788       }
1789       part {
1790          name:"content_right_bottom_padding";
1791          type:RECT;
1792          scale: 1;
1793          mouse_events: 0;
1794          description {
1795             state: "default" 0.0;
1796             min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
1797             max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
1798             rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
1799             align: 1 1;
1800             fixed: 1 1;
1801             visible: 0;
1802          }
1803       }
1804       part {
1805          name: "arrow_left_top_padding";
1806          type: RECT;
1807          scale: 1;
1808          mouse_events: 0;
1809          description {
1810             state: "default" 0.0;
1811             min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
1812             max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
1813             rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
1814             align: 0 0;
1815             visible: 0;
1816          }
1817       }
1818       part {
1819          name: "arrow_right_bottom_padding";
1820          type: RECT;
1821          scale: 1;
1822          mouse_events: 0;
1823          description {
1824             state: "default" 0.0;
1825             min: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
1826             max: CTXPOPUP_ARROW_PADDING CTXPOPUP_ARROW_PADDING;
1827             rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
1828             align: 1 1;
1829             visible: 0;
1830          }
1831       }
1832       part {
1833          name: "elm.swallow.content";
1834          type: SWALLOW;
1835          scale: 1;
1836          description {
1837             state: "default" 0.0;
1838             align: 0 0;
1839             rel1 {to:"content_left_top_padding";  relative: 1.0 1.0;}
1840             rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
1841          }
1842       }
1843       part { name: "access.outline";
1844          type: RECT;
1845          scale: 1;
1846          repeat_events: 1;
1847          description { state: "default" 0.0;
1848             fixed: 1 1;
1849             rel1.to: "frame_bg";
1850             rel2.to: "frame_bg";
1851             color: 0 0 0 0;
1852          }
1853       }
1854    }
1855 }
1856
1857 ///////////////////////////////////////////////////////////////////////////////
1858         group { name: "elm/ctxpopup/arrow/default";
1859                 images {
1860                         image: "00_popup_bubble_tail_left.png" COMP;
1861                         image: "00_popup_bubble_tail_right.png" COMP;
1862                         image: "00_popup_bubble_tail_top.png" COMP;
1863                         image: "00_popup_bubble_tail_bottom.png" COMP;
1864                 }
1865                 parts {
1866                         part {
1867                                 name: "ctxpopup_arrow";
1868                                 type: IMAGE;
1869                                 scale: 1;
1870                                 description {
1871                                         state: "default" 0.0;
1872                                         min: CTXPOPUP_ARROW_SIZE_INC;
1873                                         max: CTXPOPUP_ARROW_SIZE_INC;
1874                                         fixed: 1 1;
1875                                         visible: 0;
1876                                         align: 0.5 0.5;
1877                                 }
1878                                 description {
1879                                         state: "left" 0.0;
1880                                         min: CTXPOPUP_ARROW_SIZE_INC;
1881                                         max: CTXPOPUP_ARROW_SIZE_INC;
1882                                         fixed: 1 1;
1883                                         align: 1.0 0.5;
1884                                         image {
1885                                                 normal: "00_popup_bubble_tail_left.png";
1886                                         }
1887                                 }
1888                                 description {
1889                                         state: "right" 0.0;
1890                                         min: CTXPOPUP_ARROW_SIZE_INC;
1891                                         max: CTXPOPUP_ARROW_SIZE_INC;
1892                                         fixed: 1 1;
1893                                         align: 0.0 0.5;
1894                                         image {
1895                                                 normal: "00_popup_bubble_tail_right.png";
1896                                         }
1897                                 }
1898                                 description {
1899                                         state: "top" 0.0;
1900                                         min: CTXPOPUP_ARROW_SIZE_INC;
1901                                         max: CTXPOPUP_ARROW_SIZE_INC;
1902                                         fixed: 1 1;
1903                                         align: 0.5 1.0;
1904                                         image {
1905                                                 normal: "00_popup_bubble_tail_top.png";
1906                                         }
1907                                 }
1908                                 description {
1909                                         state: "bottom" 0.0;
1910                                         min: CTXPOPUP_ARROW_SIZE_INC;
1911                                         max: CTXPOPUP_ARROW_SIZE_INC;
1912                                         fixed: 1 1;
1913                                         align: 0.5 0.0;
1914                                         image {
1915                                                 normal: "00_popup_bubble_tail_bottom.png";
1916                                         }
1917                                 }
1918                         }
1919                 }
1920                 programs {
1921                         program {
1922                                 name: "enable_left_arrow";
1923                                 signal: "elm,state,left";
1924                                 source: "elm";
1925                                 action: STATE_SET "left" 0.0;
1926                                 target: "ctxpopup_arrow";
1927                         }
1928                         program {
1929                                 name: "enable_right_arrow";
1930                                 signal: "elm,state,right";
1931                                 source: "elm";
1932                                 action: STATE_SET "right" 0.0;
1933                                 target: "ctxpopup_arrow";
1934                         }
1935                         program {
1936                                 name: "enable_top_arrow";
1937                                 signal: "elm,state,top";
1938                                 source: "elm";
1939                                 action: STATE_SET "top" 0.0;
1940                                 target: "ctxpopup_arrow";
1941                         }
1942                         program {
1943                                 name: "enable_bottom_arrow";
1944                                 signal: "elm,state,bottom";
1945                                 source: "elm";
1946                                 action: STATE_SET "bottom" 0.0;
1947                                 target: "ctxpopup_arrow";
1948                         }
1949                 }
1950         }
1951 ///////////////////////////////////////////////////////////////////////////////
1952 group {
1953    name: "elm/ctxpopup/text_style_item/default";
1954
1955    data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
1956
1957    parts {
1958       part {
1959          name: "event_blocker";
1960          type: RECT;
1961          mouse_events: 1;
1962          description {
1963             state: "default" 0.0;
1964             color: 0 0 0 0;
1965          }
1966       }
1967       part {
1968          name: "bg";
1969          mouse_events: 0;
1970          type: RECT;
1971          scale: 1;
1972          description {
1973             state: "default" 0.0;
1974             visible: 0;
1975             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
1976             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
1977          }
1978          description {
1979             state: "clicked" 0.0;
1980             inherit: "default" 0.0;
1981             color: CTXPOPUP_BG_PRESS_COLOR_INC;
1982             visible: 1;
1983          }
1984          description {
1985             state: "clicked_separator" 0.0;
1986             inherit: "default" 0.0;
1987             visible: 1;
1988             rel1 { relative: 0.0 1.0; to_y: "separator2"; }
1989             color: CTXPOPUP_BG_PRESS_COLOR_INC;
1990          }
1991       }
1992       part {
1993          name: "separator1";
1994          mouse_events: 0;
1995          type: RECT;
1996          scale: 1;
1997          description {
1998             state: "default" 0.0;
1999             color: CTXPOPUP_SEPARATOR_COLOR_INC;
2000             rel1 { relative: 0.0 0.0; }
2001             rel2 { relative: 1.0 1.0; }
2002             align: 0.5 0;
2003             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2004             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2005             visible: 0;
2006          }
2007          description {
2008             state: "visible" 0.0;
2009             inherit: "default" 0.0;
2010             visible: 1;
2011          }
2012       }
2013       part {
2014          name: "separator2";
2015          mouse_events: 0;
2016          type: RECT;
2017          scale: 1;
2018          description {
2019             state: "default" 0.0;
2020             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2021             rel1 { relative: 0.0 1.0; to: "separator1";}
2022             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
2023             align: 0.5 0;
2024             fixed: 0 1;
2025             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2026             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2027             visible: 0;
2028          }
2029          description {
2030             state: "visible" 0.0;
2031             inherit: "default" 0.0;
2032             visible: 1;
2033          }
2034       }
2035       part {
2036          name: "left_padding";
2037          type: RECT;
2038          scale: 1;
2039          mouse_events: 0;
2040          description {
2041             state: "default" 0.0;
2042             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2043             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2044             align: 0 0;
2045             fixed: 1 1;
2046             visible: 0;
2047          }
2048       }
2049       part {
2050          name: "elm.text";
2051          type: TEXT;
2052          mouse_events: 0;
2053          scale: 1;
2054          description {
2055             state: "default" 0.0;
2056             min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2057             align: 0.5 0.5;
2058             rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
2059             rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
2060             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
2061             text {
2062                font: "Tizen:style=Regular";
2063                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
2064                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
2065                align: 0 0.5;
2066                min: 1 1;
2067                text_class: "list_item";
2068             }
2069          }
2070          description {
2071             state: "clicked" 0.0;
2072             inherit: "default" 0.0;
2073             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
2074             text.min: 0 1;
2075          }
2076          description {
2077             state: "disabled" 0.0;
2078             inherit: "default" 0.0;
2079             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2080          }
2081          description {
2082             state: "ellipsis" 0.0;
2083             inherit: "default" 0.0;
2084             min: CTXPOPUP_TEXT_MAX_INC CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2085             text.min: 0 1;
2086          }
2087          description {
2088             state: "ellipsis_disabled" 0.0;
2089             inherit: "ellipsis" 0.0;
2090             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2091          }
2092       }
2093       part {
2094          name: "right_padding";
2095          type: RECT;
2096          scale: 1;
2097          mouse_events: 0;
2098          description {
2099             state: "default" 0.0;
2100             visible: 0;
2101             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2102             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2103             fixed: 1 1;
2104             align: 1.0 1.0;
2105          }
2106       }
2107       part {
2108          name: "over1";
2109          type: RECT;
2110          mouse_events: 1;
2111          repeat_events: 1;
2112          description {
2113             state: "default" 0.0;
2114             color: 0 0 0 0;
2115          }
2116       }
2117       part {
2118          name: "over2";
2119          type: RECT;
2120          mouse_events: 1;
2121          repeat_events: 1;
2122          dragable {
2123             x: 1 1 0;
2124             y: 1 1 0;
2125          }
2126          description {
2127             state: "default" 0.0;
2128             rel1.to:"bg";
2129             rel2.to:"bg";
2130             color: 0 0 0 0;
2131          }
2132       }
2133       part {
2134          name: "disclip";
2135          type: RECT;
2136          description {
2137             state: "default" 0.0;
2138             visible: 0;
2139          }
2140          description {
2141             state: "disabled" 0.0;
2142             visible: 1;
2143             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2144          }
2145       }
2146    }
2147    programs {
2148       program {
2149          name: "text_ellipsis";
2150          signal: "elm,state,text,ellipsis";
2151          source: "elm";
2152          action: STATE_SET "ellipsis" 0.0;
2153          target: "elm.text";
2154       }
2155       program {
2156          name: "item_unclick";
2157          signal: "mouse,clicked,1";
2158          source: "over1";
2159          action: SIGNAL_EMIT "elm,action,click" "";
2160          after: "touch_snd";
2161       }
2162       program {
2163          name: "touch_snd";
2164          action: PLAY_SAMPLE "touch_sound" 1.0;
2165       }
2166       program {
2167          name: "disable";
2168          signal: "elm,state,disabled";
2169          source: "elm";
2170          script {
2171             new st[31];
2172             new Float:vl;
2173             get_state(PART:"elm.text", st, 30, vl);
2174             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
2175               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
2176             else
2177               set_state(PART:"elm.text", "disabled", 0.0);
2178
2179             set_state(PART:"disclip", "disabled", 0.0);
2180          }
2181       }
2182       program {
2183          name: "enable";
2184          signal: "elm,state,enabled";
2185          source: "elm";
2186          script {
2187             new st[31];
2188             new Float:vl;
2189             get_state(PART:"elm.text", st, 30, vl);
2190             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
2191               set_state(PART:"elm.text", "ellipsis", 0.0);
2192             else
2193               set_state(PART:"elm.text", "default", 0.0);
2194
2195             set_state(PART:"disclip", "default", 0.0);
2196          }
2197       }
2198       program {
2199          name: "default";
2200          signal: "elm,state,default";
2201          source: "elm";
2202          script {
2203             set_state(PART:"separator1", "default", 0.0);
2204             set_state(PART:"separator2", "default", 0.0);
2205          }
2206       }
2207       program {
2208          name: "separator";
2209          signal: "elm,state,separator";
2210          source: "elm";
2211          script {
2212             set_state(PART:"separator1", "visible", 0.0);
2213             set_state(PART:"separator2", "visible", 0.0);
2214          }
2215       }
2216       program {
2217          name: "item_click2";
2218          signal: "mouse,down,1";
2219          source: "over2";
2220          script {
2221             set_state(PART:"elm.text", "clicked", 0.0);
2222
2223             new st[31];
2224             new Float:vl;
2225             get_state(PART:"separator2", st, 30, vl);
2226             if (!strcmp(st, "default"))
2227               set_state(PART:"bg", "clicked", 0.0);
2228             else
2229               set_state(PART:"bg", "clicked_separator", 0.0);
2230          }
2231       }
2232       program {
2233          name: "drag";
2234          signal: "drag";
2235          source: "over2";
2236          script {
2237             new Float:dx, Float:dy;
2238             get_drag(PART:"over2", dx, dy);
2239             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2240                set_drag(PART:"over2", 0.0, 0.0);
2241                set_state(PART:"bg", "default", 0.0);
2242             }
2243             set_drag(PART:"over2", 0.0, 0.0);
2244          }
2245       }
2246       program {
2247          name: "item_unclick2";
2248          signal: "mouse,up,1";
2249          source: "over2";
2250          script {
2251             set_drag(PART:"over2", 0.0, 0.0);
2252             set_state(PART:"bg", "default", 0.0);
2253          }
2254       }
2255    }
2256 }
2257 ///////////////////////////////////////////////////////////////////////////////
2258 group {
2259    name: "elm/ctxpopup/text_style_item_horizontal/default";
2260
2261    images {
2262       image: "00_more_popup_press.png" COMP;
2263    }
2264
2265    parts {
2266       part {
2267          name: "event_blocker";
2268          type: RECT;
2269          mouse_events: 1;
2270          description {
2271             state: "default" 0.0;
2272             color: 0 0 0 0;
2273          }
2274       }
2275       part {
2276          name: "bg";
2277          mouse_events: 0;
2278          type: IMAGE;
2279          scale: 1;
2280          description {
2281             state: "default" 0.0;
2282             visible: 0;
2283             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2284          }
2285          description {
2286             state: "clicked" 0.0;
2287             visible: 1;
2288             image {
2289                normal: "00_more_popup_press.png";
2290                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2291                border_scale: 1;
2292             }
2293          }
2294          description {
2295             state: "clicked_separator" 0.0;
2296             rel1 { relative: 1.0 0.0; to_x: "separator2"; }
2297             visible: 1;
2298             image {
2299                normal: "00_more_popup_press.png";
2300                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2301                border_scale: 1;
2302             }
2303          }
2304       }
2305       part {
2306          name: "separator1";
2307          mouse_events: 0;
2308          type: RECT;
2309          scale: 1;
2310          description {
2311             state: "default" 0.0;
2312             color: CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC;
2313             align: 0 0.5;
2314             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2315             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2316             visible: 0;
2317          }
2318          description {
2319             state: "visible" 0.0;
2320             inherit: "default" 0.0;
2321             visible: 1;
2322          }
2323       }
2324       part {
2325          name: "separator2";
2326          mouse_events: 0;
2327          type: RECT;
2328          scale: 1;
2329          description {
2330             state: "default" 0.0;
2331             color: CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC;
2332             rel1 { relative: 1.0 0.0; to: "separator1"; to_y: "bg";}
2333             align: 0 0.5;
2334             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2335             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2336             visible: 0;
2337          }
2338          description {
2339             state: "visible" 0.0;
2340             inherit: "default" 0.0;
2341             visible: 1;
2342          }
2343       }
2344       part {
2345          name: "left_padding";
2346          type: RECT;
2347          scale: 1;
2348          mouse_events: 0;
2349          description {
2350             state: "default" 0.0;
2351             min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2352             max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2353             align: 0 0;
2354             color: 255 0 0 255;
2355             fixed: 1 1;
2356             visible: 0;
2357          }
2358       }
2359       part {
2360          name: "elm.text";
2361          type: TEXT;
2362          mouse_events: 0;
2363          scale: 1;
2364          description {
2365             state: "default" 0.0;
2366             min: (CTXPOPUP_TEXT_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ITEM_ICON_PADDING_INC*2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2367             align: 0.5 0.5;
2368             rel1 {relative: 1.0 0.0; to: "left_padding"; }
2369             rel2 {relative: 0.0 1.0; to: "right_padding"; }
2370             color: CTXPOPUP_MAIN_TEXT_COLOR_INC;
2371             text {
2372                font: "Tizen:style=Regular";
2373                size: CTXPOPUP_MAIN_TEXT_SIZE_INC;
2374                size_range: CTXPOPUP_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
2375                align: 0.5 0.5;
2376                min: 1 1;
2377                text_class: "list_item";
2378             }
2379          }
2380          description {
2381             state: "clicked" 0.0;
2382             inherit: "default" 0.0;
2383             color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
2384          }
2385          description {
2386             state: "disabled" 0.0;
2387             inherit: "default" 0.0;
2388             color: CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC;
2389          }
2390       }
2391       part {
2392          name: "right_padding";
2393          type: RECT;
2394          scale: 1;
2395          mouse_events: 0;
2396          description {
2397             state: "default" 0.0;
2398             min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2399             max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2400             fixed: 1 1;
2401             align: 1 1;
2402             color: 0 255 0 255;
2403             visible: 0;
2404          }
2405       }
2406       part {
2407          name: "over1";
2408          type: RECT;
2409          mouse_events: 1;
2410          repeat_events: 1;
2411          description {
2412             state: "default" 0.0;
2413             color: 0 0 0 0;
2414          }
2415       }
2416       part {
2417          name: "over2";
2418          type: RECT;
2419          mouse_events: 1;
2420          repeat_events: 1;
2421          dragable {
2422             x: 1 1 0;
2423             y: 1 1 0;
2424          }
2425          description {
2426             state: "default" 0.0;
2427             rel1.to:"bg";
2428             rel2.to:"bg";
2429             color: 0 0 0 0;
2430          }
2431       }
2432       part {
2433          name: "disclip";
2434          type: RECT;
2435          description {
2436             state: "default" 0.0;
2437             visible: 0;
2438          }
2439          description {
2440             state: "disabled" 0.0;
2441             visible: 1;
2442             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2443          }
2444       }
2445    }
2446    programs {
2447       program {
2448          name: "item_unclick";
2449          signal: "mouse,clicked,1";
2450          source: "over1";
2451          action: SIGNAL_EMIT "elm,action,click" "";
2452          after: "touch_snd";
2453       }
2454       program {
2455          name: "touch_snd";
2456          action: PLAY_SAMPLE "touch_sound" 1.0;
2457       }
2458       program {
2459          name: "disable";
2460          signal: "elm,state,disabled";
2461          source: "elm";
2462          script {
2463             set_state(PART:"elm.text", "disabled", 0.0);
2464             set_state(PART:"disclip", "disabled", 0.0);
2465          }
2466       }
2467       program {
2468          name: "enable";
2469          signal: "elm,state,enabled";
2470          source: "elm";
2471          script {
2472             set_state(PART:"elm.text", "default", 0.0);
2473             set_state(PART:"disclip", "default", 0.0);
2474          }
2475       }
2476       program {
2477          name: "default";
2478          signal: "elm,state,default";
2479          source: "elm";
2480          script {
2481             set_state(PART:"separator1", "default", 0.0);
2482             set_state(PART:"separator2", "default", 0.0);
2483          }
2484       }
2485       program {
2486          name: "separator";
2487          signal: "elm,state,separator";
2488          source: "elm";
2489          script {
2490             set_state(PART:"separator1", "visible", 0.0);
2491             set_state(PART:"separator2", "visible", 0.0);
2492          }
2493       }
2494       program {
2495          name: "item_click2";
2496          signal: "mouse,down,1";
2497          source: "over2";
2498          script {
2499             set_state(PART:"elm.text", "clicked", 0.0);
2500
2501             new st[31];
2502             new Float:vl;
2503             get_state(PART:"separator2", st, 30, vl);
2504             if (!strcmp(st, "default"))
2505               set_state(PART:"bg", "clicked", 0.0);
2506             else
2507               set_state(PART:"bg", "clicked_separator", 0.0);
2508          }
2509       }
2510       program {
2511          name: "drag";
2512          signal: "drag";
2513          source: "over2";
2514          script {
2515             new Float:dx, Float:dy;
2516             get_drag(PART:"over2", dx, dy);
2517             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2518                set_drag(PART:"over2", 0.0, 0.0);
2519                set_state(PART:"bg", "default", 0.0);
2520             }
2521             set_drag(PART:"over2", 0.0, 0.0);
2522          }
2523       }
2524       program {
2525          name: "item_unclick2";
2526          signal: "mouse,up,1";
2527          source: "over2";
2528          script {
2529             set_drag(PART:"over2", 0.0, 0.0);
2530             set_state(PART:"bg", "default", 0.0);
2531          }
2532       }
2533    }
2534 }
2535 ///////////////////////////////////////////////////////////////////////////////
2536 group {
2537    name: "elm/ctxpopup/icon_style_item/default";
2538
2539    images {
2540       image: "00_more_popup_press.png" COMP;
2541    }
2542
2543    parts {
2544       part {
2545          name: "event_blocker";
2546          type: RECT;
2547          mouse_events: 1;
2548          description {
2549             state: "default" 0.0;
2550             color: 0 0 0 0;
2551          }
2552       }
2553       part {
2554          name: "bg";
2555          scale: 1;
2556          mouse_events: 0;
2557          type: IMAGE;
2558          description {
2559             state: "default" 0.0;
2560             visible: 0;
2561             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2562             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2563          }
2564          description {
2565             state: "clicked" 0.0;
2566             visible: 1;
2567             image {
2568                normal: "00_more_popup_press.png";
2569                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2570                border_scale: 1;
2571             }
2572          }
2573          description {
2574             state: "clicked_separator" 0.0;
2575             rel1 { relative: 1.0 0.0; to_x: "separator2"; }
2576             visible: 1;
2577             image {
2578                normal: "00_more_popup_press.png";
2579                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2580                border_scale: 1;
2581             }
2582          }
2583       }
2584       part {
2585          name: "left_padding";
2586          scale: 1;
2587          description {
2588             min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2589             max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2590             visible: 0;
2591             align: 0 0;
2592             fixed: 1 1;
2593          }
2594       }
2595       part {
2596          name: "separator1";
2597          mouse_events: 0;
2598          type: RECT;
2599          scale: 1;
2600          description {
2601             state: "default" 0.0;
2602             color: CTXPOPUP_SEPARATOR_COLOR_INC;
2603             align: 0 0.5;
2604             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2605             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2606             visible: 0;
2607          }
2608          description {
2609             state: "visible" 0.0;
2610             inherit: "default" 0.0;
2611             visible: 1;
2612          }
2613       }
2614       part {
2615          name: "separator2";
2616          mouse_events: 0;
2617          type: RECT;
2618          scale: 1;
2619          description {
2620             state: "default" 0.0;
2621             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2622             rel1 { relative: 1.0 0.0; to_x: "separator1"; }
2623             align: 0 0.5;
2624             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2625             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2626             visible: 0;
2627          }
2628          description {
2629             state: "visible" 0.0;
2630             inherit: "default" 0.0;
2631             visible: 1;
2632          }
2633       }
2634       part {
2635          name: "elm.swallow.icon";
2636          type: SWALLOW;
2637          clip_to: "icon_clip";
2638          scale: 1;
2639          description {
2640             state: "default" 0.0;
2641             min: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2642             max: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2643             align: 0.5 0.5;
2644             aspect: 1.0 1.0;
2645             rel1 { relative: 1 0; to_x: "left_padding"; }
2646             rel2 { relative: 0 1; to_x: "right_padding"; }
2647          }
2648       }
2649       part {
2650          name: "icon_clip";
2651          type: RECT;
2652          scale: 1;
2653          description {
2654             state: "default" 0.0;
2655             rel1.to: "elm.swallow.icon";
2656             rel2.to: "elm.swallow.icon";
2657             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
2658          }
2659          description {
2660             state: "disabled" 0.0;
2661             inherit: "default" 0.0;
2662             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
2663          }
2664       }
2665       part {
2666          name: "right_padding";
2667          scale: 1;
2668          description {
2669             min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2670             max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2671             visible: 0;
2672             align: 1 1;
2673             fixed: 1 1;
2674          }
2675       }
2676       part {
2677          name: "over1";
2678          type: RECT;
2679          mouse_events: 1;
2680          repeat_events: 1;
2681          description {
2682             state: "default" 0.0;
2683             color: 0 0 0 0;
2684          }
2685       }
2686       part {
2687          name: "over2";
2688          type: RECT;
2689          mouse_events: 1;
2690          repeat_events: 1;
2691          dragable {
2692             x: 1 1 0;
2693             y: 1 1 0;
2694          }
2695          description {
2696             state: "default" 0.0;
2697             rel1.to:"bg";
2698             rel2.to:"bg";
2699             color: 0 0 0 0;
2700          }
2701       }
2702       part {
2703          name: "disclip";
2704          type: RECT;
2705          description {
2706             state: "default" 0.0;
2707             visible: 0;
2708          }
2709          description {
2710             state: "disabled" 0.0;
2711             visible: 1;
2712             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2713          }
2714       }
2715    }
2716    programs {
2717       program {
2718          name: "default";
2719          signal: "elm,state,default";
2720          source: "elm";
2721          script {
2722             set_state(PART:"separator1", "default", 0.0);
2723             set_state(PART:"separator2", "default", 0.0);
2724          }
2725       }
2726       program {
2727          name: "separator";
2728          signal: "elm,state,separator";
2729          source: "elm";
2730          script {
2731             set_state(PART:"separator1", "visible", 0.0);
2732             set_state(PART:"separator2", "visible", 0.0);
2733          }
2734       }
2735       program {
2736          name: "item_unclick";
2737          signal: "mouse,clicked,1";
2738          source: "over1";
2739          action: SIGNAL_EMIT "elm,action,click" "";
2740          after: "touch_snd";
2741       }
2742       program {
2743          name: "touch_snd";
2744          action: PLAY_SAMPLE "touch_sound" 1.0;
2745       }
2746       program {
2747          name: "disable";
2748          signal: "elm,state,disabled";
2749          source: "elm";
2750          action: STATE_SET "disabled" 0.0;
2751          target: "disclip";
2752          target: "icon_clip";
2753       }
2754       program {
2755          name: "enable";
2756          signal: "elm,state,enabled";
2757          source: "elm";
2758          action: STATE_SET "default" 0.0;
2759          target: "disclip";
2760          target: "icon_clip";
2761       }
2762       program {
2763          name: "item_click2";
2764          signal: "mouse,down,1";
2765          source: "over2";
2766          script {
2767             new st[31];
2768             new Float:vl;
2769             get_state(PART:"separator2", st, 30, vl);
2770             if (!strcmp(st, "default"))
2771               set_state(PART:"bg", "clicked", 0.0);
2772             else
2773               set_state(PART:"bg", "clicked_separator", 0.0);
2774          }
2775       }
2776       program {
2777          name: "drag";
2778          signal: "drag";
2779          source: "over2";
2780          script {
2781             new Float:dx, Float:dy;
2782             get_drag(PART:"over2", dx, dy);
2783             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2784                set_drag(PART:"over2", 0.0, 0.0);
2785                set_state(PART:"bg", "default", 0.0);
2786             }
2787             set_drag(PART:"over2", 0.0, 0.0);
2788          }
2789       }
2790       program {
2791          name: "item_unclick2";
2792          signal: "mouse,up,1";
2793          source: "over2";
2794          script {
2795             set_drag(PART:"over2", 0.0, 0.0);
2796             set_state(PART:"bg", "default", 0.0);
2797          }
2798       }
2799    }
2800 }
2801 ///////////////////////////////////////////////////////////////////////////////
2802 group {
2803    name: "elm/ctxpopup/icon_text_style_item/default";
2804
2805    data.item: "item_max_size" CTXPOPUP_ICON_TEXT_MAX_INC;
2806
2807    parts {
2808       part {
2809          name: "event_blocker";
2810          type: RECT;
2811          mouse_events: 1;
2812          description {
2813             state: "default" 0.0;
2814             color: 0 0 0 0;
2815          }
2816       }
2817       part {
2818          name: "bg";
2819          mouse_events: 0;
2820          type: RECT;
2821          description {
2822             state: "default" 0.0;
2823             visible: 0;
2824             min: CTXPOPUP_WIDTH_MIN_INC 1;
2825             max: CTXPOPUP_WIDTH_MAX_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2826          }
2827          description {
2828             state: "clicked" 0.0;
2829             color: CTXPOPUP_BG_PRESS_COLOR_INC;
2830             visible: 1;
2831          }
2832          description {
2833             state: "clicked_separator" 0.0;
2834             rel1 { relative: 0.0 1.0; to_y: "separator2"; }
2835             color: CTXPOPUP_BG_PRESS_COLOR_INC;
2836             visible: 1;
2837          }
2838       }
2839       part {
2840          name: "icon_left_padding";
2841          scale: 1;
2842          mouse_events: 0;
2843          description {
2844             state: "default" 0.0;
2845             min: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2846             max: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2847             align: 0 0;
2848             fixed: 1 1;
2849             visible: 0;
2850          }
2851       }
2852       part {
2853          name: "separator1";
2854          mouse_events: 0;
2855          type: RECT;
2856          scale: 1;
2857          description {
2858             state: "default" 0.0;
2859             color: CTXPOPUP_SEPARATOR_COLOR_INC;
2860             rel1 { relative: 0.0 0.0; }
2861             rel2 { relative: 1.0 1.0; }
2862             align: 0.5 0;
2863             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2864             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2865             visible: 0;
2866          }
2867          description {
2868             state: "visible" 0.0;
2869             inherit: "default" 0.0;
2870             visible: 1;
2871          }
2872       }
2873       part {
2874          name: "separator2";
2875          mouse_events: 0;
2876          type: RECT;
2877          scale: 1;
2878          description {
2879             state: "default" 0.0;
2880             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2881             rel1 { relative: 0.0 1.0; to: "separator1";}
2882             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
2883             align: 0.5 0;
2884             fixed: 0 1;
2885             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2886             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2887             visible: 0;
2888          }
2889          description {
2890             state: "visible" 0.0;
2891             inherit: "default" 0.0;
2892             visible: 1;
2893          }
2894       }
2895       part {
2896          name: "elm.swallow.icon";
2897          type: SWALLOW;
2898          clip_to: "icon_clip";
2899          scale: 1;
2900          description {
2901             state: "default" 0.0;
2902             min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
2903             max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
2904             align: 0 0.5;
2905             aspect: 1.0 1.0;
2906             rel1 { to:"icon_left_padding"; relative: 1 0; }
2907          }
2908       }
2909       part {
2910          name: "icon_clip";
2911          type: RECT;
2912          scale: 1;
2913          description {
2914             state: "default" 0.0;
2915             rel1.to: "elm.swallow.icon";
2916             rel2.to: "elm.swallow.icon";
2917             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
2918          }
2919          description {
2920             state: "disabled" 0.0;
2921             inherit: "default" 0.0;
2922             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
2923          }
2924       }
2925       part {
2926          name: "icon_right_padding";
2927          scale: 1;
2928          mouse_events: 0;
2929          description {
2930             state: "default" 0.0;
2931             min: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2932             max: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2933             align: 0 0.5;
2934             fixed: 1 1;
2935             visible: 0;
2936             rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2937          }
2938       }
2939       part {
2940          name: "elm.text";
2941          type:  TEXT;
2942          mouse_events:  0;
2943          scale: 1;
2944          description {
2945             state: "default" 0.0;
2946             min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2947             align: 0.5 0.5;
2948             rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
2949             rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
2950             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
2951             text {
2952                font: "Tizen:style=Regular";
2953                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
2954                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
2955                align: 0.0 0.5;
2956                min: 1 1;
2957                text_class: "list_item";
2958             }
2959          }
2960          description {
2961             state: "clicked" 0.0;
2962             inherit: "default" 0.0;
2963             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
2964             text.min: 0 1;
2965          }
2966          description {
2967             state: "disabled" 0.0;
2968             inherit: "default" 0.0;
2969             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2970          }
2971          description {
2972             state: "ellipsis" 0.0;
2973             inherit: "default" 0.0;
2974             min: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_ICON_WIDTH_INC-(CTXPOPUP_ITEM_ICON_PADDING_INC*2)) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2975             text.min: 0 1;
2976          }
2977          description {
2978             state: "ellipsis_disabled" 0.0;
2979             inherit: "ellipsis" 0.0;
2980             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2981          }
2982       }
2983       part {
2984          name: "text_right_padding";
2985          type: RECT;
2986          scale: 1;
2987          mouse_events: 0;
2988          description {
2989             state: "default" 0.0;
2990             visible: 0;
2991             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2992             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2993             fixed: 1 0;
2994             align: 1.0 0.5;
2995          }
2996       }
2997       part {
2998          name: "over1";
2999          type: RECT;
3000          mouse_events: 1;
3001          repeat_events: 1;
3002          description {
3003             state: "default" 0.0;
3004             color: 0 0 0 0;
3005          }
3006       }
3007       part {
3008          name: "over2";
3009          type: RECT;
3010          mouse_events: 1;
3011          repeat_events: 1;
3012          dragable {
3013             x: 1 1 0;
3014             y: 1 1 0;
3015          }
3016          description {
3017             state: "default" 0.0;
3018             rel1.to:"bg";
3019             rel2.to:"bg";
3020             color: 0 0 0 0;
3021          }
3022       }
3023       part {
3024          name: "disclip";
3025          type: RECT;
3026          description {
3027             state: "default" 0.0;
3028             visible: 0;
3029          }
3030          description {
3031             state: "disabled" 0.0;
3032             visible: 1;
3033             color: CTXPOPUP_ITEM_DISABLED_COLOR;
3034          }
3035       }
3036    }
3037    programs {
3038       program {
3039          name: "text_ellipsis";
3040          signal: "elm,state,text,ellipsis";
3041          source: "elm";
3042          action: STATE_SET "ellipsis" 0.0;
3043          target: "elm.text";
3044       }
3045       program {
3046          name: "item_unclick";
3047          signal: "mouse,clicked,1";
3048          source: "over1";
3049          action: SIGNAL_EMIT "elm,action,click" "";
3050          after: "touch_snd";
3051       }
3052       program {
3053          name: "touch_snd";
3054          action: PLAY_SAMPLE "touch_sound" 1.0;
3055       }
3056       program {
3057          name: "disable";
3058          signal: "elm,state,disabled";
3059          source: "elm";
3060          script {
3061             new st[31];
3062             new Float:vl;
3063             get_state(PART:"elm.text", st, 30, vl);
3064             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3065               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
3066             else
3067               set_state(PART:"elm.text", "disabled", 0.0);
3068             set_state(PART:"icon_clip", "disabled", 0.0);
3069             set_state(PART:"disclip", "disabled", 0.0);
3070          }
3071       }
3072       program {
3073          name: "enable";
3074          signal: "elm,state,enabled";
3075          source: "elm";
3076          script {
3077             new st[31];
3078             new Float:vl;
3079             get_state(PART:"elm.text", st, 30, vl);
3080             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3081               set_state(PART:"elm.text", "ellipsis", 0.0);
3082             else
3083               set_state(PART:"elm.text", "default", 0.0);
3084             set_state(PART:"icon_clip", "default", 0.0);
3085             set_state(PART:"disclip", "default", 0.0);
3086          }
3087       }
3088       program {
3089          name: "default";
3090          signal: "elm,state,default";
3091          source: "elm";
3092          script {
3093             set_state(PART:"separator1", "default", 0.0);
3094             set_state(PART:"separator2", "default", 0.0);
3095          }
3096       }
3097       program {
3098          name: "separator";
3099          signal: "elm,state,separator";
3100          source: "elm";
3101          script {
3102             set_state(PART:"separator1", "visible", 0.0);
3103             set_state(PART:"separator2", "visible", 0.0);
3104          }
3105       }
3106       program {
3107          name: "item_click2";
3108          signal: "mouse,down,1";
3109          source: "over2";
3110          script {
3111             set_state(PART:"elm.text", "clicked", 0.0);
3112
3113             new st[31];
3114             new Float:vl;
3115             get_state(PART:"separator2", st, 30, vl);
3116             if (!strcmp(st, "default"))
3117               set_state(PART:"bg", "clicked", 0.0);
3118             else
3119               set_state(PART:"bg", "clicked_separator", 0.0);
3120          }
3121       }
3122       program {
3123          name: "drag";
3124          signal: "drag";
3125          source: "over2";
3126          script {
3127             new Float:dx, Float:dy;
3128             get_drag(PART:"over2", dx, dy);
3129             if ((abs(dx) > 20) || (abs(dy) > 20)) {
3130                set_drag(PART:"over2", 0.0, 0.0);
3131                set_state(PART:"bg", "default", 0.0);
3132             }
3133             set_drag(PART:"over2", 0.0, 0.0);
3134          }
3135       }
3136       program {
3137          name: "item_unclick2";
3138          signal: "mouse,up,1";
3139          source: "over2";
3140          script {
3141             set_drag(PART:"over2", 0.0, 0.0);
3142             set_state(PART:"bg", "default", 0.0);
3143          }
3144       }
3145    }
3146 }
3147
3148 ///////////////////////////////////////////////////////////////////////////////
3149         group {
3150                 name: "elm/ctxpopup/base/more/default";
3151                 images {
3152                         image: "00_popup_bubble_02_bg.png" COMP;
3153                 }
3154                 parts {
3155                         part {
3156                                 name:"frame_shadow_left_top_padding";
3157                                 type:RECT;
3158                                 scale: 1;
3159                                 mouse_events: 0;
3160                                 description {
3161                                         state: "default" 0.0;
3162                                         min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3163                                         max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3164                                         rel2 { relative: 0 0; }
3165                                         align: 0 0;
3166                                         fixed: 1 1;
3167                                         visible: 0;
3168                                 }
3169                         }
3170                         part {
3171                                 name:"frame_shadow_right_bottom_padding";
3172                                 type:RECT;
3173                                 scale: 1;
3174                                 mouse_events: 0;
3175                                 description {
3176                                         state: "default" 0.0;
3177                                         min: CTXPOPUP_SHADOW_RIGHT_PADDING 0;
3178                                         max: CTXPOPUP_SHADOW_RIGHT_PADDING 0;
3179                                         rel1{relative: 1 1;}
3180                                         align: 1 1;
3181                                         fixed: 1 1;
3182                                         visible: 0;
3183                                 }
3184                         }
3185                         part {
3186                                 name: "frame_bg";
3187                                 type: IMAGE;
3188                                 scale: 1;
3189                                 mouse_events: 0;
3190                                 description {
3191                                         state: "default" 0.0;
3192                                         rel1 {to:"frame_shadow_left_top_padding";}
3193                                         rel2 {to:"frame_shadow_right_bottom_padding";}
3194                                         min: CTXPOPUP_MORE_WIDTH_MIN_INC 0;
3195                                         image {
3196                                                 normal: "00_popup_bubble_02_bg.png";
3197                                                 border: CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER;
3198                                                 border_scale: 1;
3199                                         }
3200                                 }
3201                         }
3202                         part {
3203                                 name:"content_left_top_padding";
3204                                 type:RECT;
3205                                 scale: 1;
3206                                 mouse_events: 0;
3207                                 description {
3208                                         state: "default" 0.0;
3209                                         min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
3210                                         max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
3211                                         rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
3212                                         align: 0 0;
3213                                         fixed: 1 1;
3214                                         visible: 0;
3215                                 }
3216                         }
3217                         part {
3218                                 name:"content_right_bottom_padding";
3219                                 type:RECT;
3220                                 scale: 1;
3221                                 mouse_events: 0;
3222                                 description {
3223                                         state: "default" 0.0;
3224                                         min: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
3225                                         max: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
3226                                         rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
3227                                         align: 1 1;
3228                                         fixed: 1 1;
3229                                         visible: 0;
3230                                 }
3231                         }
3232                         part {
3233                                 name: "elm.swallow.content";
3234                                 type: SWALLOW;
3235                                 description {
3236                                         state: "default" 0.0;
3237                                         align: 0 0;
3238                                         rel1 {to:"content_left_top_padding";  relative: 1.0 1.0;}
3239                                         rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
3240                                 }
3241                         }
3242                         part { name: "access.outline";
3243                                 type: RECT;
3244                                 repeat_events: 1;
3245                                 description { state: "default" 0.0;
3246                                         fixed: 1 1;
3247                                         rel1.to: "frame_bg";
3248                                         rel2.to: "frame_bg";
3249                                         color: 0 0 0 0;
3250                                 }
3251                         }
3252                 }
3253         }
3254 ///////////////////////////////////////////////////////////////////////////////
3255 group {
3256    name: "elm/ctxpopup/icon_text_style_item/more/default";
3257
3258    data.item: "item_max_size" CTXPOPUP_MORE_TEXT_MAX_INC;
3259
3260    parts {
3261       part {
3262          name: "event_blocker";
3263          type: RECT;
3264          mouse_events: 1;
3265          description {
3266             state: "default" 0.0;
3267             color: 0 0 0 0;
3268          }
3269       }
3270       part {
3271          name: "bg";
3272          mouse_events: 0;
3273          type: RECT;
3274          scale: 1;
3275          description {
3276             state: "default" 0.0;
3277             visible: 0;
3278             min: (CTXPOPUP_MORE_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
3279             max: (CTXPOPUP_MORE_WIDTH_MAX_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3280          }
3281          description {
3282             state: "clicked" 0.0;
3283             color: CTXPOPUP_BG_PRESS_COLOR_INC;
3284             visible: 1;
3285          }
3286          description {
3287             state: "clicked_separator" 0.0;
3288             rel1 { relative: 0.0 1.0; to_y: "separator2"; }
3289             color: CTXPOPUP_BG_PRESS_COLOR_INC;
3290             visible: 1;
3291          }
3292       }
3293       part {
3294          name: "icon_left_padding";
3295          scale: 1;
3296          mouse_events: 0;
3297          description {
3298             state: "default" 0.0;
3299             min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3300             max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3301             align: 0 0;
3302             fixed: 1 1;
3303             visible: 0;
3304          }
3305       }
3306       part {
3307          name: "separator1";
3308          mouse_events: 0;
3309          type: RECT;
3310          scale: 1;
3311          description {
3312             state: "default" 0.0;
3313             color: CTXPOPUP_SEPARATOR_COLOR_INC;
3314             rel1 { relative: 0.0 0.0; }
3315             rel2 { relative: 1.0 1.0; }
3316             align: 0.5 0;
3317             fixed: 0 1;
3318             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3319             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3320             visible: 0;
3321          }
3322          description {
3323             state: "visible" 0.0;
3324             inherit: "default" 0.0;
3325             visible: 1;
3326          }
3327       }
3328       part {
3329          name: "separator2";
3330          mouse_events: 0;
3331          type: RECT;
3332          scale: 1;
3333          description {
3334             state: "default" 0.0;
3335             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
3336             rel1 { relative: 0.0 1.0; to: "separator1"; }
3337             rel2.to: "separator1";
3338             rel2.offset: 0 0;
3339             align: 0.5 0;
3340             fixed: 0 1;
3341             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3342             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3343             visible: 0;
3344          }
3345          description {
3346             state: "visible" 0.0;
3347             inherit: "default" 0.0;
3348             visible: 1;
3349          }
3350       }
3351       part {
3352          name: "elm.swallow.icon";
3353          type: SWALLOW;
3354          clip_to: "icon_clip";
3355          scale: 1;
3356          description {
3357             state: "default" 0.0;
3358             min: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3359             max: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3360             align: 0 0.5;
3361             aspect: 1.0 1.0;
3362             rel1 { to:"icon_left_padding"; relative: 1 0; }
3363          }
3364       }
3365       part {
3366          name: "icon_clip";
3367          type: RECT;
3368          scale: 1;
3369          description {
3370             state: "default" 0.0;
3371             rel1.to: "elm.swallow.icon";
3372             rel2.to: "elm.swallow.icon";
3373             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
3374          }
3375          description {
3376             state: "disabled" 0.0;
3377             inherit: "default" 0.0;
3378             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
3379          }
3380       }
3381       part {
3382          name: "icon_right_padding";
3383          scale: 1;
3384          mouse_events: 0;
3385          description {
3386             state: "default" 0.0;
3387             min: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3388             max: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3389             align: 0 0.5;
3390             fixed: 1 1;
3391             visible: 0;
3392             rel1 { to:"elm.swallow.icon"; relative: 1 1; }
3393          }
3394       }
3395       part {
3396          name: "elm.text";
3397          type:  TEXT;
3398          mouse_events:  0;
3399          scale: 1;
3400          description {
3401             state: "default" 0.0;
3402             min: 1 CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3403             align: 0.5 0.5;
3404             rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
3405             rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
3406             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
3407             text {
3408                font: "Tizen:style=Regular";
3409                size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
3410                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
3411                align: 0.0 0.5;
3412                min: 1 1;
3413                text_class: "list_item";
3414             }
3415          }
3416          description {
3417             state: "clicked" 0.0;
3418             inherit: "default" 0.0;
3419             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
3420             text.min: 0 1;
3421          }
3422          description {
3423             state: "disabled" 0.0;
3424             inherit: "default" 0.0;
3425             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3426          }
3427          description {
3428             state: "ellipsis" 0.0;
3429             inherit: "default" 0.0;
3430             min: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3431             text.min: 0 1;
3432          }
3433          description {
3434             state: "ellipsis_disabled" 0.0;
3435             inherit: "ellipsis" 0.0;
3436             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3437          }
3438       }
3439       part {
3440          name: "text_right_padding";
3441          type: RECT;
3442          scale: 1;
3443          mouse_events: 0;
3444          description {
3445             state: "default" 0.0;
3446             visible: 0;
3447             min: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3448             max: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3449             fixed: 1 0;
3450             align: 1.0 0.5;
3451          }
3452       }
3453       part {
3454          name: "over1";
3455          type: RECT;
3456          mouse_events: 1;
3457          repeat_events: 1;
3458          description {
3459             state: "default" 0.0;
3460             color: 0 0 0 0;
3461          }
3462       }
3463       part {
3464          name: "over2";
3465          type: RECT;
3466          mouse_events: 1;
3467          repeat_events: 1;
3468          dragable {
3469             x: 1 1 0;
3470             y: 1 1 0;
3471          }
3472          description {
3473             state: "default" 0.0;
3474             rel1.to:"bg";
3475             rel2.to:"bg";
3476             color: 0 0 0 0;
3477          }
3478       }
3479       part {
3480          name: "disclip";
3481          type: RECT;
3482          description {
3483             state: "default" 0.0;
3484             visible: 0;
3485          }
3486          description {
3487             state: "disabled" 0.0;
3488             visible: 1;
3489             color: CTXPOPUP_ITEM_DISABLED_COLOR;
3490          }
3491       }
3492    }
3493    programs {
3494       program {
3495          name: "text_ellipsis";
3496          signal: "elm,state,text,ellipsis";
3497          source: "elm";
3498          action: STATE_SET "ellipsis" 0.0;
3499          target: "elm.text";
3500       }
3501       program {
3502          name: "item_unclick";
3503          signal: "mouse,clicked,1";
3504          source: "over1";
3505          action: SIGNAL_EMIT "elm,action,click" "";
3506          after: "touch_snd";
3507       }
3508       program {
3509          name: "touch_snd";
3510          action: PLAY_SAMPLE "touch_sound" 1.0;
3511       }
3512       program {
3513          name: "disable";
3514          signal: "elm,state,disabled";
3515          source: "elm";
3516          script {
3517             new st[31];
3518             new Float:vl;
3519             get_state(PART:"elm.text", st, 30, vl);
3520             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3521               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
3522             else
3523               set_state(PART:"elm.text", "disabled", 0.0);
3524             set_state(PART:"icon_clip", "disabled", 0.0);
3525             set_state(PART:"disclip", "disabled", 0.0);
3526          }
3527       }
3528       program {
3529          name: "enable";
3530          signal: "elm,state,enabled";
3531          source: "elm";
3532          script {
3533             new st[31];
3534             new Float:vl;
3535             get_state(PART:"elm.text", st, 30, vl);
3536             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3537               set_state(PART:"elm.text", "ellipsis", 0.0);
3538             else
3539               set_state(PART:"elm.text", "default", 0.0);
3540             set_state(PART:"icon_clip", "default", 0.0);
3541             set_state(PART:"disclip", "default", 0.0);
3542          }
3543       }
3544       program {
3545          name: "default";
3546          signal: "elm,state,default";
3547          source: "elm";
3548          script {
3549             set_state(PART:"separator1", "default", 0.0);
3550             set_state(PART:"separator2", "default", 0.0);
3551          }
3552       }
3553       program {
3554          name: "separator";
3555          signal: "elm,state,separator";
3556          source: "elm";
3557          script {
3558             set_state(PART:"separator1", "visible", 0.0);
3559             set_state(PART:"separator2", "visible", 0.0);
3560          }
3561       }
3562       program {
3563          name: "item_click2";
3564          signal: "mouse,down,1";
3565          source: "over2";
3566          script {
3567             set_state(PART:"elm.text", "clicked", 0.0);
3568
3569             new st[31];
3570             new Float:vl;
3571             get_state(PART:"separator2", st, 30, vl);
3572             if (!strcmp(st, "default"))
3573               set_state(PART:"bg", "clicked", 0.0);
3574             else
3575               set_state(PART:"bg", "clicked_separator", 0.0);
3576          }
3577       }
3578       program {
3579          name: "drag";
3580          signal: "drag";
3581          source: "over2";
3582          script {
3583             new Float:dx, Float:dy;
3584             get_drag(PART:"over2", dx, dy);
3585             if ((abs(dx) > 20) || (abs(dy) > 20)) {
3586                set_drag(PART:"over2", 0.0, 0.0);
3587                set_state(PART:"bg", "default", 0.0);
3588             }
3589             set_drag(PART:"over2", 0.0, 0.0);
3590          }
3591       }
3592       program {
3593          name: "item_unclick2";
3594          signal: "mouse,up,1";
3595          source: "over2";
3596          script {
3597             set_drag(PART:"over2", 0.0, 0.0);
3598             set_state(PART:"bg", "default", 0.0);
3599          }
3600       }
3601    }
3602 }
3603 ///////////////////////////////////////////////////////////////////////////////////////
3604 #define CTXPOPUP_TP_TEXT_WIDTH 32
3605 #define CTXPOPUP_TP_PADDING 15
3606 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
3607 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
3608 #define CTXPOPUP_TP_FONT_SIZE 24
3609 ///////////////////////////////////////////////////////////////////////////////
3610 group {
3611    name: "elm/ctxpopup/base/datetime/default";
3612    alias: "elm/ctxpopup/base/timepicker";
3613
3614    images {
3615       image: "00_time_picker_number_bg.png" COMP;
3616    }
3617
3618    parts {
3619       part {
3620          name: "ctxpopup_frame";
3621          type: IMAGE;
3622          scale: 1;
3623          description {
3624             rel1 {to:"elm.swallow.content";}
3625             rel2 {to:"elm.swallow.content";}
3626             image {
3627                normal: "00_time_picker_number_bg.png";
3628                border: CTXPOPUP_TP_BG_IMAGE_BORDER;
3629                border_scale: 1;
3630             }
3631          }
3632       }
3633       part {
3634          name: "elm.swallow.content";
3635          type: SWALLOW;
3636          scale: 1;
3637          description {
3638             state: "default" 0.0;
3639             min: 1 CTXPOPUP_TP_HEIGHT_INC;
3640          }
3641       }
3642       part { name: "arrow_area_left";
3643          type: RECT;
3644          mouse_events: 0;
3645          scale: 1;
3646          description { state: "default" 0.0;
3647             visible: 0;
3648             min: 20 0;
3649             fixed: 1 1;
3650             align: 1 0.5;
3651             rel1 {
3652                relative: 0 0;
3653                to_y: "ctxpopup_frame";
3654             }
3655             rel2 {
3656                relative:0 1;
3657                to:"ctxpopup_frame";
3658             }
3659          }
3660       }
3661       part { name: "arrow_area_right";
3662          type: RECT;
3663          mouse_events: 0;
3664          scale: 1;
3665          description { state: "default" 0.0;
3666             visible: 0;
3667             min: 20 0;
3668             fixed: 1 1;
3669             align: 0 0.5;
3670             rel1 {
3671                relative: 1 0;
3672                to:"ctxpopup_frame";
3673             }
3674             rel2 {
3675                relative: 1 1;
3676                to_y: "ctxpopup_frame";
3677             }
3678          }
3679       }
3680       part { name: "arrow_area_up";
3681          type: RECT;
3682          mouse_events: 0;
3683          scale: 1;
3684          description { state: "default" 0.0;
3685             visible: 0;
3686             min: 0 20;
3687             fixed: 1 1;
3688             align: 0.5 1;
3689             rel1 {
3690                relative: 0 0;
3691                to_x: "ctxpopup_frame";
3692             }
3693             rel2 {
3694                relative: 1 0;
3695                to:"ctxpopup_frame";
3696             }
3697          }
3698       }
3699       part { name: "arrow_area_down";
3700          type: RECT;
3701          mouse_events: 0;
3702          scale: 1;
3703          description { state: "default" 0.0;
3704             visible: 0;
3705             min: 0 20;
3706             fixed: 1 1;
3707             align: 0.5 0;
3708             rel1 {
3709                relative: 0 1;
3710                to:"ctxpopup_frame";
3711             }
3712             rel2 {
3713                relative: 1 1;
3714                to_x: "ctxpopup_frame";
3715             }
3716          }
3717       }
3718       part { name: "elm.swallow.arrow_up";
3719          type: SWALLOW;
3720          mouse_events: 0;
3721          scale: 1;
3722          dragable {
3723             x: 1 1 0;
3724             y: 1 1 0;
3725             confine: "arrow_area_up";
3726          }
3727          description {
3728             state: "default" 0.0;
3729             min: 20 20;
3730             fixed: 1 1;
3731             visible: 1;
3732          }
3733       }
3734       part { name: "elm.swallow.arrow_down";
3735          type: SWALLOW;
3736          mouse_events: 0;
3737          scale: 1;
3738          dragable {
3739             x: 1 1 0;
3740             y: 1 1 0;
3741             confine: "arrow_area_down";
3742          }
3743          description {
3744             state: "default" 0.0;
3745             min: 20 20;
3746             fixed: 1 1;
3747             visible: 1;
3748          }
3749       }
3750       part { name: "elm.swallow.arrow_left";
3751          type: SWALLOW;
3752          mouse_events: 0;
3753          scale: 1;
3754          dragable {
3755             x: 1 1 0;
3756             y: 1 1 0;
3757             confine: "arrow_area_left";
3758          }
3759          description {
3760             state: "default" 0.0;
3761             min: 20 20;
3762             fixed: 1 1;
3763             visible: 1;
3764          }
3765       }
3766       part { name: "elm.swallow.arrow_right";
3767          type: SWALLOW;
3768          mouse_events: 0;
3769          scale: 1;
3770          dragable {
3771             x: 1 1 0;
3772             y: 1 1 0;
3773             confine: "arrow_area_right";
3774          }
3775          description {
3776             state: "default" 0.0;
3777             min: 20 20;
3778             fixed: 1 1;
3779             visible: 1;
3780          }
3781       }
3782    }
3783 }
3784 ///////////////////////////////////////////////////////////////////////////////
3785 group { name: "elm/ctxpopup/arrow/datetime/default";
3786    alias: "elm/ctxpopup/arrow/timepicker";
3787    images {
3788       image: "00_time_picker_tail.png" COMP;
3789       image: "00_time_picker_tail_01.png" COMP;
3790    }
3791    parts {
3792       part {
3793          name: "ctxpopup_arrow";
3794          type: IMAGE;
3795          scale: 1;
3796          description {
3797             state: "default" 0.0;
3798             min: CTXPOPUP_TP_ARROW_SIZE_INC;
3799             max: CTXPOPUP_TP_ARROW_SIZE_INC;
3800             fixed: 1 1;
3801             visible: 0;
3802             align: 0.5 0.5;
3803          }
3804          description {
3805             state: "left" 0.0;
3806             min: CTXPOPUP_TP_ARROW_SIZE_INC;
3807             max: CTXPOPUP_TP_ARROW_SIZE_INC;
3808             fixed: 1 1;
3809             align: 1.0 0.5;
3810             image {
3811                normal: "00_time_picker_tail.png";
3812             }
3813          }
3814          description {
3815             state: "right" 0.0;
3816             min: CTXPOPUP_TP_ARROW_SIZE_INC;
3817             max: CTXPOPUP_TP_ARROW_SIZE_INC;
3818             fixed: 1 1;
3819             align: 0.0 0.5;
3820             image {
3821                normal: "00_time_picker_tail.png";
3822             }
3823          }
3824          description {
3825             state: "top" 0.0;
3826             min: CTXPOPUP_TP_ARROW_SIZE_INC;
3827             max: CTXPOPUP_TP_ARROW_SIZE_INC;
3828             fixed: 1 1;
3829             align: 0.5 1.0;
3830             image {
3831                normal: "00_time_picker_tail.png";
3832             }
3833          }
3834          description {
3835             state: "bottom" 0.0;
3836             min: CTXPOPUP_TP_ARROW_SIZE_INC;
3837             max: CTXPOPUP_TP_ARROW_SIZE_INC;
3838             fixed: 1 1;
3839             align: 0.5 0.0;
3840             image {
3841                normal: "00_time_picker_tail_01.png";
3842             }
3843          }
3844       }
3845    }
3846    programs {
3847       program {
3848          name: "enable_left_arrow";
3849          signal: "elm,state,left";
3850          source: "elm";
3851          action: STATE_SET "left" 0.0;
3852          target: "ctxpopup_arrow";
3853       }
3854       program {
3855          name: "enable_right_arrow";
3856          signal: "elm,state,right";
3857          source: "elm";
3858          action: STATE_SET "right" 0.0;
3859          target: "ctxpopup_arrow";
3860       }
3861       program {
3862          name: "enable_top_arrow";
3863          signal: "elm,state,top";
3864          source: "elm";
3865          action: STATE_SET "top" 0.0;
3866          target: "ctxpopup_arrow";
3867       }
3868       program {
3869          name: "enable_bottom_arrow";
3870          signal: "elm,state,bottom";
3871          source: "elm";
3872          action: STATE_SET "bottom" 0.0;
3873          target: "ctxpopup_arrow";
3874       }
3875    }
3876 }
3877 ///////////////////////////////////////////////////////////////////////////////
3878 group {
3879    name: "elm/ctxpopup/text_style_item/datetime/default";
3880    alias: "elm/ctxpopup/text_style_item/timepicker";
3881    parts {
3882       part {
3883          name: "left_padding";
3884          type: RECT;
3885          scale: 1;
3886          mouse_events: 0;
3887          description {
3888             state: "default" 0.0;
3889             min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3890             max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3891             align: 0 0.5;
3892             fixed: 1 1;
3893             visible: 0;
3894          }
3895       }
3896       part {
3897          name: "elm.text";
3898          type:  TEXT;
3899          mouse_events:  0;
3900          scale: 1;
3901          description {
3902             state: "default" 0.0;
3903             min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3904             max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3905             fixed: 1 1;
3906             align: 0 0;
3907             rel1 {relative: 1.0 0.0; to: "left_padding";}
3908             color: CTXPOPUP_TP_FONT_COLOR;
3909             text {
3910                font: "Tizen:style=Regular";
3911                size: CTXPOPUP_TP_FONT_SIZE;
3912                align: 0.5 0.5;
3913                min: 1 1;
3914                text_class: "tizen";
3915             }
3916          }
3917          description {
3918             state: "clicked" 0.0;
3919             inherit: "default" 0.0;
3920             color: 255 255 255 255;
3921          }
3922       }
3923       part {
3924          name: "right_padding";
3925          scale: 1;
3926          mouse_events: 0;
3927          description {
3928             state: "default" 0.0;
3929             min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3930             max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3931             align: 0 0;
3932             rel1 {relative: 1.0 0.0; to: "elm.text";}
3933             visible: 0;
3934          }
3935       }
3936       part {
3937          name: "over1";
3938          type: RECT;
3939          mouse_events: 1;
3940          repeat_events: 1;
3941          ignore_flags: ON_HOLD;
3942          description {
3943             state: "default" 0.0;
3944             color: 0 0 0 0;
3945          }
3946       }
3947       part {
3948          name: "over2";
3949          type: RECT;
3950          mouse_events: 1;
3951          repeat_events: 1;
3952          description {
3953             state: "default" 0.0;
3954          }
3955       }
3956    }
3957
3958    programs {
3959       program {
3960          name: "item_unclick";
3961          signal: "mouse,up,1";
3962          source: "over1";
3963          action: SIGNAL_EMIT "elm,action,click" "";
3964          after: "touch_snd";
3965       }
3966       program {
3967          name: "touch_snd";
3968          action: PLAY_SAMPLE "touch_sound" 1.0;
3969       }
3970       program {
3971          name: "item_click";
3972          signal: "mouse,down,1";
3973          source: "over2";
3974          script {
3975             set_state(PART:"elm.text", "clicked", 0.0);
3976          }
3977       }
3978       program {
3979          name: "item_unclick2";
3980          signal: "mouse,up,1";
3981          source: "over2";
3982          script {
3983             set_state(PART:"elm.text", "default", 0.0);
3984          }
3985       }
3986    }
3987 }
3988 ///////////////////////////////////////////////////////////////////////////////
3989 group {
3990    name: "elm/ctxpopup/text_style_item/toolbar_segmentedcontrol";
3991
3992    images {
3993       image: "00_more_popup_press.png" COMP;
3994    }
3995
3996    data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
3997
3998    parts {
3999       part {
4000          name: "event_blocker";
4001          type: RECT;
4002          mouse_events: 1;
4003          description {
4004             state: "default" 0.0;
4005             color: 0 0 0 0;
4006          }
4007       }
4008       part {
4009          name: "bg";
4010          mouse_events: 0;
4011          type: IMAGE;
4012          scale: 1;
4013          description {
4014             state: "default" 0.0;
4015             visible: 0;
4016             min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
4017             max: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MAX_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4018          }
4019          description {
4020             state: "clicked" 0.0;
4021             visible: 1;
4022             image {
4023                normal: "00_more_popup_press.png";
4024                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
4025                border_scale: 1;
4026             }
4027          }
4028          description {
4029             state: "clicked_separator" 0.0;
4030             rel1 { relative: 0.0 1.0; to_y: "separator2"; }
4031             visible: 1;
4032             image {
4033                normal: "00_more_popup_press.png";
4034                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
4035                border_scale: 1;
4036             }
4037          }
4038       }
4039       part {
4040          name: "separator1";
4041          mouse_events: 0;
4042          type: RECT;
4043          scale: 1;
4044          description {
4045             state: "default" 0.0;
4046             color: CTXPOPUP_SEPARATOR_COLOR_INC;
4047             rel1 { relative: 1.0 0.0; to_x: "left_padding";}
4048             rel2 { relative: 0.0 1.0; to_x: "right_padding"; offset: 0 0;}
4049             align: 0.5 0;
4050             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4051             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4052             visible: 0;
4053          }
4054          description {
4055             state: "visible" 0.0;
4056             inherit: "default" 0.0;
4057             visible: 1;
4058          }
4059       }
4060       part {
4061          name: "separator2";
4062          mouse_events: 0;
4063          type: RECT;
4064          scale: 1;
4065          description {
4066             state: "default" 0.0;
4067             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
4068             rel1 { relative: 0.0 1.0; to: "separator1";}
4069             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
4070             align: 0.5 0;
4071             fixed: 0 1;
4072             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4073             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4074             visible: 0;
4075          }
4076          description {
4077             state: "visible" 0.0;
4078             inherit: "default" 0.0;
4079             visible: 1;
4080          }
4081       }
4082       part {
4083          name: "left_padding";
4084          type: RECT;
4085          scale: 1;
4086          mouse_events: 0;
4087          description {
4088             state: "default" 0.0;
4089             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4090             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4091             align: 0 0;
4092             fixed: 1 1;
4093             visible: 0;
4094          }
4095       }
4096       part {
4097          name: "elm.text";
4098          type: TEXT;
4099          mouse_events: 0;
4100          scale: 1;
4101          description {
4102             state: "default" 0.0;
4103             min: 1 CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4104             align: 0.5 0.5;
4105             rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
4106             rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
4107             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
4108             text {
4109                font: "Tizen:style=Regular";
4110                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
4111                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
4112                align: 0.5 0.5;
4113                min: 1 1;
4114                text_class: "list_item";
4115             }
4116          }
4117          description {
4118             state: "clicked" 0.0;
4119             inherit: "default" 0.0;
4120             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
4121             text.min: 0 1;
4122          }
4123          description {
4124             state: "disabled" 0.0;
4125             inherit: "default" 0.0;
4126             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
4127          }
4128          description {
4129             state: "ellipsis" 0.0;
4130             inherit: "default" 0.0;
4131             min: CTXPOPUP_TEXT_MAX_INC CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4132             text.min: 0 1;
4133          }
4134          description {
4135             state: "ellipsis_disabled" 0.0;
4136             inherit: "ellipsis" 0.0;
4137             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
4138          }
4139       }
4140       part {
4141          name: "right_padding";
4142          type: RECT;
4143          scale: 1;
4144          mouse_events: 0;
4145          description {
4146             state: "default" 0.0;
4147             visible: 0;
4148             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4149             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4150             fixed: 1 1;
4151             align: 1.0 1.0;
4152          }
4153       }
4154       part {
4155          name: "over1";
4156          type: RECT;
4157          mouse_events: 1;
4158          repeat_events: 1;
4159          description {
4160             state: "default" 0.0;
4161             color: 0 0 0 0;
4162          }
4163       }
4164       part {
4165          name: "over2";
4166          type: RECT;
4167          mouse_events: 1;
4168          repeat_events: 1;
4169          dragable {
4170             x: 1 1 0;
4171             y: 1 1 0;
4172          }
4173          description {
4174             state: "default" 0.0;
4175             rel1.to:"bg";
4176             rel2.to:"bg";
4177             color: 0 0 0 0;
4178          }
4179       }
4180       part {
4181          name: "disclip";
4182          type: RECT;
4183          description {
4184             state: "default" 0.0;
4185             visible: 0;
4186          }
4187          description {
4188             state: "disabled" 0.0;
4189             visible: 1;
4190             color: CTXPOPUP_ITEM_DISABLED_COLOR;
4191          }
4192       }
4193    }
4194    programs {
4195       program {
4196          name: "text_ellipsis";
4197          signal: "elm,state,text,ellipsis";
4198          source: "elm";
4199          action: STATE_SET "ellipsis" 0.0;
4200          target: "elm.text";
4201       }
4202       program {
4203          name: "item_unclick";
4204          signal: "mouse,clicked,1";
4205          source: "over1";
4206          action: SIGNAL_EMIT "elm,action,click" "";
4207          after: "touch_snd";
4208       }
4209       program {
4210          name: "touch_snd";
4211          action: PLAY_SAMPLE "touch_sound" 1.0;
4212       }
4213       program {
4214          name: "disable";
4215          signal: "elm,state,disabled";
4216          source: "elm";
4217          script {
4218             new st[31];
4219             new Float:vl;
4220             get_state(PART:"elm.text", st, 30, vl);
4221             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
4222               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
4223             else
4224               set_state(PART:"elm.text", "disabled", 0.0);
4225
4226             set_state(PART:"disclip", "disabled", 0.0);
4227          }
4228       }
4229       program {
4230          name: "enable";
4231          signal: "elm,state,enabled";
4232          source: "elm";
4233          script {
4234             new st[31];
4235             new Float:vl;
4236             get_state(PART:"elm.text", st, 30, vl);
4237             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
4238               set_state(PART:"elm.text", "ellipsis", 0.0);
4239             else
4240               set_state(PART:"elm.text", "default", 0.0);
4241
4242             set_state(PART:"disclip", "default", 0.0);
4243          }
4244       }
4245       program {
4246          name: "default";
4247          signal: "elm,state,default";
4248          source: "elm";
4249          script {
4250             set_state(PART:"separator1", "default", 0.0);
4251             set_state(PART:"separator2", "default", 0.0);
4252          }
4253       }
4254       program {
4255          name: "separator";
4256          signal: "elm,state,separator";
4257          source: "elm";
4258          script {
4259             set_state(PART:"separator1", "visible", 0.0);
4260             set_state(PART:"separator2", "visible", 0.0);
4261          }
4262       }
4263       program {
4264          name: "item_click2";
4265          signal: "mouse,down,1";
4266          source: "over2";
4267          script {
4268             set_state(PART:"elm.text", "clicked", 0.0);
4269
4270             new st[31];
4271             new Float:vl;
4272             get_state(PART:"separator2", st, 30, vl);
4273             if (!strcmp(st, "default"))
4274               set_state(PART:"bg", "clicked", 0.0);
4275             else
4276               set_state(PART:"bg", "clicked_separator", 0.0);
4277          }
4278       }
4279       program {
4280          name: "drag";
4281          signal: "drag";
4282          source: "over2";
4283          script {
4284             new Float:dx, Float:dy;
4285             get_drag(PART:"over2", dx, dy);
4286             if ((abs(dx) > 20) || (abs(dy) > 20)) {
4287                set_drag(PART:"over2", 0.0, 0.0);
4288                set_state(PART:"bg", "default", 0.0);
4289             }
4290             set_drag(PART:"over2", 0.0, 0.0);
4291          }
4292       }
4293       program {
4294          name: "item_unclick2";
4295          signal: "mouse,up,1";
4296          source: "over2";
4297          script {
4298             set_drag(PART:"over2", 0.0, 0.0);
4299             set_state(PART:"bg", "default", 0.0);
4300          }
4301       }
4302    }
4303 }