[ctxpopup] opensource merge - show,hide effect
[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: "00_popup_bubble_bg.png" COMP;
594                         image: "00_popup_bg.png" 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: "00_popup_bubble_bg.png";
643                                                 border: 13 13 13 13;
644                                                 border_scale: 1;
645                                         }
646                                 }
647                         }
648                         part { name: "arrow_area_left";
649                                 type: RECT;
650                                 mouse_events: 0;
651                                 scale: 1;
652                                 clip_to: "ctxpopup_clip";
653                                 description { state: "default" 0.0;
654                                         visible: 0;
655                                         min: 40 0;
656                                         fixed: 1 1;
657                                         align: 1 0.5;
658                                         rel1 {
659                                                 relative: 0 1;
660                                                 to_y: "ctxpopup_frame_left_top";
661                                         }
662                                         rel2 {
663                                                 relative:0 0;
664                                                 to:"ctxpopup_frame_left_bottom";
665                                         }
666                                 }
667                         }
668                         part { name: "arrow_area_right";
669                                 type: RECT;
670                                 mouse_events: 0;
671                                 scale: 1;
672                                 clip_to: "ctxpopup_clip";
673                                 description { state: "default" 0.0;
674                                         visible: 0;
675                                         min: 40 0;
676                                         fixed: 1 1;
677                                         align: 0 0.5;
678                                         rel1 {
679                                                 relative: 1 1;
680                                                 to:"ctxpopup_frame_right_top";
681                                         }
682                                         rel2 {
683                                                 relative: 1 0;
684                                                 to_y: "ctxpopup_frame_right_bottom";
685                                         }
686                                 }
687                         }
688                         part { name: "arrow_area_up";
689                                 type: RECT;
690                                 mouse_events: 0;
691                                 scale: 1;
692                                 clip_to: "ctxpopup_clip";
693                                 description { state: "default" 0.0;
694                                         visible: 0;
695                                         min: 0 40;
696                                         fixed: 1 1;
697                                         align: 0.5 1;
698                                         rel1 {
699                                                 relative: 1 0;
700                                                 to_x: "ctxpopup_frame_left_top";
701                                         }
702                                         rel2 {
703                                                 relative: 0 0;
704                                                 to:"ctxpopup_frame_right_top";
705                                         }
706                                 }
707                         }
708                         part { name: "arrow_area_down";
709                                 type: RECT;
710                                 mouse_events: 0;
711                                 scale: 1;
712                                 clip_to: "ctxpopup_clip";
713                                 description { state: "default" 0.0;
714                                         visible: 0;
715                                         min: 0 40;
716                                         fixed: 1 1;
717                                         align: 0.5 0;
718                                         rel1 {
719                                                 relative: 1 1;
720                                                 to:"ctxpopup_frame_left_bottom";
721                                         }
722                                         rel2 {
723                                                 relative: 0 1;
724                                                 to_x: "ctxpopup_frame_right_bottom";
725                                         }
726                                 }
727                         }
728                         part { name: "elm.swallow.arrow_up";
729                                 type: SWALLOW;
730                                 mouse_events: 0;
731                                 scale: 1;
732                                 clip_to: "ctxpopup_clip";
733                                 dragable {
734                                         x: 1 1 0;
735                                         y: 1 1 0;
736                                         confine: "arrow_area_up";
737                                 }
738                                 description {
739                                         state: "default" 0.0;
740                                         min: 40 40;
741                                         fixed: 1 1;
742                                         visible: 1;
743                                 }
744                         }
745                         part { name: "elm.swallow.arrow_down";
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_down";
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_left";
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_left";
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_right";
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_right";
788                                 }
789                                 description {
790                                         state: "default" 0.0;
791                                         min: 40 40;
792                                         fixed: 1 1;
793                                         visible: 1;
794                                 }
795                         }
796
797                         part {
798                                 name: "ctxpopup_frame_left_top";
799                                 type: RECT;
800                                 scale: 1;
801                                 description {
802                                         visible: 0;
803                                         align: 0 0;
804                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
805                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
806                                 }
807                         }
808
809                         part {
810                                 name: "ctxpopup_frame_right_top";
811                                 type: RECT;
812                                 scale: 1;
813                                 description {
814                                         visible: 0;
815                                         align: 1 0;
816                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
817                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
818                                 }
819                         }
820
821                         part {
822                                 name: "ctxpopup_frame_left_bottom";
823                                 type: RECT;
824                                 scale: 1;
825                                 description {
826                                         visible: 0;
827                                         align: 0 1;
828                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
829                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
830                                 }
831                         }
832
833                         part {
834                                 name: "ctxpopup_frame_right_bottom";
835                                 type: RECT;
836                                 scale: 1;
837                                 description {
838                                         visible: 0;
839                                         align: 1 1;
840                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
841                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
842                                 }
843                         }
844                         part {
845                                 name:"list_shadow_right_bottom_padding";
846                                 type:RECT;
847                                 scale: 1;
848                                 mouse_events: 0;
849                                 description {
850                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
851                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
852                                         align: 0 0;
853                                         fixed: 1 1;
854                                         visible: 0;
855                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
856                                 }
857                         }
858                         part {
859                                 name:"content_left_top_padding";
860                                 type:RECT;
861                                 scale: 1;
862                                 mouse_events: 0;
863                                 description {
864                                         state: "default" 0.0;
865                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
866                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
867                                         align: 0 0;
868                                         fixed: 1 1;
869                                         visible: 0;
870                                 }
871                         }
872                         part {
873                                 name:"content_right_bottom_padding";
874                                 type:RECT;
875                                 scale: 1;
876                                 mouse_events: 0;
877                                 description {
878                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
879                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
880                                         rel1 { relative: 1 1;}
881                                         rel2 { relative: 1 1;}
882                                         align: 1 1;
883                                         fixed: 1 1;
884                                         visible: 0;
885                                 }
886                         }
887                         part {
888                                 name: "frame_bg";
889                                 type: IMAGE;
890                                 scale: 1;
891                                 mouse_events: 0;
892                                 clip_to: "ctxpopup_clip";
893                                 description {
894                                         state: "default" 0.0;
895                                         rel1 {to:"ctxpopup_frame_left_top";}
896                                         rel2 {to:"ctxpopup_frame_right_bottom";}
897                                         image {
898                                                 normal: "00_popup_bg.png";
899                                                 border: 3 3 3 3;
900                                                 border_scale: 1;
901                                         }
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
1045 ///////////////////////////////////////////////////////////////////////////////
1046         group { name: "elm/ctxpopup/arrow/default";
1047                 images {
1048                         image: "00_popup_tail_left.png" COMP;
1049                         image: "00_popup_tail_right.png" COMP;
1050                         image: "00_popup_tail_top.png" COMP;
1051                         image: "00_popup_tail_bottom.png" COMP;
1052                 }
1053                 parts {
1054                         part {
1055                                 name: "ctxpopup_arrow";
1056                                 type: IMAGE;
1057                                 scale: 1;
1058                                 description {
1059                                         state: "default" 0.0;
1060                                         min: CTXPOPUP_ARROW_SIZE_INC;
1061                                         max: CTXPOPUP_ARROW_SIZE_INC;
1062                                         fixed: 1 1;
1063                                         visible: 0;
1064                                         align: 0.5 0.5;
1065                                 }
1066                                 description {
1067                                         state: "left" 0.0;
1068                                         min: CTXPOPUP_ARROW_SIZE_INC;
1069                                         max: CTXPOPUP_ARROW_SIZE_INC;
1070                                         fixed: 1 1;
1071                                         align: 1.0 0.5;
1072                                         image {
1073                                                 normal: "00_popup_tail_left.png";
1074                                         }
1075                                 }
1076                                 description {
1077                                         state: "right" 0.0;
1078                                         min: CTXPOPUP_ARROW_SIZE_INC;
1079                                         max: CTXPOPUP_ARROW_SIZE_INC;
1080                                         fixed: 1 1;
1081                                         align: 0.0 0.5;
1082                                         image {
1083                                                 normal: "00_popup_tail_right.png";
1084                                         }
1085                                 }
1086                                 description {
1087                                         state: "top" 0.0;
1088                                         min: CTXPOPUP_ARROW_SIZE_INC;
1089                                         max: CTXPOPUP_ARROW_SIZE_INC;
1090                                         fixed: 1 1;
1091                                         align: 0.5 1.0;
1092                                         image {
1093                                                 normal: "00_popup_tail_top.png";
1094                                         }
1095                                 }
1096                                 description {
1097                                         state: "bottom" 0.0;
1098                                         min: CTXPOPUP_ARROW_SIZE_INC;
1099                                         max: CTXPOPUP_ARROW_SIZE_INC;
1100                                         fixed: 1 1;
1101                                         align: 0.5 0.0;
1102                                         image {
1103                                                 normal: "00_popup_tail_bottom.png";
1104                                         }
1105                                 }
1106                         }
1107                 }
1108                 programs {
1109                         program {
1110                                 name: "enable_left_arrow";
1111                                 signal: "elm,state,left";
1112                                 source: "elm";
1113                                 action: STATE_SET "left" 0.0;
1114                                 target: "ctxpopup_arrow";
1115                         }
1116                         program {
1117                                 name: "enable_right_arrow";
1118                                 signal: "elm,state,right";
1119                                 source: "elm";
1120                                 action: STATE_SET "right" 0.0;
1121                                 target: "ctxpopup_arrow";
1122                         }
1123                         program {
1124                                 name: "enable_top_arrow";
1125                                 signal: "elm,state,top";
1126                                 source: "elm";
1127                                 action: STATE_SET "top" 0.0;
1128                                 target: "ctxpopup_arrow";
1129                         }
1130                         program {
1131                                 name: "enable_bottom_arrow";
1132                                 signal: "elm,state,bottom";
1133                                 source: "elm";
1134                                 action: STATE_SET "bottom" 0.0;
1135                                 target: "ctxpopup_arrow";
1136                         }
1137                 }
1138         }
1139 ///////////////////////////////////////////////////////////////////////////////
1140         group {
1141                 name: "elm/ctxpopup/text_style_item/default";
1142                 parts {
1143                         part {
1144                                 name: "event_blocker";
1145                                 mouse_events: 1;
1146                                 description {
1147                                         state: "default" 0.0;
1148                                         color: 0 0 0 0;
1149                                 }
1150                         }
1151                         part {
1152                                 name: "bg";
1153                                 mouse_events: 0;
1154                                 type: RECT;
1155                                 description {
1156                                         state: "default" 0.0;
1157                                         color: GENLIST_PART_BG_COLOR_INC;
1158                                         visible: 1;
1159                                 }
1160                                 description {
1161                                         state: "clicked" 0.0;
1162                                         color: GENLIST_PART_LIST_PRESS_COLOR_INC;
1163                                         visible: 1;
1164                                 }
1165                         }
1166                         part {
1167                                 name: "separator";
1168                                 mouse_events: 0;
1169                                 type: RECT;
1170                                 scale: 1;
1171                                 description {
1172                                         state: "default" 0.0;
1173                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1174                                         align: 0.5 0;
1175                                         min: 1 0;
1176                                         max: 1 999999;
1177                                         visible: 0;
1178                                 }
1179                                 description {
1180                                         state: "horizontal" 0.0;
1181                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1182                                         align: 0 0.5;
1183                                         min: 1 0;
1184                                         max: 1 999999;
1185                                         visible: 1;
1186                                 }
1187                         description {
1188                                         state: "vertical" 0.0;
1189                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1190                                         align: 0.5 0;
1191                                         min: 0 1;
1192                                         max: 999999 1;
1193                                         visible: 1;
1194                                 }
1195                         }
1196                         part {
1197                                 name: "left_padding";
1198                                 scale: 1;
1199                                 mouse_events: 0;
1200                                 description {
1201                                         state: "default" 0.0;
1202                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1203                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1204                                         align: 0 0.5;
1205                                         fixed: 1 1;
1206                                         visible: 0;
1207                                 }
1208                         }
1209                         part {
1210                                 name: "elm.text";
1211                                 type: TEXT;
1212                                 mouse_events: 0;
1213                                 scale: 1;
1214                                 description {
1215                                         state: "default" 0.0;
1216                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1217                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_ITEM_PADDING_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1218                                         fixed: 0 1;
1219                                         align: 0.5 0.5;
1220                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
1221                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
1222                                         color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
1223                                         text {
1224                                                 font: "SLP:style=Roman";
1225                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1226                                                 align: 0.5 0.5;
1227                                                 min: 1 1;
1228                                         }
1229                                 }
1230                                 description {
1231                                         state: "compress" 0.0;
1232                                         inherit: "default" 0.0;
1233                                         max: -1 -1;
1234                                         text {
1235                                                 min: 0 1;
1236                                         }
1237                                 }
1238                                 description {
1239                                         state: "clicked" 0.0;
1240                                         inherit: "default" 0.0;
1241                                         color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
1242                                 }
1243                         }
1244                         part {
1245                                 name: "right_padding";
1246                                 scale: 1;
1247                                 mouse_events: 0;
1248                                 description {
1249                                         state: "default" 0.0;
1250                                         visible: 0;
1251                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1252                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1253                                         fixed: 1 0;
1254                                         align: 1.0 0.5;
1255                                 }
1256                         }
1257                         part {
1258                                 name: "over1";
1259                                 mouse_events: 1;
1260                                 repeat_events: 1;
1261                                 ignore_flags: ON_HOLD;
1262                                 description {
1263                                         state: "default" 0.0;
1264                                 }
1265                         }
1266                         part {
1267                                 name: "over2";
1268                                 mouse_events: 1;
1269                                 repeat_events: 1;
1270                                 description {
1271                                         state: "default" 0.0;
1272                                 }
1273                         }
1274                         part {
1275                                 name: "disclip";
1276                                 type: RECT;
1277                                 description {
1278                                         state: "default" 0.0;
1279                                         visible: 0;
1280                                 }
1281                                 description {
1282                                         state: "disabled" 0.0;
1283                                         visible: 1;
1284                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1285                                 }
1286                         }
1287                 }
1288                 programs {
1289                         program {
1290                                 name: "item_unclick";
1291                                 signal: "mouse,up,1";
1292                                 source: "over1";
1293                                 action: SIGNAL_EMIT "elm,action,click" "";
1294                         }
1295                         program {
1296                                 name: "disable";
1297                                 signal: "elm,state,disabled";
1298                                 source: "elm";
1299                                 action: STATE_SET "disabled" 0.0;
1300                                 target: "disclip";
1301                         }
1302                         program {
1303                                 name: "enable";
1304                                 signal: "elm,state,enabled";
1305                                 source: "elm";
1306                                 action: STATE_SET "default" 0.0;
1307                                 target: "disclip";
1308                         }
1309                         program {
1310                                 name: "default";
1311                                 signal: "elm,state,default";
1312                                 source: "elm";
1313                                 script {
1314                                         set_state(PART:"separator", "default", 0.0);
1315                                 }
1316                         }
1317                         program {
1318                                 name: "compress";
1319                                 signal: "elm,state,compress";
1320                                 source: "elm";
1321                                 action: STATE_SET "compress" 0.0;
1322                                 target: "elm.text";
1323                         }
1324                         program {
1325                                 name: "vertical";
1326                                 signal: "elm,state,vertical";
1327                                 source: "elm";
1328                                 script {
1329                                         set_state(PART:"separator", "vertical", 0.0);
1330                                 }
1331                         }
1332                         program {
1333                                 name: "horizontal";
1334                                 signal: "elm,state,horizontal";
1335                                 source: "elm";
1336                                 script {
1337                                         set_state(PART:"separator", "horizontal", 0.0);
1338                                 }
1339                         }
1340                         program {
1341                                 name: "item_click2";
1342                                 signal: "mouse,down,1";
1343                                 source: "over2";
1344                                 script {
1345                                         set_state(PART:"elm.text", "clicked", 0.0);
1346                                         set_state(PART:"bg", "clicked", 0.0);
1347                                 }
1348                         }
1349                         program {
1350                                 name: "item_unclick2";
1351                                 signal: "mouse,up,1";
1352                                 source: "over2";
1353                                 script {
1354                                         set_state(PART:"elm.text", "compress", 0.0);
1355                                         set_state(PART:"bg", "default", 0.0);
1356                                 }
1357                         }
1358                 }
1359         }
1360 ///////////////////////////////////////////////////////////////////////////////
1361         group {
1362                 name: "elm/ctxpopup/icon_style_item/default";
1363                 parts {
1364                         part {
1365                                 name: "event_blocker";
1366                                 mouse_events: 1;
1367                                 description {
1368                                         state: "default" 0.0;
1369                                         color: 0 0 0 0;
1370                                 }
1371                         }
1372                         part {
1373                                 name: "bg";
1374                                 scale: 1;
1375                                 mouse_events: 0;
1376                                 type: RECT;
1377                                 description {
1378                                         state: "default" 0.0;
1379                                         color: GENLIST_PART_BG_COLOR_INC;
1380                                         visible: 1;
1381                                         min: CTXPOPUP_ITEM_ICON_INC;
1382                                         max: CTXPOPUP_ITEM_ICON_INC;
1383                                 }
1384                                 description {
1385                                         state: "clicked" 0.0;
1386                                         color: GENLIST_PART_LIST_PRESS_COLOR_INC;
1387                                         visible: 1;
1388                                 }
1389                         }
1390                         part {
1391                                 name: "left_top_padding";
1392                                 scale: 1;
1393                                 description {
1394                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1395                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1396                                         visible: 0;
1397                                         align: 0 0;
1398                                         fixed: 1 1;
1399                                 }
1400                         }
1401                         part {
1402                                 name: "separator";
1403                                 mouse_events: 0;
1404                                 type: RECT;
1405                                 scale: 1;
1406                                 description {
1407                                         state: "default" 0.0;
1408                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1409                                         align: 0.5 0;
1410                                         min: 1 0;
1411                                         max: 1 999999;
1412                                         visible: 0;
1413                                 }
1414                                 description {
1415                                         state: "horizontal" 0.0;
1416                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1417                                         align: 0 0.5;
1418                                         min: 1 0;
1419                                         max: 1 999999;
1420                                         visible: 1;
1421                                 }
1422                         description {
1423                                         state: "vertical" 0.0;
1424                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1425                                         align: 0.5 0;
1426                                         min: 0 1;
1427                                         max: 999999 1;
1428                                         visible: 1;
1429                                 }
1430                         }
1431                         part {
1432                                 name: "elm.swallow.icon";
1433                                 type: SWALLOW;
1434                                 scale: 1;
1435                                 description {
1436                                         state: "default" 0.0;
1437                                         min: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1438                                         max: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1439                                         align: 0.5 0.5;
1440                                         aspect: 1.0 1.0;
1441                                         rel1 { to: "left_top_padding"; relative: 1 1; }
1442                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
1443                                 }
1444                         }
1445                         part {
1446                                 name: "right_bottom_padding";
1447                                 scale: 1;
1448                                 description {
1449                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1450                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1451                                         visible: 0;
1452                                         align: 1 1;
1453                                         fixed: 1 1;
1454                                 }
1455                         }
1456                         part {
1457                                 name: "over1";
1458                                 mouse_events: 1;
1459                                 repeat_events: 1;
1460                                 ignore_flags: ON_HOLD;
1461                                 description {
1462                                         state: "default" 0.0;
1463                                 }
1464                         }
1465                         part {
1466                                 name: "over2";
1467                                 mouse_events: 1;
1468                                 repeat_events: 1;
1469                                 description {
1470                                         state: "default" 0.0;
1471                                 }
1472                         }
1473                         part {
1474                                 name: "disclip";
1475                                 type: RECT;
1476                                 description {
1477                                         state: "default" 0.0;
1478                                         visible: 0;
1479                                 }
1480                                 description {
1481                                         state: "disabled" 0.0;
1482                                         visible: 1;
1483                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1484                                 }
1485                         }
1486                 }
1487                 programs {
1488                         program {
1489                                 name: "default";
1490                                 signal: "elm,state,default";
1491                                 source: "elm";
1492                                 script {
1493                                         set_state(PART:"separator", "default", 0.0);
1494                                 }
1495                         }
1496                         program {
1497                                 name: "vertical";
1498                                 signal: "elm,state,vertical";
1499                                 source: "elm";
1500                                 script {
1501                                         set_state(PART:"separator", "vertical", 0.0);
1502                                 }
1503                         }
1504                         program {
1505                                 name: "horizontal";
1506                                 signal: "elm,state,horizontal";
1507                                 source: "elm";
1508                                 script {
1509                                         set_state(PART:"separator", "horizontal", 0.0);
1510                                 }
1511                         }
1512                         program {
1513                                 name: "item_unclick";
1514                                 signal: "mouse,up,1";
1515                                 source: "over1";
1516                                 action: SIGNAL_EMIT "elm,action,click" "";
1517                         }
1518                         program {
1519                                 name: "disable";
1520                                 signal: "elm,state,disabled";
1521                                 source: "elm";
1522                                 action: STATE_SET "disabled" 0.0;
1523                                 target: "disclip";
1524                         }
1525                         program {
1526                                 name: "enable";
1527                                 signal: "elm,state,enabled";
1528                                 source: "elm";
1529                                 action: STATE_SET "default" 0.0;
1530                                 target: "disclip";
1531                         }
1532                         program {
1533                                 name: "item_click2";
1534                                 signal: "mouse,down,1";
1535                                 source: "over2";
1536                                 script {
1537                                         set_state(PART:"bg", "clicked", 0.0);
1538                                 }
1539                         }
1540                         program {
1541                                 name: "item_unclick2";
1542                                 signal: "mouse,up,1";
1543                                 source: "over2";
1544                                 script {
1545                                         set_state(PART:"bg", "default", 0.0);
1546                                 }
1547                         }
1548                 }
1549         }
1550 ///////////////////////////////////////////////////////////////////////////////
1551         group {
1552                 name: "elm/ctxpopup/icon_text_style_item/default";
1553                 parts {
1554                         part {
1555                                 name: "event_blocker";
1556                                 mouse_events: 1;
1557                                 description {
1558                                         state: "default" 0.0;
1559                                 }
1560                         }
1561                         part {
1562                                 name: "bg";
1563                                 mouse_events: 0;
1564                                 type: RECT;
1565                                 description {
1566                                         state: "default" 0.0;
1567                                         color: GENLIST_PART_BG_COLOR_INC;
1568                                         visible: 1;
1569                                 }
1570                                 description {
1571                                         state: "clicked" 0.0;
1572                                         color: GENLIST_PART_LIST_PRESS_COLOR_INC;
1573                                         visible: 1;
1574                                 }
1575                         }
1576                         part {
1577                                 name: "icon_left_padding";
1578                                 scale: 1;
1579                                 mouse_events: 0;
1580                                 description {
1581                                         state: "default" 0.0;
1582                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1583                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1584                                         align: 0 0;
1585                                         fixed: 1 1;
1586                                         visible: 0;
1587                                 }
1588                         }
1589                         part {
1590                                 name: "separator";
1591                                 mouse_events: 0;
1592                                 type: RECT;
1593                                 scale: 1;
1594                                 description {
1595                                         state: "default" 0.0;
1596                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1597                                         align: 0.5 0;
1598                                         min: 1 0;
1599                                         max: 1 999999;
1600                                         visible: 0;
1601                                 }
1602                                 description {
1603                                         state: "horizontal" 0.0;
1604                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1605                                         align: 0 0.5;
1606                                         min: 1 0;
1607                                         max: 1 999999;
1608                                         visible: 1;
1609                                 }
1610                         description {
1611                                         state: "vertical" 0.0;
1612                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1613                                         align: 0.5 0;
1614                                         min: 0 1;
1615                                         max: 999999 1;
1616                                         visible: 1;
1617                                 }
1618                         }
1619                         part {
1620                                 name: "elm.swallow.icon";
1621                                 type: SWALLOW;
1622                                 scale: 1;
1623                                 description {
1624                                         state: "default" 0.0;
1625                                         min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1626                                         max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1627                                         align: 0 0.5;
1628                                         aspect: 1.0 1.0;
1629                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
1630                                 }
1631                         }
1632                         part {
1633                                 name: "icon_right_padding";
1634                                 scale: 1;
1635                                 mouse_events: 0;
1636                                 description {
1637                                         state: "default" 0.0;
1638                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1639                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1640                                         align: 0 0.5;
1641                                         fixed: 1 1;
1642                                         visible: 0;
1643                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
1644                                 }
1645                         }
1646                         part {
1647                                 name: "elm.text";
1648                                 type:  TEXT;
1649                                 mouse_events:  0;
1650                                 scale: 1;
1651                                 description {
1652                                         state: "default" 0.0;
1653                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1654                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_ITEM_PADDING_INC)-CTXPOPUP_ICON_WIDTH_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1655                                         fixed: 0 1;
1656                                         align: 0.5 0.5;
1657                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
1658                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
1659                                         color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
1660                                         text {
1661                                                 font: "SLP:style=Roman";
1662                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1663                                                 align: 0.0 0.5;
1664                                                 min: 1 1;
1665                                         }
1666                                 }
1667                                 description {
1668                                         state: "compress" 0.0;
1669                                         inherit: "default" 0.0;
1670                                         max: -1 -1;
1671                                         text {
1672                                                 min: 0 1;
1673                                         }
1674                                 }
1675                                 description {
1676                                         state: "clicked" 0.0;
1677                                         inherit: "default" 0.0;
1678                                         color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
1679                                 }
1680                         }
1681                         part {
1682                                 name: "text_right_padding";
1683                                 type: RECT;
1684                                 scale: 1;
1685                                 mouse_events: 0;
1686                                 description {
1687                                         state: "default" 0.0;
1688                                         visible: 0;
1689                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1690                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1691                                         fixed: 1 0;
1692                                         align: 1.0 0.5;
1693                         }
1694                         }
1695                         part {
1696                                 name: "over1";
1697                                 mouse_events: 1;
1698                                 repeat_events: 1;
1699                                 ignore_flags: ON_HOLD;
1700                                 description {
1701                                         state: "default" 0.0;
1702                                 }
1703                         }
1704                         part {
1705                                 name: "over2";
1706                                 mouse_events: 1;
1707                                 repeat_events: 1;
1708                                 description {
1709                                         state: "default" 0.0;
1710                                 }
1711                         }
1712                         part {
1713                                 name: "disclip";
1714                                 type: RECT;
1715                                 description {
1716                                         state: "default" 0.0;
1717                                         visible: 0;
1718                                 }
1719                                 description {
1720                                         state: "disabled" 0.0;
1721                                         visible: 1;
1722                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1723                                 }
1724                         }
1725                 }
1726                 programs {
1727                         program {
1728                                 name: "item_unclick";
1729                                 signal: "mouse,up,1";
1730                                 source: "over1";
1731                                 action: SIGNAL_EMIT "elm,action,click" "";
1732                         }
1733                         program {
1734                                 name: "disable";
1735                                 signal: "elm,state,disabled";
1736                                 source: "elm";
1737                                 action: STATE_SET "disabled" 0.0;
1738                                 target: "disclip";
1739                         }
1740                         program {
1741                                 name: "enable";
1742                                 signal: "elm,state,enabled";
1743                                 source: "elm";
1744                                 action: STATE_SET "default" 0.0;
1745                                 target: "disclip";
1746                         }
1747                         program {
1748                                 name: "default";
1749                                 signal: "elm,state,default";
1750                                 source: "elm";
1751                                 script {
1752                                         set_state(PART:"separator", "default", 0.0);
1753                                 }
1754                         }
1755                         program {
1756                                 name: "compress";
1757                                 signal: "elm,state,compress";
1758                                 source: "elm";
1759                                 action: STATE_SET "compress" 0.0;
1760                                 target: "elm.text";
1761                         }
1762                         program {
1763                                 name: "vertical";
1764                                 signal: "elm,state,vertical";
1765                                 source: "elm";
1766                                 script {
1767                                         set_state(PART:"separator", "vertical", 0.0);
1768                                 }
1769                         }
1770                         program {
1771                                 name: "horizontal";
1772                                 signal: "elm,state,horizontal";
1773                                 source: "elm";
1774                                 script {
1775                                         set_state(PART:"separator", "horizontal", 0.0);
1776                                 }
1777                         }
1778                         program {
1779                                 name: "item_click2";
1780                                 signal: "mouse,down,1";
1781                                 source: "over2";
1782                                 script {
1783                                         set_state(PART:"elm.text", "clicked", 0.0);
1784                                         set_state(PART:"bg", "clicked", 0.0);
1785                                 }
1786                         }
1787                         program {
1788                                 name: "item_unclick2";
1789                                 signal: "mouse,up,1";
1790                                 source: "over2";
1791                                 script {
1792                                         set_state(PART:"elm.text", "compress", 0.0);
1793                                         set_state(PART:"bg", "default", 0.0);
1794                                 }
1795                         }
1796                 }
1797         }
1798
1799 ///////////////////////////////////////////////////////////////////////////////////////
1800 #define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3
1801 #define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
1802 #define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
1803 #define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
1804 //////////////////////////////////////////////////////////////////////////////////////
1805         group {
1806                 name: "elm/ctxpopup/base/extended/entry";
1807                 alias: "elm/ctxpopup/base/extended/entry/pass_event";
1808                 images {
1809                         image: "copy&paste_bg_center.png" COMP;
1810                         image: "ctxpopup_shadow.png" COMP;
1811                 }
1812                 parts {
1813                         part {
1814                                 name:"frame_shadow_left_top_padding";
1815                                 type:RECT;
1816                                 scale: 1;
1817                                 mouse_events: 0;
1818                                 description {
1819                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1820                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1821                                         align: 0 0;
1822                                         fixed: 1 1;
1823                                         visible: 0;
1824                                 }
1825                         }
1826                         part {
1827                                 name:"frame_shadow_right_bottom_padding";
1828                                 type:RECT;
1829                                 scale: 1;
1830                                 mouse_events: 0;
1831                                 description {
1832                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1833                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1834                                         rel1{relative: 1 1;}
1835                                         align: 0 0;
1836                                         fixed: 1 1;
1837                                         visible: 0;
1838                                 }
1839                         }
1840                         part {
1841                                 name: "frame_shadow";
1842                                 type: IMAGE;
1843                                 scale: 1;
1844                                 mouse_events: 0;
1845                                 description {
1846                                         state: "default" 0.0;
1847                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
1848                                         rel2 {to:"frame_shadow_right_bottom_padding";}
1849                                         image {
1850                                                 normal: "ctxpopup_shadow.png";
1851                                                 border: 10 10 10 10;
1852                                                 border_scale: 1;
1853                                         }
1854                                 }
1855                         }
1856                         part {
1857                                 name: "frame_bg";
1858                                 type: IMAGE;
1859                                 scale: 1;
1860                                 mouse_events: 0;
1861                                 description {
1862                                         state: "default" 0.0;
1863                                         rel1 {to:"elm.swallow.content";}
1864                                         rel2 {to:"elm.swallow.content";}
1865                                         image {
1866                                                 normal: "copy&paste_bg_center.png";
1867                                                 border: CTXPOPUP_ENTRY_CENTER_IMAGE_BORDER;
1868                                                 border_scale: 1;
1869                                         }
1870                                 }
1871                         }
1872                         part {
1873                                 name: "arrow_area_left";
1874                                 type: RECT;
1875                                 mouse_events: 0;
1876                                 scale: 1;
1877                                 description {
1878                                         state: "default" 0.0;
1879                                         visible: 0;
1880                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
1881                                         fixed: 1 1;
1882                                         align: 1 0.5;
1883                                         rel1 {
1884                                                 relative: 0 1;
1885                                                 to_y: "ctxpopup_frame_left_top";
1886                                         }
1887                                         rel2 {
1888                                                 relative:0 0;
1889                                                 to:"ctxpopup_frame_left_bottom";
1890                                         }
1891                                 }
1892                         }
1893                         part {
1894                                 name: "arrow_area_right";
1895                                 type: RECT;
1896                                 mouse_events: 0;
1897                                 scale: 1;
1898                                 description { state: "default" 0.0;
1899                                         visible: 0;
1900                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
1901                                         fixed: 1 1;
1902                                         align: 0 0.5;
1903                                         rel1 {
1904                                                 relative: 1 1;
1905                                                 to:"ctxpopup_frame_right_top";
1906                                         }
1907                                         rel2 {
1908                                                 relative: 1 0;
1909                                                 to_y: "ctxpopup_frame_right_bottom";
1910                                         }
1911                                 }
1912                         }
1913                         part {
1914                                 name: "arrow_area_up";
1915                                 type: RECT;
1916                                 mouse_events: 0;
1917                                 scale: 1;
1918                                 description { state: "default" 0.0;
1919                                         visible: 0;
1920                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1921                                         fixed: 1 1;
1922                                         align: 0.5 1;
1923                                         rel1 {
1924                                                 relative: 0 0;
1925                                                 to: "frame_bg";
1926                                         }
1927                                         rel2 {
1928                                                 relative: 1 0;
1929                                                 to: "frame_bg";
1930                                         }
1931                                 }
1932                         }
1933                         part {
1934                                 name: "arrow_area_down";
1935                                 type: RECT;
1936                                 mouse_events: 0;
1937                                 scale: 1;
1938                                 description {
1939                                         state: "default" 0.0;
1940                                         visible: 0;
1941                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1942                                         fixed: 1 1;
1943                                         align: 0.5 0;
1944                                         rel1 {
1945                                                 relative: 0 1;
1946                                                 to: "frame_bg";
1947                                         }
1948                                         rel2 {
1949                                                 relative: 1 1;
1950                                                 to: "frame_bg";
1951                                         }
1952                                 }
1953                         }
1954                         part {
1955                                 name: "elm.swallow.arrow_up";
1956                                 type: SWALLOW;
1957                                 mouse_events: 0;
1958                                 scale: 1;
1959                                 dragable {
1960                                         x: 1 1 0;
1961                                         y: 1 1 0;
1962                                         confine: "arrow_area_up";
1963                                 }
1964                                 description {
1965                                         state: "default" 0.0;
1966                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1967                                         fixed: 1 1;
1968                                         visible: 1;
1969                                 }
1970                         }
1971                         part {
1972                                 name: "elm.swallow.arrow_down";
1973                                 type: SWALLOW;
1974                                 mouse_events: 0;
1975                                 scale: 1;
1976                                 dragable {
1977                                         x: 1 1 0;
1978                                         y: 1 1 0;
1979                                         confine: "arrow_area_down";
1980                                 }
1981                                 description {
1982                                         state: "default" 0.0;
1983                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1984                                         fixed: 1 1;
1985                                         visible: 1;
1986                                 }
1987                         }
1988                         part {
1989                                 name: "elm.swallow.arrow_left";
1990                                 type: SWALLOW;
1991                                 mouse_events: 0;
1992                                 scale: 1;
1993                                 dragable {
1994                                         x: 1 1 0;
1995                                         y: 1 1 0;
1996                                         confine: "arrow_area_left";
1997                                 }
1998                                 description {
1999                                         state: "default" 0.0;
2000                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
2001                                         fixed: 1 1;
2002                                         visible: 1;
2003                                 }
2004                         }
2005                         part {
2006                                 name: "elm.swallow.arrow_right";
2007                                 type: SWALLOW;
2008                                 mouse_events: 0;
2009                                 scale: 1;
2010                                 dragable {
2011                                         x: 1 1 0;
2012                                         y: 1 1 0;
2013                                         confine: "arrow_area_right";
2014                                 }
2015                                 description {
2016                                         state: "default" 0.0;
2017                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
2018                                         fixed: 1 1;
2019                                         visible: 1;
2020                                 }
2021                         }
2022                         part {
2023                                 name: "ctxpopup_frame_left_top";
2024                                 type: RECT;
2025                                 scale: 1;
2026                                 description {
2027                                         visible: 0;
2028                                         align: 0 0;
2029                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2030                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2031                                 }
2032                         }
2033                         part {
2034                                 name: "ctxpopup_frame_right_top";
2035                                 type: RECT;
2036                                 scale: 1;
2037                                 description {
2038                                         visible: 0;
2039                                         align: 1 0;
2040                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2041                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2042                                 }
2043                         }
2044                         part {
2045                                 name: "ctxpopup_frame_left_bottom";
2046                                 type: RECT;
2047                                 scale: 1;
2048                                 description {
2049                                         visible: 0;
2050                                         align: 0 1;
2051                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2052                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2053                                 }
2054                         }
2055                         part {
2056                                 name: "ctxpopup_frame_right_bottom";
2057                                 type: RECT;
2058                                 scale: 1;
2059                                 description {
2060                                         visible: 0;
2061                                         align: 1 1;
2062                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2063                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2064                                 }
2065                         }
2066                         part {
2067                                 name:"list_shadow_right_bottom_padding";
2068                                 type:RECT;
2069                                 scale: 1;
2070                                 mouse_events: 0;
2071                                 description {
2072                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
2073                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
2074                                         align: 0 0;
2075                                         fixed: 1 1;
2076                                         visible: 0;
2077                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
2078                                 }
2079                         }
2080                         part {
2081                                 name:"content_left_top_padding";
2082                                 type:RECT;
2083                                 scale: 1;
2084                                 mouse_events: 0;
2085                                 description {
2086                                         state: "default" 0.0;
2087                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2088                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2089                                         align: 0 0;
2090                                         fixed: 1 1;
2091                                         visible: 0;
2092                                 }
2093                         }
2094                         part {
2095                                 name:"content_right_bottom_padding";
2096                                 type:RECT;
2097                                 scale: 1;
2098                                 mouse_events: 0;
2099                                 description {
2100                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2101                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2102                                         rel1 { relative: 1 1;}
2103                                         rel2 { relative: 1 1;}
2104                                         align: 1 1;
2105                                         fixed: 1 1;
2106                                         visible: 0;
2107                                 }
2108                         }
2109                         part {
2110                                 name: "elm.swallow.content";
2111                                 type: SWALLOW;
2112                                 description {
2113                                         state: "default" 0.0;
2114                                         align: 0 0;
2115                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.5 0.5;}
2116                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.5 0.5;}
2117                                 }
2118                         }
2119                 }
2120         }
2121 ///////////////////////////////////////////////////////////////////////////////////////
2122         group {
2123                 name: "elm/ctxpopup/arrow/extended/entry";
2124                 alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
2125                 images {
2126                         image: "copy&paste_arrow_up.png" COMP;
2127                         image: "copy&paste_arrow_left.png" COMP;
2128                         image: "copy&paste_arrow_right.png" COMP;
2129                         image: "copy&paste_arrow_down.png" COMP;
2130                 }
2131                 parts {
2132                         part {
2133                                 name: "ctxpopup_arrow";
2134                                 type: IMAGE;
2135                                 scale: 1;
2136                                 description {
2137                                         state: "default" 0.0;
2138                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2139                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2140                                         fixed: 1 1;
2141                                         visible: 0;
2142                                         align: 0.5 0.5;
2143                                 }
2144                                 description {
2145                                         state: "left" 0.0;
2146                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2147                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2148                                         fixed: 1 1;
2149                                         align: 0 0.5;
2150                                         image {
2151                                                 normal: "copy&paste_arrow_left.png";
2152                                         }
2153                                 }
2154                                 description {
2155                                         state: "right" 0.0;
2156                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2157                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2158                                         fixed: 1 1;
2159                                         align: 1 0.5;
2160                                         image {
2161                                                 normal: "copy&paste_arrow_right.png";
2162                                         }
2163                                 }
2164                                 description {
2165                                         state: "top" 0.0;
2166                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2167                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2168                                         fixed: 1 1;
2169                                         align: 0.5 0;
2170                                         image {
2171                                                 normal: "copy&paste_arrow_up.png";
2172                                         }
2173                                 }
2174                                 description {
2175                                         state: "bottom" 0.0;
2176                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2177                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2178                                         fixed: 1 1;
2179                                         align: 0.5 1;
2180                                         image {
2181                                                 normal: "copy&paste_arrow_down.png";
2182                                         }
2183                                 }
2184                         }
2185                 }
2186                 programs {
2187                         program {
2188                                 name: "enable_left_arrow";
2189                                 signal: "elm,state,left";
2190                                 source: "elm";
2191                                 action: STATE_SET "left" 0.0;
2192                                 target: "ctxpopup_arrow";
2193                         }
2194                         program {
2195                                 name: "enable_right_arrow";
2196                                 signal: "elm,state,right";
2197                                 source: "elm";
2198                                 action: STATE_SET "right" 0.0;
2199                                 target: "ctxpopup_arrow";
2200                         }
2201                         program {
2202                                 name: "enable_top_arrow";
2203                                 signal: "elm,state,top";
2204                                 source: "elm";
2205                                 action: STATE_SET "top" 0.0;
2206                                 target: "ctxpopup_arrow";
2207                         }
2208                         program {
2209                                 name: "enable_bottom_arrow";
2210                                 signal: "elm,state,bottom";
2211                                 source: "elm";
2212                                 action: STATE_SET "bottom" 0.0;
2213                                 target: "ctxpopup_arrow";
2214                         }
2215                 }
2216         }
2217 ///////////////////////////////////////////////////////////////////////////////////////
2218 #define CTXPOPUP_ENTRY_ITEM_BG_PART \
2219                         part {\
2220                                 name: "bg";\
2221                                 mouse_events: 0;\
2222                                 type: IMAGE;\
2223                                 description {\
2224                                         state: "default" 0.0;\
2225                                         visible: 0;\
2226                                         rel1 {to:"left_bg_padding"; relative: 1 0;}\
2227                                         rel2 {to:"right_bg_padding"; relative: 0 1;}\
2228                                         image {\
2229                                                 normal: "copy&paste_press_center.png";\
2230                                                 border: 0 0 0 0;\
2231                                         }\
2232                                 }\
2233                                 description {\
2234                                         state: "clicked" 0.0;\
2235                                         inherit: "default" 0.0;\
2236                                         visible: 1;\
2237                                         image {\
2238                                                 normal: "copy&paste_press_center.png";\
2239                                                 border: 0 0 0 0;\
2240                                         }\
2241                                 }\
2242                         }
2243 #define CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART \
2244                         part {\
2245                                 name: "left_bg_padding";\
2246                                 type: IMAGE;\
2247                                 scale: 1;\
2248                                 mouse_events: 0;\
2249                                 description {\
2250                                         state: "default" 0.0;\
2251                                         visible: 0;\
2252                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2253                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2254                                         align: 0 0.5;\
2255                                         fixed: 1 0;\
2256                                         rel1 { to: "event_blocker"; relative: 0 0; }\
2257                                         rel2 { to: "event_blocker"; relative: 0 1; }\
2258                                         image {\
2259                                                 normal: "copy&paste_press_left.png";\
2260                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
2261                                                 border_scale: 1;\
2262                                         }\
2263                                 }\
2264                                 description {\
2265                                         state: "clicked" 0.0;\
2266                                         inherit: "default" 0.0;\
2267                                         visible: 1;\
2268                                         image {\
2269                                                 normal: "copy&paste_press_left.png";\
2270                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
2271                                                 border_scale: 1;\
2272                                         }\
2273                                 }\
2274                         }
2275 #define CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART \
2276                         part {\
2277                                 name: "right_bg_padding";\
2278                                 type: IMAGE;\
2279                                 scale: 1;\
2280                                 mouse_events: 0;\
2281                                 description {\
2282                                         state: "default" 0.0;\
2283                                         visible: 0;\
2284                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2285                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2286                                         fixed: 1 0;\
2287                                         align: 1.0 0.5;\
2288                                         rel1 { to: "event_blocker"; relative: 1 0; }\
2289                                         rel2 { to: "event_blocker"; relative: 1 1; }\
2290                                         image {\
2291                                                 normal: "copy&paste_press_right.png";\
2292                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
2293                                                 border_scale: 1;\
2294                                         }\
2295                                 }\
2296                                 description {\
2297                                         state: "clicked" 0.0;\
2298                                         inherit: "default" 0.0;\
2299                                         visible: 1;\
2300                                         image {\
2301                                                 normal: "copy&paste_press_right.png";\
2302                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
2303                                                 border_scale: 1;\
2304                                         }\
2305                                 }\
2306                         }
2307 #define CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART \
2308                         part {\
2309                                 name: "left_padding";\
2310                                 type: RECT;\
2311                                 scale: 1;\
2312                                 mouse_events: 0;\
2313                                 description {\
2314                                         state: "default" 0.0;\
2315                                         visible: 0;\
2316                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2317                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2318                                         align: 0 0.5;\
2319                                         fixed: 1 0;\
2320                                 }\
2321                         }
2322 #define CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART \
2323                         part {\
2324                                 name: "right_padding";\
2325                                 type: RECT;\
2326                                 scale: 1;\
2327                                 mouse_events: 0;\
2328                                 description {\
2329                                         state: "default" 0.0;\
2330                                         visible: 0;\
2331                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2332                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2333                                         fixed: 1 0;\
2334                                         align: 1.0 0.5;\
2335                                 }\
2336                         }
2337 #define CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART \
2338                         part {\
2339                                 name: "left_separator";\
2340                                 mouse_events: 0;\
2341                                 type: RECT;\
2342                                 scale: 1;\
2343                                 description {\
2344                                         state: "default" 0.0;\
2345                                         visible: 0;\
2346                                         color: CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_COLOR;\
2347                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2348                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2349                                         fixed: 1 1;\
2350                                         rel2 {\
2351                                                 relative: 0 1;\
2352                                         }\
2353                                 }\
2354                                 description {\
2355                                         state: "vertical" 0.0;\
2356                                         inherit: "default" 0.0;\
2357                                         visible: 1;\
2358                                 }\
2359                                 description {\
2360                                         state: "horizontal" 0.0;\
2361                                         inherit: "default" 0.0;\
2362                                         visible: 1;\
2363                                 }\
2364                         }
2365 #define CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART \
2366                         part {\
2367                                 name: "right_separator";\
2368                                 mouse_events: 0;\
2369                                 type: RECT;\
2370                                 scale: 1;\
2371                                 description {\
2372                                         state: "default" 0.0;\
2373                                         visible: 0;\
2374                                         color: CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_COLOR;\
2375                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2376                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2377                                         fixed: 1 1;\
2378                                         rel1 {\
2379                                                 offset: -1 0;\
2380                                         }\
2381                                         rel2 {\
2382                                                 relative: 0 1;\
2383                                                 offset: -1 0;\
2384                                         }\
2385                                 }\
2386                                 description {\
2387                                         state: "vertical" 0.0;\
2388                                         inherit: "default" 0.0;\
2389                                         visible: 1;\
2390                                 }\
2391                                 description {\
2392                                         state: "horizontal" 0.0;\
2393                                         inherit: "default" 0.0;\
2394                                         visible: 1;\
2395                                 }\
2396                         }
2397 ///////////////////////////////////////////////////////////////////////////////////////
2398
2399         group {
2400                 name: "elm/ctxpopup/text_style_item/extended/entry";
2401                 alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
2402                 images {
2403                         image: "copy&paste_press_center.png" COMP;
2404                         image: "copy&paste_press_left.png" COMP;
2405                         image: "copy&paste_press_right.png" COMP;
2406                 }
2407                 parts {
2408                         part {
2409                                 name: "event_blocker";
2410                                 mouse_events: 1;
2411                                 description {
2412                                         state: "default" 0.0;
2413                                         color: 0 0 0 0;
2414                                 }
2415                         }
2416                         CTXPOPUP_ENTRY_ITEM_BG_PART
2417                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2418                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2419                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2420                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2421                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2422                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
2423                         part {
2424                                 name: "elm.text";
2425                                 type:  TEXT;
2426                                 mouse_events:  0;
2427                                 scale: 1;
2428                                 description {
2429                                         state: "default" 0.0;
2430                                         min: 1 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2431                                         max: CTXPOPUP_ENTRY_ITEM_WIDTH_MAX CTXPOPUP_ENTRY_ITEM_HEIGHT;
2432                                         fixed: 0 1;
2433                                         align: 0.5 0.5;
2434                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2435                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2436                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2437                                         text {
2438                                                 font: "SLP:style=Roman";
2439                                                 size: CTXPOPUP_ENTRY_ITEM_FONT_SIZE;
2440                                                 align: 0.5 0.5;
2441                                                 min: 1 1;
2442                                         }
2443                                 }
2444                                 description {
2445                                         state: "clicked" 0.0;
2446                                         inherit: "default" 0.0;
2447                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2448                                 }
2449                         }
2450                         part {
2451                                 name: "over1";
2452                                 mouse_events: 1;
2453                                 repeat_events: 1;
2454                                 ignore_flags: ON_HOLD;
2455                                 description {
2456                                         state: "default" 0.0;
2457                                 }
2458                         }
2459                         part {
2460                                 name: "over2";
2461                                 mouse_events: 1;
2462                                 repeat_events: 1;
2463                                 description {
2464                                         state: "default" 0.0;
2465                                 }
2466                         }
2467                         part {
2468                                 name: "disclip";
2469                                 type: RECT;
2470                                 description {
2471                                         state: "default" 0.0;
2472                                         visible: 0;
2473                                 }
2474                                 description {
2475                                         state: "disabled" 0.0;
2476                                         visible: 1;
2477                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2478                                 }
2479                         }
2480                 }
2481                 programs {
2482                         program {
2483                                 name: "item_unclick";
2484                                 signal: "mouse,up,1";
2485                                 source: "over1";
2486                                 action: SIGNAL_EMIT "elm,action,click" "";
2487                         }
2488                         program {
2489                                 name: "disable";
2490                                 signal: "elm,state,disabled";
2491                                 source: "elm";
2492                                 action: STATE_SET "disabled" 0.0;
2493                                 target: "disclip";
2494                         }
2495                         program {
2496                                 name: "enable";
2497                                 signal: "elm,state,enabled";
2498                                 source: "elm";
2499                                 action: STATE_SET "default" 0.0;
2500                                 target: "disclip";
2501                         }
2502                         program {
2503                                 name: "item_click2";
2504                                 signal: "mouse,down,1";
2505                                 source: "over2";
2506                                 script {
2507                                         set_state(PART:"elm.text", "clicked", 0.0);
2508                                         set_state(PART:"bg", "clicked", 0.0);
2509                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2510                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2511                                 }
2512                         }
2513                         program {
2514                                 name: "item_unclick2";
2515                                 signal: "mouse,up,1";
2516                                 source: "over2";
2517                                 script {
2518                                         set_state(PART:"elm.text", "default", 0.0);
2519                                         set_state(PART:"bg", "default", 0.0);
2520                                         set_state(PART:"left_bg_padding", "default", 0.0);
2521                                         set_state(PART:"right_bg_padding", "default", 0.0);
2522                                 }
2523                         }
2524                         program {
2525                                 name: "default";
2526                                 signal: "elm,state,default";
2527                                 source: "elm";
2528                                 script {
2529                                         set_state(PART:"left_separator", "default", 0.0);
2530                                         set_state(PART:"right_separator", "default", 0.0);
2531                                 }
2532                         }
2533                         program {
2534                                 name: "vertical";
2535                                 signal: "elm,state,vertical";
2536                                 source: "elm";
2537                                 script {
2538                                         set_state(PART:"left_separator", "vertical", 0.0);
2539                                         set_state(PART:"right_separator", "vertical", 0.0);
2540                                 }
2541                         }
2542                         program {
2543                                 name: "horizontal";
2544                                 signal: "elm,state,horizontal";
2545                                 source: "elm";
2546                                 script {
2547                                         set_state(PART:"left_separator", "horizontal", 0.0);
2548                                         set_state(PART:"right_separator", "horizontal", 0.0);
2549                                 }
2550                         }
2551                 }
2552         }
2553 ///////////////////////////////////////////////////////////////////////////////
2554         group {
2555                 name: "elm/ctxpopup/icon_style_item/extended/entry";
2556                 images {
2557                         image: "copy&paste_press_center.png" COMP;
2558                         image: "copy&paste_press_left.png" COMP;
2559                         image: "copy&paste_press_right.png" COMP;
2560                 }
2561                 parts {
2562                         part {
2563                                 name: "event_blocker";
2564                                 mouse_events: 1;
2565                                 description {
2566                                         state: "default" 0.0;
2567                                         color: 0 0 0 0;
2568                                 }
2569                         }
2570                         CTXPOPUP_ENTRY_ITEM_BG_PART
2571                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2572                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2573                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2574                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2575                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2576                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
2577                         part {
2578                                 name: "elm.swallow.icon";
2579                                 type: SWALLOW;
2580                                 scale: 1;
2581                                 description {
2582                                         state: "default" 0.0;
2583                                         min: 36 36;
2584                                         max: 36 36;
2585                                         fixed: 0 1;
2586                                         align: 0.5 0.5;
2587 //                                      aspect: 1.0 1.0;
2588                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2589                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2590                                 }
2591                         }
2592                         part {
2593                                 name: "elm.swallow.icon.paint";
2594                                 type: RECT;
2595                                 scale: 1;
2596                                 description {
2597                                         state: "default" 0.0;
2598                                         visible: 0;
2599                                         color: 255 255 0 255;
2600                                         rel1 { to: "elm.swallow.icon"; }
2601                                         rel2 { to: "elm.swallow.icon"; }
2602                                 }
2603                         }
2604                         part {
2605                                 name: "over1";
2606                                 mouse_events: 1;
2607                                 repeat_events: 1;
2608                                 ignore_flags: ON_HOLD;
2609                                 description {
2610                                         state: "default" 0.0;
2611                                 }
2612                         }
2613                         part {
2614                                 name: "over2";
2615                                 mouse_events: 1;
2616                                 repeat_events: 1;
2617                                 description {
2618                                         state: "default" 0.0;
2619                                 }
2620                         }
2621                         part {
2622                                 name: "disclip";
2623                                 type: RECT;
2624                                 description {
2625                                         state: "default" 0.0;
2626                                         visible: 0;
2627                                 }
2628                                 description {
2629                                         state: "disabled" 0.0;
2630                                         visible: 1;
2631                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2632                                 }
2633                         }
2634                 }
2635                 programs {
2636                         program {
2637                                 name: "item_unclick";
2638                                 signal: "mouse,up,1";
2639                                 source: "over1";
2640                                 action: SIGNAL_EMIT "elm,action,click" "";
2641                         }
2642                         program {
2643                                 name: "disable";
2644                                 signal: "elm,state,disabled";
2645                                 source: "elm";
2646                                 action: STATE_SET "disabled" 0.0;
2647                                 target: "disclip";
2648                         }
2649                         program {
2650                                 name: "item_click2";
2651                                 signal: "mouse,down,1";
2652                                 source: "over2";
2653                                 script {
2654                                         set_state(PART:"bg", "clicked", 0.0);
2655                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2656                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2657                                 }
2658                         }
2659                         program {
2660                                 name: "item_unclick2";
2661                                 signal: "mouse,up,1";
2662                                 source: "over2";
2663                                 script {
2664                                         set_state(PART:"bg", "default", 0.0);
2665                                         set_state(PART:"left_bg_padding", "default", 0.0);
2666                                         set_state(PART:"right_bg_padding", "default", 0.0);
2667                                 }
2668                         }
2669                         program {
2670                                 name: "default";
2671                                 signal: "elm,state,default";
2672                                 source: "elm";
2673                                 script {
2674                                         set_state(PART:"left_separator", "default", 0.0);
2675                                         set_state(PART:"right_separator", "default", 0.0);
2676                                 }
2677                         }
2678                         program {
2679                                 name: "vertical";
2680                                 signal: "elm,state,vertical";
2681                                 source: "elm";
2682                                 script {
2683                                         set_state(PART:"left_separator", "vertical", 0.0);
2684                                         set_state(PART:"right_separator", "vertical", 0.0);
2685                                 }
2686                         }
2687                         program {
2688                                 name: "horizontal";
2689                                 signal: "elm,state,horizontal";
2690                                 source: "elm";
2691                                 script {
2692                                         set_state(PART:"left_separator", "horizontal", 0.0);
2693                                         set_state(PART:"right_separator", "horizontal", 0.0);
2694                                 }
2695                         }
2696                 }
2697         }
2698
2699 ///////////////////////////////////////////////////////////////////////////////////////
2700 #define CTXPOPUP_IE_FONT_COLOR 255 255 255 255
2701 #define CTXPOPUP_IE_CLICKED_FONT_COLOR 255 255 100 255
2702 #define CTXPOPUP_IE_SEPARATOR_COLOR 120 120 120 255
2703 #define CTXPOPUP_IE_ITEM_DISABLED_COLOR 200 200 200 127
2704 #define CTXPOPUP_IE_SEPARATOR_PADDING_SIZE 6 2
2705 ///////////////////////////////////////////////////////////////////////////////
2706 group {
2707         name: "elm/ctxpopup/base/extended/imageeditor";
2708         images {
2709                 image: "imageeditor_bg.png" COMP;
2710         }
2711         parts {
2712                 part {
2713                         name: "ctxpopup_frame";
2714                         type: IMAGE;
2715                         scale: 1;
2716                         description {
2717                                 image {
2718                                         normal: "imageeditor_bg.png";
2719                                         border: 10 10 10 10;
2720                                         border_scale: 1;
2721                                 }
2722                         }
2723                 }
2724                 part {
2725                         name: "elm.swallow.content";
2726                         type: SWALLOW;
2727                         description {
2728                                 state: "default" 0.0;
2729                         }
2730                 }//part
2731         }//parts
2732 }
2733 ///////////////////////////////////////////////////////////////////////////////
2734 group { name: "elm/ctxpopup/arrow/extended/imageeditor";
2735         images {
2736                 image: "imageeditor_left_arrow.png" COMP;
2737                 image: "imageeditor_right_arrow.png" COMP;
2738                 image: "imageeditor_top_arrow.png" COMP;
2739                 image: "imageeditor_bottom_arrow.png" COMP;
2740         }
2741         parts {
2742                 part {
2743                         name: "ctxpopup_arrow";
2744                         type: IMAGE;
2745                         scale: 1;
2746                         description {
2747                                 state: "default" 0.0;
2748                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2749                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2750                                 fixed: 1 1;
2751                                 visible: 0;
2752                                 align: 0.5 0.5;
2753                         }
2754                         description {
2755                                 state: "left" 0.0;
2756                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2757                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2758                                 fixed: 1 1;
2759                                 align: 0.0 0.5;
2760                                 image {
2761                                         normal: "imageeditor_left_arrow.png";
2762                                 }
2763                         }
2764                         description {
2765                                 state: "right" 0.0;
2766                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2767                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2768                                 fixed: 1 1;
2769                                 align: 1.0 0.5;
2770                                 image {
2771                                         normal: "imageeditor_right_arrow.png";
2772                                 }
2773                         }
2774                         description {
2775                                 state: "top" 0.0;
2776                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2777                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2778                                 fixed: 1 1;
2779                                 align: 0.5 0.0;
2780                                 image {
2781                                         normal: "imageeditor_top_arrow.png";
2782                                 }
2783                         }
2784                         description {
2785                                 state: "bottom" 0.0;
2786                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2787                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2788                                 fixed: 1 1;
2789                                 align: 0.5 1.0;
2790                                 image {
2791                                         normal: "imageeditor_bottom_arrow.png";
2792                                 }
2793                         }
2794                 }
2795         }
2796         programs {
2797                 program {
2798                         name: "enable_left_arrow";
2799                         signal: "elm,state,left";
2800                         source: "elm";
2801                         action: STATE_SET "left" 0.0;
2802                         target: "ctxpopup_arrow";
2803                 }
2804                 program {
2805                         name: "enable_right_arrow";
2806                         signal: "elm,state,right";
2807                         source: "elm";
2808                         action: STATE_SET "right" 0.0;
2809                         target: "ctxpopup_arrow";
2810                 }
2811                 program {
2812                         name: "enable_top_arrow";
2813                         signal: "elm,state,top";
2814                         source: "elm";
2815                         action: STATE_SET "top" 0.0;
2816                         target: "ctxpopup_arrow";
2817                 }
2818                 program {
2819                         name: "enable_bottom_arrow";
2820                         signal: "elm,state,bottom";
2821                         source: "elm";
2822                         action: STATE_SET "bottom" 0.0;
2823                         target: "ctxpopup_arrow";
2824                 }
2825         }
2826 }
2827 ///////////////////////////////////////////////////////////////////////////////
2828 group {
2829         name: "elm/ctxpopup/icon_text_style_item/extended/imageeditor";
2830         images {
2831                 image: "imageeditor_bar_press.png" COMP;
2832         }
2833
2834         parts {
2835                 part {
2836                         name: "event_blocker";
2837                         mouse_events: 1;
2838                         description {
2839                                 state: "default" 0.0;
2840                         }
2841                 }
2842
2843                 part {
2844                         name: "bg";
2845                         mouse_events: 0;
2846                         type: IMAGE;
2847                         description {
2848                                 state: "default" 0.0;
2849                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2850                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2851                                 visible: 0;
2852                         }
2853                         description {
2854                                 state: "clicked" 0.0;
2855                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2856                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2857                                 image {
2858                                         normal: "imageeditor_bar_press.png";
2859                                         border: 10 10 10 10;
2860                                         border_scale: 1;
2861                                 }
2862                         }
2863                 }
2864
2865                 part {
2866                         name: "icon_left_padding";
2867                         type: RECT;
2868                         scale: 1;
2869                         mouse_events: 0;
2870                         description {
2871                                 state: "default" 0.0;
2872                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2873                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2874                                 align: 0 0;
2875                                 fixed: 1 1;
2876                                 visible: 0;
2877                         }
2878                 }
2879                 part {
2880                         name: "separator_left_top_padding";
2881                         type: RECT;
2882                         scale: 1;
2883                 description {
2884                                 state: "default" 0.0;
2885                                 visible: 0;
2886                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2887                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2888                                 align: 0 0;
2889                                 fixed: 1 1;
2890                         }
2891                 }
2892                 part {
2893                         name: "separator_right_top_padding";
2894                         type: RECT;
2895                         scale: 1;
2896                 description {
2897                                 state: "default" 0.0;
2898                                 visible: 0;
2899                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2900                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2901                                 align: 1 0;
2902                                 fixed: 1 1;
2903                         }
2904                 }
2905                 part {
2906                         name: "separator_left_bottom_padding";
2907                         type: RECT;
2908                         scale: 1;
2909                 description {
2910                                 state: "default" 0.0;
2911                                 visible: 0;
2912                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2913                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2914                                 align: 0 1;
2915                                 fixed: 1 1;
2916                         }
2917                 }
2918                 part {
2919                         name: "separator_right_bottom_padding";
2920                         type: RECT;
2921                         scale: 1;
2922                 description {
2923                                 state: "default" 0.0;
2924                                 visible: 0;
2925                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2926                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2927                                 align: 1 1;
2928                                 fixed: 1 1;
2929                         }
2930                 }
2931
2932                 part {
2933                         name: "bottom_separator";
2934                         mouse_events: 0;
2935                         type: RECT;
2936                         scale: 1;
2937                         description {
2938                                 state: "default" 0.0;
2939                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2940                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2941                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2942                         }
2943                 }
2944                 part {
2945                         name: "elm.swallow.icon";
2946                         type: SWALLOW;
2947                         scale: 1;
2948                         description {
2949                                 state: "default" 0.0;
2950                                 min: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2951                                 max: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2952                                 align: 0 0.5;
2953                                 aspect: 1.0 1.0;
2954                                 rel1 { to:"icon_left_padding"; relative: 1 0; }
2955                         }
2956                 }
2957                 part {
2958                         name: "icon_right_padding";
2959                         type: RECT;
2960                         scale: 1;
2961                         mouse_events: 0;
2962                         description {
2963                                 state: "default" 0.0;
2964                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2965                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2966                                 align: 0 0.5;
2967                                 fixed: 1 1;
2968                                 visible: 0;
2969                                 rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2970                         }
2971                 }
2972                 part {
2973                         name: "elm.text";
2974                         type:  TEXT;
2975                         mouse_events:  0;
2976                         scale: 1;
2977                         description {
2978                                 state: "default" 0.0;
2979                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2980                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_IE_ITEM_PADDING_INC)-CTXPOPUP_IE_ICON_WIDTH_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
2981                                 fixed: 0 1;
2982                                 align: 0.5 0.5;
2983                                 rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
2984                                 rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
2985                                 color: CTXPOPUP_IE_FONT_COLOR;
2986                                 text {
2987                                         font: FONT_ROM;
2988                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
2989                                         align: 0.0 0.5;
2990                                         min: 1 1;
2991                                 }
2992                         }
2993                         description {
2994                                 state: "clicked" 0.0;
2995                                 inherit: "default" 0.0;
2996                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2997                         }
2998                 }
2999                 part {
3000                         name: "text_right_padding";
3001                         type: RECT;
3002                         scale: 1;
3003                         mouse_events: 0;
3004                         description {
3005                                 state: "default" 0.0;
3006                                 visible: 0;
3007                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3008                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3009                                 fixed: 1 0;
3010                                 align: 1.0 0.5;
3011                 }
3012                 }
3013                 part {
3014                         name: "over1";
3015                         mouse_events: 1;
3016                         repeat_events: 1;
3017                         ignore_flags: ON_HOLD;
3018                         description {
3019                                 state: "default" 0.0;
3020                         }
3021                 }
3022                 part {
3023                         name: "over2";
3024                         mouse_events: 1;
3025                         repeat_events: 1;
3026                         description {
3027                                 state: "default" 0.0;
3028                         }
3029                 }
3030                 part {
3031                         name: "disclip";
3032                         type: RECT;
3033                         description {
3034                                 state: "default" 0.0;
3035                                 visible: 0;
3036                         }
3037                         description {
3038                                 state: "disabled" 0.0;
3039                                 visible: 1;
3040                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
3041                         }
3042                 }
3043         }
3044         programs {
3045                 program {
3046                         name: "item_unclick";
3047                         signal: "mouse,up,1";
3048                         source: "over1";
3049                         action: SIGNAL_EMIT "elm,action,click" "";
3050                 }
3051                 program {
3052                         name: "disable";
3053                         signal: "elm,state,disabled";
3054                         source: "elm";
3055                         action: STATE_SET "disabled" 0.0;
3056                         target: "disclip";
3057                 }
3058                 program {
3059                         name: "enable";
3060                         signal: "elm,state,enabled";
3061                         source: "elm";
3062                         action: STATE_SET "default" 0.0;
3063                         target: "disclip";
3064                 }
3065                 program {
3066                         name: "item_click2";
3067                         signal: "mouse,down,1";
3068                         source: "over2";
3069                         script {
3070                                 set_state(PART:"elm.text", "clicked", 0.0);
3071                         }
3072                 }
3073                 program {
3074                         name: "item_unclick2";
3075                         signal: "mouse,up,1";
3076                         source: "over2";
3077                         script {
3078                                 set_state(PART:"elm.text", "default", 0.0);
3079                         }
3080                 }
3081         }
3082 }
3083 ///////////////////////////////////////////////////////////////////////////////////////
3084 group {
3085         name: "elm/ctxpopup/text_style_item/extended/imageeditor";
3086         images {
3087                 image: "imageeditor_bar_press.png" COMP;
3088         }
3089
3090         parts {
3091                 part {
3092                         name: "separator_left_padding";
3093                         type: RECT;
3094                         scale: 1;
3095                 description {
3096                                 state: "default" 0.0;
3097                                 visible: 0;
3098                                 min: 2 2;
3099                                 max: 2 2;
3100                                 align: 0 1;
3101                                 fixed: 1 1;
3102                         }
3103                 }
3104                 part {
3105                         name: "bg";
3106                         mouse_events: 0;
3107                         type: IMAGE;
3108                         description {
3109                         state: "default" 0.0;
3110                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
3111                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3112                         visible: 0;
3113                         }
3114                         description {
3115                                 state: "clicked" 0.0;
3116                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
3117                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3118                         image {
3119                                         normal: "imageeditor_bar_press.png";
3120                                         border: 10 10 10 10;
3121                                         border_scale: 1;
3122                                 }
3123                         }
3124                 }
3125                 part {
3126                         name: "separator_left_top_padding";
3127                         type: RECT;
3128                         scale: 1;
3129                         description {
3130                                 state: "default" 0.0;
3131                                 visible: 0;
3132                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3133                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3134                                 align: 0 0;
3135                                 fixed: 1 1;
3136                         }
3137                 }
3138                 part {
3139                         name: "separator_right_top_padding";
3140                         type: RECT;
3141                         scale: 1;
3142                         description {
3143                                 state: "default" 0.0;
3144                                 visible: 0;
3145                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3146                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3147                                 align: 1 0;
3148                                 fixed: 1 1;
3149                         }
3150                 }
3151                 part {
3152                         name: "separator_left_bottom_padding";
3153                         type: RECT;
3154                         scale: 1;
3155                         description {
3156                                 state: "default" 0.0;
3157                                 visible: 0;
3158                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3159                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3160                                 align: 0 1;
3161                                 fixed: 1 1;
3162                         }
3163                 }
3164                 part {
3165                         name: "separator_right_bottom_padding";
3166                         type: RECT;
3167                         scale: 1;
3168                         description {
3169                                 state: "default" 0.0;
3170                                 visible: 0;
3171                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3172                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3173                                 align: 1 1;
3174                                 fixed: 1 1;
3175                         }
3176                 }
3177
3178                 part {
3179                         name: "bottom_separator";
3180                         mouse_events: 0;
3181                         type: RECT;
3182                         scale: 1;
3183                         description {
3184                                 state: "default" 0.0;
3185                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
3186                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
3187                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3188                         }
3189                 }
3190                 part {
3191                         name: "left_padding";
3192                         type: RECT;
3193                         scale: 1;
3194                         mouse_events: 0;
3195                         description {
3196                                 state: "default" 0.0;
3197                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3198                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3199                                 align: 0 0.5;
3200                                 fixed: 1 1;
3201                                 visible: 0;
3202                         }
3203                 }
3204                 part {
3205                         name: "elm.text";
3206                         type:  TEXT;
3207                         mouse_events:  0;
3208                         scale: 1;
3209                         description {
3210                                 state: "default" 0.0;
3211                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3212                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_IE_ITEM_PADDING_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
3213                                 fixed: 0 1;
3214                                 align: 0.5 0.5;
3215                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3216                                 rel2 {relative: 0.0 1.0; to: "right_padding";}
3217                                 color: CTXPOPUP_IE_FONT_COLOR;
3218                                 text {
3219                                         font: FONT_ROM;
3220                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
3221                                         align: 0.5 0.5;
3222                                         min: 1 1;
3223                                 }
3224                         }
3225                         description {
3226                                 state: "clicked" 0.0;
3227                                 inherit: "default" 0.0;
3228                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
3229                         }
3230                 }
3231                 part {
3232                         name: "right_padding";
3233                         scale: 1;
3234                         mouse_events: 0;
3235                         description {
3236                                 state: "default" 0.0;
3237                                 visible: 0;
3238                                 min: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3239                                 max: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3240                                 fixed: 1 0;
3241                                 align: 1.0 0.5;
3242                         }
3243                 }
3244                 part {
3245                         name: "over1";
3246                         mouse_events: 1;
3247                         repeat_events: 1;
3248                         ignore_flags: ON_HOLD;
3249                         description {
3250                                 state: "default" 0.0;
3251                         }
3252                 }
3253                 part {
3254                         name: "over2";
3255                         mouse_events: 1;
3256                         repeat_events: 1;
3257                         description {
3258                                 state: "default" 0.0;
3259                         }
3260                 }
3261                 part {
3262                         name: "disclip";
3263                         type: RECT;
3264                         description {
3265                                 state: "default" 0.0;
3266                                 visible: 0;
3267                         }
3268                         description {
3269                                 state: "disabled" 0.0;
3270                                 visible: 1;
3271                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
3272                         }
3273                 }
3274
3275         }
3276
3277         programs {
3278                 program {
3279                         name: "item_unclick";
3280                         signal: "mouse,up,1";
3281                         source: "over1";
3282                         action: SIGNAL_EMIT "elm,action,click" "";
3283                 }
3284                 program {
3285                         name: "disable";
3286                         signal: "elm,state,disabled";
3287                         source: "elm";
3288                         action: STATE_SET "disabled" 0.0;
3289                         target: "disclip";
3290                 }
3291                 program {
3292                         name: "enable";
3293                         signal: "elm,state,enabled";
3294                         source: "elm";
3295                         action: STATE_SET "default" 0.0;
3296                         target: "disclip";
3297                 }
3298
3299                 program {
3300                         name: "item_click2";
3301                         signal: "mouse,down,1";
3302                         source: "over2";
3303                         script {
3304                                 set_state(PART:"elm.text", "clicked", 0.0);
3305                         }
3306                 }
3307                 program {
3308                         name: "item_unclick2";
3309                         signal: "mouse,up,1";
3310                         source: "over2";
3311                         script {
3312                                 set_state(PART:"elm.text", "default", 0.0);
3313                         }
3314                 }
3315         }
3316 }
3317
3318 ///////////////////////////////////////////////////////////////////////////////////////
3319 #define CTXPOPUP_TP_TEXT_WIDTH 32
3320 #define CTXPOPUP_TP_PADDING 15
3321 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
3322 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
3323 #define CTXPOPUP_TP_FONT_SIZE 24
3324 ///////////////////////////////////////////////////////////////////////////////
3325 group {
3326         name: "elm/ctxpopup/base/datetime/default";
3327         alias: "elm/ctxpopup/base/timepicker";
3328         parts {
3329                 part {
3330                         name: "ctxpopup_frame";
3331                         type: RECT;
3332                         scale: 1;
3333                         description {
3334                                 color: CTXPOPUP_TP_BG_COLOR_INC;
3335                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
3336                                 rel1 { to: "elm.swallow.content"; }
3337                                 rel2 { to: "elm.swallow.content"; }
3338                         }
3339                 }
3340                 part {
3341                         name: "elm.swallow.content";
3342                         type: SWALLOW;
3343                         scale: 1;
3344                         description {
3345                                 state: "default" 0.0;
3346                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
3347                         }
3348                 }
3349                 part { name: "arrow_area_left";
3350                                 type: RECT;
3351                                 mouse_events: 0;
3352                                 scale: 1;
3353                                 description { state: "default" 0.0;
3354                                         visible: 0;
3355                                         min: 20 0;
3356                                         fixed: 1 1;
3357                                         align: 1 0.5;
3358                                         rel1 {
3359                                                 relative: 0 0;
3360                                                 to_y: "ctxpopup_frame";
3361                                         }
3362                                         rel2 {
3363                                                 relative:0 1;
3364                                                 to:"ctxpopup_frame";
3365                                         }
3366                                 }
3367                         }
3368                         part { name: "arrow_area_right";
3369                                 type: RECT;
3370                                 mouse_events: 0;
3371                                 scale: 1;
3372                                 description { state: "default" 0.0;
3373                                         visible: 0;
3374                                         min: 20 0;
3375                                         fixed: 1 1;
3376                                         align: 0 0.5;
3377                                         rel1 {
3378                                                 relative: 1 0;
3379                                                 to:"ctxpopup_frame";
3380                                         }
3381                                         rel2 {
3382                                                 relative: 1 1;
3383                                                 to_y: "ctxpopup_frame";
3384                                         }
3385                                 }
3386                         }
3387                         part { name: "arrow_area_up";
3388                                 type: RECT;
3389                                 mouse_events: 0;
3390                                 scale: 1;
3391                                 description { state: "default" 0.0;
3392                                         visible: 0;
3393                                         min: 0 20;
3394                                         fixed: 1 1;
3395                                         align: 0.5 1;
3396                                         rel1 {
3397                                                 relative: 0 0;
3398                                                 to_x: "ctxpopup_frame";
3399                                         }
3400                                         rel2 {
3401                                                 relative: 1 0;
3402                                                 to:"ctxpopup_frame";
3403                                         }
3404                                 }
3405                         }
3406                         part { name: "arrow_area_down";
3407                                 type: RECT;
3408                                 mouse_events: 0;
3409                                 scale: 1;
3410                                 description { state: "default" 0.0;
3411                                         visible: 0;
3412                                         min: 0 20;
3413                                         fixed: 1 1;
3414                                         align: 0.5 0;
3415                                         rel1 {
3416                                                 relative: 0 1;
3417                                                 to:"ctxpopup_frame";
3418                                         }
3419                                         rel2 {
3420                                                 relative: 1 1;
3421                                                 to_x: "ctxpopup_frame";
3422                                         }
3423                                 }
3424                         }
3425                         part { name: "elm.swallow.arrow_up";
3426                                 type: SWALLOW;
3427                                 mouse_events: 0;
3428                                 scale: 1;
3429                                 dragable {
3430                                         x: 1 1 0;
3431                                         y: 1 1 0;
3432                                         confine: "arrow_area_up";
3433                                 }
3434                                 description {
3435                                         state: "default" 0.0;
3436                                         min: 20 20;
3437                                         fixed: 1 1;
3438                                         visible: 1;
3439                                 }
3440                         }
3441                         part { name: "elm.swallow.arrow_down";
3442                                 type: SWALLOW;
3443                                 mouse_events: 0;
3444                                 scale: 1;
3445                                 dragable {
3446                                         x: 1 1 0;
3447                                         y: 1 1 0;
3448                                         confine: "arrow_area_down";
3449                                 }
3450                                 description {
3451                                         state: "default" 0.0;
3452                                         min: 20 20;
3453                                         fixed: 1 1;
3454                                         visible: 1;
3455                                 }
3456                         }
3457                         part { name: "elm.swallow.arrow_left";
3458                                 type: SWALLOW;
3459                                 mouse_events: 0;
3460                                 scale: 1;
3461                                 dragable {
3462                                         x: 1 1 0;
3463                                         y: 1 1 0;
3464                                         confine: "arrow_area_left";
3465                                 }
3466                                 description {
3467                                         state: "default" 0.0;
3468                                         min: 20 20;
3469                                         fixed: 1 1;
3470                                         visible: 1;
3471                                 }
3472                         }
3473                         part { name: "elm.swallow.arrow_right";
3474                                 type: SWALLOW;
3475                                 mouse_events: 0;
3476                                 scale: 1;
3477                                 dragable {
3478                                         x: 1 1 0;
3479                                         y: 1 1 0;
3480                                         confine: "arrow_area_right";
3481                                 }
3482                                 description {
3483                                         state: "default" 0.0;
3484                                         min: 20 20;
3485                                         fixed: 1 1;
3486                                         visible: 1;
3487                                 }
3488                         }
3489         }
3490 }
3491 ///////////////////////////////////////////////////////////////////////////////
3492 group { name: "elm/ctxpopup/arrow/datetime/default";
3493         alias: "elm/ctxpopup/arrow/timepicker";
3494         images {
3495                 image: "timepicker_left_arrow.png" COMP;
3496                 image: "timepicker_right_arrow.png" COMP;
3497                 image: "timepicker_top_arrow.png" COMP;
3498                 image: "timepicker_bottom_arrow.png" COMP;
3499         }
3500         parts {
3501                 part {
3502                         name: "ctxpopup_arrow";
3503                         type: IMAGE;
3504                         scale: 1;
3505                         description {
3506                                 state: "default" 0.0;
3507                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3508                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3509                                 fixed: 1 1;
3510                                 visible: 0;
3511                                 align: 0.5 0.5;
3512                         }
3513                         description {
3514                                 state: "left" 0.0;
3515                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3516                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3517                                 fixed: 1 1;
3518                                 align: 1.0 0.5;
3519                                 image {
3520                                         normal: "timepicker_left_arrow.png";
3521                                 }
3522                         }
3523                         description {
3524                                 state: "right" 0.0;
3525                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3526                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3527                                 fixed: 1 1;
3528                                 align: 0.0 0.5;
3529                                 image {
3530                                         normal: "timepicker_right_arrow.png";
3531                                 }
3532                         }
3533                         description {
3534                                 state: "top" 0.0;
3535                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3536                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3537                                 fixed: 1 1;
3538                                 align: 0.5 1.0;
3539                                 image {
3540                                         normal: "timepicker_top_arrow.png";
3541                                 }
3542                         }
3543                         description {
3544                                 state: "bottom" 0.0;
3545                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3546                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3547                                 fixed: 1 1;
3548                                 align: 0.5 0.0;
3549                                 image {
3550                                         normal: "timepicker_bottom_arrow.png";
3551                                 }
3552                         }
3553                 }
3554         }
3555         programs {
3556                 program {
3557                         name: "enable_left_arrow";
3558                         signal: "elm,state,left";
3559                         source: "elm";
3560                         action: STATE_SET "left" 0.0;
3561                         target: "ctxpopup_arrow";
3562                 }
3563                 program {
3564                         name: "enable_right_arrow";
3565                         signal: "elm,state,right";
3566                         source: "elm";
3567                         action: STATE_SET "right" 0.0;
3568                         target: "ctxpopup_arrow";
3569                 }
3570                 program {
3571                         name: "enable_top_arrow";
3572                         signal: "elm,state,top";
3573                         source: "elm";
3574                         action: STATE_SET "top" 0.0;
3575                         target: "ctxpopup_arrow";
3576                 }
3577                 program {
3578                         name: "enable_bottom_arrow";
3579                         signal: "elm,state,bottom";
3580                         source: "elm";
3581                         action: STATE_SET "bottom" 0.0;
3582                         target: "ctxpopup_arrow";
3583                 }
3584         }
3585 }
3586 ///////////////////////////////////////////////////////////////////////////////
3587 group {
3588         name: "elm/ctxpopup/text_style_item/datetime/default";
3589         alias: "elm/ctxpopup/text_style_item/timepicker";
3590         parts {
3591                 part {
3592                         name: "left_padding";
3593                         type: RECT;
3594                         scale: 1;
3595                         mouse_events: 0;
3596                         description {
3597                                 state: "default" 0.0;
3598                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3599                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3600                                 align: 0 0.5;
3601                                 fixed: 1 1;
3602                                 visible: 0;
3603                         }
3604                 }
3605                 part {
3606                         name: "elm.text";
3607                         type:  TEXT;
3608                         mouse_events:  0;
3609                         scale: 1;
3610                         description {
3611                                 state: "default" 0.0;
3612                                 min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3613                                 max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3614                                 fixed: 1 1;
3615                                 align: 0 0;
3616                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3617                                 color: CTXPOPUP_TP_FONT_COLOR;
3618                                 text {
3619                                         font: FONT_ROM;
3620                                         size: CTXPOPUP_TP_FONT_SIZE;
3621                                         align: 0.5 0.5;
3622                                         min: 1 1;
3623                                 }
3624                         }
3625                         description {
3626                                 state: "clicked" 0.0;
3627                                 inherit: "default" 0.0;
3628                                 color: 255 255 255 255;
3629                         }
3630                 }
3631                 part {
3632                         name: "right_padding";
3633                         scale: 1;
3634                         mouse_events: 0;
3635                         description {
3636                                 state: "default" 0.0;
3637                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3638                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3639                                 align: 0 0;
3640                         rel1 {relative: 1.0 0.0; to: "elm.text";}
3641                                 visible: 0;
3642         }
3643                 }
3644                 part {
3645                         name: "over1";
3646                         mouse_events: 1;
3647                         repeat_events: 1;
3648                         ignore_flags: ON_HOLD;
3649                         description {
3650                                 state: "default" 0.0;
3651                         }
3652                 }
3653                 part {
3654                         name: "over2";
3655                         mouse_events: 1;
3656                         repeat_events: 1;
3657                         description {
3658                                 state: "default" 0.0;
3659                         }
3660                 }
3661         }
3662
3663         programs {
3664                 program {
3665                         name: "item_unclick";
3666                         signal: "mouse,up,1";
3667                         source: "over1";
3668                         action: SIGNAL_EMIT "elm,action,click" "";
3669                 }
3670                 program {
3671                         name: "item_click";
3672                         signal: "mouse,down,1";
3673                         source: "over2";
3674                         script {
3675                                 set_state(PART:"elm.text", "clicked", 0.0);
3676                         }
3677                 }
3678                 program {
3679                         name: "item_unclick2";
3680                         signal: "mouse,up,1";
3681                         source: "over2";
3682                         script {
3683                                 set_state(PART:"elm.text", "default", 0.0);
3684                         }
3685                 }
3686         }
3687 }