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