[*][ctxpopup] compress item
[profile/ivi/efl-theme-tizen.git] / themes / groups / ctxpopup.edc
1 /*
2  *  nbeat-theme
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
7  * 
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  * 
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 ///////////////////////////////////////////////////////////////////////////////////////
25 //
26 // ctxpopup
27 //
28 ///////////////////////////////////////////////////////////////////////////////////////
29
30 #define CTXPOPUP_SHADOW_PADDING 10
31 #define CTXPOPUP_FRAME_CORNER_SIZE 4 4
32 #define CTXPOPUP_FONT_COLOR 0 0 0 255
33 #define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
34 #define CTXPOPUP_ITEM_DISABLED_COLOR 200 200 200 127
35 #define CTXPOPUP_LIST_PADDING 10
36 #define CTXPOPUP_LIST_SHADOW_PADDING 3
37
38 ///////////////////////////////////////////////////////////////////////////////
39         group {
40                 name: "elm/scroller/base/ctxpopup";
41                 script {
42                         public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
43                         public timer0(val) {
44                                 new v;
45                         v = get_int(sbvis_v);
46                         if (v) {
47                                 v = get_int(sbalways_v);
48                                 if(!v) {
49                                         emit("do-hide-vbar", "");
50                                         set_int(sbvis_v, 0);
51                                 }
52                         }
53                         v = get_int(sbvis_h);
54                         if (v) {
55                                 v = get_int(sbalways_h);
56                                 if(!v) {
57                                         emit("do-hide-hbar", "");
58                                         set_int(sbvis_h, 0);
59                                 }
60                         }
61                         set_int(sbvis_timer, 0);
62                         return 0;
63                         }
64                 }
65                 images {
66                         image: "01_scroller.png" COMP;
67                 }
68                 parts {
69                         part {
70                                 name: "clipper";
71                                 type: RECT;
72                                 mouse_events: 0;
73                                 scale: 1;
74                                 description {
75                                         state: "default" 0.0;
76                                 }
77                         }
78                         part {
79                                 name: "elm.swallow.content";
80                                 clip_to: "clipper";
81                                 type: SWALLOW;
82                                 scale: 1;
83                                 description {
84                                         state: "default" 0.0;
85                                         align: 0.5 0.5;
86                                 }
87                         }
88                         part {
89                                 name: "sb_vbar_clip_master";
90                                 type: RECT;
91                                 mouse_events: 0;
92                                 description {
93                                         state: "default" 0.0;
94                                 }
95                                 description {
96                                         state: "hidden" 0.0;
97                                         visible: 0;
98                                         color: 255 255 255 0;
99                                 }
100                         }
101                         part {
102                                 name: "sb_vbar_clip";
103                                 clip_to:"sb_vbar_clip_master";
104                                 type: RECT;
105                                 mouse_events: 0;
106                                 scale: 1;
107                                 description {
108                                         state: "default" 0.0;
109                                         align: 0.0 0.0;
110                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
111                                 }
112                                 description {
113                                         state: "hidden" 0.0;
114                                         visible: 0;
115                                         color: 255 255 255 0;
116                                 }
117                         }
118                         part {
119                                 name: "sb_vbar";
120                                 type: RECT;
121                                 mouse_events: 0;
122                                 scale: 1;
123                                 description {
124                                         state: "default" 0.0;
125                                         fixed: 1 1;
126                                         visible: 0;
127                                         align: 1.0 0.0;
128                                         rel1{ to:"clipper"; relative: 1.0 0.0; }
129                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
130                                 }
131                         }
132                         part {
133                                 name: "elm.dragable.vbar";
134                                 clip_to: "sb_vbar_clip";
135                                 mouse_events: 0;
136                                 scale: 1;
137                                 dragable {
138                                         x: 0 0 0;
139                                         y: 1 1 0;
140                                         confine: "sb_vbar";
141                                 }
142                                 description {
143                                         state: "default" 0.0;
144                                         fixed: 1 1;
145                                         min: 14 32;
146                                         rel1 {
147                                                 relative: 0.5  0.5;
148                                                 to: "sb_vbar";
149                                         }
150                                         rel2 {
151                                                 relative: 0.5  0.5;
152                                                 to: "sb_vbar";
153                                         }
154                                         image {
155                                                 normal: "01_scroller.png";
156                                                 border: 0 0 6 6;
157                                                 border_scale: 1;
158                                         }
159                                 }
160                         }
161                         part {
162                                 name: "sb_hbar_clip_master";
163                                 type: RECT;
164                                 mouse_events: 0;
165                                 description {
166                                         state: "default" 0.0;
167                                 }
168                                 description {
169                                         state: "hidden" 0.0;
170                                         visible: 0;
171                                         color: 255 255 255 0;
172                                 }
173                         }
174                         part {
175                                 name: "sb_hbar_clip";
176                                 clip_to: "sb_hbar_clip_master";
177                                 type: RECT;
178                                 mouse_events: 0;
179                                 scale: 1;
180                                 description {
181                                         state: "default" 0.0;
182                                         align: 0.0 0.0;
183                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
184                                 }
185                                 description {
186                                         state: "hidden" 0.0;
187                                         visible: 0;
188                                         color: 255 255 255 0;
189                                 }
190                         }
191                         part {
192                                 name: "sb_hbar";
193                                 type: RECT;
194                                 mouse_events: 0;
195                                 scale: 1;
196                                 description {
197                                         state: "default" 0.0;
198                                         fixed: 1 1;
199                                         visible: 0;
200                                         align: 0.0 1.0;
201                                         rel1 {to:"clipper"; relative: 0.0 1.0;}
202                                         rel2 {to:"clipper"; relative: 1.0 1.0;}
203                                 }
204                         }
205                         part {
206                                 name: "elm.dragable.hbar";
207                                 clip_to: "sb_hbar_clip";
208                                 mouse_events: 0;
209                                 scale: 1;
210                                 dragable {
211                                         x: 1 1 0;
212                                         y: 0 0 0;
213                                         confine: "sb_hbar";
214                                 }
215                                 description {
216                                         state: "default" 0.0;
217                                         fixed: 1 1;
218                                         min: 32 12;
219                                         rel1 {relative: 0.5  0.5; to: "sb_hbar";}
220                                         rel2 {relative: 0.5  0.5; to: "sb_hbar";}
221                                         image {
222                                                 normal: "01_scroller.png";
223                                                 border: 6 6 0 0;
224                                                 border_scale: 1;
225                                         }
226                                 }
227                         }
228                 }
229                 programs {
230                         program {
231                                 name: "load";
232                                 signal: "load";
233                                 source: "";
234                                 script {
235                                         set_state(PART:"sb_vbar_clip", "hidden", 0.0);
236                                         set_state(PART:"sb_hbar_clip", "hidden", 0.0);
237                                         set_int(sbvis_v, 0);
238                                         set_int(sbvis_h, 0);
239                                         set_int(sbalways_v, 0);
240                                         set_int(sbalways_h, 0);
241                                         set_int(sbvis_timer, 0);
242                                 }
243                         }
244                         program {
245                                 name: "vbar_show";
246                                 signal: "elm,action,show,vbar";
247                                 source: "elm";
248                                 action: STATE_SET "default" 0.0;
249                                 target: "sb_vbar_clip_master";
250                         }
251                         program {
252                                 name: "vbar_hide";
253                                 signal: "elm,action,hide,vbar";
254                                 source: "elm";
255                                 action:  STATE_SET "hidden" 0.0;
256                                 target: "sb_vbar_clip_master";
257                         }
258                         program {
259                                 name: "vbar_show_always";
260                                 signal: "elm,action,show_always,vbar";
261                                 source: "elm";
262                                 script {
263                                         new v;
264                                         v = get_int(sbvis_v);
265                                         v |= get_int(sbalways_v);
266                                         if (!v) {
267                                                 set_int(sbalways_v, 1);
268                                                 emit("do-show-vbar", "");
269                                                 set_int(sbvis_v, 1);
270                                         }
271                                 }
272                         }
273                         program {
274                                 name: "vbar_show_notalways";
275                                 signal: "elm,action,show_notalways,vbar";
276                                 source: "elm";
277                                 script {
278                                         new v;
279                                         v = get_int(sbalways_v);
280                                         if (v) {
281                                                 set_int(sbalways_v, 0);
282                                                 v = get_int(sbvis_v);
283                                                 if (!v) {
284                                                         emit("do-hide-vbar", "");
285                                                 set_int(sbvis_v, 0);
286                                                 }
287                                         }
288                                 }
289                         }
290                         program {
291                                 name: "sb_vbar_show";
292                                 signal: "do-show-vbar";
293                                 source: "";
294                                 action:  STATE_SET "default" 0.0;
295                                 transition: LINEAR 1.0;
296                                 target: "sb_vbar_clip";
297                         }
298                         program {
299                                 name: "sb_vbar_hide";
300                                 signal: "do-hide-vbar";
301                                 source: "";
302                                 action:  STATE_SET "hidden" 0.0;
303                                 transition: LINEAR 1.0;
304                                 target: "sb_vbar_clip";
305                         }
306                         program {
307                                 name: "hbar_show";
308                                 signal: "elm,action,show,hbar";
309                                 source: "elm";
310                                 action:  STATE_SET "default" 0.0;
311                                 target: "sb_hbar_clip_master";
312                         }
313                         program {
314                                 name: "hbar_hide";
315                                 signal: "elm,action,hide,hbar";
316                                 source: "elm";
317                                 action:  STATE_SET "hidden" 0.0;
318                                 target: "sb_hbar_clip_master";
319                         }
320                         program {
321                                 name: "hbar_show_always";
322                                 signal: "elm,action,show_always,hbar";
323                                 source: "elm";
324                                 script {
325                                         new v;
326                                         v = get_int(sbvis_h);
327                                         v |= get_int(sbalways_h);
328                                         if (!v) {
329                                                 set_int(sbalways_h, 1);
330                                                 emit("do-show-hbar", "");
331                                                 set_int(sbvis_h, 1);
332                                         }
333                                 }
334                         }
335                         program {
336                                 name: "hbar_show_notalways";
337                                 signal: "elm,action,show_notalways,hbar";
338                                 source: "elm";
339                                 script {
340                                         new v;
341                                         v = get_int(sbalways_h);
342                                         if (v) {
343                                                 set_int(sbalways_h, 0);
344                                                 v = get_int(sbvis_h);
345                                                 if (!v) {
346                                                         emit("do-hide-hbar", "");
347                                                         set_int(sbvis_h, 0);
348                                                 }
349                                         }
350                                 }
351                         }
352                         program {
353                                 name: "sb_hbar_show";
354                                 signal: "do-show-hbar";
355                                 source: "";
356                                 action:  STATE_SET "default" 0.0;
357                                 transition: LINEAR 1.0;
358                                 target: "sb_hbar_clip";
359                         }
360                         program {
361                                 name: "sb_hbar_hide";
362                                 signal: "do-hide-hbar";
363                                 source: "";
364                                 action:  STATE_SET "hidden" 0.0;
365                                 transition: LINEAR 1.0;
366                                 target: "sb_hbar_clip";
367                         }
368                         program {
369                                 name: "scroll";
370                                 signal: "elm,action,scroll";
371                                 source: "elm";
372                                 action:  STATE_SET "default" 0.0;
373                                 script {
374                                         new v;
375                                         v = get_int(sbvis_v);
376                                         v |= get_int(sbalways_v);
377                                         if (!v) {
378                                                 emit("do-show-vbar", "");
379                                                 set_int(sbvis_v, 1);
380                                         }
381                                         v = get_int(sbvis_h);
382                                         v |= get_int(sbalways_h);
383                                         if(!v) {
384                                                 emit("do-show-hbar", "");
385                                                 set_int(sbvis_h, 1);
386                                         }
387                                         v = get_int(sbvis_timer);
388                                         if (v > 0) cancel_timer(v);
389                                         v = timer(2.0, "timer0", 0);
390                                         set_int(sbvis_timer, v);
391                                 }
392                         }
393                 }
394         }
395 ///////////////////////////////////////////////////////////////////////////////
396         group {
397                 name: "elm/ctxpopup/bg/pass_event";
398                 alias: "elm/ctxpopup/bg/extended/entry/pass_event";
399                 alias: "elm/ctxpopup/bg/extended/entry";
400                 alias: "elm/ctxpopup/bg/timepicker";
401                 parts {
402                         part {
403                                 name: "bg";
404                                 type: RECT;
405                                 description {
406                                         state: "default" 0.0;
407                                         visible: 0;
408                                 }
409                                 description {
410                                         state: "visible" 0.0;
411                                         visible: 0;
412                                 }
413                         }
414                 }
415                 programs {
416                         program {
417                                 name: "show";
418                                 signal: "elm,state,show";
419                                 source: "elm";
420                                 action: STATE_SET "visible" 0.0;
421                                 target: "bg";
422                         }
423                         program {
424                                 name: "hide";
425                                 signal: "elm,state,hide";
426                                 source: "elm";
427                                 action: STATE_SET "default" 0.0;
428                                 target: "bg";
429                         }
430                 }
431         }
432 ///////////////////////////////////////////////////////////////////////////////
433         group {
434                 name: "elm/ctxpopup/bg/default";
435                 parts {
436                         part {
437                                 name: "bg";
438                                 type: RECT;
439                                 mouse_events: 1;
440                                 description {
441                                         state: "default" 0.0;
442                                         visible: 0;
443                                 }
444                                 description {
445                                         state: "visible" 0.0;
446                                         color: 0 0 0 0;
447                                         visible: 1;
448                                 }
449                         }
450                 }
451                 programs {
452                         program {
453                                 name:   "clicked_event";
454                                 signal: "mouse,clicked,1";
455                                 source: "bg";
456                                 action: SIGNAL_EMIT "elm,action,click" "";
457                         }
458                         program {
459                                 name: "show";
460                                 signal: "elm,state,show";
461                                 source: "elm";
462                                 action: STATE_SET "visible" 0.0;
463                                 target: "bg";
464                         }
465                         program {
466                                 name: "hide";
467                                 signal: "elm,state,hide";
468                                 source: "elm";
469                                 action: STATE_SET "default" 0.0;
470                                 target: "bg";
471                         }
472                 }
473         }
474 ///////////////////////////////////////////////////////////////////////////////
475         group {
476                 name: "elm/ctxpopup/base/no_bg_content";
477                 images {
478                         image: "ctxpopup_bg.png" COMP;
479                         image: "ctxpopup_shadow.png" COMP;
480                 }
481                 parts {
482                         part {
483                                 name:"frame_shadow_left_top_padding";
484                                 type:RECT;
485                                 scale: 1;
486                                 mouse_events: 0;
487                                 description {
488                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
489                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
490                                         align: 0 0;
491                                         fixed: 1 1;
492                                         visible: 0;
493                                 }
494                         }
495                         part {
496                                 name:"frame_shadow_right_bottom_padding";
497                                 type:RECT;
498                                 scale: 1;
499                                 mouse_events: 0;
500                                 description {
501                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
502                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
503                                         rel1{relative: 1 1;}
504                                         align: 0 0;
505                                         fixed: 1 1;
506                                         visible: 0;
507                                 }
508                         }
509                         part {
510                                 name: "frame_shadow";
511                                 type: IMAGE;
512                                 scale: 1;
513                                 mouse_events: 0;
514                                 description {
515                                         state: "default" 0.0;
516                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
517                                         rel2 {to:"frame_shadow_right_bottom_padding";}
518                                         image {
519                                                 normal: "ctxpopup_shadow.png";
520                                                 border: 10 10 10 10;
521                                                 border_scale: 1;
522                                         }
523                                         color: 255 255 255 255;
524                                 }
525                         }
526                         part {
527                                 name: "ctxpopup_frame";
528                                 type: IMAGE;
529                                 scale: 1;
530                                 description {
531                                         image {
532                                                 normal: "ctxpopup_bg.png";
533                                                 border: 10 10 10 10;
534                                                 border_scale: 1;
535                                         }
536                                         rel1 {to:"content_left_top_padding"; relative: 1 1;}
537                                         rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
538                                 }
539                         }
540                         part {
541                                 name:"list_shadow_right_bottom_padding";
542                                 type:RECT;
543                                 scale: 1;
544                                 mouse_events: 0;
545                                 description {
546                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
547                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
548                                         align: 0 0;
549                                         fixed: 1 1;
550                                         visible: 0;
551                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
552                                 }
553                         }
554                         part {
555                                 name:"content_left_top_padding";
556                                 type:RECT;
557                                 scale: 1;
558                                 mouse_events: 0;
559                                 description {
560                                         state: "default" 0.0;
561                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
562                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
563                                         align: 0 0;
564                                         fixed: 1 1;
565                                         visible: 0;
566                                 }
567                         }
568                         part {
569                                 name:"content_right_bottom_padding";
570                                 type:RECT;
571                                 scale: 1;
572                                 mouse_events: 0;
573                                 description {
574                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
575                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
576                                         rel1 { relative: 1 1;}
577                                         rel2 { relative: 1 1;}
578                                         align: 1 1;
579                                         fixed: 1 1;
580                                         visible: 0;
581                                 }
582                         }
583                         part {
584                                 name: "elm.swallow.content";
585                                 type: SWALLOW;
586                                 description {
587                                         state: "default" 0.0;
588                                         rel1 {to:"content_left_top_padding"; relative: 1 1;}
589                                         rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
590                                 }
591                         }
592                 }
593         }
594 ///////////////////////////////////////////////////////////////////////////////
595         group {
596                 name: "elm/ctxpopup/base/default";
597                 images {
598                         image: "00_popup_bubble_bg.png" COMP;
599                         image: "00_popup_bg.png" COMP;
600                 }
601                 parts {
602                         part {
603                                 name:"frame_shadow_left_top_padding";
604                                 type:RECT;
605                                 scale: 1;
606                                 mouse_events: 0;
607                                 description {
608                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
609                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
610                                         rel2 { relative: 0 0; }
611                                         align: 1 1;
612                                         fixed: 1 1;
613                                         visible: 0;
614                                 }
615                         }
616                         part {
617                                 name:"frame_shadow_right_bottom_padding";
618                                 type:RECT;
619                                 scale: 1;
620                                 mouse_events: 0;
621                                 description {
622                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
623                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
624                                         rel1{relative: 1 1;}
625                                         align: 0 0;
626                                         fixed: 1 1;
627                                         visible: 0;
628                                 }
629                         }
630                         part {
631                                 name: "frame_shadow";
632                                 type: IMAGE;
633                                 scale: 1;
634                                 mouse_events: 0;
635                                 description {
636                                         state: "default" 0.0;
637                                         rel1 {
638                                         relative: 0.2 0.2;
639                                                 to:"frame_shadow_left_top_padding";
640                                         }
641                                         rel2 {
642                                                 relative: 0.8 0.8;
643                                                 to:"frame_shadow_right_bottom_padding";
644                                         }
645                                         image {
646                                                 normal: "00_popup_bubble_bg.png";
647                                                 border: 13 13 13 13;
648                                                 border_scale: 1;
649                                         }
650                                 }
651                         }
652                         part { name: "arrow_area_left";
653                                 type: RECT;
654                                 mouse_events: 0;
655                                 scale: 1;
656                                 description { state: "default" 0.0;
657                                         visible: 0;
658                                         min: 40 0;
659                                         fixed: 1 1;
660                                         align: 1 0.5;
661                                         rel1 {
662                                                 relative: 0 1;
663                                                 to_y: "ctxpopup_frame_left_top";
664                                         }
665                                         rel2 {
666                                                 relative:0 0;
667                                                 to:"ctxpopup_frame_left_bottom";
668                                         }
669                                 }
670                         }
671                         part { name: "arrow_area_right";
672                                 type: RECT;
673                                 mouse_events: 0;
674                                 scale: 1;
675                                 description { state: "default" 0.0;
676                                         visible: 0;
677                                         min: 40 0;
678                                         fixed: 1 1;
679                                         align: 0 0.5;
680                                         rel1 {
681                                                 relative: 1 1;
682                                                 to:"ctxpopup_frame_right_top";
683                                         }
684                                         rel2 {
685                                                 relative: 1 0;
686                                                 to_y: "ctxpopup_frame_right_bottom";
687                                         }
688                                 }
689                         }
690                         part { name: "arrow_area_up";
691                                 type: RECT;
692                                 mouse_events: 0;
693                                 scale: 1;
694                                 description { state: "default" 0.0;
695                                         visible: 0;
696                                         min: 0 40;
697                                         fixed: 1 1;
698                                         align: 0.5 1;
699                                         rel1 {
700                                                 relative: 1 0;
701                                                 to_x: "ctxpopup_frame_left_top";
702                                         }
703                                         rel2 {
704                                                 relative: 0 0;
705                                                 to:"ctxpopup_frame_right_top";
706                                         }
707                                 }
708                         }
709                         part { name: "arrow_area_down";
710                                 type: RECT;
711                                 mouse_events: 0;
712                                 scale: 1;
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                                 dragable {
733                                         x: 1 1 0;
734                                         y: 1 1 0;
735                                         confine: "arrow_area_up";
736                                 }
737                                 description {
738                                         state: "default" 0.0;
739                                         min: 40 40;
740                                         fixed: 1 1;
741                                         visible: 1;
742                                 }
743                         }
744                         part { name: "elm.swallow.arrow_down";
745                                 type: SWALLOW;
746                                 mouse_events: 0;
747                                 scale: 1;
748                                 dragable {
749                                         x: 1 1 0;
750                                         y: 1 1 0;
751                                         confine: "arrow_area_down";
752                                 }
753                                 description {
754                                         state: "default" 0.0;
755                                         min: 40 40;
756                                         fixed: 1 1;
757                                         visible: 1;
758                                 }
759                         }
760                         part { name: "elm.swallow.arrow_left";
761                                 type: SWALLOW;
762                                 mouse_events: 0;
763                                 scale: 1;
764                                 dragable {
765                                         x: 1 1 0;
766                                         y: 1 1 0;
767                                         confine: "arrow_area_left";
768                                 }
769                                 description {
770                                         state: "default" 0.0;
771                                         min: 40 40;
772                                         fixed: 1 1;
773                                         visible: 1;
774                                 }
775                         }
776                         part { name: "elm.swallow.arrow_right";
777                                 type: SWALLOW;
778                                 mouse_events: 0;
779                                 scale: 1;
780                                 dragable {
781                                         x: 1 1 0;
782                                         y: 1 1 0;
783                                         confine: "arrow_area_right";
784                                 }
785                                 description {
786                                         state: "default" 0.0;
787                                         min: 40 40;
788                                         fixed: 1 1;
789                                         visible: 1;
790                                 }
791                         }
792
793                         part {
794                                 name: "ctxpopup_frame_left_top";
795                                 type: RECT;
796                                 scale: 1;
797                                 description {
798                                         visible: 0;
799                                         align: 0 0;
800                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
801                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
802                                 }
803                         }
804
805                         part {
806                                 name: "ctxpopup_frame_right_top";
807                                 type: RECT;
808                                 scale: 1;
809                                 description {
810                                         visible: 0;
811                                         align: 1 0;
812                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
813                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
814                                 }
815                         }
816
817                         part {
818                                 name: "ctxpopup_frame_left_bottom";
819                                 type: RECT;
820                                 scale: 1;
821                                 description {
822                                         visible: 0;
823                                         align: 0 1;
824                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
825                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
826                                 }
827                         }
828
829                         part {
830                                 name: "ctxpopup_frame_right_bottom";
831                                 type: RECT;
832                                 scale: 1;
833                                 description {
834                                         visible: 0;
835                                         align: 1 1;
836                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
837                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
838                                 }
839                         }
840                         part {
841                                 name:"list_shadow_right_bottom_padding";
842                                 type:RECT;
843                                 scale: 1;
844                                 mouse_events: 0;
845                                 description {
846                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
847                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
848                                         align: 0 0;
849                                         fixed: 1 1;
850                                         visible: 0;
851                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
852                                 }
853                         }
854                         part {
855                                 name:"content_left_top_padding";
856                                 type:RECT;
857                                 scale: 1;
858                                 mouse_events: 0;
859                                 description {
860                                         state: "default" 0.0;
861                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
862                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
863                                         align: 0 0;
864                                         fixed: 1 1;
865                                         visible: 0;
866                                 }
867                         }
868                         part {
869                                 name:"content_right_bottom_padding";
870                                 type:RECT;
871                                 scale: 1;
872                                 mouse_events: 0;
873                                 description {
874                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
875                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
876                                         rel1 { relative: 1 1;}
877                                         rel2 { relative: 1 1;}
878                                         align: 1 1;
879                                         fixed: 1 1;
880                                         visible: 0;
881                                 }
882                         }
883                         part {
884                                 name: "frame_bg";
885                                 type: IMAGE;
886                                 scale: 1;
887                                 mouse_events: 0;
888                                 description {
889                                         state: "default" 0.0;
890                                         rel1 {to:"ctxpopup_frame_left_top";}
891                                         rel2 {to:"ctxpopup_frame_right_bottom";}
892                                         image {
893                                                 normal: "00_popup_bg.png";
894                                                 border: 2 2 2 2;
895                                                 border_scale: 1;
896                                         }
897                                 }
898                         }
899                         part {
900                                 name: "elm.swallow.content";
901                                 type: SWALLOW;
902                                 description {
903                                         state: "default" 0.0;
904                                         align: 0 0;
905                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.5 0.5;}
906                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.5 0.5;}
907                                 }
908                         }
909                 }
910         }
911
912
913
914 ///////////////////////////////////////////////////////////////////////////////
915         group { name: "elm/ctxpopup/arrow/default";
916                 images {
917                         image: "00_popup_tail_left.png" COMP;
918                         image: "00_popup_tail_right.png" COMP;
919                         image: "00_popup_tail_top.png" COMP;
920                         image: "00_popup_tail_bottom.png" COMP;
921                 }
922                 parts {
923                         part {
924                                 name: "ctxpopup_arrow";
925                                 type: IMAGE;
926                                 scale: 1;
927                                 description {
928                                         state: "default" 0.0;
929                                         min: CTXPOPUP_ARROW_SIZE_INC;
930                                         max: CTXPOPUP_ARROW_SIZE_INC;
931                                         fixed: 1 1;
932                                         visible: 0;
933                                         align: 0.5 0.5;
934                                 }
935                                 description {
936                                         state: "left" 0.0;
937                                         min: CTXPOPUP_ARROW_SIZE_INC;
938                                         max: CTXPOPUP_ARROW_SIZE_INC;
939                                         fixed: 1 1;
940                                         align: 1.0 0.5;
941                                         image {
942                                                 normal: "00_popup_tail_left.png";
943                                         }
944                                 }
945                                 description {
946                                         state: "right" 0.0;
947                                         min: CTXPOPUP_ARROW_SIZE_INC;
948                                         max: CTXPOPUP_ARROW_SIZE_INC;
949                                         fixed: 1 1;
950                                         align: 0.0 0.5;
951                                         image {
952                                                 normal: "00_popup_tail_right.png";
953                                         }
954                                 }
955                                 description {
956                                         state: "top" 0.0;
957                                         min: CTXPOPUP_ARROW_SIZE_INC;
958                                         max: CTXPOPUP_ARROW_SIZE_INC;
959                                         fixed: 1 1;
960                                         align: 0.5 1.0;
961                                         image {
962                                                 normal: "00_popup_tail_top.png";
963                                         }
964                                 }
965                                 description {
966                                         state: "bottom" 0.0;
967                                         min: CTXPOPUP_ARROW_SIZE_INC;
968                                         max: CTXPOPUP_ARROW_SIZE_INC;
969                                         fixed: 1 1;
970                                         align: 0.5 0.0;
971                                         image {
972                                                 normal: "00_popup_tail_bottom.png";
973                                         }
974                                 }
975                         }
976                 }
977                 programs {
978                         program {
979                                 name: "enable_left_arrow";
980                                 signal: "elm,state,left";
981                                 source: "elm";
982                                 action: STATE_SET "left" 0.0;
983                                 target: "ctxpopup_arrow";
984                         }
985                         program {
986                                 name: "enable_right_arrow";
987                                 signal: "elm,state,right";
988                                 source: "elm";
989                                 action: STATE_SET "right" 0.0;
990                                 target: "ctxpopup_arrow";
991                         }
992                         program {
993                                 name: "enable_top_arrow";
994                                 signal: "elm,state,top";
995                                 source: "elm";
996                                 action: STATE_SET "top" 0.0;
997                                 target: "ctxpopup_arrow";
998                         }
999                         program {
1000                                 name: "enable_bottom_arrow";
1001                                 signal: "elm,state,bottom";
1002                                 source: "elm";
1003                                 action: STATE_SET "bottom" 0.0;
1004                                 target: "ctxpopup_arrow";
1005                         }
1006                 }
1007         }
1008 ///////////////////////////////////////////////////////////////////////////////
1009         group {
1010                 name: "elm/ctxpopup/text_style_item/default";
1011                 parts {
1012                         part {
1013                                 name: "event_blocker";
1014                                 mouse_events: 1;
1015                                 description {
1016                                         state: "default" 0.0;
1017                                         color: 0 0 0 0;
1018                                 }
1019                         }
1020                         part {
1021                                 name: "bg";
1022                                 mouse_events: 0;
1023                                 type: RECT;
1024                                 description {
1025                                         state: "default" 0.0;
1026                                         color: GENLIST_PART_BG_COLOR_INC;
1027                                         visible: 1;
1028                                 }
1029                                 description {
1030                                         state: "clicked" 0.0;
1031                                         color: GENLIST_PART_BG_SELECTED_COLOR_INC;
1032                                         visible: 1;
1033                                 }
1034                         }
1035                         part {
1036                                 name: "separator";
1037                                 mouse_events: 0;
1038                                 type: RECT;
1039                                 scale: 1;
1040                                 description {
1041                                         state: "default" 0.0;
1042                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1043                                         align: 0.5 0;
1044                                         min: 1 0;
1045                                         max: 1 999999;
1046                                         visible: 0;
1047                                 }
1048                                 description {
1049                                         state: "horizontal" 0.0;
1050                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1051                                         align: 0 0.5;
1052                                         min: 1 0;
1053                                         max: 1 999999;
1054                                         visible: 1;
1055                                 }
1056                         description {
1057                                         state: "vertical" 0.0;
1058                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1059                                         align: 0.5 0;
1060                                         min: 0 1;
1061                                         max: 999999 1;
1062                                         visible: 1;
1063                                 }
1064                         }
1065                         part {
1066                                 name: "left_padding";
1067                                 scale: 1;
1068                                 mouse_events: 0;
1069                                 description {
1070                                         state: "default" 0.0;
1071                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1072                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1073                                         align: 0 0.5;
1074                                         fixed: 1 1;
1075                                         visible: 0;
1076                                 }
1077                         }
1078                         part {
1079                                 name: "elm.text";
1080                                 type: TEXT;
1081                                 mouse_events: 0;
1082                                 scale: 1;
1083                                 description {
1084                                         state: "default" 0.0;
1085                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1086                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_ITEM_PADDING_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1087                                         fixed: 0 1;
1088                                         align: 0.5 0.5;
1089                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
1090                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
1091                                         color: GENLIST_PART_TEXT_COLOR_INC;
1092                                         text {
1093                                                 font: "SLP:style=Roman";
1094                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1095                                                 align: 0.5 0.5;
1096                                                 min: 1 1;
1097                                         }
1098                                 }
1099                                 description {
1100                                         state: "compress" 0.0;
1101                                         inherit: "default" 0.0;
1102                                         max: -1 -1;
1103                                         text {
1104                                                 min: 0 1;
1105                                         }
1106                                 }
1107                                 description {
1108                                         state: "clicked" 0.0;
1109                                         inherit: "default" 0.0;
1110                                         color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
1111                                 }
1112                         }
1113                         part {
1114                                 name: "right_padding";
1115                                 scale: 1;
1116                                 mouse_events: 0;
1117                                 description {
1118                                         state: "default" 0.0;
1119                                         visible: 0;
1120                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1121                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1122                                         fixed: 1 0;
1123                                         align: 1.0 0.5;
1124                         }
1125                         }
1126                         part {
1127                                 name: "over1";
1128                                 mouse_events: 1;
1129                                 repeat_events: 1;
1130                                 ignore_flags: ON_HOLD;
1131                                 description {
1132                                         state: "default" 0.0;
1133                                 }
1134                         }
1135                         part {
1136                                 name: "over2";
1137                                 mouse_events: 1;
1138                                 repeat_events: 1;
1139                                 description {
1140                                         state: "default" 0.0;
1141                                 }
1142                         }
1143                         part {
1144                                 name: "disclip";
1145                                 type: RECT;
1146                                 description {
1147                                         state: "default" 0.0;
1148                                         visible: 0;
1149                                 }
1150                                 description {
1151                                         state: "disabled" 0.0;
1152                                         visible: 1;
1153                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1154                                 }
1155                         }
1156                 }
1157                 programs {
1158                         program {
1159                                 name: "item_unclick";
1160                                 signal: "mouse,up,1";
1161                                 source: "over1";
1162                                 action: SIGNAL_EMIT "elm,action,click" "";
1163                         }
1164                         program {
1165                                 name: "disable";
1166                                 signal: "elm,state,disabled";
1167                                 source: "elm";
1168                                 action: STATE_SET "disabled" 0.0;
1169                                 target: "disclip";
1170                         }
1171                         program {
1172                                 name: "enable";
1173                                 signal: "elm,state,enabled";
1174                                 source: "elm";
1175                                 action: STATE_SET "default" 0.0;
1176                                 target: "disclip";
1177                         }
1178                         program {
1179                                 name: "default";
1180                                 signal: "elm,state,default";
1181                                 source: "elm";
1182                                 script {
1183                                         set_state(PART:"separator", "default", 0.0);
1184                                 }
1185                         }
1186                         program {
1187                                 name: "compress";
1188                                 signal: "elm,state,compress";
1189                                 source: "elm";
1190                                 action: STATE_SET "compress" 0.0;
1191                                 target: "elm.text";
1192                         }
1193                         program {
1194                                 name: "vertical";
1195                                 signal: "elm,state,vertical";
1196                                 source: "elm";
1197                                 script {
1198                                         set_state(PART:"separator", "vertical", 0.0);
1199                                 }
1200                         }
1201                         program {
1202                                 name: "horizontal";
1203                                 signal: "elm,state,horizontal";
1204                                 source: "elm";
1205                                 script {
1206                                         set_state(PART:"separator", "horizontal", 0.0);
1207                                 }
1208                         }
1209                         program {
1210                                 name: "item_click2";
1211                                 signal: "mouse,down,1";
1212                                 source: "over2";
1213                                 script {
1214                                         set_state(PART:"elm.text", "clicked", 0.0);
1215                                         set_state(PART:"bg", "clicked", 0.0);
1216                                 }
1217                         }
1218                         program {
1219                                 name: "item_unclick2";
1220                                 signal: "mouse,up,1";
1221                                 source: "over2";
1222                                 script {
1223                                         set_state(PART:"elm.text", "compress", 0.0);
1224                                         set_state(PART:"bg", "default", 0.0);
1225                                 }
1226                         }
1227                 }
1228         }
1229 ///////////////////////////////////////////////////////////////////////////////
1230         group {
1231                 name: "elm/ctxpopup/icon_style_item/default";
1232                 parts {
1233                         part {
1234                                 name: "event_blocker";
1235                                 mouse_events: 1;
1236                                 description {
1237                                         state: "default" 0.0;
1238                                         color: 0 0 0 0;
1239                                 }
1240                         }
1241                         part {
1242                                 name: "bg";
1243                                 mouse_events: 0;
1244                                 type: RECT;
1245                                 description {
1246                                         state: "default" 0.0;
1247                                         color: GENLIST_PART_BG_COLOR_INC;
1248                                         visible: 1;
1249                                         min: CTXPOPUP_ITEM_ICON_INC;
1250                                         max: CTXPOPUP_ITEM_ICON_INC;
1251                                 }
1252                                 description {
1253                                         state: "clicked" 0.0;
1254                                         color: GENLIST_PART_BG_SELECTED_COLOR_INC;
1255                                         visible: 1;
1256                                 }
1257                         }
1258                         part {
1259                                 name: "left_top_padding";
1260                                 scale: 1;
1261                                 description {
1262                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1263                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1264                                         visible: 0;
1265                                         align: 0 0;
1266                                         fixed: 1 1;
1267                                 }
1268                         }
1269                         part {
1270                                 name: "separator";
1271                                 mouse_events: 0;
1272                                 type: RECT;
1273                                 scale: 1;
1274                                 description {
1275                                         state: "default" 0.0;
1276                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1277                                         align: 0.5 0;
1278                                         min: 1 0;
1279                                         max: 1 999999;
1280                                         visible: 0;
1281                                 }
1282                                 description {
1283                                         state: "horizontal" 0.0;
1284                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1285                                         align: 0 0.5;
1286                                         min: 1 0;
1287                                         max: 1 999999;
1288                                         visible: 1;
1289                                 }
1290                         description {
1291                                         state: "vertical" 0.0;
1292                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1293                                         align: 0.5 0;
1294                                         min: 0 1;
1295                                         max: 999999 1;
1296                                         visible: 1;
1297                                 }
1298                         }
1299                         part {
1300                                 name: "elm.swallow.icon";
1301                                 type: SWALLOW;
1302                                 scale: 1;
1303                                 description {
1304                                         state: "default" 0.0;
1305                                         min: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1306                                         max: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1307                                         align: 0 0;
1308                                         aspect: 1.0 1.0;
1309                                         rel1 { to: "left_top_padding"; relative: 1 1; }
1310                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
1311                                 }
1312                         }
1313                         part {
1314                                 name: "right_bottom_padding";
1315                                 scale: 1;
1316                                 description {
1317                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1318                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1319                                         visible: 0;
1320                                         align: 1 1;
1321                                         fixed: 1 1;
1322                                 }
1323                         }
1324                         part {
1325                                 name: "over1";
1326                                 mouse_events: 1;
1327                                 repeat_events: 1;
1328                                 ignore_flags: ON_HOLD;
1329                                 description {
1330                                         state: "default" 0.0;
1331                                 }
1332                         }
1333                         part {
1334                                 name: "over2";
1335                                 mouse_events: 1;
1336                                 repeat_events: 1;
1337                                 description {
1338                                         state: "default" 0.0;
1339                                 }
1340                         }
1341                         part {
1342                                 name: "disclip";
1343                                 type: RECT;
1344                                 description {
1345                                         state: "default" 0.0;
1346                                         visible: 0;
1347                                 }
1348                                 description {
1349                                         state: "disabled" 0.0;
1350                                         visible: 1;
1351                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1352                                 }
1353                         }
1354                 }
1355                 programs {
1356                         program {
1357                                 name: "default";
1358                                 signal: "elm,state,default";
1359                                 source: "elm";
1360                                 script {
1361                                         set_state(PART:"separator", "default", 0.0);
1362                                 }
1363                         }
1364                         program {
1365                                 name: "vertical";
1366                                 signal: "elm,state,vertical";
1367                                 source: "elm";
1368                                 script {
1369                                         set_state(PART:"separator", "vertical", 0.0);
1370                                 }
1371                         }
1372                         program {
1373                                 name: "horizontal";
1374                                 signal: "elm,state,horizontal";
1375                                 source: "elm";
1376                                 script {
1377                                         set_state(PART:"separator", "horizontal", 0.0);
1378                                 }
1379                         }
1380                         program {
1381                                 name: "item_unclick";
1382                                 signal: "mouse,up,1";
1383                                 source: "over1";
1384                                 action: SIGNAL_EMIT "elm,action,click" "";
1385                         }
1386                         program {
1387                                 name: "disable";
1388                                 signal: "elm,state,disabled";
1389                                 source: "elm";
1390                                 action: STATE_SET "disabled" 0.0;
1391                                 target: "disclip";
1392                         }
1393                         program {
1394                                 name: "enable";
1395                                 signal: "elm,state,enabled";
1396                                 source: "elm";
1397                                 action: STATE_SET "default" 0.0;
1398                                 target: "disclip";
1399                         }
1400                         program {
1401                                 name: "item_click2";
1402                                 signal: "mouse,down,1";
1403                                 source: "over2";
1404                                 script {
1405                                         set_state(PART:"bg", "clicked", 0.0);
1406                                 }
1407                         }
1408                         program {
1409                                 name: "item_unclick2";
1410                                 signal: "mouse,up,1";
1411                                 source: "over2";
1412                                 script {
1413                                         set_state(PART:"bg", "default", 0.0);
1414                                 }
1415                         }
1416                 }
1417         }
1418 ///////////////////////////////////////////////////////////////////////////////
1419         group {
1420                 name: "elm/ctxpopup/icon_text_style_item/default";
1421                 parts {
1422                         part {
1423                                 name: "event_blocker";
1424                                 mouse_events: 1;
1425                                 description {
1426                                         state: "default" 0.0;
1427                                 }
1428                         }
1429                         part {
1430                                 name: "bg";
1431                                 mouse_events: 0;
1432                                 type: RECT;
1433                                 description {
1434                                         state: "default" 0.0;
1435                                         color: GENLIST_PART_BG_COLOR_INC;
1436                                         visible: 1;
1437                                 }
1438                                 description {
1439                                         state: "clicked" 0.0;
1440                                         color: GENLIST_PART_BG_SELECTED_COLOR_INC;
1441                                         visible: 1;
1442                                 }
1443                         }
1444                         part {
1445                                 name: "icon_left_padding";
1446                                 scale: 1;
1447                                 mouse_events: 0;
1448                                 description {
1449                                         state: "default" 0.0;
1450                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1451                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1452                                         align: 0 0;
1453                                         fixed: 1 1;
1454                                         visible: 0;
1455                                 }
1456                         }
1457                         part {
1458                                 name: "separator";
1459                                 mouse_events: 0;
1460                                 type: RECT;
1461                                 scale: 1;
1462                                 description {
1463                                         state: "default" 0.0;
1464                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1465                                         align: 0.5 0;
1466                                         min: 1 0;
1467                                         max: 1 999999;
1468                                         visible: 0;
1469                                 }
1470                                 description {
1471                                         state: "horizontal" 0.0;
1472                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1473                                         align: 0 0.5;
1474                                         min: 1 0;
1475                                         max: 1 999999;
1476                                         visible: 1;
1477                                 }
1478                         description {
1479                                         state: "vertical" 0.0;
1480                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1481                                         align: 0.5 0;
1482                                         min: 0 1;
1483                                         max: 999999 1;
1484                                         visible: 1;
1485                                 }
1486                         }
1487                         part {
1488                                 name: "elm.swallow.icon";
1489                                 type: SWALLOW;
1490                                 scale: 1;
1491                                 description {
1492                                         state: "default" 0.0;
1493                                         min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1494                                         max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1495                                         align: 0 0.5;
1496                                         aspect: 1.0 1.0;
1497                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
1498                                 }
1499                         }
1500                         part {
1501                                 name: "icon_right_padding";
1502                                 scale: 1;
1503                                 mouse_events: 0;
1504                                 description {
1505                                         state: "default" 0.0;
1506                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1507                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1508                                         align: 0 0.5;
1509                                         fixed: 1 1;
1510                                         visible: 0;
1511                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
1512                                 }
1513                         }
1514                         part {
1515                                 name: "elm.text";
1516                                 type:  TEXT;
1517                                 mouse_events:  0;
1518                                 scale: 1;
1519                                 description {
1520                                         state: "default" 0.0;
1521                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1522                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_ITEM_PADDING_INC)-CTXPOPUP_ICON_WIDTH_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1523                                         fixed: 0 1;
1524                                         align: 0.5 0.5;
1525                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
1526                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
1527                                         color: GENLIST_PART_TEXT_COLOR_INC;
1528                                         text {
1529                                                 font: "SLP:style=Roman";
1530                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1531                                                 align: 0.0 0.5;
1532                                                 min: 1 1;
1533                                         }
1534                                 }
1535                                 description {
1536                                         state: "compress" 0.0;
1537                                         inherit: "default" 0.0;
1538                                         max: -1 -1;
1539                                         text {
1540                                                 min: 0 1;
1541                                         }
1542                                 }
1543                                 description {
1544                                         state: "clicked" 0.0;
1545                                         inherit: "default" 0.0;
1546                                         color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
1547                                 }
1548                         }
1549                         part {
1550                                 name: "text_right_padding";
1551                                 type: RECT;
1552                                 scale: 1;
1553                                 mouse_events: 0;
1554                                 description {
1555                                         state: "default" 0.0;
1556                                         visible: 0;
1557                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1558                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1559                                         fixed: 1 0;
1560                                         align: 1.0 0.5;
1561                         }
1562                         }
1563                         part {
1564                                 name: "over1";
1565                                 mouse_events: 1;
1566                                 repeat_events: 1;
1567                                 ignore_flags: ON_HOLD;
1568                                 description {
1569                                         state: "default" 0.0;
1570                                 }
1571                         }
1572                         part {
1573                                 name: "over2";
1574                                 mouse_events: 1;
1575                                 repeat_events: 1;
1576                                 description {
1577                                         state: "default" 0.0;
1578                                 }
1579                         }
1580                         part {
1581                                 name: "disclip";
1582                                 type: RECT;
1583                                 description {
1584                                         state: "default" 0.0;
1585                                         visible: 0;
1586                                 }
1587                                 description {
1588                                         state: "disabled" 0.0;
1589                                         visible: 1;
1590                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1591                                 }
1592                         }
1593                 }
1594                 programs {
1595                         program {
1596                                 name: "item_unclick";
1597                                 signal: "mouse,up,1";
1598                                 source: "over1";
1599                                 action: SIGNAL_EMIT "elm,action,click" "";
1600                         }
1601                         program {
1602                                 name: "disable";
1603                                 signal: "elm,state,disabled";
1604                                 source: "elm";
1605                                 action: STATE_SET "disabled" 0.0;
1606                                 target: "disclip";
1607                         }
1608                         program {
1609                                 name: "enable";
1610                                 signal: "elm,state,enabled";
1611                                 source: "elm";
1612                                 action: STATE_SET "default" 0.0;
1613                                 target: "disclip";
1614                         }
1615                         program {
1616                                 name: "default";
1617                                 signal: "elm,state,default";
1618                                 source: "elm";
1619                                 script {
1620                                         set_state(PART:"separator", "default", 0.0);
1621                                 }
1622                         }
1623                         program {
1624                                 name: "compress";
1625                                 signal: "elm,state,compress";
1626                                 source: "elm";
1627                                 action: STATE_SET "compress" 0.0;
1628                                 target: "elm.text";
1629                         }
1630                         program {
1631                                 name: "vertical";
1632                                 signal: "elm,state,vertical";
1633                                 source: "elm";
1634                                 script {
1635                                         set_state(PART:"separator", "vertical", 0.0);
1636                                 }
1637                         }
1638                         program {
1639                                 name: "horizontal";
1640                                 signal: "elm,state,horizontal";
1641                                 source: "elm";
1642                                 script {
1643                                         set_state(PART:"separator", "horizontal", 0.0);
1644                                 }
1645                         }
1646                         program {
1647                                 name: "item_click2";
1648                                 signal: "mouse,down,1";
1649                                 source: "over2";
1650                                 script {
1651                                         set_state(PART:"elm.text", "clicked", 0.0);
1652                                         set_state(PART:"bg", "clicked", 0.0);
1653                                 }
1654                         }
1655                         program {
1656                                 name: "item_unclick2";
1657                                 signal: "mouse,up,1";
1658                                 source: "over2";
1659                                 script {
1660                                         set_state(PART:"elm.text", "compress", 0.0);
1661                                         set_state(PART:"bg", "default", 0.0);
1662                                 }
1663                         }
1664                 }
1665         }
1666
1667 ///////////////////////////////////////////////////////////////////////////////////////
1668 #define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3
1669 #define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
1670 #define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
1671 #define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
1672
1673 #define CTXPOPUP_ENTRY_SEPARATOR_WIDTH 1
1674 #define CTXPOPUP_ENTRY_SEPARATOR_HEIGHT 30
1675 #define CTXPOPUP_ENTRY_ITEM_HEIGHT 46
1676 #define CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH 10
1677 #define CTXPOPUP_ENTRY_ICON_SIZE 36
1678 #define CTXPOPUP_ENTRY_ITEM_WIDTH_MAX 150
1679 #define CTXPOPUP_ENTRY_LIST_SHADOW_PADDING 3
1680 #define CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR 200 200 200 127
1681 #define CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 15
1682 #define CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH 30
1683 ///////////////////////////////////////////////////////////////////////////////////////
1684         group {
1685                 name: "elm/ctxpopup/base/extended/entry";
1686                 alias: "elm/ctxpopup/base/extended/entry/pass_event";
1687                 images {
1688                         image: "copy&paste_bg_center.png" COMP;
1689                 }
1690                 parts {
1691                         part {
1692                                 name: "ctxpopup_frame";
1693                                 type: RECT;
1694                                 scale: 1;
1695                                 description {
1696                                         visible: 0;
1697                                         rel1 {
1698                                                 to: "frame_left_padding";
1699                                                 relative: 0 0;
1700                                         }
1701                                         rel2 {
1702                                                 to: "frame_right_padding";
1703                                                 relative: 1 1;
1704                                         }
1705                                 }
1706                         }
1707                         part {
1708                                 name:"frame_left_padding";
1709                                 type:RECT;
1710                                 scale: 1;
1711                                 mouse_events: 0;
1712                                 description {
1713                                         visible: 0;
1714                                         min: 7 1;
1715                                         max: 7 1;
1716                                         rel2 {
1717                                                 relative: 0 0;
1718                                                 to: "elm.swallow.content";
1719                                         }
1720                                         align: 0 0;
1721                                         fixed: 1 1;
1722                                 }
1723                         }
1724                         part {
1725                                 name:"frame_right_padding";
1726                                 type:RECT;
1727                                 scale: 1;
1728                                 mouse_events: 0;
1729                                 description {
1730                                         visible: 0;
1731                                         min: 7 1;
1732                                         max: 7 1;
1733                                         rel1 {
1734                                                 relative: 1 1;
1735                                                 to: "elm.swallow.content";
1736                                         }
1737                                         align: 1 1;
1738                                         fixed: 1 1;
1739                                 }
1740                         }
1741
1742                         part {
1743                                 name: "ctxpopup_frame_rect";
1744                                 type: IMAGE;
1745                                 scale: 1;
1746                                 description {
1747                                         visible: 1;
1748                                         image {
1749                                                 normal: "copy&paste_bg_center.png";
1750                                                 border: 5 9 0 7;
1751                                                 border_scale: 1;
1752                                         }
1753                                         rel2 { offset: 9 7; }
1754                                 }
1755                         }
1756                         part {
1757                                 name:"content_right_bottom_padding";
1758                                 type:RECT;
1759                                 scale: 1;
1760                                 mouse_events: 0;
1761                                 description {
1762                                         visible: 0;
1763                                         min: 4 7;       // shadow 4 7
1764                                         max: 4 7;
1765                                         rel1 {to: "ctxpopup_frame_rect"; relative: 1 1;}
1766                                         rel2 {to: "ctxpopup_frame_rect"; relative: 1 1;}
1767                                         align: 1 1;
1768                                         fixed: 1 1;
1769                                 }
1770                         }
1771                         part {
1772                                 name: "elm.swallow.content";
1773                                 type: SWALLOW;
1774                                 description {
1775                                         state: "default" 0.0;
1776                                         rel1 {to: "ctxpopup_frame_rect"; relative: 0 0; }
1777 //                                      rel1 {to: "content_left_padding"; relative: 1 0;}
1778                                         rel2 {to: "content_right_bottom_padding"; relative: 0 0; }
1779                                 }
1780                         }
1781                 }
1782         }
1783 ///////////////////////////////////////////////////////////////////////////////////////
1784         group {
1785                 name: "elm/ctxpopup/arrow/extended/entry";
1786                 alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
1787                 images {
1788                         image: "copy&paste_arrow_up.png" COMP;
1789                         image: "copy&paste_arrow_left.png" COMP;
1790                         image: "copy&paste_arrow_right.png" COMP;
1791                         image: "copy&paste_arrow_down.png" COMP;
1792                 }
1793                 parts {
1794                         part {
1795                                 name: "ctxpopup_arrow";
1796                                 type: IMAGE;
1797                                 scale: 1;
1798                                 description {
1799                                         state: "default" 0.0;
1800                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1801                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1802                                         fixed: 1 1;
1803                                         visible: 0;
1804                                         align: 0.5 0.5;
1805                                 }
1806                                 description {
1807                                         state: "left" 0.0;
1808                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
1809                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
1810                                         fixed: 1 1;
1811                                         align: 0.0 0.5;
1812                                         image {
1813                                                 normal: "copy&paste_arrow_left.png";
1814                                         }
1815                                 }
1816                                 description {
1817                                         state: "right" 0.0;
1818                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
1819                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
1820                                         fixed: 1 1;
1821                                         align: 1.0 0.5;
1822                                         image {
1823                                                 normal: "copy&paste_arrow_right.png";
1824                                         }
1825                                 }
1826                                 description {
1827                                         state: "top" 0.0;
1828                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1829                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1830                                         fixed: 1 1;
1831                                         align: 0.5 0.0;
1832                                         image {
1833                                                 normal: "copy&paste_arrow_up.png";
1834                                         }
1835                                 }
1836                                 description {
1837                                         state: "bottom" 0.0;
1838                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1839                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1840                                         fixed: 1 1;
1841                                         align: 0.5 0;
1842                                         rel1.offset: 0 0;
1843                                         rel2.offset: 0 0;
1844                                         image {
1845                                                 normal: "copy&paste_arrow_down.png";
1846                                         }
1847                                 }
1848                         }
1849                 }
1850                 programs {
1851                         program {
1852                                 name: "enable_left_arrow";
1853                                 signal: "elm,state,left";
1854                                 source: "elm";
1855                                 action: STATE_SET "left" 0.0;
1856                                 target: "ctxpopup_arrow";
1857                         }
1858                         program {
1859                                 name: "enable_right_arrow";
1860                                 signal: "elm,state,right";
1861                                 source: "elm";
1862                                 action: STATE_SET "right" 0.0;
1863                                 target: "ctxpopup_arrow";
1864                         }
1865                         program {
1866                                 name: "enable_top_arrow";
1867                                 signal: "elm,state,top";
1868                                 source: "elm";
1869                                 action: STATE_SET "top" 0.0;
1870                                 target: "ctxpopup_arrow";
1871                         }
1872                         program {
1873                                 name: "enable_bottom_arrow";
1874                                 signal: "elm,state,bottom";
1875                                 source: "elm";
1876                                 action: STATE_SET "bottom" 0.0;
1877                                 target: "ctxpopup_arrow";
1878                         }
1879                 }
1880         }
1881 ///////////////////////////////////////////////////////////////////////////////////////
1882 #define CTXPOPUP_ENTRY_ITEM_BG_PART \
1883                         part {\
1884                                 name: "bg";\
1885                                 mouse_events: 0;\
1886                                 type: IMAGE;\
1887                                 description {\
1888                                         state: "default" 0.0;\
1889                                         visible: 0;\
1890                                         rel1 {to:"left_bg_padding"; relative: 1 0;}\
1891                                         rel2 {to:"right_bg_padding"; relative: 0 1;}\
1892                                         image {\
1893                                                 normal: "copy&paste_press_center.png";\
1894                                                 border: 0 0 0 0;\
1895                                         }\
1896                                 }\
1897                                 description {\
1898                                         state: "clicked" 0.0;\
1899                                         inherit: "default" 0.0;\
1900                                         visible: 1;\
1901                                         image {\
1902                                                 normal: "copy&paste_press_center.png";\
1903                                                 border: 0 0 0 0;\
1904                                         }\
1905                                 }\
1906                         }
1907 #define CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART \
1908                         part {\
1909                                 name: "left_bg_padding";\
1910                                 type: IMAGE;\
1911                                 scale: 1;\
1912                                 mouse_events: 0;\
1913                                 description {\
1914                                         state: "default" 0.0;\
1915                                         visible: 0;\
1916                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1917                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1918                                         align: 0 0.5;\
1919                                         fixed: 1 0;\
1920                                         rel1 { to: "event_blocker"; relative: 0 0; }\
1921                                         rel2 { to: "event_blocker"; relative: 0 1; }\
1922                                         image {\
1923                                                 normal: "copy&paste_press_left.png";\
1924                                                 border: 6 0 0 0;\
1925                                         }\
1926                                 }\
1927                                 description {\
1928                                         state: "clicked" 0.0;\
1929                                         inherit: "default" 0.0;\
1930                                         visible: 1;\
1931                                         image {\
1932                                                 normal: "copy&paste_press_left.png";\
1933                                                 border: 6 0 0 0;\
1934                                         }\
1935                                 }\
1936                         }
1937 #define CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART \
1938                         part {\
1939                                 name: "right_bg_padding";\
1940                                 type: IMAGE;\
1941                                 scale: 1;\
1942                                 mouse_events: 0;\
1943                                 description {\
1944                                         state: "default" 0.0;\
1945                                         visible: 0;\
1946                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1947                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1948                                         fixed: 1 0;\
1949                                         align: 1.0 0.5;\
1950                                         rel1 { to: "event_blocker"; relative: 1 0; }\
1951                                         rel2 { to: "event_blocker"; relative: 1 1; }\
1952                                         image {\
1953                                                 normal: "copy&paste_press_right.png";\
1954                                                 border: 0 6 0 0;\
1955                                         }\
1956                                 }\
1957                                 description {\
1958                                         state: "clicked" 0.0;\
1959                                         inherit: "default" 0.0;\
1960                                         visible: 1;\
1961                                         image {\
1962                                                 normal: "copy&paste_press_right.png";\
1963                                                 border: 0 6 0 0;\
1964                                         }\
1965                                 }\
1966                         }
1967 #define CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART \
1968                         part {\
1969                                 name: "left_padding";\
1970                                 type: RECT;\
1971                                 scale: 1;\
1972                                 mouse_events: 0;\
1973                                 description {\
1974                                         state: "default" 0.0;\
1975                                         visible: 0;\
1976                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1977                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1978                                         align: 0 0.5;\
1979                                         fixed: 1 0;\
1980                                 }\
1981                         }
1982 #define CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART \
1983                         part {\
1984                                 name: "right_padding";\
1985                                 type: RECT;\
1986                                 scale: 1;\
1987                                 mouse_events: 0;\
1988                                 description {\
1989                                         state: "default" 0.0;\
1990                                         visible: 0;\
1991                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1992                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
1993                                         fixed: 1 0;\
1994                                         align: 1.0 0.5;\
1995                                 }\
1996                         }
1997 #define CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART \
1998                         part {\
1999                                 name: "left_separator";\
2000                                 mouse_events: 0;\
2001                                 type: RECT;\
2002                                 scale: 1;\
2003                                 description {\
2004                                         state: "default" 0.0;\
2005                                         visible: 1;\
2006                                         color: CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_COLOR;\
2007                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2008                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2009                                         fixed: 1 1;\
2010                                         rel1.to: "left_padding";\
2011                                         rel2 {\
2012                                                 to: "left_padding";\
2013                                                 relative: 0 1;\
2014                                         }\
2015                                 }\
2016                         }
2017 #define CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART \
2018                         part {\
2019                                 name: "right_separator";\
2020                                 mouse_events: 0;\
2021                                 type: RECT;\
2022                                 scale: 1;\
2023                                 description {\
2024                                         state: "default" 0.0;\
2025                                         visible: 1;\
2026                                         color: CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_COLOR;\
2027                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2028                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2029                                         fixed: 1 1;\
2030                                         rel1 {\
2031                                                 to: "right_padding";\
2032                                                 relative: 1 0;\
2033                                                 offset: -1 0;\
2034                                         }\
2035                                         rel2 {\
2036                                                 to: "right_padding";\
2037                                                 offset: -1 0;\
2038                                         }\
2039                                 }\
2040                         }
2041 ///////////////////////////////////////////////////////////////////////////////////////
2042
2043         group {
2044                 name: "elm/ctxpopup/text_style_item/extended/entry";
2045                 alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
2046                 images {
2047                         image: "copy&paste_press_center.png" COMP;
2048                         image: "copy&paste_press_left.png" COMP;
2049                         image: "copy&paste_press_right.png" COMP;
2050                 }
2051                 parts {
2052                         part {
2053                                 name: "event_blocker";
2054                                 mouse_events: 1;
2055                                 description {
2056                                         state: "default" 0.0;
2057                                         color: 0 0 0 0;
2058                                 }
2059                         }
2060                         CTXPOPUP_ENTRY_ITEM_BG_PART
2061                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2062                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2063                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2064                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2065                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2066                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
2067                         part {
2068                                 name: "elm.text";
2069                                 type:  TEXT;
2070                                 mouse_events:  0;
2071                                 scale: 1;
2072                                 description {
2073                                         state: "default" 0.0;
2074                                         min: 1 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2075                                         max: CTXPOPUP_ENTRY_ITEM_WIDTH_MAX CTXPOPUP_ENTRY_ITEM_HEIGHT;
2076                                         fixed: 0 1;
2077                                         align: 0.5 0.5;
2078                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2079                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2080                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2081                                         text {
2082                                                 font: "SLP:style=Roman";
2083                                                 size: 18;
2084                                                 align: 0.5 0.5;
2085                                                 min: 1 1;
2086                                         }
2087                                 }
2088                                 description {
2089                                         state: "clicked" 0.0;
2090                                         inherit: "default" 0.0;
2091                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2092                                 }
2093                         }
2094                         part {
2095                                 name: "over1";
2096                                 mouse_events: 1;
2097                                 repeat_events: 1;
2098                                 ignore_flags: ON_HOLD;
2099                                 description {
2100                                         state: "default" 0.0;
2101                                 }
2102                         }
2103                         part {
2104                                 name: "over2";
2105                                 mouse_events: 1;
2106                                 repeat_events: 1;
2107                                 description {
2108                                         state: "default" 0.0;
2109                                 }
2110                         }
2111                         part {
2112                                 name: "disclip";
2113                                 type: RECT;
2114                                 description {
2115                                         state: "default" 0.0;
2116                                         visible: 0;
2117                                 }
2118                                 description {
2119                                         state: "disabled" 0.0;
2120                                         visible: 1;
2121                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2122                                 }
2123                         }
2124                 }
2125                 programs {
2126                         program {
2127                                 name: "item_unclick";
2128                                 signal: "mouse,up,1";
2129                                 source: "over1";
2130                                 action: SIGNAL_EMIT "elm,action,click" "";
2131                         }
2132                         program {
2133                                 name: "disable";
2134                                 signal: "elm,state,disabled";
2135                                 source: "elm";
2136                                 action: STATE_SET "disabled" 0.0;
2137                                 target: "disclip";
2138                         }
2139                         program {
2140                                 name: "enable";
2141                                 signal: "elm,state,enabled";
2142                                 source: "elm";
2143                                 action: STATE_SET "default" 0.0;
2144                                 target: "disclip";
2145                         }
2146                         program {
2147                                 name: "item_click2";
2148                                 signal: "mouse,down,1";
2149                                 source: "over2";
2150                                 script {
2151                                         set_state(PART:"elm.text", "clicked", 0.0);
2152                                         set_state(PART:"bg", "clicked", 0.0);
2153                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2154                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2155                                 }
2156                         }
2157                         program {
2158                                 name: "item_unclick2";
2159                                 signal: "mouse,up,1";
2160                                 source: "over2";
2161                                 script {
2162                                         set_state(PART:"elm.text", "default", 0.0);
2163                                         set_state(PART:"bg", "default", 0.0);
2164                                         set_state(PART:"left_bg_padding", "default", 0.0);
2165                                         set_state(PART:"right_bg_padding", "default", 0.0);
2166                                 }
2167                         }
2168                 }
2169         }
2170 ///////////////////////////////////////////////////////////////////////////////
2171         group {
2172                 name: "elm/ctxpopup/icon_style_item/extended/entry";
2173                 images {
2174                         image: "copy&paste_press_center.png" COMP;
2175                         image: "copy&paste_press_left.png" COMP;
2176                         image: "copy&paste_press_right.png" COMP;
2177                 }
2178                 parts {
2179                         part {
2180                                 name: "event_blocker";
2181                                 mouse_events: 1;
2182                                 description {
2183                                         state: "default" 0.0;
2184                                         color: 0 0 0 0;
2185                                 }
2186                         }
2187                         CTXPOPUP_ENTRY_ITEM_BG_PART
2188                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2189                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2190                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2191                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2192                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2193                         part {
2194                                 name: "elm.swallow.icon";
2195                                 type: SWALLOW;
2196                                 scale: 1;
2197                                 description {
2198                                         state: "default" 0.0;
2199                                         min: 36 36;
2200                                         max: 36 36;
2201                                         fixed: 0 1;
2202                                         align: 0.5 0.5;
2203 //                                      aspect: 1.0 1.0;
2204                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2205                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2206                                 }
2207                         }
2208                         part {
2209                                 name: "elm.swallow.icon.paint";
2210                                 type: RECT;
2211                                 scale: 1;
2212                                 description {
2213                                         state: "default" 0.0;
2214                                         visible: 0;
2215                                         color: 255 255 0 255;
2216                                         rel1 { to: "elm.swallow.icon"; }
2217                                         rel2 { to: "elm.swallow.icon"; }
2218                                 }
2219                         }
2220                         part {
2221                                 name: "over1";
2222                                 mouse_events: 1;
2223                                 repeat_events: 1;
2224                                 ignore_flags: ON_HOLD;
2225                                 description {
2226                                         state: "default" 0.0;
2227                                 }
2228                         }
2229                         part {
2230                                 name: "over2";
2231                                 mouse_events: 1;
2232                                 repeat_events: 1;
2233                                 description {
2234                                         state: "default" 0.0;
2235                                 }
2236                         }
2237                         part {
2238                                 name: "disclip";
2239                                 type: RECT;
2240                                 description {
2241                                         state: "default" 0.0;
2242                                         visible: 0;
2243                                 }
2244                                 description {
2245                                         state: "disabled" 0.0;
2246                                         visible: 1;
2247                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2248                                 }
2249                         }
2250                 }
2251                 programs {
2252                         program {
2253                                 name: "item_unclick";
2254                                 signal: "mouse,up,1";
2255                                 source: "over1";
2256                                 action: SIGNAL_EMIT "elm,action,click" "";
2257                         }
2258                         program {
2259                                 name: "disable";
2260                                 signal: "elm,state,disabled";
2261                                 source: "elm";
2262                                 action: STATE_SET "disabled" 0.0;
2263                                 target: "disclip";
2264                         }
2265                         program {
2266                                 name: "item_click2";
2267                                 signal: "mouse,down,1";
2268                                 source: "over2";
2269                                 script {
2270                                         set_state(PART:"bg", "clicked", 0.0);
2271                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2272                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2273                                 }
2274                         }
2275                         program {
2276                                 name: "item_unclick2";
2277                                 signal: "mouse,up,1";
2278                                 source: "over2";
2279                                 script {
2280                                         set_state(PART:"bg", "default", 0.0);
2281                                         set_state(PART:"left_bg_padding", "default", 0.0);
2282                                         set_state(PART:"right_bg_padding", "default", 0.0);
2283                                 }
2284                         }
2285                 }
2286         }
2287
2288 ///////////////////////////////////////////////////////////////////////////////////////
2289 #define CTXPOPUP_IE_FONT_COLOR 255 255 255 255
2290 #define CTXPOPUP_IE_CLICKED_FONT_COLOR 255 255 100 255
2291 #define CTXPOPUP_IE_SEPARATOR_COLOR 120 120 120 255
2292 #define CTXPOPUP_IE_ITEM_DISABLED_COLOR 200 200 200 127
2293 #define CTXPOPUP_IE_SEPARATOR_PADDING_SIZE 6 2
2294 ///////////////////////////////////////////////////////////////////////////////
2295 group {
2296         name: "elm/ctxpopup/base/extended/imageeditor";
2297         images {
2298                 image: "imageeditor_bg.png" COMP;
2299         }
2300         parts {
2301                 part {
2302                         name: "ctxpopup_frame";
2303                         type: IMAGE;
2304                         scale: 1;
2305                         description {
2306                                 image {
2307                                         normal: "imageeditor_bg.png";
2308                                         border: 10 10 10 10;
2309                                         border_scale: 1;
2310                                 }
2311                         }
2312                 }
2313                 part {
2314                         name: "elm.swallow.content";
2315                         type: SWALLOW;
2316                         description {
2317                                 state: "default" 0.0;
2318                         }
2319                 }//part
2320         }//parts
2321 }
2322 ///////////////////////////////////////////////////////////////////////////////
2323 group { name: "elm/ctxpopup/arrow/extended/imageeditor";
2324         images {
2325                 image: "imageeditor_left_arrow.png" COMP;
2326                 image: "imageeditor_right_arrow.png" COMP;
2327                 image: "imageeditor_top_arrow.png" COMP;
2328                 image: "imageeditor_bottom_arrow.png" COMP;
2329         }
2330         parts {
2331                 part {
2332                         name: "ctxpopup_arrow";
2333                         type: IMAGE;
2334                         scale: 1;
2335                         description {
2336                                 state: "default" 0.0;
2337                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2338                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2339                                 fixed: 1 1;
2340                                 visible: 0;
2341                                 align: 0.5 0.5;
2342                         }
2343                         description {
2344                                 state: "left" 0.0;
2345                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2346                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2347                                 fixed: 1 1;
2348                                 align: 0.0 0.5;
2349                                 image {
2350                                         normal: "imageeditor_left_arrow.png";
2351                                 }
2352                         }
2353                         description {
2354                                 state: "right" 0.0;
2355                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2356                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2357                                 fixed: 1 1;
2358                                 align: 1.0 0.5;
2359                                 image {
2360                                         normal: "imageeditor_right_arrow.png";
2361                                 }
2362                         }
2363                         description {
2364                                 state: "top" 0.0;
2365                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2366                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2367                                 fixed: 1 1;
2368                                 align: 0.5 0.0;
2369                                 image {
2370                                         normal: "imageeditor_top_arrow.png";
2371                                 }
2372                         }
2373                         description {
2374                                 state: "bottom" 0.0;
2375                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2376                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2377                                 fixed: 1 1;
2378                                 align: 0.5 1.0;
2379                                 image {
2380                                         normal: "imageeditor_bottom_arrow.png";
2381                                 }
2382                         }
2383                 }
2384         }
2385         programs {
2386                 program {
2387                         name: "enable_left_arrow";
2388                         signal: "elm,state,left";
2389                         source: "elm";
2390                         action: STATE_SET "left" 0.0;
2391                         target: "ctxpopup_arrow";
2392                 }
2393                 program {
2394                         name: "enable_right_arrow";
2395                         signal: "elm,state,right";
2396                         source: "elm";
2397                         action: STATE_SET "right" 0.0;
2398                         target: "ctxpopup_arrow";
2399                 }
2400                 program {
2401                         name: "enable_top_arrow";
2402                         signal: "elm,state,top";
2403                         source: "elm";
2404                         action: STATE_SET "top" 0.0;
2405                         target: "ctxpopup_arrow";
2406                 }
2407                 program {
2408                         name: "enable_bottom_arrow";
2409                         signal: "elm,state,bottom";
2410                         source: "elm";
2411                         action: STATE_SET "bottom" 0.0;
2412                         target: "ctxpopup_arrow";
2413                 }
2414         }
2415 }
2416 ///////////////////////////////////////////////////////////////////////////////
2417 group {
2418         name: "elm/ctxpopup/icon_text_style_item/extended/imageeditor";
2419         images {
2420                 image: "imageeditor_bar_press.png" COMP;
2421         }
2422
2423         parts {
2424                 part {
2425                         name: "event_blocker";
2426                         mouse_events: 1;
2427                         description {
2428                                 state: "default" 0.0;
2429                         }
2430                 }
2431
2432                 part {
2433                         name: "bg";
2434                         mouse_events: 0;
2435                         type: IMAGE;
2436                         description {
2437                                 state: "default" 0.0;
2438                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2439                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2440                                 visible: 0;
2441                         }
2442                         description {
2443                                 state: "clicked" 0.0;
2444                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2445                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2446                                 image {
2447                                         normal: "imageeditor_bar_press.png";
2448                                         border: 10 10 10 10;
2449                                         border_scale: 1;
2450                                 }
2451                         }
2452                 }
2453
2454                 part {
2455                         name: "icon_left_padding";
2456                         type: RECT;
2457                         scale: 1;
2458                         mouse_events: 0;
2459                         description {
2460                                 state: "default" 0.0;
2461                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2462                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2463                                 align: 0 0;
2464                                 fixed: 1 1;
2465                                 visible: 0;
2466                         }
2467                 }
2468                 part {
2469                         name: "separator_left_top_padding";
2470                         type: RECT;
2471                         scale: 1;
2472                 description {
2473                                 state: "default" 0.0;
2474                                 visible: 0;
2475                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2476                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2477                                 align: 0 0;
2478                                 fixed: 1 1;
2479                         }
2480                 }
2481                 part {
2482                         name: "separator_right_top_padding";
2483                         type: RECT;
2484                         scale: 1;
2485                 description {
2486                                 state: "default" 0.0;
2487                                 visible: 0;
2488                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2489                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2490                                 align: 1 0;
2491                                 fixed: 1 1;
2492                         }
2493                 }
2494                 part {
2495                         name: "separator_left_bottom_padding";
2496                         type: RECT;
2497                         scale: 1;
2498                 description {
2499                                 state: "default" 0.0;
2500                                 visible: 0;
2501                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2502                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2503                                 align: 0 1;
2504                                 fixed: 1 1;
2505                         }
2506                 }
2507                 part {
2508                         name: "separator_right_bottom_padding";
2509                         type: RECT;
2510                         scale: 1;
2511                 description {
2512                                 state: "default" 0.0;
2513                                 visible: 0;
2514                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2515                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2516                                 align: 1 1;
2517                                 fixed: 1 1;
2518                         }
2519                 }
2520
2521                 part {
2522                         name: "bottom_separator";
2523                         mouse_events: 0;
2524                         type: RECT;
2525                         scale: 1;
2526                         description {
2527                                 state: "default" 0.0;
2528                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2529                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2530                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2531                         }
2532                 }
2533                 part {
2534                         name: "elm.swallow.icon";
2535                         type: SWALLOW;
2536                         scale: 1;
2537                         description {
2538                                 state: "default" 0.0;
2539                                 min: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2540                                 max: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2541                                 align: 0 0.5;
2542                                 aspect: 1.0 1.0;
2543                                 rel1 { to:"icon_left_padding"; relative: 1 0; }
2544                         }
2545                 }
2546                 part {
2547                         name: "icon_right_padding";
2548                         type: RECT;
2549                         scale: 1;
2550                         mouse_events: 0;
2551                         description {
2552                                 state: "default" 0.0;
2553                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2554                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2555                                 align: 0 0.5;
2556                                 fixed: 1 1;
2557                                 visible: 0;
2558                                 rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2559                         }
2560                 }
2561                 part {
2562                         name: "elm.text";
2563                         type:  TEXT;
2564                         mouse_events:  0;
2565                         scale: 1;
2566                         description {
2567                                 state: "default" 0.0;
2568                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2569                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_IE_ITEM_PADDING_INC)-CTXPOPUP_IE_ICON_WIDTH_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
2570                                 fixed: 0 1;
2571                                 align: 0.5 0.5;
2572                                 rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
2573                                 rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
2574                                 color: CTXPOPUP_IE_FONT_COLOR;
2575                                 text {
2576                                         font: FONT_ROM;
2577                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
2578                                         align: 0.0 0.5;
2579                                         min: 1 1;
2580                                 }
2581                         }
2582                         description {
2583                                 state: "clicked" 0.0;
2584                                 inherit: "default" 0.0;
2585                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2586                         }
2587                 }
2588                 part {
2589                         name: "text_right_padding";
2590                         type: RECT;
2591                         scale: 1;
2592                         mouse_events: 0;
2593                         description {
2594                                 state: "default" 0.0;
2595                                 visible: 0;
2596                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2597                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2598                                 fixed: 1 0;
2599                                 align: 1.0 0.5;
2600                 }
2601                 }
2602                 part {
2603                         name: "over1";
2604                         mouse_events: 1;
2605                         repeat_events: 1;
2606                         ignore_flags: ON_HOLD;
2607                         description {
2608                                 state: "default" 0.0;
2609                         }
2610                 }
2611                 part {
2612                         name: "over2";
2613                         mouse_events: 1;
2614                         repeat_events: 1;
2615                         description {
2616                                 state: "default" 0.0;
2617                         }
2618                 }
2619                 part {
2620                         name: "disclip";
2621                         type: RECT;
2622                         description {
2623                                 state: "default" 0.0;
2624                                 visible: 0;
2625                         }
2626                         description {
2627                                 state: "disabled" 0.0;
2628                                 visible: 1;
2629                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
2630                         }
2631                 }
2632         }
2633         programs {
2634                 program {
2635                         name: "item_unclick";
2636                         signal: "mouse,up,1";
2637                         source: "over1";
2638                         action: SIGNAL_EMIT "elm,action,click" "";
2639                 }
2640                 program {
2641                         name: "disable";
2642                         signal: "elm,state,disabled";
2643                         source: "elm";
2644                         action: STATE_SET "disabled" 0.0;
2645                         target: "disclip";
2646                 }
2647                 program {
2648                         name: "enable";
2649                         signal: "elm,state,enabled";
2650                         source: "elm";
2651                         action: STATE_SET "default" 0.0;
2652                         target: "disclip";
2653                 }
2654                 program {
2655                         name: "item_click2";
2656                         signal: "mouse,down,1";
2657                         source: "over2";
2658                         script {
2659                                 set_state(PART:"elm.text", "clicked", 0.0);
2660                         }
2661                 }
2662                 program {
2663                         name: "item_unclick2";
2664                         signal: "mouse,up,1";
2665                         source: "over2";
2666                         script {
2667                                 set_state(PART:"elm.text", "default", 0.0);
2668                         }
2669                 }
2670         }
2671 }
2672 ///////////////////////////////////////////////////////////////////////////////////////
2673 group {
2674         name: "elm/ctxpopup/text_style_item/extended/imageeditor";
2675         images {
2676                 image: "imageeditor_bar_press.png" COMP;
2677         }
2678
2679         parts {
2680                 part {
2681                         name: "separator_left_padding";
2682                         type: RECT;
2683                         scale: 1;
2684                 description {
2685                                 state: "default" 0.0;
2686                                 visible: 0;
2687                                 min: 2 2;
2688                                 max: 2 2;
2689                                 align: 0 1;
2690                                 fixed: 1 1;
2691                         }
2692                 }
2693                 part {
2694                         name: "bg";
2695                         mouse_events: 0;
2696                         type: IMAGE;
2697                         description {
2698                         state: "default" 0.0;
2699                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2700                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2701                         visible: 0;
2702                         }
2703                         description {
2704                                 state: "clicked" 0.0;
2705                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2706                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2707                         image {
2708                                         normal: "imageeditor_bar_press.png";
2709                                         border: 10 10 10 10;
2710                                         border_scale: 1;
2711                                 }
2712                         }
2713                 }
2714                 part {
2715                         name: "separator_left_top_padding";
2716                         type: RECT;
2717                         scale: 1;
2718                         description {
2719                                 state: "default" 0.0;
2720                                 visible: 0;
2721                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2722                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2723                                 align: 0 0;
2724                                 fixed: 1 1;
2725                         }
2726                 }
2727                 part {
2728                         name: "separator_right_top_padding";
2729                         type: RECT;
2730                         scale: 1;
2731                         description {
2732                                 state: "default" 0.0;
2733                                 visible: 0;
2734                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2735                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2736                                 align: 1 0;
2737                                 fixed: 1 1;
2738                         }
2739                 }
2740                 part {
2741                         name: "separator_left_bottom_padding";
2742                         type: RECT;
2743                         scale: 1;
2744                         description {
2745                                 state: "default" 0.0;
2746                                 visible: 0;
2747                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2748                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2749                                 align: 0 1;
2750                                 fixed: 1 1;
2751                         }
2752                 }
2753                 part {
2754                         name: "separator_right_bottom_padding";
2755                         type: RECT;
2756                         scale: 1;
2757                         description {
2758                                 state: "default" 0.0;
2759                                 visible: 0;
2760                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2761                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2762                                 align: 1 1;
2763                                 fixed: 1 1;
2764                         }
2765                 }
2766
2767                 part {
2768                         name: "bottom_separator";
2769                         mouse_events: 0;
2770                         type: RECT;
2771                         scale: 1;
2772                         description {
2773                                 state: "default" 0.0;
2774                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2775                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2776                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2777                         }
2778                 }
2779                 part {
2780                         name: "left_padding";
2781                         type: RECT;
2782                         scale: 1;
2783                         mouse_events: 0;
2784                         description {
2785                                 state: "default" 0.0;
2786                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2787                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2788                                 align: 0 0.5;
2789                                 fixed: 1 1;
2790                                 visible: 0;
2791                         }
2792                 }
2793                 part {
2794                         name: "elm.text";
2795                         type:  TEXT;
2796                         mouse_events:  0;
2797                         scale: 1;
2798                         description {
2799                                 state: "default" 0.0;
2800                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2801                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_IE_ITEM_PADDING_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
2802                                 fixed: 0 1;
2803                                 align: 0.5 0.5;
2804                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
2805                                 rel2 {relative: 0.0 1.0; to: "right_padding";}
2806                                 color: CTXPOPUP_IE_FONT_COLOR;
2807                                 text {
2808                                         font: FONT_ROM;
2809                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
2810                                         align: 0.5 0.5;
2811                                         min: 1 1;
2812                                 }
2813                         }
2814                         description {
2815                                 state: "clicked" 0.0;
2816                                 inherit: "default" 0.0;
2817                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2818                         }
2819                 }
2820                 part {
2821                         name: "right_padding";
2822                         scale: 1;
2823                         mouse_events: 0;
2824                         description {
2825                                 state: "default" 0.0;
2826                                 visible: 0;
2827                                 min: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2828                                 max: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2829                                 fixed: 1 0;
2830                                 align: 1.0 0.5;
2831                         }
2832                 }
2833                 part {
2834                         name: "over1";
2835                         mouse_events: 1;
2836                         repeat_events: 1;
2837                         ignore_flags: ON_HOLD;
2838                         description {
2839                                 state: "default" 0.0;
2840                         }
2841                 }
2842                 part {
2843                         name: "over2";
2844                         mouse_events: 1;
2845                         repeat_events: 1;
2846                         description {
2847                                 state: "default" 0.0;
2848                         }
2849                 }
2850                 part {
2851                         name: "disclip";
2852                         type: RECT;
2853                         description {
2854                                 state: "default" 0.0;
2855                                 visible: 0;
2856                         }
2857                         description {
2858                                 state: "disabled" 0.0;
2859                                 visible: 1;
2860                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
2861                         }
2862                 }
2863
2864         }
2865
2866         programs {
2867                 program {
2868                         name: "item_unclick";
2869                         signal: "mouse,up,1";
2870                         source: "over1";
2871                         action: SIGNAL_EMIT "elm,action,click" "";
2872                 }
2873                 program {
2874                         name: "disable";
2875                         signal: "elm,state,disabled";
2876                         source: "elm";
2877                         action: STATE_SET "disabled" 0.0;
2878                         target: "disclip";
2879                 }
2880                 program {
2881                         name: "enable";
2882                         signal: "elm,state,enabled";
2883                         source: "elm";
2884                         action: STATE_SET "default" 0.0;
2885                         target: "disclip";
2886                 }
2887
2888                 program {
2889                         name: "item_click2";
2890                         signal: "mouse,down,1";
2891                         source: "over2";
2892                         script {
2893                                 set_state(PART:"elm.text", "clicked", 0.0);
2894                         }
2895                 }
2896                 program {
2897                         name: "item_unclick2";
2898                         signal: "mouse,up,1";
2899                         source: "over2";
2900                         script {
2901                                 set_state(PART:"elm.text", "default", 0.0);
2902                         }
2903                 }
2904         }
2905 }
2906
2907 ///////////////////////////////////////////////////////////////////////////////////////
2908 #define CTXPOPUP_TP_TEXT_WIDTH 32
2909 #define CTXPOPUP_TP_PADDING 15
2910 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
2911 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
2912 #define CTXPOPUP_TP_FONT_SIZE 24
2913 ///////////////////////////////////////////////////////////////////////////////
2914 group {
2915         name: "elm/ctxpopup/base/datefield/default";
2916         alias: "elm/ctxpopup/base/datefield/calendar";
2917         alias: "elm/ctxpopup/base/datefield/clk_default";
2918         alias: "elm/ctxpopup/base/timepicker";
2919         parts {
2920                 part {
2921                         name: "ctxpopup_frame";
2922                         type: RECT;
2923                         scale: 1;
2924                         description {
2925                                 color: CTXPOPUP_TP_BG_COLOR_INC;
2926                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
2927                                 rel1 { to: "elm.swallow.content"; }
2928                                 rel2 { to: "elm.swallow.content"; }
2929                         }
2930                 }
2931                 part {
2932                         name: "elm.swallow.content";
2933                         type: SWALLOW;
2934                         scale: 1;
2935                         description {
2936                                 state: "default" 0.0;
2937                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
2938                         }
2939                 }
2940                 part { name: "arrow_area_left";
2941                                 type: RECT;
2942                                 mouse_events: 0;
2943                                 scale: 1;
2944                                 description { state: "default" 0.0;
2945                                         visible: 0;
2946                                         min: 20 0;
2947                                         max: 20 CTXPOPUP_TP_HEIGHT_INC;
2948                                         fixed: 1 1;
2949                                         align: 1 0.5;
2950                                         rel1 {
2951                                                 relative: 0 0;
2952                                                 to_y: "ctxpopup_frame";
2953                                         }
2954                                         rel2 {
2955                                                 relative:0 1;
2956                                                 to:"ctxpopup_frame";
2957                                         }
2958                                 }
2959                         }
2960                         part { name: "arrow_area_right";
2961                                 type: RECT;
2962                                 mouse_events: 0;
2963                                 scale: 1;
2964                                 description { state: "default" 0.0;
2965                                         visible: 0;
2966                                         min: 20 0;
2967                                         max: 20 CTXPOPUP_TP_HEIGHT_INC;
2968                                         fixed: 1 1;
2969                                         align: 0 0.5;
2970                                         rel1 {
2971                                                 relative: 1 0;
2972                                                 to:"ctxpopup_frame";
2973                                         }
2974                                         rel2 {
2975                                                 relative: 1 1;
2976                                                 to_y: "ctxpopup_frame";
2977                                         }
2978                                 }
2979                         }
2980                         part { name: "arrow_area_up";
2981                                 type: RECT;
2982                                 mouse_events: 0;
2983                                 scale: 1;
2984                                 description { state: "default" 0.0;
2985                                         visible: 0;
2986                                         min: 0 20;
2987                                         max: CTXPOPUP_TP_CONTENT_MAX_INC 20;
2988                                         fixed: 1 1;
2989                                         align: 0.5 1;
2990                                         rel1 {
2991                                                 relative: 0 0;
2992                                                 to_x: "ctxpopup_frame";
2993                                         }
2994                                         rel2 {
2995                                                 relative: 1 0;
2996                                                 to:"ctxpopup_frame";
2997                                         }
2998                                 }
2999                         }
3000                         part { name: "arrow_area_down";
3001                                 type: RECT;
3002                                 mouse_events: 0;
3003                                 scale: 1;
3004                                 description { state: "default" 0.0;
3005                                         visible: 0;
3006                                         min: 0 20;
3007                                         max: CTXPOPUP_TP_CONTENT_MAX_INC 20;
3008                                         fixed: 1 1;
3009                                         align: 0.5 0;
3010                                         rel1 {
3011                                                 relative: 0 1;
3012                                                 to:"ctxpopup_frame";
3013                                         }
3014                                         rel2 {
3015                                                 relative: 1 1;
3016                                                 to_x: "ctxpopup_frame";
3017                                         }
3018                                 }
3019                         }
3020                         part { name: "elm.swallow.arrow_up";
3021                                 type: SWALLOW;
3022                                 mouse_events: 0;
3023                                 scale: 1;
3024                                 dragable {
3025                                         x: 1 1 0;
3026                                         y: 1 1 0;
3027                                         confine: "arrow_area_up";
3028                                 }
3029                                 description {
3030                                         state: "default" 0.0;
3031                                         min: 20 20;
3032                                         fixed: 1 1;
3033                                         visible: 1;
3034                                 }
3035                         }
3036                         part { name: "elm.swallow.arrow_down";
3037                                 type: SWALLOW;
3038                                 mouse_events: 0;
3039                                 scale: 1;
3040                                 dragable {
3041                                         x: 1 1 0;
3042                                         y: 1 1 0;
3043                                         confine: "arrow_area_down";
3044                                 }
3045                                 description {
3046                                         state: "default" 0.0;
3047                                         min: 20 20;
3048                                         fixed: 1 1;
3049                                         visible: 1;
3050                                 }
3051                         }
3052                         part { name: "elm.swallow.arrow_left";
3053                                 type: SWALLOW;
3054                                 mouse_events: 0;
3055                                 scale: 1;
3056                                 dragable {
3057                                         x: 1 1 0;
3058                                         y: 1 1 0;
3059                                         confine: "arrow_area_left";
3060                                 }
3061                                 description {
3062                                         state: "default" 0.0;
3063                                         min: 20 20;
3064                                         fixed: 1 1;
3065                                         visible: 1;
3066                                 }
3067                         }
3068                         part { name: "elm.swallow.arrow_right";
3069                                 type: SWALLOW;
3070                                 mouse_events: 0;
3071                                 scale: 1;
3072                                 dragable {
3073                                         x: 1 1 0;
3074                                         y: 1 1 0;
3075                                         confine: "arrow_area_right";
3076                                 }
3077                                 description {
3078                                         state: "default" 0.0;
3079                                         min: 20 20;
3080                                         fixed: 1 1;
3081                                         visible: 1;
3082                                 }
3083                         }
3084         }
3085 }
3086 ///////////////////////////////////////////////////////////////////////////////
3087 group { name: "elm/ctxpopup/arrow/datefield/default";
3088         alias: "elm/ctxpopup/arrow/datefield/calendar";
3089         alias: "elm/ctxpopup/arrow/datefield/clk_default";
3090         alias: "elm/ctxpopup/arrow/timepicker";
3091         images {
3092                 image: "timepicker_left_arrow.png" COMP;
3093                 image: "timepicker_right_arrow.png" COMP;
3094                 image: "timepicker_top_arrow.png" COMP;
3095                 image: "timepicker_bottom_arrow.png" COMP;
3096         }
3097         parts {
3098                 part {
3099                         name: "ctxpopup_arrow";
3100                         type: IMAGE;
3101                         scale: 1;
3102                         description {
3103                                 state: "default" 0.0;
3104                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3105                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3106                                 fixed: 1 1;
3107                                 visible: 0;
3108                                 align: 0.5 0.5;
3109                         }
3110                         description {
3111                                 state: "left" 0.0;
3112                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3113                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3114                                 fixed: 1 1;
3115                                 align: 1.0 0.5;
3116                                 image {
3117                                         normal: "timepicker_left_arrow.png";
3118                                 }
3119                         }
3120                         description {
3121                                 state: "right" 0.0;
3122                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3123                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3124                                 fixed: 1 1;
3125                                 align: 0.0 0.5;
3126                                 image {
3127                                         normal: "timepicker_right_arrow.png";
3128                                 }
3129                         }
3130                         description {
3131                                 state: "top" 0.0;
3132                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3133                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3134                                 fixed: 1 1;
3135                                 align: 0.5 1.0;
3136                                 image {
3137                                         normal: "timepicker_top_arrow.png";
3138                                 }
3139                         }
3140                         description {
3141                                 state: "bottom" 0.0;
3142                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3143                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3144                                 fixed: 1 1;
3145                                 align: 0.5 0.0;
3146                                 image {
3147                                         normal: "timepicker_bottom_arrow.png";
3148                                 }
3149                         }
3150                 }
3151         }
3152         programs {
3153                 program {
3154                         name: "enable_left_arrow";
3155                         signal: "elm,state,left";
3156                         source: "elm";
3157                         action: STATE_SET "left" 0.0;
3158                         target: "ctxpopup_arrow";
3159                 }
3160                 program {
3161                         name: "enable_right_arrow";
3162                         signal: "elm,state,right";
3163                         source: "elm";
3164                         action: STATE_SET "right" 0.0;
3165                         target: "ctxpopup_arrow";
3166                 }
3167                 program {
3168                         name: "enable_top_arrow";
3169                         signal: "elm,state,top";
3170                         source: "elm";
3171                         action: STATE_SET "top" 0.0;
3172                         target: "ctxpopup_arrow";
3173                 }
3174                 program {
3175                         name: "enable_bottom_arrow";
3176                         signal: "elm,state,bottom";
3177                         source: "elm";
3178                         action: STATE_SET "bottom" 0.0;
3179                         target: "ctxpopup_arrow";
3180                 }
3181         }
3182 }
3183 ///////////////////////////////////////////////////////////////////////////////
3184 group {
3185         name: "elm/ctxpopup/text_style_item/datefield/default";
3186         alias: "elm/ctxpopup/text_style_item/datefield/calendar";
3187         alias: "elm/ctxpopup/text_style_item/datefield/clk_default";
3188         alias: "elm/ctxpopup/text_style_item/timepicker";
3189         parts {
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_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3198                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_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: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3212                                 max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3213                                 fixed: 1 1;
3214                                 align: 0 0;
3215                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3216                                 color: CTXPOPUP_TP_FONT_COLOR;
3217                                 text {
3218                                         font: FONT_ROM;
3219                                         size: CTXPOPUP_TP_FONT_SIZE;
3220                                         align: 0.5 0.5;
3221                                         min: 1 1;
3222                                 }
3223                         }
3224                         description {
3225                                 state: "clicked" 0.0;
3226                                 inherit: "default" 0.0;
3227                                 color: 255 255 255 255;
3228                         }
3229                 }
3230                 part {
3231                         name: "right_padding";
3232                         scale: 1;
3233                         mouse_events: 0;
3234                         description {
3235                                 state: "default" 0.0;
3236                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3237                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3238                                 align: 0 0;
3239                         rel1 {relative: 1.0 0.0; to: "elm.text";}
3240                                 visible: 0;
3241         }
3242                 }
3243                 part {
3244                         name: "over1";
3245                         mouse_events: 1;
3246                         repeat_events: 1;
3247                         ignore_flags: ON_HOLD;
3248                         description {
3249                                 state: "default" 0.0;
3250                         }
3251                 }
3252                 part {
3253                         name: "over2";
3254                         mouse_events: 1;
3255                         repeat_events: 1;
3256                         description {
3257                                 state: "default" 0.0;
3258                         }
3259                 }
3260         }
3261
3262         programs {
3263                 program {
3264                         name: "item_unclick";
3265                         signal: "mouse,up,1";
3266                         source: "over1";
3267                         action: SIGNAL_EMIT "elm,action,click" "";
3268                 }
3269                 program {
3270                         name: "item_click";
3271                         signal: "mouse,down,1";
3272                         source: "over2";
3273                         script {
3274                                 set_state(PART:"elm.text", "clicked", 0.0);
3275                         }
3276                 }
3277                 program {
3278                         name: "item_unclick2";
3279                         signal: "mouse,up,1";
3280                         source: "over2";
3281                         script {
3282                                 set_state(PART:"elm.text", "default", 0.0);
3283                         }
3284                 }
3285         }
3286 }