[ctxpopup] take imageeditor, timepicker style from beat-winset-test; fix the incorrec...
[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: 1.0 0.0;}
809                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.0 1.0;}
810                                 }
811                                 description {
812                                         state: "horizontal" 0.0;
813                                         align: 0 0;
814                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.0 1.0;}
815                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 1.0 0.0;}
816                                 }
817                         }
818                 }
819                 programs {
820                         program {
821                                 name: "vertical";
822                                 signal: "elm,state,vertical";
823                                 source: "elm";
824                                 script {
825                                         set_state(PART:"elm.swallow.content", "default", 0.0);
826                                 }
827                         }
828                         program {
829                                 name: "horizontal";
830                                 signal: "elm,state,horizontal";
831                                 source: "elm";
832                                 script {
833                                         set_state(PART:"elm.swallow.content", "horizontal", 0.0);
834                                 }
835                         }
836                 }
837         }
838
839
840
841 ///////////////////////////////////////////////////////////////////////////////
842         group { name: "elm/ctxpopup/arrow/default";
843                 images {
844                         image: "00_popup_tail_left.png" COMP;
845                         image: "00_popup_tail_right.png" COMP;
846                         image: "00_popup_tail_top.png" COMP;
847                         image: "00_popup_tail_bottom.png" COMP;
848                 }
849                 parts {
850                         part {
851                                 name: "ctxpopup_arrow";
852                                 type: IMAGE;
853                                 scale: 1;
854                                 description {
855                                         state: "default" 0.0;
856                                         min: CTXPOPUP_ARROW_SIZE;
857                                         max: CTXPOPUP_ARROW_SIZE;
858                                         fixed: 1 1;
859                                         visible: 0;
860                                         align: 0.5 0.5;
861                                 }
862                                 description {
863                                         state: "left" 0.0;
864                                         min: CTXPOPUP_ARROW_SIZE;
865                                         max: CTXPOPUP_ARROW_SIZE;
866                                         fixed: 1 1;
867                                         align: 1.0 0.5;
868                                         image {
869                                                 normal: "00_popup_tail_left.png";
870                                         }
871                                 }
872                                 description {
873                                         state: "right" 0.0;
874                                         min: CTXPOPUP_ARROW_SIZE;
875                                         max: CTXPOPUP_ARROW_SIZE;
876                                         fixed: 1 1;
877                                         align: 0.0 0.5;
878                                         image {
879                                                 normal: "00_popup_tail_right.png";
880                                         }
881                                 }
882                                 description {
883                                         state: "top" 0.0;
884                                         min: CTXPOPUP_ARROW_SIZE;
885                                         max: CTXPOPUP_ARROW_SIZE;
886                                         fixed: 1 1;
887                                         align: 0.5 1.0;
888                                         image {
889                                                 normal: "00_popup_tail_top.png";
890                                         }
891                                 }
892                                 description {
893                                         state: "bottom" 0.0;
894                                         min: CTXPOPUP_ARROW_SIZE;
895                                         max: CTXPOPUP_ARROW_SIZE;
896                                         fixed: 1 1;
897                                         align: 0.5 0.0;
898                                         image {
899                                                 normal: "00_popup_tail_bottom.png";
900                                         }
901                                 }
902                         }
903                 }
904                 programs {
905                         program {
906                                 name: "enable_left_arrow";
907                                 signal: "elm,state,left";
908                                 source: "elm";
909                                 action: STATE_SET "left" 0.0;
910                                 target: "ctxpopup_arrow";
911                         }
912                         program {
913                                 name: "enable_right_arrow";
914                                 signal: "elm,state,right";
915                                 source: "elm";
916                                 action: STATE_SET "right" 0.0;
917                                 target: "ctxpopup_arrow";
918                         }
919                         program {
920                                 name: "enable_top_arrow";
921                                 signal: "elm,state,top";
922                                 source: "elm";
923                                 action: STATE_SET "top" 0.0;
924                                 target: "ctxpopup_arrow";
925                         }
926                         program {
927                                 name: "enable_bottom_arrow";
928                                 signal: "elm,state,bottom";
929                                 source: "elm";
930                                 action: STATE_SET "bottom" 0.0;
931                                 target: "ctxpopup_arrow";
932                         }
933                 }
934         }
935 ///////////////////////////////////////////////////////////////////////////////
936         group {
937                 name: "elm/ctxpopup/text_style_item/default";
938                 images {
939                         image: "00_list_bar_press.png" COMP;
940                 }
941                 parts {
942                         part {
943                                 name: "event_blocker";
944                                 mouse_events: 1;
945                                 description {
946                                         state: "default" 0.0;
947                                         color: 0 0 0 0;
948                                 }
949                         }
950                         part {
951                                 name: "bg";
952                                 mouse_events: 0;
953                                 type: IMAGE;
954                                 description {
955                                         state: "default" 0.0;
956                                         visible: 0;
957                                 }
958                                 description {
959                                         state: "clicked" 0.0;
960                                         image {
961                                                 normal: "00_list_bar_press.png";
962                                                 border: 10 10 10 10;
963                                                 border_scale: 1;
964                                         }
965                                 }
966                         }
967                         part {
968                                 name: "bottom_separator";
969                                 mouse_events: 0;
970                                 type: RECT;
971                                 scale: 1;
972                                 description {
973                                         state: "default" 0.0;
974                                         color: CTXPOPUP_SEPARATOR_COLOR;
975                                         align: 0.5 1;
976                                         min: 0 1;
977                                         max: 999999 1;
978                                         rel2 { offset: 0 0.5; }
979                                 }
980                                 description {
981                                         state: "horizontal" 0.0;
982                                         visible: 0;
983                                 }
984                         }
985                         part {
986                                 name: "right_separator";
987                                 mouse_events: 0;
988                                 type: RECT;
989                                 scale: 1;
990                                 description {
991                                         state: "default" 0.0;
992                                         color: CTXPOPUP_SEPARATOR_COLOR;
993                                         align: 1 0.5;
994                                         min: 1 0;
995                                         max: 1 999999;
996                                         rel2 { offset: 0.5 0; }
997                                         visible: 0;
998                                 }
999                                 description {
1000                                         state: "horizontal" 0.0;
1001                                         color: CTXPOPUP_SEPARATOR_COLOR;
1002                                         align: 1 0.5;
1003                                         min: 1 0;
1004                                         max: 1 999999;
1005                                         rel2 { offset: 0.5 0; }
1006                                         visible: 1;
1007                                 }
1008                         }
1009                         part {
1010                                 name: "left_padding";
1011                                 scale: 1;
1012                                 mouse_events: 0;
1013                                 description {
1014                                         state: "default" 0.0;
1015                                         min: 30 CTXPOPUP_ITEM_HEIGHT;
1016                                         max: 30 CTXPOPUP_ITEM_HEIGHT;
1017                                         align: 0 0.5;
1018                                         fixed: 1 1;
1019                                         visible: 0;
1020                                 }
1021                         }
1022                         part {
1023                                 name: "elm.text";
1024                                 type: TEXT;
1025                                 mouse_events: 0;
1026                                 scale: 1;
1027                                 description {
1028                                         state: "default" 0.0;
1029                                         min: 1 CTXPOPUP_ITEM_HEIGHT;
1030                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX-2*CTXPOPUP_ITEM_PADDING) CTXPOPUP_ITEM_HEIGHT;
1031                                         fixed: 0 1;
1032                                         align: 0.5 0.5;
1033                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
1034                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
1035                                         color: CTXPOPUP_FONT_COLOR;
1036                                         text {
1037                                                 font: "SLP:style=Roman";
1038                                                 size: 34;
1039                                                 align: 0.5 0.5;
1040                                                 min: 1 1;
1041                                         }
1042                                 }
1043                                 description {
1044                                         state: "clicked" 0.0;
1045                                         inherit: "default" 0.0;
1046                                         color: CTXPOPUP_CLICKED_FONT_COLOR;
1047                                 }
1048                         }
1049                         part {
1050                                 name: "right_padding";
1051                                 scale: 1;
1052                                 mouse_events: 0;
1053                                 description {
1054                                         state: "default" 0.0;
1055                                         visible: 0;
1056                                         min: 30 CTXPOPUP_ITEM_HEIGHT;
1057                                         max: 30 CTXPOPUP_ITEM_HEIGHT;
1058                                         fixed: 1 0;
1059                                         align: 1.0 0.5;
1060                         }
1061                         }
1062                         part {
1063                                 name: "over1";
1064                                 mouse_events: 1;
1065                                 repeat_events: 1;
1066                                 ignore_flags: ON_HOLD;
1067                                 description {
1068                                         state: "default" 0.0;
1069                                 }
1070                         }
1071                         part {
1072                                 name: "over2";
1073                                 mouse_events: 1;
1074                                 repeat_events: 1;
1075                                 description {
1076                                         state: "default" 0.0;
1077                                 }
1078                         }
1079                         part {
1080                                 name: "disclip";
1081                                 type: RECT;
1082                                 description {
1083                                         state: "default" 0.0;
1084                                         visible: 0;
1085                                 }
1086                                 description {
1087                                         state: "disabled" 0.0;
1088                                         visible: 1;
1089                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1090                                 }
1091                         }
1092                 }
1093                 programs {
1094                         program {
1095                                 name: "item_unclick";
1096                                 signal: "mouse,up,1";
1097                                 source: "over1";
1098                                 action: SIGNAL_EMIT "elm,action,click" "";
1099                         }
1100                         program {
1101                                 name: "disable";
1102                                 signal: "elm,state,disabled";
1103                                 source: "elm";
1104                                 action: STATE_SET "disabled" 0.0;
1105                                 target: "disclip";
1106                         }
1107                         program {
1108                                 name: "enable";
1109                                 signal: "elm,state,enabled";
1110                                 source: "elm";
1111                                 action: STATE_SET "default" 0.0;
1112                                 target: "disclip";
1113                         }
1114                         program {
1115                                 name: "vertical";
1116                                 signal: "elm,state,vertical";
1117                                 source: "elm";
1118                                 script {
1119                                         set_state(PART:"bottom_separator", "default", 0.0);
1120                                         set_state(PART:"right_separator", "default", 0.0);
1121                                 }
1122                         }
1123                         program {
1124                                 name: "horizontal";
1125                                 signal: "elm,state,horizontal";
1126                                 source: "elm";
1127                                 script {
1128                                         set_state(PART:"bottom_separator", "horizontal", 0.0);
1129                                         set_state(PART:"right_separator", "horizontal", 0.0);
1130                                 }
1131                         }
1132
1133                         program {
1134                                 name: "item_click2";
1135                                 signal: "mouse,down,1";
1136                                 source: "over2";
1137                                 script {
1138                                         set_state(PART:"elm.text", "clicked", 0.0);
1139                                         set_state(PART:"bg", "clicked", 0.0);
1140                                 }
1141                         }
1142                         program {
1143                                 name: "item_unclick2";
1144                                 signal: "mouse,up,1";
1145                                 source: "over2";
1146                                 script {
1147                                         set_state(PART:"elm.text", "default", 0.0);
1148                                         set_state(PART:"bg", "default", 0.0);
1149                                 }
1150                         }
1151                 }
1152         }
1153 ///////////////////////////////////////////////////////////////////////////////
1154         group {
1155                 name: "elm/ctxpopup/icon_style_item/default";\
1156                 images {
1157                         image: "00_list_bar_press.png" COMP;
1158                 }
1159                 parts {
1160                         part {
1161                                 name: "event_blocker";
1162                                 mouse_events: 1;
1163                                 description {
1164                                         state: "default" 0.0;
1165                                         color: 0 0 0 0;
1166                                 }
1167                         }
1168                         part {
1169                                 name: "bg";
1170                                 mouse_events: 0;
1171                                 type: IMAGE;
1172                                 description {
1173                                         state: "default" 0.0;
1174                                         visible: 0;
1175                                 }
1176                                 description {
1177                                         state: "clicked" 0.0;
1178                                         image {
1179                                                 normal: "00_list_bar_press.png";
1180                                                 border: 10 10 10 10;
1181                                                 border_scale: 1;
1182                                         }
1183                                 }
1184                         }
1185                         part {
1186                                 name: "left_top_padding";
1187                                 scale: 1;
1188                                 description {
1189                                         min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING;
1190                                         max: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING;
1191                                         visible: 0;
1192                                         align: 0 0;
1193                                         fixed: 1 1;
1194                                 }
1195                         }
1196                         part {
1197                                 name: "right_separator";
1198                                 mouse_events: 0;
1199                                 type: RECT;
1200                                 scale: 1;
1201                                 description {
1202                                         state: "default" 0.0;
1203                                         color: CTXPOPUP_SEPARATOR_COLOR;
1204                                         align: 1 0.5;
1205                                         min: 1 0;
1206                                         max: 1 999999;
1207                                         rel2 { offset: 0 0.5; }
1208                                 }
1209                         }
1210                         part {
1211                                 name: "elm.swallow.icon";
1212                                 type: SWALLOW;
1213                                 scale: 1;
1214                                 description {
1215                                         state: "default" 0.0;
1216                                         min: (CTXPOPUP_ICON_WIDTH+30) CTXPOPUP_ICON_HEIGHT;
1217                                         max: (CTXPOPUP_ICON_WIDTH+30) CTXPOPUP_ICON_HEIGHT;
1218                                         align: 0.5 0.5;
1219                                         aspect: 1.0 1.0;
1220                                         rel1 { to: "left_top_padding"; relative: 1 1; }
1221                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
1222                                 }
1223                         }
1224                         part {
1225                                 name: "right_bottom_padding";
1226                                 scale: 1;
1227                                 description {
1228                                         min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING;
1229                                         max: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_PADDING;
1230                                         visible: 0;
1231                                         align: 1 1;
1232                                         fixed: 1 1;
1233                                 }
1234                         }
1235                         part {
1236                                 name: "over1";
1237                                 mouse_events: 1;
1238                                 repeat_events: 1;
1239                                 ignore_flags: ON_HOLD;
1240                                 description {
1241                                         state: "default" 0.0;
1242                                 }
1243                         }
1244                         part {
1245                                 name: "over2";
1246                                 mouse_events: 1;
1247                                 repeat_events: 1;
1248                                 description {
1249                                         state: "default" 0.0;
1250                                 }
1251                         }
1252                         part {
1253                                 name: "disclip";
1254                                 type: RECT;
1255                                 description {
1256                                         state: "default" 0.0;
1257                                         visible: 0;
1258                                 }
1259                                 description {
1260                                         state: "disabled" 0.0;
1261                                         visible: 1;
1262                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1263                                 }
1264                         }
1265                 }
1266                 programs {
1267                         program {
1268                                 name: "item_unclick";
1269                                 signal: "mouse,up,1";
1270                                 source: "over1";
1271                                 action: SIGNAL_EMIT "elm,action,click" "";
1272                         }
1273                         program {
1274                                 name: "disable";
1275                                 signal: "elm,state,disabled";
1276                                 source: "elm";
1277                                 action: STATE_SET "disabled" 0.0;
1278                                 target: "disclip";
1279                         }
1280                         program {
1281                                 name: "enable";
1282                                 signal: "elm,state,enabled";
1283                                 source: "elm";
1284                                 action: STATE_SET "default" 0.0;
1285                                 target: "disclip";
1286                         }
1287                         program {
1288                                 name: "item_click2";
1289                                 signal: "mouse,down,1";
1290                                 source: "over2";
1291                                 script {
1292                                         set_state(PART:"bg", "clicked", 0.0);
1293                                 }
1294                         }
1295                         program {
1296                                 name: "item_unclick2";
1297                                 signal: "mouse,up,1";
1298                                 source: "over2";
1299                                 script {
1300                                         set_state(PART:"bg", "default", 0.0);
1301                                 }
1302                         }
1303                 }
1304         }
1305 ///////////////////////////////////////////////////////////////////////////////
1306         group {
1307                 name: "elm/ctxpopup/icon_text_style_item/default";
1308                 images {
1309                         image: "00_list_bar_press.png" COMP;
1310                 }
1311                 parts {
1312                         part {
1313                                 name: "event_blocker";
1314                                 mouse_events: 1;
1315                                 description {
1316                                         state: "default" 0.0;
1317                                 }
1318                         }
1319                         part {
1320                                 name: "bg";
1321                                 mouse_events: 0;
1322                                 type: IMAGE;
1323                                 description {
1324                                         state: "default" 0.0;
1325                                         visible: 0;
1326                                 }
1327                                 description {
1328                                         state: "clicked" 0.0;
1329                                         image {
1330                                                 normal: "00_list_bar_press.png";
1331                                                 border: 10 10 10 10;
1332                                                 border_scale: 1;
1333                                         }
1334                                 }
1335                         }
1336                         part {
1337                                 name: "icon_left_padding";
1338                                 scale: 1;
1339                                 mouse_events: 0;
1340                                 description {
1341                                         state: "default" 0.0;
1342                                         min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1343                                         max: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1344                                         align: 0 0;
1345                                         fixed: 1 1;
1346                                         visible: 0;
1347                                 }
1348                         }
1349                         part {
1350                                 name: "bottom_separator";
1351                                 mouse_events: 0;
1352                                 type: RECT;
1353                                 scale: 1;
1354                                 description {
1355                                         state: "default" 0.0;
1356                                         color: CTXPOPUP_SEPARATOR_COLOR;
1357                                         align: 0.5 1;
1358                                         min: 0 1;
1359                                         max: 999999 1;
1360                                         rel2 { offset: 0 0.5; }
1361                                 }
1362                                 description {
1363                                         state: "horizontal" 0.0;
1364                                         visible: 0;
1365                                 }
1366                         }
1367                         part {
1368                                 name: "right_separator";
1369                                 mouse_events: 0;
1370                                 type: RECT;
1371                                 scale: 1;
1372                                 description {
1373                                         state: "default" 0.0;
1374                                         color: CTXPOPUP_SEPARATOR_COLOR;
1375                                         align: 1 0.5;
1376                                         min: 1 0;
1377                                         max: 1 999999;
1378                                         rel2 { offset: 0.5 0; }
1379                                         visible: 0;
1380                                 }
1381                                 description {
1382                                         state: "horizontal" 0.0;
1383                                         color: CTXPOPUP_SEPARATOR_COLOR;
1384                                         align: 1 0.5;
1385                                         min: 1 0;
1386                                         max: 1 999999;
1387                                         rel2 { offset: 0.5 0; }
1388                                         visible: 1;
1389                                 }
1390                         }
1391                         part {
1392                                 name: "elm.swallow.icon";
1393                                 type: SWALLOW;
1394                                 scale: 1;
1395                                 description {
1396                                         state: "default" 0.0;
1397                                         min: CTXPOPUP_ICON_WIDTH CTXPOPUP_ICON_HEIGHT;
1398                                         max: CTXPOPUP_ICON_WIDTH CTXPOPUP_ICON_HEIGHT;
1399                                         align: 0 0.5;
1400                                         aspect: 1.0 1.0;
1401                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
1402                                 }
1403                         }
1404                         part {
1405                                 name: "icon_right_padding";
1406                                 scale: 1;
1407                                 mouse_events: 0;
1408                                 description {
1409                                         state: "default" 0.0;
1410                                         min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1411                                         max: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1412                                         align: 0 0.5;
1413                                         fixed: 1 1;
1414                                         visible: 0;
1415                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
1416                                 }
1417                         }
1418                         part {
1419                                 name: "elm.text";
1420                                 type:  TEXT;
1421                                 mouse_events:  0;
1422                                 scale: 1;
1423                                 description {
1424                                         state: "default" 0.0;
1425                                         min: 1 CTXPOPUP_ITEM_HEIGHT;
1426                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX-(3*CTXPOPUP_ITEM_PADDING)-CTXPOPUP_ICON_WIDTH) CTXPOPUP_ITEM_HEIGHT;
1427                                         fixed: 0 1;
1428                                         align: 0.5 0.5;
1429                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
1430                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
1431                                         color: CTXPOPUP_FONT_COLOR;
1432                                         text {
1433                                                 font: "SLP:style=Roman";
1434                                                 size: 30;
1435                                                 align: 0.0 0.5;
1436                                                 min: 1 1;
1437                                         }
1438                                 }
1439                                 description {
1440                                         state: "clicked" 0.0;
1441                                         inherit: "default" 0.0;
1442                                         color: CTXPOPUP_CLICKED_FONT_COLOR;
1443                                 }
1444                         }
1445                         part {
1446                                 name: "text_right_padding";
1447                                 type: RECT;
1448                                 scale: 1;
1449                                 mouse_events: 0;
1450                                 description {
1451                                         state: "default" 0.0;
1452                                         visible: 0;
1453                                         min: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1454                                         max: CTXPOPUP_ITEM_PADDING CTXPOPUP_ITEM_HEIGHT;
1455                                         fixed: 1 0;
1456                                         align: 1.0 0.5;
1457                         }
1458                         }
1459                         part {
1460                                 name: "over1";
1461                                 mouse_events: 1;
1462                                 repeat_events: 1;
1463                                 ignore_flags: ON_HOLD;
1464                                 description {
1465                                         state: "default" 0.0;
1466                                 }
1467                         }
1468                         part {
1469                                 name: "over2";
1470                                 mouse_events: 1;
1471                                 repeat_events: 1;
1472                                 description {
1473                                         state: "default" 0.0;
1474                                 }
1475                         }
1476                         part {
1477                                 name: "disclip";
1478                                 type: RECT;
1479                                 description {
1480                                         state: "default" 0.0;
1481                                         visible: 0;
1482                                 }
1483                                 description {
1484                                         state: "disabled" 0.0;
1485                                         visible: 1;
1486                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1487                                 }
1488                         }
1489                 }
1490                 programs {
1491                         program {
1492                                 name: "item_unclick";
1493                                 signal: "mouse,up,1";
1494                                 source: "over1";
1495                                 action: SIGNAL_EMIT "elm,action,click" "";
1496                         }
1497                         program {
1498                                 name: "disable";
1499                                 signal: "elm,state,disabled";
1500                                 source: "elm";
1501                                 action: STATE_SET "disabled" 0.0;
1502                                 target: "disclip";
1503                         }
1504                         program {
1505                                 name: "enable";
1506                                 signal: "elm,state,enabled";
1507                                 source: "elm";
1508                                 action: STATE_SET "default" 0.0;
1509                                 target: "disclip";
1510                         }
1511                         program {
1512                                 name: "vertical";
1513                                 signal: "elm,state,vertical";
1514                                 source: "elm";
1515                                 script {
1516                                         set_state(PART:"bottom_separator", "default", 0.0);
1517                                         set_state(PART:"right_separator", "default", 0.0);
1518                                 }
1519                         }
1520                         program {
1521                                 name: "horizontal";
1522                                 signal: "elm,state,horizontal";
1523                                 source: "elm";
1524                                 script {
1525                                         set_state(PART:"bottom_separator", "horizontal", 0.0);
1526                                         set_state(PART:"right_separator", "horizontal", 0.0);
1527                                 }
1528                         }
1529                         program {
1530                                 name: "item_click2";
1531                                 signal: "mouse,down,1";
1532                                 source: "over2";
1533                                 script {
1534                                         set_state(PART:"elm.text", "clicked", 0.0);
1535                                         set_state(PART:"bg", "clicked", 0.0);
1536                                 }
1537                         }
1538                         program {
1539                                 name: "item_unclick2";
1540                                 signal: "mouse,up,1";
1541                                 source: "over2";
1542                                 script {
1543                                         set_state(PART:"elm.text", "default", 0.0);
1544                                         set_state(PART:"bg", "default", 0.0);
1545                                 }
1546                         }
1547                 }
1548         }
1549
1550 ///////////////////////////////////////////////////////////////////////////////////////
1551 #define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3
1552 #define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
1553 #define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
1554 #define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
1555 #define CTXPOPUP_ENTRY_FONT_COLOR 255 255 255 255
1556 #define CTXPOPUP_ENTRY_SEPARATOR_COLOR 0 0 0 0
1557 #define CTXPOPUP_ENTRY_ITEM_HEIGHT 44
1558 #define CTXPOPUP_ENTRY_ICON_SIZE 40
1559 #define CTXPOPUP_ENTRY_ITEM_WIDTH_MAX 150
1560 #define CTXPOPUP_ENTRY_LIST_SHADOW_PADDING 3
1561 #define CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR 200 200 200 127
1562 #define CTXPOPUP_ENTRY_ARROW_SIZE 14
1563 ///////////////////////////////////////////////////////////////////////////////////////
1564         group {
1565                 name: "elm/ctxpopup/base/extended/entry";
1566                 alias: "elm/ctxpopup/base/extended/entry/pass_event";
1567                 images {
1568                         image: "ctxpopup_bg.png" COMP;
1569                         image: "ctxpopup_shadow.png" COMP;
1570                         image: "copypaste_btn_bg.png" COMP;
1571                 }
1572                 parts {
1573                         part {
1574                                 name:"frame_shadow_left_top_padding";
1575                                 type:RECT;
1576                                 scale: 1;
1577                                 mouse_events: 0;
1578                                 description {
1579                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1580                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1581                                         align: 0 0;
1582                                         fixed: 1 1;
1583                                         visible: 0;
1584                                 }
1585                         }
1586                         part {
1587                                 name:"frame_shadow_right_bottom_padding";
1588                                 type:RECT;
1589                                 scale: 1;
1590                                 mouse_events: 0;
1591                                 description {
1592                                         min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
1593                                         max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
1594                                         rel1{relative: 1 1;}
1595                                         align: 0 0;
1596                                         fixed: 1 1;
1597                                         visible: 0;
1598                                 }
1599                         }
1600                         part {
1601                                 name: "frame_shadow";
1602                                 type: IMAGE;
1603                                 scale: 1;
1604                                 mouse_events: 0;
1605                                 description {
1606                                         state: "default" 0.0;
1607                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
1608                                         rel2 {to:"frame_shadow_right_bottom_padding";}
1609                                         image {
1610                                                 normal: "ctxpopup_shadow.png";
1611                                                 border: 10 10 10 10;
1612                                                 border_scale: 1;
1613                                         }
1614                                         color: 255 255 255 0;
1615                                 }
1616                                 description {
1617                                         state: "show" 0.0;
1618                                         inherit: "default" 0.0;
1619                                         color: 255 255 255 255;
1620                                 }
1621                         }
1622                         part {
1623                                 name: "ctxpopup_frame";
1624                                 type: IMAGE;
1625                                 scale: 1;
1626                                 description {
1627                                         visible: 1;
1628                                         rel2 {offset: -1 11;}
1629                                         image {
1630                                                 normal: "copypaste_btn_bg.png";
1631                                                 border: 0 0 0 0;
1632                                                 border_scale: 1;
1633                                         }
1634                                 }
1635                         }
1636                         part {
1637                                 name: "ctxpopup_frame_rect";
1638                                 type: RECT;
1639                                 scale: 1;
1640                                 description {
1641                                         visible: 0;
1642                                         color: 0 0 0 255;
1643                                 }
1644                         }
1645                         part {
1646                                 name:"list_shadow_right_bottom_padding";
1647                                 type:RECT;
1648                                 scale: 1;
1649                                 mouse_events: 0;
1650                                 description {
1651                                         min: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING;
1652                                         max: CTXPOPUP_ENTRY_LIST_SHADOW_PADDING CTXPOPUP_ENTRY_LIST_SHADOW_PADDING;
1653                                         align: 0 0;
1654                                         fixed: 1 1;
1655                                         visible: 0;
1656                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
1657                                 }
1658                         }
1659                         part {
1660                                 name: "ctxpopup_list";
1661                                 type: IMAGE;
1662                                 scale: 1;
1663                                 mouse_events: 0;
1664                                 description {
1665                                         state: "default" 0.0;
1666                                         rel1 {to: "elm.swallow.content";}
1667                                         rel2 {to: "list_shadow_right_bottom_padding";}
1668                                         color: 255 255 255 0;
1669                                 }
1670                                 description {
1671                                         state: "show" 0.0;
1672                                         inherit: "default" 0.0;
1673                                         color: 255 255 255 255;
1674                                 }
1675                         }
1676                         part {
1677                                 name:"content_left_top_padding";
1678                                 type:RECT;
1679                                 scale: 1;
1680                                 mouse_events: 0;
1681                                 description {
1682                                         state: "default" 0.0;
1683                                         min: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP;
1684                                         max: CTXPOPUP_ENTRY_LIST_PADDING_LEFT CTXPOPUP_ENTRY_LIST_PADDING_TOP;
1685                                         align: 0 0;
1686                                         fixed: 1 1;
1687                                         visible: 0;
1688                                 }
1689                         }
1690                         part {
1691                                 name:"content_right_bottom_padding";
1692                                 type:RECT;
1693                                 scale: 1;
1694                                 mouse_events: 0;
1695                                 description {
1696                                         min: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
1697                                         max: CTXPOPUP_ENTRY_LIST_PADDING_RIGHT CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM;
1698                                         rel1 { relative: 1 1;}
1699                                         rel2 { relative: 1 1;}
1700                                         align: 1 1;
1701                                         fixed: 1 1;
1702                                         visible: 0;
1703                                 }
1704                         }
1705                         part {
1706                                 name: "elm.swallow.content";
1707                                 type: SWALLOW;
1708                                 description {
1709                                         state: "default" 0.0;
1710                                         rel1 {to:"content_left_top_padding"; relative: 1 1;}
1711                                         rel2 {to:"content_right_bottom_padding"; relative: 0 0;}
1712                                 }
1713                         }
1714                 }
1715         }
1716 ///////////////////////////////////////////////////////////////////////////////////////
1717         group {
1718                 name: "elm/ctxpopup/arrow/extended/entry";
1719                 alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
1720                 images {
1721                         image: "copypaste_btn_arrow_left.png" COMP;
1722                         image: "copypaste_btn_arrow_right.png" COMP;
1723                         image: "copypaste_btn_arrow_top.png" COMP;
1724                         image: "copypaste_btn_arrow_bottom.png" COMP;
1725                 }
1726                 parts {
1727                         part {
1728                                 name: "ctxpopup_arrow";
1729                                 type: IMAGE;
1730                                 scale: 1;
1731                                 description {
1732                                         state: "default" 0.0;
1733                                         min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1734                                         max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1735                                         fixed: 1 1;
1736                                         visible: 0;
1737                                         align: 0.5 0.5;
1738                                 }
1739                                 description {
1740                                         state: "left" 0.0;
1741                                         min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1742                                         max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1743                                         fixed: 1 1;
1744                                         align: 0.0 0.5;
1745                                         image {
1746                                                 normal: "copypaste_btn_arrow_left.png";
1747                                         }
1748                                 }
1749                                 description {
1750                                         state: "right" 0.0;
1751                                         min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1752                                         max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1753                                         fixed: 1 1;
1754                                         align: 1.0 0.5;
1755                                         image {
1756                                                 normal: "copypaste_btn_arrow_right.png";
1757                                         }
1758                                 }
1759                                 description {
1760                                         state: "top" 0.0;
1761                                         min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1762                                         max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1763                                         fixed: 1 1;
1764                                         align: 0.5 0.0;
1765                                         image {
1766                                                 normal: "copypaste_btn_arrow_top.png";
1767                                         }
1768                                 }
1769                                 description {
1770                                         state: "bottom" 0.0;
1771                                         min: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1772                                         max: CTXPOPUP_ENTRY_ARROW_SIZE CTXPOPUP_ENTRY_ARROW_SIZE;
1773                                         fixed: 1 1;
1774                                         align: 0.5 1.0;
1775                                         image {
1776                                                 normal: "copypaste_btn_arrow_bottom.png";
1777                                         }
1778                                 }
1779                         }
1780                 }
1781                 programs {
1782                         program {
1783                                 name: "enable_left_arrow";
1784                                 signal: "elm,state,left";
1785                                 source: "elm";
1786                                 action: STATE_SET "left" 0.0;
1787                                 target: "ctxpopup_arrow";
1788                         }
1789                         program {
1790                                 name: "enable_right_arrow";
1791                                 signal: "elm,state,right";
1792                                 source: "elm";
1793                                 action: STATE_SET "right" 0.0;
1794                                 target: "ctxpopup_arrow";
1795                         }
1796                         program {
1797                                 name: "enable_top_arrow";
1798                                 signal: "elm,state,top";
1799                                 source: "elm";
1800                                 action: STATE_SET "top" 0.0;
1801                                 target: "ctxpopup_arrow";
1802                         }
1803                         program {
1804                                 name: "enable_bottom_arrow";
1805                                 signal: "elm,state,bottom";
1806                                 source: "elm";
1807                                 action: STATE_SET "bottom" 0.0;
1808                                 target: "ctxpopup_arrow";
1809                         }
1810                 }
1811         }
1812 ///////////////////////////////////////////////////////////////////////////////////////
1813         group {
1814                 name: "elm/ctxpopup/text_style_item/extended/entry";
1815                 alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
1816                 images {
1817                         image: "copypaste_btn_normal.png" COMP;
1818                         image: "copypaste_btn_press.png" COMP;
1819                 }
1820                 parts {
1821                         part {
1822                                 name: "event_blocker";
1823                                 mouse_events: 1;
1824                                 description {
1825                                         state: "default" 0.0;
1826                                         color: 0 0 0 0;
1827                                 }
1828                         }
1829                         part {
1830                                 name: "left_bg_padding";
1831                                 scale: 1;
1832                                 mouse_events: 0;
1833                                 description {
1834                                         state: "default" 0.0;
1835                                         min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1836                                         max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1837                                         align: 0 0.5;
1838                                         fixed: 1 1;
1839                                         visible: 0;
1840                                 }
1841                         }
1842                         part {
1843                                 name: "right_bg_padding";
1844                                 scale: 1;
1845                                 mouse_events: 0;
1846                                 description {
1847                                         state: "default" 0.0;
1848                                         visible: 0;
1849                                         min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1850                                         max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1851                                         fixed: 1 0;
1852                                         align: 1.0 0.5;
1853                         }
1854                         }
1855                         part {
1856                                 name: "bg";
1857                                 mouse_events: 0;
1858                                 type: IMAGE;
1859                                 description {
1860                                         state: "default" 0.0;
1861                                         rel1 {to:"left_bg_padding"; relative: 1 0;}
1862                                         rel2 {to:"right_bg_padding"; relative: 0 1;}
1863                                         image {
1864                                                 normal: "copypaste_btn_normal.png";
1865                                                 border: 3 3 3 3;
1866                                                 border_scale: 1;
1867                                         }
1868                                 }
1869                                 description {
1870                                         state: "clicked" 0.0;
1871                                         inherit: "default" 0.0;
1872                                         image {
1873                                                 normal: "copypaste_btn_press.png";
1874                                                 border: 3 3 3 3;
1875                                                 border_scale: 1;
1876                                         }
1877                                 }
1878                         }
1879                         part {
1880                                 name: "left_padding";
1881                                 scale: 1;
1882                                 mouse_events: 0;
1883                                 description {
1884                                         state: "default" 0.0;
1885                                         min: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1886                                         max: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1887                                         align: 0 0.5;
1888                                         fixed: 1 1;
1889                                         visible: 0;
1890                                 }
1891                         }
1892                         part {
1893                                 name: "bottom_separator";
1894                                 mouse_events: 0;
1895                                 type: RECT;
1896                                 scale: 1;
1897                                 description {
1898                                         state: "default" 0.0;
1899                                         visible: 0;
1900                                         color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
1901                                         align: 0.5 1;
1902                                         min: 0 1;
1903                                         max: 999999 1;
1904                                 }
1905                         }
1906                         part {
1907                                 name: "right_separator";
1908                                 mouse_events: 0;
1909                                 type: RECT;
1910                                 scale: 1;
1911                                 description {
1912                                         state: "default" 0.0;
1913                                         color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
1914                                         align: 1 0.5;
1915                                         min: 1 0;
1916                                         max: 1 999999;
1917                                 }
1918                         }
1919                         part {
1920                                 name: "elm.text";
1921                                 type:  TEXT;
1922                                 mouse_events:  0;
1923                                 scale: 1;
1924                                 description {
1925                                         state: "default" 0.0;
1926                                         min: 1 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1927                                         max: CTXPOPUP_ENTRY_ITEM_WIDTH_MAX CTXPOPUP_ENTRY_ITEM_HEIGHT;
1928                                         fixed: 0 1;
1929                                         align: 0.5 0.5;
1930                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
1931                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
1932                                         color: CTXPOPUP_ENTRY_FONT_COLOR;
1933                                         text {
1934                                                 font: "SLP:style=Roman";
1935                                                 size: 20;
1936                                                 align: 0.5 0.5;
1937                                                 min: 1 1;
1938                                         }
1939                                 }
1940                                 description {
1941                                         state: "clicked" 0.0;
1942                                         inherit: "default" 0.0;
1943                                         color: CTXPOPUP_CLICKED_FONT_COLOR;
1944                                 }
1945                         }
1946                         part {
1947                                 name: "right_padding";
1948                                 scale: 1;
1949                                 mouse_events: 0;
1950                                 description {
1951                                         state: "default" 0.0;
1952                                         visible: 0;
1953                                         min: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1954                                         max: 16 CTXPOPUP_ENTRY_ITEM_HEIGHT;
1955                                         fixed: 1 0;
1956                                         align: 1.0 0.5;
1957                                 }
1958                         }
1959                         part {
1960                                 name: "over1";
1961                                 mouse_events: 1;
1962                                 repeat_events: 1;
1963                                 ignore_flags: ON_HOLD;
1964                                 description {
1965                                         state: "default" 0.0;
1966                                 }
1967                         }
1968                         part {
1969                                 name: "over2";
1970                                 mouse_events: 1;
1971                                 repeat_events: 1;
1972                                 description {
1973                                         state: "default" 0.0;
1974                                 }
1975                         }
1976                         part {
1977                                 name: "disclip";
1978                                 type: RECT;
1979                                 description {
1980                                         state: "default" 0.0;
1981                                         visible: 0;
1982                                 }
1983                                 description {
1984                                         state: "disabled" 0.0;
1985                                         visible: 1;
1986                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
1987                                 }
1988                         }
1989                 }
1990                 programs {
1991                         program {
1992                                 name: "item_unclick";
1993                                 signal: "mouse,up,1";
1994                                 source: "over1";
1995                                 action: SIGNAL_EMIT "elm,action,click" "";
1996                         }
1997                         program {
1998                                 name: "disable";
1999                                 signal: "elm,state,disabled";
2000                                 source: "elm";
2001                                 action: STATE_SET "disabled" 0.0;
2002                                 target: "disclip";
2003                         }
2004                         program {
2005                                 name: "enable";
2006                                 signal: "elm,state,enabled";
2007                                 source: "elm";
2008                                 action: STATE_SET "default" 0.0;
2009                                 target: "disclip";
2010                         }
2011                         program {
2012                                 name: "item_click2";
2013                                 signal: "mouse,down,1";
2014                                 source: "over2";
2015                                 script {
2016                                         set_state(PART:"elm.text", "clicked", 0.0);
2017                                         set_state(PART:"bg", "clicked", 0.0);
2018                                 }
2019                         }
2020                 }
2021                 program {
2022                         name: "item_unclick2";
2023                         signal: "mouse,up,1";
2024                         source: "over2";
2025                         script {
2026                                 set_state(PART:"elm.text", "default", 0.0);
2027                                 set_state(PART:"bg", "default", 0.0);
2028                         }
2029                 }
2030         }
2031 ///////////////////////////////////////////////////////////////////////////////
2032         group {
2033                 name: "elm/ctxpopup/icon_style_item/extended/entry";\
2034                 images {
2035                         image: "copypaste_btn_normal.png" COMP;
2036                         image: "copypaste_btn_press.png" COMP;
2037                 }
2038                 parts {
2039                         part {
2040                                 name: "event_blocker";
2041                                 mouse_events: 1;
2042                                 description {
2043                                         state: "default" 0.0;
2044                                         color: 0 0 0 0;
2045                                 }
2046                         }
2047                         part {
2048                                 name: "left_bg_padding";
2049                                 scale: 1;
2050                                 mouse_events: 0;
2051                                 description {
2052                                         state: "default" 0.0;
2053                                         min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2054                                         max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2055                                         align: 0 0.5;
2056                                         fixed: 1 1;
2057                                         visible: 0;
2058                                 }
2059                         }
2060                         part {
2061                                 name: "right_bg_padding";
2062                                 scale: 1;
2063                                 mouse_events: 0;
2064                                 description {
2065                                         state: "default" 0.0;
2066                                         visible: 0;
2067                                         min: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2068                                         max: 3 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2069                                         fixed: 1 0;
2070                                         align: 1.0 0.5;
2071                         }
2072                         }
2073                         part {
2074                                 name: "bg";
2075                                 mouse_events: 0;
2076                                 type: IMAGE;
2077                                 description {
2078                                         state: "default" 0.0;
2079                                         rel1 {to:"left_bg_padding"; relative: 1 0;}
2080                                         rel2 {to:"right_bg_padding"; relative: 0 1;}
2081                                         image {
2082                                                 normal: "copypaste_btn_normal.png";
2083                                                 border: 3 3 3 3;
2084                                                 border_scale: 1;
2085                                         }
2086                                 }
2087                                 description {
2088                                         state: "clicked" 0.0;
2089                                         inherit: "default" 0.0;
2090                                         image {
2091                                                 normal: "copypaste_btn_press.png";
2092                                                 border: 3 3 3 3;
2093                                                 border_scale: 1;
2094                                         }
2095                                 }
2096                         }
2097                         part {
2098                                 name: "left_top_padding";
2099                                 type: RECT;
2100                                 scale: 1;
2101                                 description {
2102                                         min: 6 2;
2103                                         max: 6 2;
2104                                         visible: 0;
2105                                         align: 0 0;
2106                                         fixed: 1 1;
2107                                         color: 255 0 0 255;
2108                                 }
2109                         }
2110                         part {
2111                                 name: "right_bottom_padding";
2112                                 type: RECT;
2113                                 scale: 1;
2114                                 description {
2115                                         min: 6 2;
2116                                         max: 6 2;
2117                                         visible: 0;
2118                                         align: 1 1;
2119                                         fixed: 1 1;
2120                                         color: 0 0 255 255;
2121                                 }
2122                         }
2123                         part {
2124                                 name: "right_separator";
2125                                 mouse_events: 0;
2126                                 type: RECT;
2127                                 scale: 1;
2128                                 description {
2129                                         state: "default" 0.0;
2130                                         color: CTXPOPUP_ENTRY_SEPARATOR_COLOR;
2131                                         align: 1 0.5;
2132                                         min: 1 0;
2133                                         max: 1 999999;
2134                                 }
2135                         }
2136                         part {
2137                                 name: "elm.swallow.icon";
2138                                 type: SWALLOW;
2139                                 scale: 1;
2140                                 description {
2141                                         state: "default" 0.0;
2142                                         min: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE;
2143                                         max: CTXPOPUP_ENTRY_ICON_SIZE CTXPOPUP_ENTRY_ICON_SIZE;
2144                                         align: 0.5 0.5;
2145                                         aspect: 1.0 1.0;
2146                                         rel1 { to: "left_top_padding"; relative: 1 1; }
2147                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
2148                                 }
2149                         }
2150                         part {
2151                                 name: "elm.swallow.icon.paint";
2152                                 type: RECT;
2153                                 scale: 1;
2154                                 description {
2155                                         state: "default" 0.0;
2156                                         visible: 0;
2157                                         color: 255 255 0 255;
2158                                         rel1 { to: "elm.swallow.icon"; }
2159                                         rel2 { to: "elm.swallow.icon"; }
2160                                 }
2161                         }
2162                         part {
2163                                 name: "over1";
2164                                 mouse_events: 1;
2165                                 repeat_events: 1;
2166                                 ignore_flags: ON_HOLD;
2167                                 description {
2168                                         state: "default" 0.0;
2169                                 }
2170                         }
2171                         part {
2172                                 name: "over2";
2173                                 mouse_events: 1;
2174                                 repeat_events: 1;
2175                                 description {
2176                                         state: "default" 0.0;
2177                                 }
2178                         }
2179                         part {
2180                                 name: "disclip";
2181                                 type: RECT;
2182                                 description {
2183                                         state: "default" 0.0;
2184                                         visible: 0;
2185                                 }
2186                                 description {
2187                                         state: "disabled" 0.0;
2188                                         visible: 1;
2189                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2190                                 }
2191                         }
2192                 }
2193                 programs {
2194                         program {
2195                                 name: "item_unclick";
2196                                 signal: "mouse,up,1";
2197                                 source: "over1";
2198                                 action: SIGNAL_EMIT "elm,action,click" "";
2199                         }
2200                         program {
2201                                 name: "disable";
2202                                 signal: "elm,state,disabled";
2203                                 source: "elm";
2204                                 action: STATE_SET "disabled" 0.0;
2205                                 target: "disclip";
2206                         }
2207                         program {
2208                                 name: "enable";
2209                                 signal: "elm,state,enabled";
2210                                 source: "elm";
2211                                 action: STATE_SET "default" 0.0;
2212                                 target: "disclip";
2213                         }
2214                         program {
2215                                 name: "item_click2";
2216                                 signal: "mouse,down,1";
2217                                 source: "over2";
2218                                 script {
2219                                         set_state(PART:"bg", "clicked", 0.0);
2220                                 }
2221                         }
2222                         program {
2223                                 name: "item_unclick2";
2224                                 signal: "mouse,up,1";
2225                                 source: "over2";
2226                                 script {
2227                                         set_state(PART:"bg", "default", 0.0);
2228                                 }
2229                         }
2230                 }
2231         }
2232
2233 ///////////////////////////////////////////////////////////////////////////////////////
2234 #define CTXPOPUP_IE_HEIGHT_ 46
2235 #define CTXPOPUP_IE_CONTENT_WIDTH_MAX 480
2236 #define CTXPOPUP_IE_CONTENT_HEIGHT_MAX 600
2237 #define CTXPOPUP_IE_ARROW_SIZE 34
2238 #define CTXPOPUP_IE_ITEM_PADDING 15
2239 #define CTXPOPUP_IE_ITEM_HEIGHT 47
2240 #define CTXPOPUP_IE_ICON_WIDTH 40
2241 #define CTXPOPUP_IE_ICON_HEIGHT 40
2242 #define CTXPOPUP_IE_FONT_COLOR 255 255 255 255
2243 #define CTXPOPUP_IE_CLICKED_FONT_COLOR 255 255 100 255
2244 #define CTXPOPUP_IE_FONT_SIZE 26
2245 #define CTXPOPUP_IE_SEPARATOR_COLOR 120 120 120 255
2246 #define CTXPOPUP_IE_ITEM_DISABLED_COLOR 200 200 200 127
2247 #define CTXPOPUP_IE_SEPARATOR_PADDING_SIZE 6 2
2248 ///////////////////////////////////////////////////////////////////////////////
2249 group {
2250         name: "elm/ctxpopup/base/extended/imageeditor";
2251         images {
2252                 image: "imageeditor_bg.png" COMP;
2253         }
2254         parts {
2255                 part {
2256                         name: "ctxpopup_frame";
2257                         type: IMAGE;
2258                         scale: 1;
2259                         description {
2260                                 image {
2261                                         normal: "imageeditor_bg.png";
2262                                         border: 10 10 10 10;
2263                                         border_scale: 1;
2264                                 }
2265                         }
2266                 }
2267                 part {
2268                         name: "elm.swallow.content";
2269                         type: SWALLOW;
2270                         description {
2271                                 state: "default" 0.0;
2272                         }
2273                 }//part
2274         }//parts
2275 }
2276 ///////////////////////////////////////////////////////////////////////////////
2277 group { name: "elm/ctxpopup/arrow/extended/imageeditor";
2278         images {
2279                 image: "imageeditor_left_arrow.png" COMP;
2280                 image: "imageeditor_right_arrow.png" COMP;
2281                 image: "imageeditor_top_arrow.png" COMP;
2282                 image: "imageeditor_bottom_arrow.png" COMP;
2283         }
2284         parts {
2285                 part {
2286                         name: "ctxpopup_arrow";
2287                         type: IMAGE;
2288                         scale: 1;
2289                         description {
2290                                 state: "default" 0.0;
2291                                 min: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2292                                 max: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2293                                 fixed: 1 1;
2294                                 visible: 0;
2295                                 align: 0.5 0.5;
2296                         }
2297                         description {
2298                                 state: "left" 0.0;
2299                                 min: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2300                                 max: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2301                                 fixed: 1 1;
2302                                 align: 0.0 0.5;
2303                                 image {
2304                                         normal: "imageeditor_left_arrow.png";
2305                                 }
2306                         }
2307                         description {
2308                                 state: "right" 0.0;
2309                                 min: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2310                                 max: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2311                                 fixed: 1 1;
2312                                 align: 1.0 0.5;
2313                                 image {
2314                                         normal: "imageeditor_right_arrow.png";
2315                                 }
2316                         }
2317                         description {
2318                                 state: "top" 0.0;
2319                                 min: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2320                                 max: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2321                                 fixed: 1 1;
2322                                 align: 0.5 0.0;
2323                                 image {
2324                                         normal: "imageeditor_top_arrow.png";
2325                                 }
2326                         }
2327                         description {
2328                                 state: "bottom" 0.0;
2329                                 min: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2330                                 max: CTXPOPUP_IE_ARROW_SIZE CTXPOPUP_IE_ARROW_SIZE;
2331                                 fixed: 1 1;
2332                                 align: 0.5 1.0;
2333                                 image {
2334                                         normal: "imageeditor_bottom_arrow.png";
2335                                 }
2336                         }
2337                 }
2338         }
2339         programs {
2340                 program {
2341                         name: "enable_left_arrow";
2342                         signal: "elm,state,left";
2343                         source: "elm";
2344                         action: STATE_SET "left" 0.0;
2345                         target: "ctxpopup_arrow";
2346                 }
2347                 program {
2348                         name: "enable_right_arrow";
2349                         signal: "elm,state,right";
2350                         source: "elm";
2351                         action: STATE_SET "right" 0.0;
2352                         target: "ctxpopup_arrow";
2353                 }
2354                 program {
2355                         name: "enable_top_arrow";
2356                         signal: "elm,state,top";
2357                         source: "elm";
2358                         action: STATE_SET "top" 0.0;
2359                         target: "ctxpopup_arrow";
2360                 }
2361                 program {
2362                         name: "enable_bottom_arrow";
2363                         signal: "elm,state,bottom";
2364                         source: "elm";
2365                         action: STATE_SET "bottom" 0.0;
2366                         target: "ctxpopup_arrow";
2367                 }
2368         }
2369 }
2370 ///////////////////////////////////////////////////////////////////////////////
2371 group {
2372         name: "elm/ctxpopup/icon_text_style_item/extended/imageeditor";
2373         images {
2374                 image: "imageeditor_bar_press.png" COMP;
2375         }
2376
2377         parts {
2378                 part {
2379                         name: "event_blocker";
2380                         mouse_events: 1;
2381                         description {
2382                                 state: "default" 0.0;
2383                         }
2384                 }
2385
2386                 part {
2387                         name: "bg";
2388                         mouse_events: 0;
2389                         type: IMAGE;
2390                         description {
2391                                 state: "default" 0.0;
2392                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2393                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2394                                 visible: 0;
2395                         }
2396                         description {
2397                                 state: "clicked" 0.0;
2398                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2399                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2400                                 image {
2401                                         normal: "imageeditor_bar_press.png";
2402                                         border: 10 10 10 10;
2403                                         border_scale: 1;
2404                                 }
2405                         }
2406                 }
2407
2408                 part {
2409                         name: "icon_left_padding";
2410                         type: RECT;
2411                         scale: 1;
2412                         mouse_events: 0;
2413                         description {
2414                                 state: "default" 0.0;
2415                                 min: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2416                                 max: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2417                                 align: 0 0;
2418                                 fixed: 1 1;
2419                                 visible: 0;
2420                         }
2421                 }
2422                 part {
2423                         name: "separator_left_top_padding";
2424                         type: RECT;
2425                         scale: 1;
2426                 description {
2427                                 state: "default" 0.0;
2428                                 visible: 0;
2429                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2430                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2431                                 align: 0 0;
2432                                 fixed: 1 1;
2433                         }
2434                 }
2435                 part {
2436                         name: "separator_right_top_padding";
2437                         type: RECT;
2438                         scale: 1;
2439                 description {
2440                                 state: "default" 0.0;
2441                                 visible: 0;
2442                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2443                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2444                                 align: 1 0;
2445                                 fixed: 1 1;
2446                         }
2447                 }
2448                 part {
2449                         name: "separator_left_bottom_padding";
2450                         type: RECT;
2451                         scale: 1;
2452                 description {
2453                                 state: "default" 0.0;
2454                                 visible: 0;
2455                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2456                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2457                                 align: 0 1;
2458                                 fixed: 1 1;
2459                         }
2460                 }
2461                 part {
2462                         name: "separator_right_bottom_padding";
2463                         type: RECT;
2464                         scale: 1;
2465                 description {
2466                                 state: "default" 0.0;
2467                                 visible: 0;
2468                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2469                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2470                                 align: 1 1;
2471                                 fixed: 1 1;
2472                         }
2473                 }
2474
2475                 part {
2476                         name: "bottom_separator";
2477                         mouse_events: 0;
2478                         type: RECT;
2479                         scale: 1;
2480                         description {
2481                                 state: "default" 0.0;
2482                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2483                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2484                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2485                         }
2486                 }
2487                 part {
2488                         name: "elm.swallow.icon";
2489                         type: SWALLOW;
2490                         scale: 1;
2491                         description {
2492                                 state: "default" 0.0;
2493                                 min: CTXPOPUP_IE_ICON_WIDTH CTXPOPUP_IE_ICON_HEIGHT;
2494                                 max: CTXPOPUP_IE_ICON_WIDTH CTXPOPUP_IE_ICON_HEIGHT;
2495                                 align: 0 0.5;
2496                                 aspect: 1.0 1.0;
2497                                 rel1 { to:"icon_left_padding"; relative: 1 0; }
2498                         }
2499                 }
2500                 part {
2501                         name: "icon_right_padding";
2502                         type: RECT;
2503                         scale: 1;
2504                         mouse_events: 0;
2505                         description {
2506                                 state: "default" 0.0;
2507                                 min: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2508                                 max: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2509                                 align: 0 0.5;
2510                                 fixed: 1 1;
2511                                 visible: 0;
2512                                 rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2513                         }
2514                 }
2515                 part {
2516                         name: "elm.text";
2517                         type:  TEXT;
2518                         mouse_events:  0;
2519                         scale: 1;
2520                         description {
2521                                 state: "default" 0.0;
2522                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT;
2523                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX-(3*CTXPOPUP_IE_ITEM_PADDING)-CTXPOPUP_IE_ICON_WIDTH) CTXPOPUP_IE_ITEM_HEIGHT;
2524                                 fixed: 0 1;
2525                                 align: 0.5 0.5;
2526                                 rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
2527                                 rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
2528                                 color: CTXPOPUP_IE_FONT_COLOR;
2529                                 text {
2530                                         font: FONT_ROM;
2531                                         size: CTXPOPUP_IE_FONT_SIZE;
2532                                         align: 0.0 0.5;
2533                                         min: 1 1;
2534                                 }
2535                         }
2536                         description {
2537                                 state: "clicked" 0.0;
2538                                 inherit: "default" 0.0;
2539                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2540                         }
2541                 }
2542                 part {
2543                         name: "text_right_padding";
2544                         type: RECT;
2545                         scale: 1;
2546                         mouse_events: 0;
2547                         description {
2548                                 state: "default" 0.0;
2549                                 visible: 0;
2550                                 min: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2551                                 max: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2552                                 fixed: 1 0;
2553                                 align: 1.0 0.5;
2554                 }
2555                 }
2556                 part {
2557                         name: "over1";
2558                         mouse_events: 1;
2559                         repeat_events: 1;
2560                         ignore_flags: ON_HOLD;
2561                         description {
2562                                 state: "default" 0.0;
2563                         }
2564                 }
2565                 part {
2566                         name: "over2";
2567                         mouse_events: 1;
2568                         repeat_events: 1;
2569                         description {
2570                                 state: "default" 0.0;
2571                         }
2572                 }
2573                 part {
2574                         name: "disclip";
2575                         type: RECT;
2576                         description {
2577                                 state: "default" 0.0;
2578                                 visible: 0;
2579                         }
2580                         description {
2581                                 state: "disabled" 0.0;
2582                                 visible: 1;
2583                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
2584                         }
2585                 }
2586         }
2587         programs {
2588                 program {
2589                         name: "item_unclick";
2590                         signal: "mouse,up,1";
2591                         source: "over1";
2592                         action: SIGNAL_EMIT "elm,action,click" "";
2593                 }
2594                 program {
2595                         name: "disable";
2596                         signal: "elm,state,disabled";
2597                         source: "elm";
2598                         action: STATE_SET "disabled" 0.0;
2599                         target: "disclip";
2600                 }
2601                 program {
2602                         name: "enable";
2603                         signal: "elm,state,enabled";
2604                         source: "elm";
2605                         action: STATE_SET "default" 0.0;
2606                         target: "disclip";
2607                 }
2608                 program {
2609                         name: "item_click2";
2610                         signal: "mouse,down,1";
2611                         source: "over2";
2612                         script {
2613                                 set_state(PART:"elm.text", "clicked", 0.0);
2614                         }
2615                 }
2616                 program {
2617                         name: "item_unclick2";
2618                         signal: "mouse,up,1";
2619                         source: "over2";
2620                         script {
2621                                 set_state(PART:"elm.text", "default", 0.0);
2622                         }
2623                 }
2624         }
2625 }
2626 ///////////////////////////////////////////////////////////////////////////////////////
2627 group {
2628         name: "elm/ctxpopup/text_style_item/extended/imageeditor";
2629         images {
2630                 image: "imageeditor_bar_press.png" COMP;
2631         }
2632
2633         parts {
2634                 part {
2635                         name: "separator_left_padding";
2636                         type: RECT;
2637                         scale: 1;
2638                 description {
2639                                 state: "default" 0.0;
2640                                 visible: 0;
2641                                 min: 2 2;
2642                                 max: 2 2;
2643                                 align: 0 1;
2644                                 fixed: 1 1;
2645                         }
2646                 }
2647                 part {
2648                         name: "bg";
2649                         mouse_events: 0;
2650                         type: IMAGE;
2651                         description {
2652                         state: "default" 0.0;
2653                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2654                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2655                         visible: 0;
2656                         }
2657                         description {
2658                                 state: "clicked" 0.0;
2659                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2660                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2661                         image {
2662                                         normal: "imageeditor_bar_press.png";
2663                                         border: 10 10 10 10;
2664                                         border_scale: 1;
2665                                 }
2666                         }
2667                 }
2668                 part {
2669                         name: "separator_left_top_padding";
2670                         type: RECT;
2671                         scale: 1;
2672                         description {
2673                                 state: "default" 0.0;
2674                                 visible: 0;
2675                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2676                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2677                                 align: 0 0;
2678                                 fixed: 1 1;
2679                         }
2680                 }
2681                 part {
2682                         name: "separator_right_top_padding";
2683                         type: RECT;
2684                         scale: 1;
2685                         description {
2686                                 state: "default" 0.0;
2687                                 visible: 0;
2688                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2689                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2690                                 align: 1 0;
2691                                 fixed: 1 1;
2692                         }
2693                 }
2694                 part {
2695                         name: "separator_left_bottom_padding";
2696                         type: RECT;
2697                         scale: 1;
2698                         description {
2699                                 state: "default" 0.0;
2700                                 visible: 0;
2701                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2702                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2703                                 align: 0 1;
2704                                 fixed: 1 1;
2705                         }
2706                 }
2707                 part {
2708                         name: "separator_right_bottom_padding";
2709                         type: RECT;
2710                         scale: 1;
2711                         description {
2712                                 state: "default" 0.0;
2713                                 visible: 0;
2714                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2715                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2716                                 align: 1 1;
2717                                 fixed: 1 1;
2718                         }
2719                 }
2720
2721                 part {
2722                         name: "bottom_separator";
2723                         mouse_events: 0;
2724                         type: RECT;
2725                         scale: 1;
2726                         description {
2727                                 state: "default" 0.0;
2728                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2729                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2730                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2731                         }
2732                 }
2733                 part {
2734                         name: "left_padding";
2735                         type: RECT;
2736                         scale: 1;
2737                         mouse_events: 0;
2738                         description {
2739                                 state: "default" 0.0;
2740                                 min: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2741                                 max: CTXPOPUP_IE_ITEM_PADDING CTXPOPUP_IE_ITEM_HEIGHT;
2742                                 align: 0 0.5;
2743                                 fixed: 1 1;
2744                                 visible: 0;
2745                         }
2746                 }
2747                 part {
2748                         name: "elm.text";
2749                         type:  TEXT;
2750                         mouse_events:  0;
2751                         scale: 1;
2752                         description {
2753                                 state: "default" 0.0;
2754                                 min: 1 CTXPOPUP_IE_HEIGHT_;
2755                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX-2*CTXPOPUP_IE_ITEM_PADDING) CTXPOPUP_IE_HEIGHT_;
2756                                 fixed: 0 1;
2757                                 align: 0.5 0.5;
2758                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
2759                                 rel2 {relative: 0.0 1.0; to: "right_padding";}
2760                                 color: CTXPOPUP_IE_FONT_COLOR;
2761                                 text {
2762                                         font: FONT_ROM;
2763                                         size: CTXPOPUP_IE_FONT_SIZE;
2764                                         align: 0.5 0.5;
2765                                         min: 1 1;
2766                                 }
2767                         }
2768                         description {
2769                                 state: "clicked" 0.0;
2770                                 inherit: "default" 0.0;
2771                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2772                         }
2773                 }
2774                 part {
2775                         name: "right_padding";
2776                         scale: 1;
2777                         mouse_events: 0;
2778                         description {
2779                                 state: "default" 0.0;
2780                                 visible: 0;
2781                                 min: 30 CTXPOPUP_IE_ITEM_HEIGHT;
2782                                 max: 30 CTXPOPUP_IE_ITEM_HEIGHT;
2783                                 fixed: 1 0;
2784                                 align: 1.0 0.5;
2785                         }
2786                 }
2787                 part {
2788                         name: "over1";
2789                         mouse_events: 1;
2790                         repeat_events: 1;
2791                         ignore_flags: ON_HOLD;
2792                         description {
2793                                 state: "default" 0.0;
2794                         }
2795                 }
2796                 part {
2797                         name: "over2";
2798                         mouse_events: 1;
2799                         repeat_events: 1;
2800                         description {
2801                                 state: "default" 0.0;
2802                         }
2803                 }
2804                 part {
2805                         name: "disclip";
2806                         type: RECT;
2807                         description {
2808                                 state: "default" 0.0;
2809                                 visible: 0;
2810                         }
2811                         description {
2812                                 state: "disabled" 0.0;
2813                                 visible: 1;
2814                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
2815                         }
2816                 }
2817
2818         }
2819
2820         programs {
2821                 program {
2822                         name: "item_unclick";
2823                         signal: "mouse,up,1";
2824                         source: "over1";
2825                         action: SIGNAL_EMIT "elm,action,click" "";
2826                 }
2827                 program {
2828                         name: "disable";
2829                         signal: "elm,state,disabled";
2830                         source: "elm";
2831                         action: STATE_SET "disabled" 0.0;
2832                         target: "disclip";
2833                 }
2834                 program {
2835                         name: "enable";
2836                         signal: "elm,state,enabled";
2837                         source: "elm";
2838                         action: STATE_SET "default" 0.0;
2839                         target: "disclip";
2840                 }
2841
2842                 program {
2843                         name: "item_click2";
2844                         signal: "mouse,down,1";
2845                         source: "over2";
2846                         script {
2847                                 set_state(PART:"elm.text", "clicked", 0.0);
2848                         }
2849                 }
2850                 program {
2851                         name: "item_unclick2";
2852                         signal: "mouse,up,1";
2853                         source: "over2";
2854                         script {
2855                                 set_state(PART:"elm.text", "default", 0.0);
2856                         }
2857                 }
2858         }
2859 }
2860
2861 ///////////////////////////////////////////////////////////////////////////////////////
2862 #define CTXPOPUP_TP_CONTENT_MAX 480
2863 #define CTXPOPUP_TP_TEXT_WIDTH 32
2864 #define CTXPOPUP_TP_ARROW_SIZE 20
2865 #define CTXPOPUP_TP_PADDING 15
2866 #define CTXPOPUP_TP_HEIGHT 66
2867 #define CTXPOPUP_TP_BG_COLOR 221 134 21 255
2868 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
2869 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
2870 #define CTXPOPUP_TP_FONT_SIZE 24
2871 ///////////////////////////////////////////////////////////////////////////////
2872 group {
2873         name: "elm/ctxpopup/base/extended/timepicker";
2874         parts {
2875                 part {
2876                         name: "ctxpopup_frame";
2877                         type: RECT;
2878                         scale: 1;
2879                         description {
2880                                 color: CTXPOPUP_TP_BG_COLOR;
2881                                 min: 1 CTXPOPUP_TP_HEIGHT;
2882                         max: CTXPOPUP_TP_CONTENT_MAX CTXPOPUP_TP_HEIGHT;
2883                         }
2884                 }
2885                 part {
2886                         name: "elm.swallow.content";
2887                         type: SWALLOW;
2888                         description {
2889                                 state: "default" 0.0;
2890                                 min: 1 CTXPOPUP_TP_HEIGHT;
2891                         max: CTXPOPUP_TP_CONTENT_MAX CTXPOPUP_TP_HEIGHT;
2892                         align: 0 0;
2893                                 rel1 { to: "ctxpopup_frame"; }
2894                         }
2895                 }
2896         }
2897 }
2898 ///////////////////////////////////////////////////////////////////////////////
2899 group { name: "elm/ctxpopup/arrow/extended/timepicker";
2900         images {
2901                 image: "timepicker_left_arrow.png" COMP;
2902                 image: "timepicker_right_arrow.png" COMP;
2903                 image: "timepicker_top_arrow.png" COMP;
2904                 image: "timepicker_bottom_arrow.png" COMP;
2905         }
2906         parts {
2907                 part {
2908                         name: "ctxpopup_arrow";
2909                         type: IMAGE;
2910                         scale: 1;
2911                         description {
2912                                 state: "default" 0.0;
2913                                 min: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2914                                 max: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2915                                 fixed: 1 1;
2916                                 visible: 0;
2917                                 align: 0.5 0.5;
2918                         }
2919                         description {
2920                                 state: "left" 0.0;
2921                                 min: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2922                                 max: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2923                                 fixed: 1 1;
2924                                 align: 0.0 0.5;
2925                                 image {
2926                                         normal: "timepicker_left_arrow.png";
2927                                 }
2928                         }
2929                         description {
2930                                 state: "right" 0.0;
2931                                 min: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2932                                 max: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2933                                 fixed: 1 1;
2934                                 align: 1.0 0.5;
2935                                 image {
2936                                         normal: "timepicker_right_arrow.png";
2937                                 }
2938                         }
2939                         description {
2940                                 state: "top" 0.0;
2941                                 min: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2942                                 max: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2943                                 fixed: 1 1;
2944                                 align: 0.5 0.0;
2945                                 image {
2946                                         normal: "timepicker_top_arrow.png";
2947                                 }
2948                         }
2949                         description {
2950                                 state: "bottom" 0.0;
2951                                 min: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2952                                 max: CTXPOPUP_TP_ARROW_SIZE CTXPOPUP_TP_ARROW_SIZE;
2953                                 fixed: 1 1;
2954                                 align: 0.5 1.0;
2955                                 image {
2956                                         normal: "timepicker_bottom_arrow.png";
2957                                 }
2958                         }
2959                 }
2960         }
2961         programs {
2962                 program {
2963                         name: "enable_left_arrow";
2964                         signal: "elm,state,left";
2965                         source: "elm";
2966                         action: STATE_SET "left" 0.0;
2967                         target: "ctxpopup_arrow";
2968                 }
2969                 program {
2970                         name: "enable_right_arrow";
2971                         signal: "elm,state,right";
2972                         source: "elm";
2973                         action: STATE_SET "right" 0.0;
2974                         target: "ctxpopup_arrow";
2975                 }
2976                 program {
2977                         name: "enable_top_arrow";
2978                         signal: "elm,state,top";
2979                         source: "elm";
2980                         action: STATE_SET "top" 0.0;
2981                         target: "ctxpopup_arrow";
2982                 }
2983                 program {
2984                         name: "enable_bottom_arrow";
2985                         signal: "elm,state,bottom";
2986                         source: "elm";
2987                         action: STATE_SET "bottom" 0.0;
2988                         target: "ctxpopup_arrow";
2989                 }
2990         }
2991 }
2992 ///////////////////////////////////////////////////////////////////////////////
2993 group {
2994         name: "elm/ctxpopup/text_style_item/extended/timepicker";
2995         parts {
2996                 part {
2997                         name: "left_padding";
2998                         type: RECT;
2999                         scale: 1;
3000                         mouse_events: 0;
3001                         description {
3002                                 state: "default" 0.0;
3003                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT;
3004                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT;
3005                                 align: 0 0.5;
3006                                 fixed: 1 1;
3007                                 visible: 0;
3008                         }
3009                 }
3010                 part {
3011                         name: "elm.text";
3012                         type:  TEXT;
3013                         mouse_events:  0;
3014                         scale: 1;
3015                         description {
3016                                 state: "default" 0.0;
3017                                 min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT;
3018                                 max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT;
3019                                 fixed: 1 1;
3020                                 align: 0 0;
3021                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3022                                 color: CTXPOPUP_TP_FONT_COLOR;
3023                                 text {
3024                                         font: FONT_ROM;
3025                                         size: CTXPOPUP_TP_FONT_SIZE;
3026                                         align: 0.5 0.5;
3027                                         min: 1 1;
3028                                 }
3029                         }
3030                         description {
3031                                 state: "clicked" 0.0;
3032                                 inherit: "default" 0.0;
3033                                 color: 255 255 255 255;
3034                         }
3035                 }
3036                 part {
3037                         name: "right_padding";
3038                         scale: 1;
3039                         mouse_events: 0;
3040                         description {
3041                                 state: "default" 0.0;
3042                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT;
3043                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT;
3044                                 align: 0 0;
3045                         rel1 {relative: 1.0 0.0; to: "elm.text";}
3046                                 visible: 0;
3047         }
3048                 }
3049                 part {
3050                         name: "over1";
3051                         mouse_events: 1;
3052                         repeat_events: 1;
3053                         ignore_flags: ON_HOLD;
3054                         description {
3055                                 state: "default" 0.0;
3056                         }
3057                 }
3058                 part {
3059                         name: "over2";
3060                         mouse_events: 1;
3061                         repeat_events: 1;
3062                         description {
3063                                 state: "default" 0.0;
3064                         }
3065                 }
3066         }
3067
3068         programs {
3069                 program {
3070                         name: "item_unclick";
3071                         signal: "mouse,up,1";
3072                         source: "over1";
3073                         action: SIGNAL_EMIT "elm,action,click" "";
3074                 }
3075                 program {
3076                         name: "item_click";
3077                         signal: "mouse,down,1";
3078                         source: "over2";
3079                         script {
3080                                 set_state(PART:"elm.text", "clicked", 0.0);
3081                         }
3082                 }
3083                 program {
3084                         name: "item_unclick2";
3085                         signal: "mouse,up,1";
3086                         source: "over2";
3087                         script {
3088                                 set_state(PART:"elm.text", "default", 0.0);
3089                         }
3090                 }
3091         }
3092 }