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