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