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