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