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