[ctxpopup] adjusted Winset dark GUI v0.4
[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_LANDSCAPE_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: 1 1; to: "frame_shadow_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: 0 0; to: "frame_shadow_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    images {
1956       image: "00_more_popup_press.png" COMP;
1957    }
1958
1959    data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
1960
1961    parts {
1962       part {
1963          name: "event_blocker";
1964          type: RECT;
1965          mouse_events: 1;
1966          description {
1967             state: "default" 0.0;
1968             color: 0 0 0 0;
1969          }
1970       }
1971       part {
1972          name: "bg";
1973          mouse_events: 0;
1974          type: IMAGE;
1975          scale: 1;
1976          description {
1977             state: "default" 0.0;
1978             visible: 0;
1979             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
1980             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
1981          }
1982          description {
1983             state: "clicked" 0.0;
1984             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
1985             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
1986             visible: 1;
1987             image {
1988                normal: "00_more_popup_press.png";
1989                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
1990                border_scale: 1;
1991             }
1992          }
1993       }
1994       part {
1995          name: "bg_press_left_padding";
1996          mouse_events: 0;
1997          type: RECT;
1998          scale: 1;
1999          description {
2000             state: "default" 0.0;
2001             visible: 0;
2002             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2003             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2004             align: 0 0.5;
2005          }
2006       }
2007       part {
2008          name: "bg_press_right_padding";
2009          mouse_events: 0;
2010          type: RECT;
2011          scale: 1;
2012          description {
2013             state: "default" 0.0;
2014             visible: 0;
2015             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2016             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2017             align: 1 0.5;
2018          }
2019       }
2020       part {
2021          name: "bg_press_top_padding";
2022          mouse_events: 0;
2023          type: RECT;
2024          scale: 1;
2025          description {
2026             state: "default" 0.0;
2027             visible: 0;
2028             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
2029             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
2030             rel1 {to: "separator2"; relative: 0.0 1.0;}
2031             align: 0.5 0;
2032          }
2033       }
2034       part {
2035          name: "bg_press_bottom_padding";
2036          mouse_events: 0;
2037          type: RECT;
2038          scale: 1;
2039          description {
2040             state: "default" 0.0;
2041             visible: 0;
2042             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
2043             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
2044             align: 0.5 1;
2045          }
2046       }
2047       part {
2048          name: "separator1";
2049          mouse_events: 0;
2050          type: RECT;
2051          scale: 1;
2052          description {
2053             state: "default" 0.0;
2054             color: CTXPOPUP_SEPARATOR_COLOR_INC;
2055             rel1 { relative: 0.0 0.0; }
2056             rel2 { relative: 1.0 1.0; }
2057             align: 0.5 0;
2058             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2059             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2060             visible: 0;
2061          }
2062          description {
2063             state: "visible" 0.0;
2064             inherit: "default" 0.0;
2065             visible: 1;
2066          }
2067       }
2068       part {
2069          name: "separator2";
2070          mouse_events: 0;
2071          type: RECT;
2072          scale: 1;
2073          description {
2074             state: "default" 0.0;
2075             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2076             rel1 { relative: 0.0 1.0; to: "separator1";}
2077             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
2078             align: 0.5 0;
2079             fixed: 0 1;
2080             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2081             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
2082             visible: 0;
2083          }
2084          description {
2085             state: "visible" 0.0;
2086             inherit: "default" 0.0;
2087             visible: 1;
2088          }
2089       }
2090       part {
2091          name: "left_padding";
2092          type: RECT;
2093          scale: 1;
2094          mouse_events: 0;
2095          description {
2096             state: "default" 0.0;
2097             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2098             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2099             align: 0 0;
2100             fixed: 1 1;
2101             visible: 0;
2102          }
2103       }
2104       part {
2105          name: "elm.text";
2106          type: TEXT;
2107          mouse_events: 0;
2108          scale: 1;
2109          description {
2110             state: "default" 0.0;
2111             min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2112             align: 0.5 0.5;
2113             rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
2114             rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
2115             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
2116             text {
2117                font: "Tizen:style=Regular";
2118                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
2119                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
2120                align: 0 0.5;
2121                min: 1 1;
2122                text_class: "list_item";
2123             }
2124          }
2125          description {
2126             state: "clicked" 0.0;
2127             inherit: "default" 0.0;
2128             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
2129             text.min: 0 1;
2130          }
2131          description {
2132             state: "disabled" 0.0;
2133             inherit: "default" 0.0;
2134             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2135          }
2136          description {
2137             state: "ellipsis" 0.0;
2138             inherit: "default" 0.0;
2139             min: CTXPOPUP_TEXT_MAX_INC CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2140             text.min: 0 1;
2141          }
2142          description {
2143             state: "ellipsis_disabled" 0.0;
2144             inherit: "ellipsis" 0.0;
2145             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
2146          }
2147       }
2148       part {
2149          name: "right_padding";
2150          type: RECT;
2151          scale: 1;
2152          mouse_events: 0;
2153          description {
2154             state: "default" 0.0;
2155             visible: 0;
2156             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2157             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2158             fixed: 1 1;
2159             align: 1.0 1.0;
2160          }
2161       }
2162       part {
2163          name: "over1";
2164          type: RECT;
2165          mouse_events: 1;
2166          repeat_events: 1;
2167          description {
2168             state: "default" 0.0;
2169             color: 0 0 0 0;
2170          }
2171       }
2172       part {
2173          name: "over2";
2174          type: RECT;
2175          mouse_events: 1;
2176          repeat_events: 1;
2177          dragable {
2178             x: 1 1 0;
2179             y: 1 1 0;
2180          }
2181          description {
2182             state: "default" 0.0;
2183             rel1.to:"bg";
2184             rel2.to:"bg";
2185             color: 0 0 0 0;
2186          }
2187       }
2188       part {
2189          name: "disclip";
2190          type: RECT;
2191          description {
2192             state: "default" 0.0;
2193             visible: 0;
2194          }
2195          description {
2196             state: "disabled" 0.0;
2197             visible: 1;
2198             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2199          }
2200       }
2201    }
2202    programs {
2203       program {
2204          name: "text_ellipsis";
2205          signal: "elm,state,text,ellipsis";
2206          source: "elm";
2207          action: STATE_SET "ellipsis" 0.0;
2208          target: "elm.text";
2209       }
2210       program {
2211          name: "item_unclick";
2212          signal: "mouse,clicked,1";
2213          source: "over1";
2214          action: SIGNAL_EMIT "elm,action,click" "";
2215          after: "touch_snd";
2216       }
2217       program {
2218          name: "touch_snd";
2219          action: PLAY_SAMPLE "touch_sound" 1.0;
2220       }
2221       program {
2222          name: "disable";
2223          signal: "elm,state,disabled";
2224          source: "elm";
2225          script {
2226             new st[31];
2227             new Float:vl;
2228             get_state(PART:"elm.text", st, 30, vl);
2229             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
2230               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
2231             else
2232               set_state(PART:"elm.text", "disabled", 0.0);
2233
2234             set_state(PART:"disclip", "disabled", 0.0);
2235          }
2236       }
2237       program {
2238          name: "enable";
2239          signal: "elm,state,enabled";
2240          source: "elm";
2241          script {
2242             new st[31];
2243             new Float:vl;
2244             get_state(PART:"elm.text", st, 30, vl);
2245             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
2246               set_state(PART:"elm.text", "ellipsis", 0.0);
2247             else
2248               set_state(PART:"elm.text", "default", 0.0);
2249
2250             set_state(PART:"disclip", "default", 0.0);
2251          }
2252       }
2253       program {
2254          name: "default";
2255          signal: "elm,state,default";
2256          source: "elm";
2257          script {
2258             set_state(PART:"separator1", "default", 0.0);
2259             set_state(PART:"separator2", "default", 0.0);
2260          }
2261       }
2262       program {
2263          name: "separator";
2264          signal: "elm,state,separator";
2265          source: "elm";
2266          script {
2267             set_state(PART:"separator1", "visible", 0.0);
2268             set_state(PART:"separator2", "visible", 0.0);
2269          }
2270       }
2271       program {
2272          name: "item_click2";
2273          signal: "mouse,down,1";
2274          source: "over2";
2275          script {
2276             set_state(PART:"elm.text", "clicked", 0.0);
2277             set_state(PART:"bg", "clicked", 0.0);
2278          }
2279       }
2280       program {
2281          name: "drag";
2282          signal: "drag";
2283          source: "over2";
2284          script {
2285             new Float:dx, Float:dy;
2286             get_drag(PART:"over2", dx, dy);
2287             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2288                set_drag(PART:"over2", 0.0, 0.0);
2289                set_state(PART:"bg", "default", 0.0);
2290             }
2291             set_drag(PART:"over2", 0.0, 0.0);
2292          }
2293       }
2294       program {
2295          name: "item_unclick2";
2296          signal: "mouse,up,1";
2297          source: "over2";
2298          script {
2299             set_drag(PART:"over2", 0.0, 0.0);
2300             set_state(PART:"bg", "default", 0.0);
2301          }
2302       }
2303    }
2304 }
2305 ///////////////////////////////////////////////////////////////////////////////
2306 group {
2307    name: "elm/ctxpopup/text_style_item_horizontal/default";
2308
2309    images {
2310       image: "00_more_popup_press.png" COMP;
2311    }
2312
2313    parts {
2314       part {
2315          name: "event_blocker";
2316          type: RECT;
2317          mouse_events: 1;
2318          description {
2319             state: "default" 0.0;
2320             color: 0 0 0 0;
2321          }
2322       }
2323       part {
2324          name: "bg";
2325          mouse_events: 0;
2326          type: IMAGE;
2327          scale: 1;
2328          description {
2329             state: "default" 0.0;
2330             visible: 0;
2331             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2332          }
2333          description {
2334             state: "clicked" 0.0;
2335             visible: 1;
2336             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
2337             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
2338             image {
2339                normal: "00_more_popup_press.png";
2340                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2341                border_scale: 1;
2342             }
2343          }
2344       }
2345       part {
2346          name: "bg_press_left_padding";
2347          mouse_events: 0;
2348          type: RECT;
2349          scale: 1;
2350          description {
2351             state: "default" 0.0;
2352             visible: 0;
2353             min: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2354             max: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2355             rel1 {to: "separator2"; relative: 1.0 0.0;}
2356             align: 0 0.5;
2357          }
2358       }
2359       part {
2360          name: "bg_press_right_padding";
2361          mouse_events: 0;
2362          type: RECT;
2363          scale: 1;
2364          description {
2365             state: "default" 0.0;
2366             visible: 0;
2367             min: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2368             max: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2369             align: 1 0.5;
2370          }
2371       }
2372       part {
2373          name: "bg_press_top_padding";
2374          mouse_events: 0;
2375          type: RECT;
2376          scale: 1;
2377          description {
2378             state: "default" 0.0;
2379             visible: 0;
2380             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2381             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2382             align: 0.5 0;
2383          }
2384       }
2385       part {
2386          name: "bg_press_bottom_padding";
2387          mouse_events: 0;
2388          type: RECT;
2389          scale: 1;
2390          description {
2391             state: "default" 0.0;
2392             visible: 0;
2393             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2394             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2395             align: 0.5 1;
2396          }
2397       }
2398       part {
2399          name: "separator1";
2400          mouse_events: 0;
2401          type: RECT;
2402          scale: 1;
2403          description {
2404             state: "default" 0.0;
2405             color: CTXPOPUP_HORIZONTAL_SEPARATOR_1_COLOR_INC;
2406             align: 0 0.5;
2407             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2408             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2409             visible: 0;
2410          }
2411          description {
2412             state: "visible" 0.0;
2413             inherit: "default" 0.0;
2414             visible: 1;
2415          }
2416       }
2417       part {
2418          name: "separator2";
2419          mouse_events: 0;
2420          type: RECT;
2421          scale: 1;
2422          description {
2423             state: "default" 0.0;
2424             color: CTXPOPUP_HORIZONTAL_SEPARATOR_2_COLOR_INC;
2425             rel1 { relative: 1.0 0.0; to: "separator1"; to_y: "bg";}
2426             align: 0 0.5;
2427             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2428             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2429             visible: 0;
2430          }
2431          description {
2432             state: "visible" 0.0;
2433             inherit: "default" 0.0;
2434             visible: 1;
2435          }
2436       }
2437       part {
2438          name: "left_padding";
2439          type: RECT;
2440          scale: 1;
2441          mouse_events: 0;
2442          description {
2443             state: "default" 0.0;
2444             min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2445             max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2446             align: 0 0;
2447             color: 255 0 0 255;
2448             fixed: 1 1;
2449             visible: 0;
2450          }
2451       }
2452       part {
2453          name: "elm.text";
2454          type: TEXT;
2455          mouse_events: 0;
2456          scale: 1;
2457          description {
2458             state: "default" 0.0;
2459             min: (CTXPOPUP_TEXT_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ITEM_ICON_PADDING_INC*2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2460             align: 0.5 0.5;
2461             rel1 {relative: 1.0 0.0; to: "left_padding"; }
2462             rel2 {relative: 0.0 1.0; to: "right_padding"; }
2463             color: CTXPOPUP_MAIN_TEXT_COLOR_INC;
2464             text {
2465                font: "Tizen:style=Regular";
2466                size: CTXPOPUP_MAIN_TEXT_SIZE_INC;
2467                size_range: CTXPOPUP_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
2468                align: 0.5 0.5;
2469                min: 1 1;
2470                text_class: "list_item";
2471             }
2472          }
2473          description {
2474             state: "clicked" 0.0;
2475             inherit: "default" 0.0;
2476             color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
2477          }
2478          description {
2479             state: "disabled" 0.0;
2480             inherit: "default" 0.0;
2481             color: CTXPOPUP_MAIN_TEXT_DIM_COLOR_INC;
2482          }
2483       }
2484       part {
2485          name: "right_padding";
2486          type: RECT;
2487          scale: 1;
2488          mouse_events: 0;
2489          description {
2490             state: "default" 0.0;
2491             min: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2492             max: CTXPOPUP_ITEM_ICON_PADDING_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2493             fixed: 1 1;
2494             align: 1 1;
2495             color: 0 255 0 255;
2496             visible: 0;
2497          }
2498       }
2499       part {
2500          name: "over1";
2501          type: RECT;
2502          mouse_events: 1;
2503          repeat_events: 1;
2504          description {
2505             state: "default" 0.0;
2506             color: 0 0 0 0;
2507          }
2508       }
2509       part {
2510          name: "over2";
2511          type: RECT;
2512          mouse_events: 1;
2513          repeat_events: 1;
2514          dragable {
2515             x: 1 1 0;
2516             y: 1 1 0;
2517          }
2518          description {
2519             state: "default" 0.0;
2520             rel1.to:"bg";
2521             rel2.to:"bg";
2522             color: 0 0 0 0;
2523          }
2524       }
2525       part {
2526          name: "disclip";
2527          type: RECT;
2528          description {
2529             state: "default" 0.0;
2530             visible: 0;
2531          }
2532          description {
2533             state: "disabled" 0.0;
2534             visible: 1;
2535             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2536          }
2537       }
2538    }
2539    programs {
2540       program {
2541          name: "item_unclick";
2542          signal: "mouse,clicked,1";
2543          source: "over1";
2544          action: SIGNAL_EMIT "elm,action,click" "";
2545          after: "touch_snd";
2546       }
2547       program {
2548          name: "touch_snd";
2549          action: PLAY_SAMPLE "touch_sound" 1.0;
2550       }
2551       program {
2552          name: "disable";
2553          signal: "elm,state,disabled";
2554          source: "elm";
2555          script {
2556             set_state(PART:"elm.text", "disabled", 0.0);
2557             set_state(PART:"disclip", "disabled", 0.0);
2558          }
2559       }
2560       program {
2561          name: "enable";
2562          signal: "elm,state,enabled";
2563          source: "elm";
2564          script {
2565             set_state(PART:"elm.text", "default", 0.0);
2566             set_state(PART:"disclip", "default", 0.0);
2567          }
2568       }
2569       program {
2570          name: "default";
2571          signal: "elm,state,default";
2572          source: "elm";
2573          script {
2574             set_state(PART:"separator1", "default", 0.0);
2575             set_state(PART:"separator2", "default", 0.0);
2576          }
2577       }
2578       program {
2579          name: "separator";
2580          signal: "elm,state,separator";
2581          source: "elm";
2582          script {
2583             set_state(PART:"separator1", "visible", 0.0);
2584             set_state(PART:"separator2", "visible", 0.0);
2585          }
2586       }
2587       program {
2588          name: "item_click2";
2589          signal: "mouse,down,1";
2590          source: "over2";
2591          script {
2592             set_state(PART:"elm.text", "clicked", 0.0);
2593             set_state(PART:"bg", "clicked", 0.0);
2594          }
2595       }
2596       program {
2597          name: "drag";
2598          signal: "drag";
2599          source: "over2";
2600          script {
2601             new Float:dx, Float:dy;
2602             get_drag(PART:"over2", dx, dy);
2603             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2604                set_drag(PART:"over2", 0.0, 0.0);
2605                set_state(PART:"bg", "default", 0.0);
2606             }
2607             set_drag(PART:"over2", 0.0, 0.0);
2608          }
2609       }
2610       program {
2611          name: "item_unclick2";
2612          signal: "mouse,up,1";
2613          source: "over2";
2614          script {
2615             set_drag(PART:"over2", 0.0, 0.0);
2616             set_state(PART:"bg", "default", 0.0);
2617          }
2618       }
2619    }
2620 }
2621 ///////////////////////////////////////////////////////////////////////////////
2622 group {
2623    name: "elm/ctxpopup/icon_style_item/default";
2624
2625    images {
2626       image: "00_more_popup_press.png" COMP;
2627    }
2628
2629    parts {
2630       part {
2631          name: "event_blocker";
2632          type: RECT;
2633          mouse_events: 1;
2634          description {
2635             state: "default" 0.0;
2636             color: 0 0 0 0;
2637          }
2638       }
2639       part {
2640          name: "bg";
2641          scale: 1;
2642          mouse_events: 0;
2643          type: IMAGE;
2644          description {
2645             state: "default" 0.0;
2646             visible: 0;
2647             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2648             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2649          }
2650          description {
2651             state: "clicked" 0.0;
2652             visible: 1;
2653             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
2654             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
2655             image {
2656                normal: "00_more_popup_press.png";
2657                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2658                border_scale: 1;
2659             }
2660          }
2661       }
2662       part {
2663          name: "bg_press_left_padding";
2664          mouse_events: 0;
2665          type: RECT;
2666          scale: 1;
2667          description {
2668             state: "default" 0.0;
2669             visible: 0;
2670             min: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2671             max: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2672             rel1 {to: "separator2"; relative: 1.0 0.0;}
2673             align: 0 0.5;
2674          }
2675       }
2676       part {
2677          name: "bg_press_right_padding";
2678          mouse_events: 0;
2679          type: RECT;
2680          scale: 1;
2681          description {
2682             state: "default" 0.0;
2683             visible: 0;
2684             min: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2685             max: CTXPOPUP_PRESS_PADDING2 (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2686             align: 1 0.5;
2687          }
2688       }
2689       part {
2690          name: "bg_press_top_padding";
2691          mouse_events: 0;
2692          type: RECT;
2693          scale: 1;
2694          description {
2695             state: "default" 0.0;
2696             visible: 0;
2697             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2698             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2699             align: 0.5 0;
2700          }
2701       }
2702       part {
2703          name: "bg_press_bottom_padding";
2704          mouse_events: 0;
2705          type: RECT;
2706          scale: 1;
2707          description {
2708             state: "default" 0.0;
2709             visible: 0;
2710             min: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2711             max: CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC CTXPOPUP_PRESS_PADDING;
2712             align: 0.5 1;
2713          }
2714       }
2715       part {
2716          name: "left_padding";
2717          scale: 1;
2718          description {
2719             min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2720             max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2721             visible: 0;
2722             align: 0 0;
2723             fixed: 1 1;
2724          }
2725       }
2726       part {
2727          name: "separator1";
2728          mouse_events: 0;
2729          type: RECT;
2730          scale: 1;
2731          description {
2732             state: "default" 0.0;
2733             color: CTXPOPUP_SEPARATOR_COLOR_INC;
2734             align: 0 0.5;
2735             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2736             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2737             visible: 0;
2738          }
2739          description {
2740             state: "visible" 0.0;
2741             inherit: "default" 0.0;
2742             visible: 1;
2743          }
2744       }
2745       part {
2746          name: "separator2";
2747          mouse_events: 0;
2748          type: RECT;
2749          scale: 1;
2750          description {
2751             state: "default" 0.0;
2752             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
2753             rel1 { relative: 1.0 0.0; to_x: "separator1"; }
2754             align: 0 0.5;
2755             min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
2756             max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
2757             visible: 0;
2758          }
2759          description {
2760             state: "visible" 0.0;
2761             inherit: "default" 0.0;
2762             visible: 1;
2763          }
2764       }
2765       part {
2766          name: "elm.swallow.icon";
2767          type: SWALLOW;
2768          clip_to: "icon_clip";
2769          scale: 1;
2770          description {
2771             state: "default" 0.0;
2772             min: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2773             max: CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC CTXPOPUP_ICON_HORIZONTAL_HEIGHT_INC;
2774             align: 0.5 0.5;
2775             aspect: 1.0 1.0;
2776             rel1 { relative: 1 0; to_x: "left_padding"; }
2777             rel2 { relative: 0 1; to_x: "right_padding"; }
2778          }
2779       }
2780       part {
2781          name: "icon_clip";
2782          type: RECT;
2783          scale: 1;
2784          description {
2785             state: "default" 0.0;
2786             rel1.to: "elm.swallow.icon";
2787             rel2.to: "elm.swallow.icon";
2788             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
2789          }
2790          description {
2791             state: "disabled" 0.0;
2792             inherit: "default" 0.0;
2793             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
2794          }
2795       }
2796       part {
2797          name: "right_padding";
2798          scale: 1;
2799          description {
2800             min: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2801             max: ((CTXPOPUP_ICON_ITEM_HORIZONTAL_WIDTH_INC-CTXPOPUP_ICON_HORIZONTAL_WIDTH_INC)/2) (CTXPOPUP_ITEM_HORIZONTAL_HEIGHT_INC-CTXPOPUP_CONTENT_PADDING_HEIGHT*2);
2802             visible: 0;
2803             align: 1 1;
2804             fixed: 1 1;
2805          }
2806       }
2807       part {
2808          name: "over1";
2809          type: RECT;
2810          mouse_events: 1;
2811          repeat_events: 1;
2812          description {
2813             state: "default" 0.0;
2814             color: 0 0 0 0;
2815          }
2816       }
2817       part {
2818          name: "over2";
2819          type: RECT;
2820          mouse_events: 1;
2821          repeat_events: 1;
2822          dragable {
2823             x: 1 1 0;
2824             y: 1 1 0;
2825          }
2826          description {
2827             state: "default" 0.0;
2828             rel1.to:"bg";
2829             rel2.to:"bg";
2830             color: 0 0 0 0;
2831          }
2832       }
2833       part {
2834          name: "disclip";
2835          type: RECT;
2836          description {
2837             state: "default" 0.0;
2838             visible: 0;
2839          }
2840          description {
2841             state: "disabled" 0.0;
2842             visible: 1;
2843             color: CTXPOPUP_ITEM_DISABLED_COLOR;
2844          }
2845       }
2846    }
2847    programs {
2848       program {
2849          name: "default";
2850          signal: "elm,state,default";
2851          source: "elm";
2852          script {
2853             set_state(PART:"separator1", "default", 0.0);
2854             set_state(PART:"separator2", "default", 0.0);
2855          }
2856       }
2857       program {
2858          name: "separator";
2859          signal: "elm,state,separator";
2860          source: "elm";
2861          script {
2862             set_state(PART:"separator1", "visible", 0.0);
2863             set_state(PART:"separator2", "visible", 0.0);
2864          }
2865       }
2866       program {
2867          name: "item_unclick";
2868          signal: "mouse,clicked,1";
2869          source: "over1";
2870          action: SIGNAL_EMIT "elm,action,click" "";
2871          after: "touch_snd";
2872       }
2873       program {
2874          name: "touch_snd";
2875          action: PLAY_SAMPLE "touch_sound" 1.0;
2876       }
2877       program {
2878          name: "disable";
2879          signal: "elm,state,disabled";
2880          source: "elm";
2881          action: STATE_SET "disabled" 0.0;
2882          target: "disclip";
2883          target: "icon_clip";
2884       }
2885       program {
2886          name: "enable";
2887          signal: "elm,state,enabled";
2888          source: "elm";
2889          action: STATE_SET "default" 0.0;
2890          target: "disclip";
2891          target: "icon_clip";
2892       }
2893       program {
2894          name: "item_click2";
2895          signal: "mouse,down,1";
2896          source: "over2";
2897          script {
2898             set_state(PART:"bg", "clicked", 0.0);
2899          }
2900       }
2901       program {
2902          name: "drag";
2903          signal: "drag";
2904          source: "over2";
2905          script {
2906             new Float:dx, Float:dy;
2907             get_drag(PART:"over2", dx, dy);
2908             if ((abs(dx) > 20) || (abs(dy) > 20)) {
2909                set_drag(PART:"over2", 0.0, 0.0);
2910                set_state(PART:"bg", "default", 0.0);
2911             }
2912             set_drag(PART:"over2", 0.0, 0.0);
2913          }
2914       }
2915       program {
2916          name: "item_unclick2";
2917          signal: "mouse,up,1";
2918          source: "over2";
2919          script {
2920             set_drag(PART:"over2", 0.0, 0.0);
2921             set_state(PART:"bg", "default", 0.0);
2922          }
2923       }
2924    }
2925 }
2926 ///////////////////////////////////////////////////////////////////////////////
2927 group {
2928    name: "elm/ctxpopup/icon_text_style_item/default";
2929
2930    images {
2931       image: "00_more_popup_press.png" COMP;
2932    }
2933
2934    data.item: "item_max_size" CTXPOPUP_ICON_TEXT_MAX_INC;
2935
2936    parts {
2937       part {
2938          name: "event_blocker";
2939          type: RECT;
2940          mouse_events: 1;
2941          description {
2942             state: "default" 0.0;
2943             color: 0 0 0 0;
2944          }
2945       }
2946       part {
2947          name: "bg";
2948          mouse_events: 0;
2949          type: IMAGE;
2950          description {
2951             state: "default" 0.0;
2952             visible: 0;
2953             min: CTXPOPUP_WIDTH_MIN_INC 1;
2954             max: CTXPOPUP_WIDTH_MAX_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2955          }
2956          description {
2957             state: "clicked" 0.0;
2958             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
2959             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
2960             visible: 1;
2961             image {
2962                normal: "00_more_popup_press.png";
2963                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
2964                border_scale: 1;
2965             }
2966          }
2967       }
2968       part {
2969          name: "bg_press_left_padding";
2970          mouse_events: 0;
2971          type: RECT;
2972          scale: 1;
2973          description {
2974             state: "default" 0.0;
2975             visible: 0;
2976             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2977             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2978             align: 0 0.5;
2979          }
2980       }
2981       part {
2982          name: "bg_press_right_padding";
2983          mouse_events: 0;
2984          type: RECT;
2985          scale: 1;
2986          description {
2987             state: "default" 0.0;
2988             visible: 0;
2989             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
2990             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
2991             align: 1 0.5;
2992          }
2993       }
2994       part {
2995          name: "bg_press_top_padding";
2996          mouse_events: 0;
2997          type: RECT;
2998          scale: 1;
2999          description {
3000             state: "default" 0.0;
3001             visible: 0;
3002             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3003             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3004             rel1 {to: "separator2"; relative: 0.0 1.0;}
3005             align: 0.5 0;
3006          }
3007       }
3008       part {
3009          name: "bg_press_bottom_padding";
3010          mouse_events: 0;
3011          type: RECT;
3012          scale: 1;
3013          description {
3014             state: "default" 0.0;
3015             visible: 0;
3016             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3017             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3018             align: 0.5 1;
3019          }
3020       }
3021       part {
3022          name: "icon_left_padding";
3023          scale: 1;
3024          mouse_events: 0;
3025          description {
3026             state: "default" 0.0;
3027             min: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3028             max: (CTXPOPUP_ITEM_ICON_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3029             align: 0 0;
3030             fixed: 1 1;
3031             visible: 0;
3032          }
3033       }
3034       part {
3035          name: "separator1";
3036          mouse_events: 0;
3037          type: RECT;
3038          scale: 1;
3039          description {
3040             state: "default" 0.0;
3041             color: CTXPOPUP_SEPARATOR_COLOR_INC;
3042             rel1 { relative: 0.0 0.0; }
3043             rel2 { relative: 1.0 1.0; }
3044             align: 0.5 0;
3045             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3046             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3047             visible: 0;
3048          }
3049          description {
3050             state: "visible" 0.0;
3051             inherit: "default" 0.0;
3052             visible: 1;
3053          }
3054       }
3055       part {
3056          name: "separator2";
3057          mouse_events: 0;
3058          type: RECT;
3059          scale: 1;
3060          description {
3061             state: "default" 0.0;
3062             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
3063             rel1 { relative: 0.0 1.0; to: "separator1";}
3064             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
3065             align: 0.5 0;
3066             fixed: 0 1;
3067             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3068             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3069             visible: 0;
3070          }
3071          description {
3072             state: "visible" 0.0;
3073             inherit: "default" 0.0;
3074             visible: 1;
3075          }
3076       }
3077       part {
3078          name: "elm.swallow.icon";
3079          type: SWALLOW;
3080          clip_to: "icon_clip";
3081          scale: 1;
3082          description {
3083             state: "default" 0.0;
3084             min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
3085             max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
3086             align: 0 0.5;
3087             aspect: 1.0 1.0;
3088             rel1 { to:"icon_left_padding"; relative: 1 0; }
3089          }
3090       }
3091       part {
3092          name: "icon_clip";
3093          type: RECT;
3094          scale: 1;
3095          description {
3096             state: "default" 0.0;
3097             rel1.to: "elm.swallow.icon";
3098             rel2.to: "elm.swallow.icon";
3099             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
3100          }
3101          description {
3102             state: "disabled" 0.0;
3103             inherit: "default" 0.0;
3104             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
3105          }
3106       }
3107       part {
3108          name: "icon_right_padding";
3109          scale: 1;
3110          mouse_events: 0;
3111          description {
3112             state: "default" 0.0;
3113             min: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3114             max: CTXPOPUP_ITEM_ICON_PADDING_INC CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3115             align: 0 0.5;
3116             fixed: 1 1;
3117             visible: 0;
3118             rel1 { to:"elm.swallow.icon"; relative: 1 1; }
3119          }
3120       }
3121       part {
3122          name: "elm.text";
3123          type:  TEXT;
3124          mouse_events:  0;
3125          scale: 1;
3126          description {
3127             state: "default" 0.0;
3128             min: 1 CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3129             align: 0.5 0.5;
3130             rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
3131             rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
3132             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
3133             text {
3134                font: "Tizen:style=Regular";
3135                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
3136                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
3137                align: 0.0 0.5;
3138                min: 1 1;
3139                text_class: "list_item";
3140             }
3141          }
3142          description {
3143             state: "clicked" 0.0;
3144             inherit: "default" 0.0;
3145             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
3146             text.min: 0 1;
3147          }
3148          description {
3149             state: "disabled" 0.0;
3150             inherit: "default" 0.0;
3151             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3152          }
3153          description {
3154             state: "ellipsis" 0.0;
3155             inherit: "default" 0.0;
3156             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;
3157             text.min: 0 1;
3158          }
3159          description {
3160             state: "ellipsis_disabled" 0.0;
3161             inherit: "ellipsis" 0.0;
3162             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3163          }
3164       }
3165       part {
3166          name: "text_right_padding";
3167          type: RECT;
3168          scale: 1;
3169          mouse_events: 0;
3170          description {
3171             state: "default" 0.0;
3172             visible: 0;
3173             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3174             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3175             fixed: 1 0;
3176             align: 1.0 0.5;
3177          }
3178       }
3179       part {
3180          name: "over1";
3181          type: RECT;
3182          mouse_events: 1;
3183          repeat_events: 1;
3184          description {
3185             state: "default" 0.0;
3186             color: 0 0 0 0;
3187          }
3188       }
3189       part {
3190          name: "over2";
3191          type: RECT;
3192          mouse_events: 1;
3193          repeat_events: 1;
3194          dragable {
3195             x: 1 1 0;
3196             y: 1 1 0;
3197          }
3198          description {
3199             state: "default" 0.0;
3200             rel1.to:"bg";
3201             rel2.to:"bg";
3202             color: 0 0 0 0;
3203          }
3204       }
3205       part {
3206          name: "disclip";
3207          type: RECT;
3208          description {
3209             state: "default" 0.0;
3210             visible: 0;
3211          }
3212          description {
3213             state: "disabled" 0.0;
3214             visible: 1;
3215             color: CTXPOPUP_ITEM_DISABLED_COLOR;
3216          }
3217       }
3218    }
3219    programs {
3220       program {
3221          name: "text_ellipsis";
3222          signal: "elm,state,text,ellipsis";
3223          source: "elm";
3224          action: STATE_SET "ellipsis" 0.0;
3225          target: "elm.text";
3226       }
3227       program {
3228          name: "item_unclick";
3229          signal: "mouse,clicked,1";
3230          source: "over1";
3231          action: SIGNAL_EMIT "elm,action,click" "";
3232          after: "touch_snd";
3233       }
3234       program {
3235          name: "touch_snd";
3236          action: PLAY_SAMPLE "touch_sound" 1.0;
3237       }
3238       program {
3239          name: "disable";
3240          signal: "elm,state,disabled";
3241          source: "elm";
3242          script {
3243             new st[31];
3244             new Float:vl;
3245             get_state(PART:"elm.text", st, 30, vl);
3246             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3247               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
3248             else
3249               set_state(PART:"elm.text", "disabled", 0.0);
3250             set_state(PART:"icon_clip", "disabled", 0.0);
3251             set_state(PART:"disclip", "disabled", 0.0);
3252          }
3253       }
3254       program {
3255          name: "enable";
3256          signal: "elm,state,enabled";
3257          source: "elm";
3258          script {
3259             new st[31];
3260             new Float:vl;
3261             get_state(PART:"elm.text", st, 30, vl);
3262             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3263               set_state(PART:"elm.text", "ellipsis", 0.0);
3264             else
3265               set_state(PART:"elm.text", "default", 0.0);
3266             set_state(PART:"icon_clip", "default", 0.0);
3267             set_state(PART:"disclip", "default", 0.0);
3268          }
3269       }
3270       program {
3271          name: "default";
3272          signal: "elm,state,default";
3273          source: "elm";
3274          script {
3275             set_state(PART:"separator1", "default", 0.0);
3276             set_state(PART:"separator2", "default", 0.0);
3277          }
3278       }
3279       program {
3280          name: "separator";
3281          signal: "elm,state,separator";
3282          source: "elm";
3283          script {
3284             set_state(PART:"separator1", "visible", 0.0);
3285             set_state(PART:"separator2", "visible", 0.0);
3286          }
3287       }
3288       program {
3289          name: "item_click2";
3290          signal: "mouse,down,1";
3291          source: "over2";
3292          script {
3293             set_state(PART:"elm.text", "clicked", 0.0);
3294             set_state(PART:"bg", "clicked", 0.0);
3295          }
3296       }
3297       program {
3298          name: "drag";
3299          signal: "drag";
3300          source: "over2";
3301          script {
3302             new Float:dx, Float:dy;
3303             get_drag(PART:"over2", dx, dy);
3304             if ((abs(dx) > 20) || (abs(dy) > 20)) {
3305                set_drag(PART:"over2", 0.0, 0.0);
3306                set_state(PART:"bg", "default", 0.0);
3307             }
3308             set_drag(PART:"over2", 0.0, 0.0);
3309          }
3310       }
3311       program {
3312          name: "item_unclick2";
3313          signal: "mouse,up,1";
3314          source: "over2";
3315          script {
3316             set_drag(PART:"over2", 0.0, 0.0);
3317             set_state(PART:"bg", "default", 0.0);
3318          }
3319       }
3320    }
3321 }
3322
3323 ///////////////////////////////////////////////////////////////////////////////
3324         group {
3325                 name: "elm/ctxpopup/base/more/default";
3326                 images {
3327                         image: "00_popup_bubble_02_bg.png" COMP;
3328                 }
3329                 parts {
3330                         part {
3331                                 name:"frame_shadow_left_top_padding";
3332                                 type:RECT;
3333                                 scale: 1;
3334                                 mouse_events: 0;
3335                                 description {
3336                                         state: "default" 0.0;
3337                                         min: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3338                                         max: CTXPOPUP_SHADOW_LEFT_PADDING CTXPOPUP_SHADOW_TOP_PADDING;
3339                                         rel2 { relative: 0 0; }
3340                                         align: 0 0;
3341                                         fixed: 1 1;
3342                                         visible: 0;
3343                                 }
3344                         }
3345                         part {
3346                                 name:"frame_shadow_right_bottom_padding";
3347                                 type:RECT;
3348                                 scale: 1;
3349                                 mouse_events: 0;
3350                                 description {
3351                                         state: "default" 0.0;
3352                                         min: CTXPOPUP_SHADOW_RIGHT_PADDING 0;
3353                                         max: CTXPOPUP_SHADOW_RIGHT_PADDING 0;
3354                                         rel1{relative: 1 1;}
3355                                         align: 1 1;
3356                                         fixed: 1 1;
3357                                         visible: 0;
3358                                 }
3359                         }
3360                         part {
3361                                 name: "frame_bg";
3362                                 type: IMAGE;
3363                                 scale: 1;
3364                                 mouse_events: 0;
3365                                 description {
3366                                         state: "default" 0.0;
3367                                         rel1 {to:"frame_shadow_left_top_padding";}
3368                                         rel2 {to:"frame_shadow_right_bottom_padding";}
3369                                         min: CTXPOPUP_MORE_WIDTH_MIN_INC 0;
3370                                         image {
3371                                                 normal: "00_popup_bubble_02_bg.png";
3372                                                 border: CTXPOPUP_BUBBLE_MORE_BG_IMAGE_BORDER;
3373                                                 border_scale: 1;
3374                                         }
3375                                 }
3376                         }
3377                         part {
3378                                 name:"content_left_top_padding";
3379                                 type:RECT;
3380                                 scale: 1;
3381                                 mouse_events: 0;
3382                                 description {
3383                                         state: "default" 0.0;
3384                                         min: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
3385                                         max: CTXPOPUP_CONTENT_PADDING_WIDTH CTXPOPUP_CONTENT_PADDING_HEIGHT;
3386                                         rel1 {to:"frame_shadow_left_top_padding";  relative: 1.0 1.0;}
3387                                         align: 0 0;
3388                                         fixed: 1 1;
3389                                         visible: 0;
3390                                 }
3391                         }
3392                         part {
3393                                 name:"content_right_bottom_padding";
3394                                 type:RECT;
3395                                 scale: 1;
3396                                 mouse_events: 0;
3397                                 description {
3398                                         state: "default" 0.0;
3399                                         min: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
3400                                         max: CTXPOPUP_CONTENT_PADDING_WIDTH 0;
3401                                         rel2 {to:"frame_shadow_right_bottom_padding";  relative: 0.0 0.0;}
3402                                         align: 1 1;
3403                                         fixed: 1 1;
3404                                         visible: 0;
3405                                 }
3406                         }
3407                         part {
3408                                 name: "elm.swallow.content";
3409                                 type: SWALLOW;
3410                                 description {
3411                                         state: "default" 0.0;
3412                                         align: 0 0;
3413                                         rel1 {to:"content_left_top_padding";  relative: 1.0 1.0;}
3414                                         rel2 {to:"content_right_bottom_padding";  relative: 0.0 0.0;}
3415                                 }
3416                         }
3417                         part { name: "access.outline";
3418                                 type: RECT;
3419                                 repeat_events: 1;
3420                                 description { state: "default" 0.0;
3421                                         fixed: 1 1;
3422                                         rel1.to: "frame_bg";
3423                                         rel2.to: "frame_bg";
3424                                         color: 0 0 0 0;
3425                                 }
3426                         }
3427                 }
3428         }
3429 ///////////////////////////////////////////////////////////////////////////////
3430 group {
3431    name: "elm/ctxpopup/icon_text_style_item/more/default";
3432
3433    images {
3434       image: "00_more_popup_press.png" COMP;
3435    }
3436
3437    data.item: "item_max_size" CTXPOPUP_MORE_TEXT_MAX_INC;
3438
3439    parts {
3440       part {
3441          name: "event_blocker";
3442          type: RECT;
3443          mouse_events: 1;
3444          description {
3445             state: "default" 0.0;
3446             color: 0 0 0 0;
3447          }
3448       }
3449       part {
3450          name: "bg";
3451          mouse_events: 0;
3452          type: IMAGE;
3453          scale: 1;
3454          description {
3455             state: "default" 0.0;
3456             visible: 0;
3457             min: (CTXPOPUP_MORE_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
3458             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;
3459          }
3460          description {
3461             state: "clicked" 0.0;
3462             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
3463             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
3464             visible: 1;
3465             image {
3466                normal: "00_more_popup_press.png";
3467                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
3468                border_scale: 1;
3469             }
3470          }
3471       }
3472       part {
3473          name: "bg_press_left_padding";
3474          mouse_events: 0;
3475          type: RECT;
3476          scale: 1;
3477          description {
3478             state: "default" 0.0;
3479             visible: 0;
3480             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3481             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3482             align: 0 0.5;
3483          }
3484       }
3485       part {
3486          name: "bg_press_right_padding";
3487          mouse_events: 0;
3488          type: RECT;
3489          scale: 1;
3490          description {
3491             state: "default" 0.0;
3492             visible: 0;
3493             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MIN_INC;
3494             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_ITEM_HEIGHT_MAX_INC;
3495             align: 1 0.5;
3496          }
3497       }
3498       part {
3499          name: "bg_press_top_padding";
3500          mouse_events: 0;
3501          type: RECT;
3502          scale: 1;
3503          description {
3504             state: "default" 0.0;
3505             visible: 0;
3506             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3507             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3508             rel1 {to: "separator2"; relative: 0.0 1.0;}
3509             align: 0.5 0;
3510          }
3511       }
3512       part {
3513          name: "bg_press_bottom_padding";
3514          mouse_events: 0;
3515          type: RECT;
3516          scale: 1;
3517          description {
3518             state: "default" 0.0;
3519             visible: 0;
3520             min: (CTXPOPUP_WIDTH_MIN_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3521             max: (CTXPOPUP_WIDTH_MAX_INC-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
3522             align: 0.5 1;
3523          }
3524       }
3525       part {
3526          name: "icon_left_padding";
3527          scale: 1;
3528          mouse_events: 0;
3529          description {
3530             state: "default" 0.0;
3531             min: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3532             max: (CTXPOPUP_MORE_ITEM_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3533             align: 0 0;
3534             fixed: 1 1;
3535             visible: 0;
3536          }
3537       }
3538       part {
3539          name: "separator1";
3540          mouse_events: 0;
3541          type: RECT;
3542          scale: 1;
3543          description {
3544             state: "default" 0.0;
3545             color: CTXPOPUP_SEPARATOR_COLOR_INC;
3546             rel1 { relative: 0.0 0.0; }
3547             rel2 { relative: 1.0 1.0; }
3548             align: 0.5 0;
3549             fixed: 0 1;
3550             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3551             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3552             visible: 0;
3553          }
3554          description {
3555             state: "visible" 0.0;
3556             inherit: "default" 0.0;
3557             visible: 1;
3558          }
3559       }
3560       part {
3561          name: "separator2";
3562          mouse_events: 0;
3563          type: RECT;
3564          scale: 1;
3565          description {
3566             state: "default" 0.0;
3567             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
3568             rel1 { relative: 0.0 1.0; to: "separator1"; }
3569             rel2.to: "separator1";
3570             rel2.offset: 0 0;
3571             align: 0.5 0;
3572             fixed: 0 1;
3573             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3574             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
3575             visible: 0;
3576          }
3577          description {
3578             state: "visible" 0.0;
3579             inherit: "default" 0.0;
3580             visible: 1;
3581          }
3582       }
3583       part {
3584          name: "elm.swallow.icon";
3585          type: SWALLOW;
3586          clip_to: "icon_clip";
3587          scale: 1;
3588          description {
3589             state: "default" 0.0;
3590             min: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3591             max: CTXPOPUP_MORE_ICON_WIDTH_INC CTXPOPUP_MORE_ICON_HEIGHT_INC;
3592             align: 0 0.5;
3593             aspect: 1.0 1.0;
3594             rel1 { to:"icon_left_padding"; relative: 1 0; }
3595          }
3596       }
3597       part {
3598          name: "icon_clip";
3599          type: RECT;
3600          scale: 1;
3601          description {
3602             state: "default" 0.0;
3603             rel1.to: "elm.swallow.icon";
3604             rel2.to: "elm.swallow.icon";
3605             color: CTXPOPUP_ICON_CLIP_DEFAULT_COLOR_INC;
3606          }
3607          description {
3608             state: "disabled" 0.0;
3609             inherit: "default" 0.0;
3610             color: CTXPOPUP_ICON_CLIP_DIM_COLOR_INC;
3611          }
3612       }
3613       part {
3614          name: "icon_right_padding";
3615          scale: 1;
3616          mouse_events: 0;
3617          description {
3618             state: "default" 0.0;
3619             min: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3620             max: CTXPOPUP_MORE_ITEM_PADDING_INC CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3621             align: 0 0.5;
3622             fixed: 1 1;
3623             visible: 0;
3624             rel1 { to:"elm.swallow.icon"; relative: 1 1; }
3625          }
3626       }
3627       part {
3628          name: "elm.text";
3629          type:  TEXT;
3630          mouse_events:  0;
3631          scale: 1;
3632          description {
3633             state: "default" 0.0;
3634             min: 1 CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3635             align: 0.5 0.5;
3636             rel1 {relative: 1.0 0.0; to_x: "icon_right_padding"; to_y: "bg";}
3637             rel2 {relative: 0.0 1.0; to_x: "text_right_padding"; to_y: "bg";}
3638             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
3639             text {
3640                font: "Tizen:style=Regular";
3641                size: CTXPOPUP_MORE_ITEM_TEXT_SIZE_INC;
3642                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
3643                align: 0.0 0.5;
3644                min: 1 1;
3645                text_class: "list_item";
3646             }
3647          }
3648          description {
3649             state: "clicked" 0.0;
3650             inherit: "default" 0.0;
3651             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
3652             text.min: 0 1;
3653          }
3654          description {
3655             state: "disabled" 0.0;
3656             inherit: "default" 0.0;
3657             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3658          }
3659          description {
3660             state: "ellipsis" 0.0;
3661             inherit: "default" 0.0;
3662             min: CTXPOPUP_MORE_TEXT_MAX_INC CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3663             text.min: 0 1;
3664          }
3665          description {
3666             state: "ellipsis_disabled" 0.0;
3667             inherit: "ellipsis" 0.0;
3668             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
3669          }
3670       }
3671       part {
3672          name: "text_right_padding";
3673          type: RECT;
3674          scale: 1;
3675          mouse_events: 0;
3676          description {
3677             state: "default" 0.0;
3678             visible: 0;
3679             min: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MIN_INC;
3680             max: (CTXPOPUP_MORE_SEPARATOR_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_MORE_ITEM_HEIGHT_MAX_INC;
3681             fixed: 1 0;
3682             align: 1.0 0.5;
3683          }
3684       }
3685       part {
3686          name: "over1";
3687          type: RECT;
3688          mouse_events: 1;
3689          repeat_events: 1;
3690          description {
3691             state: "default" 0.0;
3692             color: 0 0 0 0;
3693          }
3694       }
3695       part {
3696          name: "over2";
3697          type: RECT;
3698          mouse_events: 1;
3699          repeat_events: 1;
3700          dragable {
3701             x: 1 1 0;
3702             y: 1 1 0;
3703          }
3704          description {
3705             state: "default" 0.0;
3706             rel1.to:"bg";
3707             rel2.to:"bg";
3708             color: 0 0 0 0;
3709          }
3710       }
3711       part {
3712          name: "disclip";
3713          type: RECT;
3714          description {
3715             state: "default" 0.0;
3716             visible: 0;
3717          }
3718          description {
3719             state: "disabled" 0.0;
3720             visible: 1;
3721             color: CTXPOPUP_ITEM_DISABLED_COLOR;
3722          }
3723       }
3724    }
3725    programs {
3726       program {
3727          name: "text_ellipsis";
3728          signal: "elm,state,text,ellipsis";
3729          source: "elm";
3730          action: STATE_SET "ellipsis" 0.0;
3731          target: "elm.text";
3732       }
3733       program {
3734          name: "item_unclick";
3735          signal: "mouse,clicked,1";
3736          source: "over1";
3737          action: SIGNAL_EMIT "elm,action,click" "";
3738          after: "touch_snd";
3739       }
3740       program {
3741          name: "touch_snd";
3742          action: PLAY_SAMPLE "touch_sound" 1.0;
3743       }
3744       program {
3745          name: "disable";
3746          signal: "elm,state,disabled";
3747          source: "elm";
3748          script {
3749             new st[31];
3750             new Float:vl;
3751             get_state(PART:"elm.text", st, 30, vl);
3752             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3753               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
3754             else
3755               set_state(PART:"elm.text", "disabled", 0.0);
3756             set_state(PART:"icon_clip", "disabled", 0.0);
3757             set_state(PART:"disclip", "disabled", 0.0);
3758          }
3759       }
3760       program {
3761          name: "enable";
3762          signal: "elm,state,enabled";
3763          source: "elm";
3764          script {
3765             new st[31];
3766             new Float:vl;
3767             get_state(PART:"elm.text", st, 30, vl);
3768             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
3769               set_state(PART:"elm.text", "ellipsis", 0.0);
3770             else
3771               set_state(PART:"elm.text", "default", 0.0);
3772             set_state(PART:"icon_clip", "default", 0.0);
3773             set_state(PART:"disclip", "default", 0.0);
3774          }
3775       }
3776       program {
3777          name: "default";
3778          signal: "elm,state,default";
3779          source: "elm";
3780          script {
3781             set_state(PART:"separator1", "default", 0.0);
3782             set_state(PART:"separator2", "default", 0.0);
3783          }
3784       }
3785       program {
3786          name: "separator";
3787          signal: "elm,state,separator";
3788          source: "elm";
3789          script {
3790             set_state(PART:"separator1", "visible", 0.0);
3791             set_state(PART:"separator2", "visible", 0.0);
3792          }
3793       }
3794       program {
3795          name: "item_click2";
3796          signal: "mouse,down,1";
3797          source: "over2";
3798          script {
3799             set_state(PART:"elm.text", "clicked", 0.0);
3800             set_state(PART:"bg", "clicked", 0.0);
3801          }
3802       }
3803       program {
3804          name: "drag";
3805          signal: "drag";
3806          source: "over2";
3807          script {
3808             new Float:dx, Float:dy;
3809             get_drag(PART:"over2", dx, dy);
3810             if ((abs(dx) > 20) || (abs(dy) > 20)) {
3811                set_drag(PART:"over2", 0.0, 0.0);
3812                set_state(PART:"bg", "default", 0.0);
3813             }
3814             set_drag(PART:"over2", 0.0, 0.0);
3815          }
3816       }
3817       program {
3818          name: "item_unclick2";
3819          signal: "mouse,up,1";
3820          source: "over2";
3821          script {
3822             set_drag(PART:"over2", 0.0, 0.0);
3823             set_state(PART:"bg", "default", 0.0);
3824          }
3825       }
3826    }
3827 }
3828 ///////////////////////////////////////////////////////////////////////////////////////
3829 #define CTXPOPUP_TP_TEXT_WIDTH 32
3830 #define CTXPOPUP_TP_PADDING 15
3831 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
3832 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
3833 #define CTXPOPUP_TP_FONT_SIZE 24
3834 ///////////////////////////////////////////////////////////////////////////////
3835 group {
3836    name: "elm/ctxpopup/base/datetime/default";
3837    alias: "elm/ctxpopup/base/timepicker";
3838
3839    images {
3840       image: "00_time_picker_number_bg.png" COMP;
3841    }
3842
3843    parts {
3844       part {
3845          name: "ctxpopup_frame";
3846          type: IMAGE;
3847          scale: 1;
3848          description {
3849             rel1 {to:"elm.swallow.content";}
3850             rel2 {to:"elm.swallow.content";}
3851             image {
3852                normal: "00_time_picker_number_bg.png";
3853                border: CTXPOPUP_TP_BG_IMAGE_BORDER;
3854                border_scale: 1;
3855             }
3856          }
3857       }
3858       part {
3859          name: "elm.swallow.content";
3860          type: SWALLOW;
3861          scale: 1;
3862          description {
3863             state: "default" 0.0;
3864             min: 1 CTXPOPUP_TP_HEIGHT_INC;
3865          }
3866       }
3867       part { name: "arrow_area_left";
3868          type: RECT;
3869          mouse_events: 0;
3870          scale: 1;
3871          description { state: "default" 0.0;
3872             visible: 0;
3873             min: 20 0;
3874             fixed: 1 1;
3875             align: 1 0.5;
3876             rel1 {
3877                relative: 0 0;
3878                to_y: "ctxpopup_frame";
3879             }
3880             rel2 {
3881                relative:0 1;
3882                to:"ctxpopup_frame";
3883             }
3884          }
3885       }
3886       part { name: "arrow_area_right";
3887          type: RECT;
3888          mouse_events: 0;
3889          scale: 1;
3890          description { state: "default" 0.0;
3891             visible: 0;
3892             min: 20 0;
3893             fixed: 1 1;
3894             align: 0 0.5;
3895             rel1 {
3896                relative: 1 0;
3897                to:"ctxpopup_frame";
3898             }
3899             rel2 {
3900                relative: 1 1;
3901                to_y: "ctxpopup_frame";
3902             }
3903          }
3904       }
3905       part { name: "arrow_area_up";
3906          type: RECT;
3907          mouse_events: 0;
3908          scale: 1;
3909          description { state: "default" 0.0;
3910             visible: 0;
3911             min: 0 20;
3912             fixed: 1 1;
3913             align: 0.5 1;
3914             rel1 {
3915                relative: 0 0;
3916                to_x: "ctxpopup_frame";
3917             }
3918             rel2 {
3919                relative: 1 0;
3920                to:"ctxpopup_frame";
3921             }
3922          }
3923       }
3924       part { name: "arrow_area_down";
3925          type: RECT;
3926          mouse_events: 0;
3927          scale: 1;
3928          description { state: "default" 0.0;
3929             visible: 0;
3930             min: 0 20;
3931             fixed: 1 1;
3932             align: 0.5 0;
3933             rel1 {
3934                relative: 0 1;
3935                to:"ctxpopup_frame";
3936             }
3937             rel2 {
3938                relative: 1 1;
3939                to_x: "ctxpopup_frame";
3940             }
3941          }
3942       }
3943       part { name: "elm.swallow.arrow_up";
3944          type: SWALLOW;
3945          mouse_events: 0;
3946          scale: 1;
3947          dragable {
3948             x: 1 1 0;
3949             y: 1 1 0;
3950             confine: "arrow_area_up";
3951          }
3952          description {
3953             state: "default" 0.0;
3954             min: 20 20;
3955             fixed: 1 1;
3956             visible: 1;
3957          }
3958       }
3959       part { name: "elm.swallow.arrow_down";
3960          type: SWALLOW;
3961          mouse_events: 0;
3962          scale: 1;
3963          dragable {
3964             x: 1 1 0;
3965             y: 1 1 0;
3966             confine: "arrow_area_down";
3967          }
3968          description {
3969             state: "default" 0.0;
3970             min: 20 20;
3971             fixed: 1 1;
3972             visible: 1;
3973          }
3974       }
3975       part { name: "elm.swallow.arrow_left";
3976          type: SWALLOW;
3977          mouse_events: 0;
3978          scale: 1;
3979          dragable {
3980             x: 1 1 0;
3981             y: 1 1 0;
3982             confine: "arrow_area_left";
3983          }
3984          description {
3985             state: "default" 0.0;
3986             min: 20 20;
3987             fixed: 1 1;
3988             visible: 1;
3989          }
3990       }
3991       part { name: "elm.swallow.arrow_right";
3992          type: SWALLOW;
3993          mouse_events: 0;
3994          scale: 1;
3995          dragable {
3996             x: 1 1 0;
3997             y: 1 1 0;
3998             confine: "arrow_area_right";
3999          }
4000          description {
4001             state: "default" 0.0;
4002             min: 20 20;
4003             fixed: 1 1;
4004             visible: 1;
4005          }
4006       }
4007    }
4008 }
4009 ///////////////////////////////////////////////////////////////////////////////
4010 group { name: "elm/ctxpopup/arrow/datetime/default";
4011    alias: "elm/ctxpopup/arrow/timepicker";
4012    images {
4013       image: "00_time_picker_tail.png" COMP;
4014       image: "00_time_picker_tail_01.png" COMP;
4015    }
4016    parts {
4017       part {
4018          name: "ctxpopup_arrow";
4019          type: IMAGE;
4020          scale: 1;
4021          description {
4022             state: "default" 0.0;
4023             min: CTXPOPUP_TP_ARROW_SIZE_INC;
4024             max: CTXPOPUP_TP_ARROW_SIZE_INC;
4025             fixed: 1 1;
4026             visible: 0;
4027             align: 0.5 0.5;
4028          }
4029          description {
4030             state: "left" 0.0;
4031             min: CTXPOPUP_TP_ARROW_SIZE_INC;
4032             max: CTXPOPUP_TP_ARROW_SIZE_INC;
4033             fixed: 1 1;
4034             align: 1.0 0.5;
4035             image {
4036                normal: "00_time_picker_tail.png";
4037             }
4038          }
4039          description {
4040             state: "right" 0.0;
4041             min: CTXPOPUP_TP_ARROW_SIZE_INC;
4042             max: CTXPOPUP_TP_ARROW_SIZE_INC;
4043             fixed: 1 1;
4044             align: 0.0 0.5;
4045             image {
4046                normal: "00_time_picker_tail.png";
4047             }
4048          }
4049          description {
4050             state: "top" 0.0;
4051             min: CTXPOPUP_TP_ARROW_SIZE_INC;
4052             max: CTXPOPUP_TP_ARROW_SIZE_INC;
4053             fixed: 1 1;
4054             align: 0.5 1.0;
4055             image {
4056                normal: "00_time_picker_tail.png";
4057             }
4058          }
4059          description {
4060             state: "bottom" 0.0;
4061             min: CTXPOPUP_TP_ARROW_SIZE_INC;
4062             max: CTXPOPUP_TP_ARROW_SIZE_INC;
4063             fixed: 1 1;
4064             align: 0.5 0.0;
4065             image {
4066                normal: "00_time_picker_tail_01.png";
4067             }
4068          }
4069       }
4070    }
4071    programs {
4072       program {
4073          name: "enable_left_arrow";
4074          signal: "elm,state,left";
4075          source: "elm";
4076          action: STATE_SET "left" 0.0;
4077          target: "ctxpopup_arrow";
4078       }
4079       program {
4080          name: "enable_right_arrow";
4081          signal: "elm,state,right";
4082          source: "elm";
4083          action: STATE_SET "right" 0.0;
4084          target: "ctxpopup_arrow";
4085       }
4086       program {
4087          name: "enable_top_arrow";
4088          signal: "elm,state,top";
4089          source: "elm";
4090          action: STATE_SET "top" 0.0;
4091          target: "ctxpopup_arrow";
4092       }
4093       program {
4094          name: "enable_bottom_arrow";
4095          signal: "elm,state,bottom";
4096          source: "elm";
4097          action: STATE_SET "bottom" 0.0;
4098          target: "ctxpopup_arrow";
4099       }
4100    }
4101 }
4102 ///////////////////////////////////////////////////////////////////////////////
4103 group {
4104    name: "elm/ctxpopup/text_style_item/datetime/default";
4105    alias: "elm/ctxpopup/text_style_item/timepicker";
4106    parts {
4107       part {
4108          name: "left_padding";
4109          type: RECT;
4110          scale: 1;
4111          mouse_events: 0;
4112          description {
4113             state: "default" 0.0;
4114             min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4115             max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4116             align: 0 0.5;
4117             fixed: 1 1;
4118             visible: 0;
4119          }
4120       }
4121       part {
4122          name: "elm.text";
4123          type:  TEXT;
4124          mouse_events:  0;
4125          scale: 1;
4126          description {
4127             state: "default" 0.0;
4128             min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
4129             max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
4130             fixed: 1 1;
4131             align: 0 0;
4132             rel1 {relative: 1.0 0.0; to: "left_padding";}
4133             color: CTXPOPUP_TP_FONT_COLOR;
4134             text {
4135                font: "Tizen:style=Regular";
4136                size: CTXPOPUP_TP_FONT_SIZE;
4137                align: 0.5 0.5;
4138                min: 1 1;
4139                text_class: "tizen";
4140             }
4141          }
4142          description {
4143             state: "clicked" 0.0;
4144             inherit: "default" 0.0;
4145             color: 255 255 255 255;
4146          }
4147       }
4148       part {
4149          name: "right_padding";
4150          scale: 1;
4151          mouse_events: 0;
4152          description {
4153             state: "default" 0.0;
4154             min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4155             max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
4156             align: 0 0;
4157             rel1 {relative: 1.0 0.0; to: "elm.text";}
4158             visible: 0;
4159          }
4160       }
4161       part {
4162          name: "over1";
4163          type: RECT;
4164          mouse_events: 1;
4165          repeat_events: 1;
4166          ignore_flags: ON_HOLD;
4167          description {
4168             state: "default" 0.0;
4169             color: 0 0 0 0;
4170          }
4171       }
4172       part {
4173          name: "over2";
4174          type: RECT;
4175          mouse_events: 1;
4176          repeat_events: 1;
4177          description {
4178             state: "default" 0.0;
4179          }
4180       }
4181    }
4182
4183    programs {
4184       program {
4185          name: "item_unclick";
4186          signal: "mouse,up,1";
4187          source: "over1";
4188          action: SIGNAL_EMIT "elm,action,click" "";
4189          after: "touch_snd";
4190       }
4191       program {
4192          name: "touch_snd";
4193          action: PLAY_SAMPLE "touch_sound" 1.0;
4194       }
4195       program {
4196          name: "item_click";
4197          signal: "mouse,down,1";
4198          source: "over2";
4199          script {
4200             set_state(PART:"elm.text", "clicked", 0.0);
4201          }
4202       }
4203       program {
4204          name: "item_unclick2";
4205          signal: "mouse,up,1";
4206          source: "over2";
4207          script {
4208             set_state(PART:"elm.text", "default", 0.0);
4209          }
4210       }
4211    }
4212 }
4213 ///////////////////////////////////////////////////////////////////////////////
4214 group {
4215    name: "elm/ctxpopup/text_style_item/toolbar_segmentedcontrol";
4216
4217    images {
4218       image: "00_more_popup_press.png" COMP;
4219    }
4220
4221    data.item: "item_max_size" CTXPOPUP_TEXT_MAX_INC;
4222
4223    parts {
4224       part {
4225          name: "event_blocker";
4226          type: RECT;
4227          mouse_events: 1;
4228          description {
4229             state: "default" 0.0;
4230             color: 0 0 0 0;
4231          }
4232       }
4233       part {
4234          name: "bg";
4235          mouse_events: 0;
4236          type: IMAGE;
4237          scale: 1;
4238          description {
4239             state: "default" 0.0;
4240             visible: 0;
4241             min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) 1;
4242             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;
4243          }
4244          description {
4245             state: "clicked" 0.0;
4246             visible: 1;
4247             rel1 {to_x: "bg_press_left_padding"; to_y: "bg_press_top_padding"; relative: 1.0 1.0;}
4248             rel2 {to_x: "bg_press_right_padding"; to_y: "bg_press_bottom_padding"; relative: 0.0 0.0;}
4249             image {
4250                normal: "00_more_popup_press.png";
4251                border: CTXPOPUP_BUBBLE_BG_PRESSED_IMAGE_BORDER;
4252                border_scale: 1;
4253             }
4254          }
4255       }
4256       part {
4257          name: "bg_press_left_padding";
4258          mouse_events: 0;
4259          type: RECT;
4260          scale: 1;
4261          description {
4262             state: "default" 0.0;
4263             visible: 0;
4264             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4265             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4266             align: 0 0.5;
4267          }
4268       }
4269       part {
4270          name: "bg_press_right_padding";
4271          mouse_events: 0;
4272          type: RECT;
4273          scale: 1;
4274          description {
4275             state: "default" 0.0;
4276             visible: 0;
4277             min: CTXPOPUP_PRESS_PADDING CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4278             max: CTXPOPUP_PRESS_PADDING CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4279             align: 1 0.5;
4280          }
4281       }
4282       part {
4283          name: "bg_press_top_padding";
4284          mouse_events: 0;
4285          type: RECT;
4286          scale: 1;
4287          description {
4288             state: "default" 0.0;
4289             visible: 0;
4290             min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
4291             max: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
4292             rel1 {to: "separator2"; relative: 0.0 1.0;}
4293             align: 0.5 0;
4294          }
4295       }
4296       part {
4297          name: "bg_press_bottom_padding";
4298          mouse_events: 0;
4299          type: RECT;
4300          scale: 1;
4301          description {
4302             state: "default" 0.0;
4303             visible: 0;
4304             min: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
4305             max: (CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_WIDTH_MIN_INC-CTXPOPUP_SHADOW_LEFT_PADDING-CTXPOPUP_SHADOW_RIGHT_PADDING-CTXPOPUP_CONTENT_PADDING_WIDTH*2) CTXPOPUP_PRESS_PADDING2;
4306             align: 0.5 1;
4307          }
4308       }
4309       part {
4310          name: "separator1";
4311          mouse_events: 0;
4312          type: RECT;
4313          scale: 1;
4314          description {
4315             state: "default" 0.0;
4316             color: CTXPOPUP_SEPARATOR_COLOR_INC;
4317             rel1 { relative: 0.0 0.0; }
4318             rel2 { relative: 1.0 1.0; }
4319             align: 0.5 0;
4320             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4321             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4322             visible: 0;
4323          }
4324          description {
4325             state: "visible" 0.0;
4326             inherit: "default" 0.0;
4327             visible: 1;
4328          }
4329       }
4330       part {
4331          name: "separator2";
4332          mouse_events: 0;
4333          type: RECT;
4334          scale: 1;
4335          description {
4336             state: "default" 0.0;
4337             color: CTXPOPUP_SEPARATOR2_COLOR_INC;
4338             rel1 { relative: 0.0 1.0; to: "separator1";}
4339             rel2 { relative: 1.0 1.0; to: "separator1"; offset: 0 0; }
4340             align: 0.5 0;
4341             fixed: 0 1;
4342             min: 0 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4343             max: 999999 CTXPOPUP_SEPARATOR_PXLINE_SIZE_INC;
4344             visible: 0;
4345          }
4346          description {
4347             state: "visible" 0.0;
4348             inherit: "default" 0.0;
4349             visible: 1;
4350          }
4351       }
4352       part {
4353          name: "left_padding";
4354          type: RECT;
4355          scale: 1;
4356          mouse_events: 0;
4357          description {
4358             state: "default" 0.0;
4359             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4360             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4361             align: 0 0;
4362             fixed: 1 1;
4363             visible: 0;
4364          }
4365       }
4366       part {
4367          name: "elm.text";
4368          type: TEXT;
4369          mouse_events: 0;
4370          scale: 1;
4371          description {
4372             state: "default" 0.0;
4373             min: 1 CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4374             align: 0.5 0.5;
4375             rel1 {relative: 1.0 0.0; to_x: "left_padding"; to_y: "bg";}
4376             rel2 {relative: 0.0 1.0; to_x: "right_padding"; to_y: "bg";}
4377             color: CTXPOPUP_LIST_MAIN_TEXT_COLOR_INC;
4378             text {
4379                font: "Tizen:style=Regular";
4380                size: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC;
4381                size_range: CTXPOPUP_LIST_MAIN_TEXT_SIZE_INC CTXPOPUP_LIST_MAIN_TEXT_MAX_SIZE_INC;
4382                align: 0.5 0.5;
4383                min: 1 1;
4384                text_class: "list_item";
4385             }
4386          }
4387          description {
4388             state: "clicked" 0.0;
4389             inherit: "default" 0.0;
4390             color: CTXPOPUP_LIST_MAIN_TEXT_PRESS_COLOR_INC;
4391             text.min: 0 1;
4392          }
4393          description {
4394             state: "disabled" 0.0;
4395             inherit: "default" 0.0;
4396             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
4397          }
4398          description {
4399             state: "ellipsis" 0.0;
4400             inherit: "default" 0.0;
4401             min: CTXPOPUP_TEXT_MAX_INC CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4402             text.min: 0 1;
4403          }
4404          description {
4405             state: "ellipsis_disabled" 0.0;
4406             inherit: "ellipsis" 0.0;
4407             color: CTXPOPUP_LIST_MAIN_TEXT_DIM_COLOR_INC;
4408          }
4409       }
4410       part {
4411          name: "right_padding";
4412          type: RECT;
4413          scale: 1;
4414          mouse_events: 0;
4415          description {
4416             state: "default" 0.0;
4417             visible: 0;
4418             min: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MIN_INC;
4419             max: (CTXPOPUP_ITEM_TEXT_PADDING_INC-CTXPOPUP_CONTENT_PADDING_WIDTH) CTXPOPUP_TOOLBAR_SEGMENTEDCONTROL_HEIGHT_MAX_INC;
4420             fixed: 1 1;
4421             align: 1.0 1.0;
4422          }
4423       }
4424       part {
4425          name: "over1";
4426          type: RECT;
4427          mouse_events: 1;
4428          repeat_events: 1;
4429          description {
4430             state: "default" 0.0;
4431             color: 0 0 0 0;
4432          }
4433       }
4434       part {
4435          name: "over2";
4436          type: RECT;
4437          mouse_events: 1;
4438          repeat_events: 1;
4439          dragable {
4440             x: 1 1 0;
4441             y: 1 1 0;
4442          }
4443          description {
4444             state: "default" 0.0;
4445             rel1.to:"bg";
4446             rel2.to:"bg";
4447             color: 0 0 0 0;
4448          }
4449       }
4450       part {
4451          name: "disclip";
4452          type: RECT;
4453          description {
4454             state: "default" 0.0;
4455             visible: 0;
4456          }
4457          description {
4458             state: "disabled" 0.0;
4459             visible: 1;
4460             color: CTXPOPUP_ITEM_DISABLED_COLOR;
4461          }
4462       }
4463    }
4464    programs {
4465       program {
4466          name: "text_ellipsis";
4467          signal: "elm,state,text,ellipsis";
4468          source: "elm";
4469          action: STATE_SET "ellipsis" 0.0;
4470          target: "elm.text";
4471       }
4472       program {
4473          name: "item_unclick";
4474          signal: "mouse,clicked,1";
4475          source: "over1";
4476          action: SIGNAL_EMIT "elm,action,click" "";
4477          after: "touch_snd";
4478       }
4479       program {
4480          name: "touch_snd";
4481          action: PLAY_SAMPLE "touch_sound" 1.0;
4482       }
4483       program {
4484          name: "disable";
4485          signal: "elm,state,disabled";
4486          source: "elm";
4487          script {
4488             new st[31];
4489             new Float:vl;
4490             get_state(PART:"elm.text", st, 30, vl);
4491             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
4492               set_state(PART:"elm.text", "ellipsis_disabled", 0.0);
4493             else
4494               set_state(PART:"elm.text", "disabled", 0.0);
4495
4496             set_state(PART:"disclip", "disabled", 0.0);
4497          }
4498       }
4499       program {
4500          name: "enable";
4501          signal: "elm,state,enabled";
4502          source: "elm";
4503          script {
4504             new st[31];
4505             new Float:vl;
4506             get_state(PART:"elm.text", st, 30, vl);
4507             if ((!strcmp(st, "ellipsis")) || (!strcmp(st, "ellipsis_disabled")))
4508               set_state(PART:"elm.text", "ellipsis", 0.0);
4509             else
4510               set_state(PART:"elm.text", "default", 0.0);
4511
4512             set_state(PART:"disclip", "default", 0.0);
4513          }
4514       }
4515       program {
4516          name: "default";
4517          signal: "elm,state,default";
4518          source: "elm";
4519          script {
4520             set_state(PART:"separator1", "default", 0.0);
4521             set_state(PART:"separator2", "default", 0.0);
4522          }
4523       }
4524       program {
4525          name: "separator";
4526          signal: "elm,state,separator";
4527          source: "elm";
4528          script {
4529             set_state(PART:"separator1", "visible", 0.0);
4530             set_state(PART:"separator2", "visible", 0.0);
4531          }
4532       }
4533       program {
4534          name: "item_click2";
4535          signal: "mouse,down,1";
4536          source: "over2";
4537          script {
4538             set_state(PART:"elm.text", "clicked", 0.0);
4539             set_state(PART:"bg", "clicked", 0.0);
4540          }
4541       }
4542       program {
4543          name: "drag";
4544          signal: "drag";
4545          source: "over2";
4546          script {
4547             new Float:dx, Float:dy;
4548             get_drag(PART:"over2", dx, dy);
4549             if ((abs(dx) > 20) || (abs(dy) > 20)) {
4550                set_drag(PART:"over2", 0.0, 0.0);
4551                set_state(PART:"bg", "default", 0.0);
4552             }
4553             set_drag(PART:"over2", 0.0, 0.0);
4554          }
4555       }
4556       program {
4557          name: "item_unclick2";
4558          signal: "mouse,up,1";
4559          source: "over2";
4560          script {
4561             set_drag(PART:"over2", 0.0, 0.0);
4562             set_state(PART:"bg", "default", 0.0);
4563          }
4564       }
4565    }
4566 }