Merge "[Button]Naviframe_control style macro's modified."
[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: "00_popup_bubble_bg.png" COMP;
594                         image: "00_popup_bg.png" 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: "00_popup_bubble_bg.png";
643                                                 border: 13 13 13 13;
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: "00_popup_bg.png";
899                                                 border: 3 3 3 3;
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: GENLIST_PART_BG_COLOR_INC;
1156                                         visible: 1;
1157                                 }
1158                                 description {
1159                                         state: "clicked" 0.0;
1160                                         color: GENLIST_PART_LIST_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: GENLIST_PART_FONT_LIST_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: "list_item";
1227                                         }
1228                                 }
1229                                 description {
1230                                         state: "compress" 0.0;
1231                                         inherit: "default" 0.0;
1232                                         max: -1 -1;
1233                                         text {
1234                                                 min: 0 1;
1235                                         }
1236                                 }
1237                                 description {
1238                                         state: "clicked" 0.0;
1239                                         inherit: "default" 0.0;
1240                                         color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
1241                                 }
1242                         }
1243                         part {
1244                                 name: "right_padding";
1245                                 scale: 1;
1246                                 mouse_events: 0;
1247                                 description {
1248                                         state: "default" 0.0;
1249                                         visible: 0;
1250                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1251                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1252                                         fixed: 1 0;
1253                                         align: 1.0 0.5;
1254                                 }
1255                         }
1256                         part {
1257                                 name: "over1";
1258                                 mouse_events: 1;
1259                                 repeat_events: 1;
1260                                 ignore_flags: ON_HOLD;
1261                                 description {
1262                                         state: "default" 0.0;
1263                                 }
1264                         }
1265                         part {
1266                                 name: "over2";
1267                                 mouse_events: 1;
1268                                 repeat_events: 1;
1269                                 description {
1270                                         state: "default" 0.0;
1271                                 }
1272                         }
1273                         part {
1274                                 name: "disclip";
1275                                 type: RECT;
1276                                 description {
1277                                         state: "default" 0.0;
1278                                         visible: 0;
1279                                 }
1280                                 description {
1281                                         state: "disabled" 0.0;
1282                                         visible: 1;
1283                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1284                                 }
1285                         }
1286                 }
1287                 programs {
1288                         program {
1289                                 name: "item_unclick";
1290                                 signal: "mouse,up,1";
1291                                 source: "over1";
1292                                 action: SIGNAL_EMIT "elm,action,click" "";
1293                         }
1294                         program {
1295                                 name: "disable";
1296                                 signal: "elm,state,disabled";
1297                                 source: "elm";
1298                                 action: STATE_SET "disabled" 0.0;
1299                                 target: "disclip";
1300                         }
1301                         program {
1302                                 name: "enable";
1303                                 signal: "elm,state,enabled";
1304                                 source: "elm";
1305                                 action: STATE_SET "default" 0.0;
1306                                 target: "disclip";
1307                         }
1308                         program {
1309                                 name: "default";
1310                                 signal: "elm,state,default";
1311                                 source: "elm";
1312                                 script {
1313                                         set_state(PART:"separator", "default", 0.0);
1314                                 }
1315                         }
1316                         program {
1317                                 name: "compress";
1318                                 signal: "elm,state,compress";
1319                                 source: "elm";
1320                                 action: STATE_SET "compress" 0.0;
1321                                 target: "elm.text";
1322                         }
1323                         program {
1324                                 name: "vertical";
1325                                 signal: "elm,state,vertical";
1326                                 source: "elm";
1327                                 script {
1328                                         set_state(PART:"separator", "vertical", 0.0);
1329                                 }
1330                         }
1331                         program {
1332                                 name: "horizontal";
1333                                 signal: "elm,state,horizontal";
1334                                 source: "elm";
1335                                 script {
1336                                         set_state(PART:"separator", "horizontal", 0.0);
1337                                 }
1338                         }
1339                         program {
1340                                 name: "item_click2";
1341                                 signal: "mouse,down,1";
1342                                 source: "over2";
1343                                 script {
1344                                         set_state(PART:"elm.text", "clicked", 0.0);
1345                                         set_state(PART:"bg", "clicked", 0.0);
1346                                 }
1347                         }
1348                         program {
1349                                 name: "item_unclick2";
1350                                 signal: "mouse,up,1";
1351                                 source: "over2";
1352                                 script {
1353                                         set_state(PART:"elm.text", "compress", 0.0);
1354                                         set_state(PART:"bg", "default", 0.0);
1355                                 }
1356                         }
1357                 }
1358         }
1359 ///////////////////////////////////////////////////////////////////////////////
1360         group {
1361                 name: "elm/ctxpopup/icon_style_item/default";
1362                 parts {
1363                         part {
1364                                 name: "event_blocker";
1365                                 mouse_events: 1;
1366                                 description {
1367                                         state: "default" 0.0;
1368                                         color: 0 0 0 0;
1369                                 }
1370                         }
1371                         part {
1372                                 name: "bg";
1373                                 scale: 1;
1374                                 mouse_events: 0;
1375                                 type: RECT;
1376                                 description {
1377                                         state: "default" 0.0;
1378                                         color: GENLIST_PART_BG_COLOR_INC;
1379                                         visible: 1;
1380                                         min: CTXPOPUP_ITEM_ICON_INC;
1381                                         max: CTXPOPUP_ITEM_ICON_INC;
1382                                 }
1383                                 description {
1384                                         state: "clicked" 0.0;
1385                                         color: GENLIST_PART_LIST_PRESS_COLOR_INC;
1386                                         visible: 1;
1387                                 }
1388                         }
1389                         part {
1390                                 name: "left_top_padding";
1391                                 scale: 1;
1392                                 description {
1393                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1394                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1395                                         visible: 0;
1396                                         align: 0 0;
1397                                         fixed: 1 1;
1398                                 }
1399                         }
1400                         part {
1401                                 name: "separator";
1402                                 mouse_events: 0;
1403                                 type: RECT;
1404                                 scale: 1;
1405                                 description {
1406                                         state: "default" 0.0;
1407                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1408                                         align: 0.5 0;
1409                                         min: 1 0;
1410                                         max: 1 999999;
1411                                         visible: 0;
1412                                 }
1413                                 description {
1414                                         state: "horizontal" 0.0;
1415                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1416                                         align: 0 0.5;
1417                                         min: 1 0;
1418                                         max: 1 999999;
1419                                         visible: 1;
1420                                 }
1421                         description {
1422                                         state: "vertical" 0.0;
1423                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1424                                         align: 0.5 0;
1425                                         min: 0 1;
1426                                         max: 999999 1;
1427                                         visible: 1;
1428                                 }
1429                         }
1430                         part {
1431                                 name: "elm.swallow.icon";
1432                                 type: SWALLOW;
1433                                 scale: 1;
1434                                 description {
1435                                         state: "default" 0.0;
1436                                         min: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1437                                         max: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1438                                         align: 0.5 0.5;
1439                                         aspect: 1.0 1.0;
1440                                         rel1 { to: "left_top_padding"; relative: 1 1; }
1441                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
1442                                 }
1443                         }
1444                         part {
1445                                 name: "right_bottom_padding";
1446                                 scale: 1;
1447                                 description {
1448                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1449                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1450                                         visible: 0;
1451                                         align: 1 1;
1452                                         fixed: 1 1;
1453                                 }
1454                         }
1455                         part {
1456                                 name: "over1";
1457                                 mouse_events: 1;
1458                                 repeat_events: 1;
1459                                 ignore_flags: ON_HOLD;
1460                                 description {
1461                                         state: "default" 0.0;
1462                                 }
1463                         }
1464                         part {
1465                                 name: "over2";
1466                                 mouse_events: 1;
1467                                 repeat_events: 1;
1468                                 description {
1469                                         state: "default" 0.0;
1470                                 }
1471                         }
1472                         part {
1473                                 name: "disclip";
1474                                 type: RECT;
1475                                 description {
1476                                         state: "default" 0.0;
1477                                         visible: 0;
1478                                 }
1479                                 description {
1480                                         state: "disabled" 0.0;
1481                                         visible: 1;
1482                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1483                                 }
1484                         }
1485                 }
1486                 programs {
1487                         program {
1488                                 name: "default";
1489                                 signal: "elm,state,default";
1490                                 source: "elm";
1491                                 script {
1492                                         set_state(PART:"separator", "default", 0.0);
1493                                 }
1494                         }
1495                         program {
1496                                 name: "vertical";
1497                                 signal: "elm,state,vertical";
1498                                 source: "elm";
1499                                 script {
1500                                         set_state(PART:"separator", "vertical", 0.0);
1501                                 }
1502                         }
1503                         program {
1504                                 name: "horizontal";
1505                                 signal: "elm,state,horizontal";
1506                                 source: "elm";
1507                                 script {
1508                                         set_state(PART:"separator", "horizontal", 0.0);
1509                                 }
1510                         }
1511                         program {
1512                                 name: "item_unclick";
1513                                 signal: "mouse,up,1";
1514                                 source: "over1";
1515                                 action: SIGNAL_EMIT "elm,action,click" "";
1516                         }
1517                         program {
1518                                 name: "disable";
1519                                 signal: "elm,state,disabled";
1520                                 source: "elm";
1521                                 action: STATE_SET "disabled" 0.0;
1522                                 target: "disclip";
1523                         }
1524                         program {
1525                                 name: "enable";
1526                                 signal: "elm,state,enabled";
1527                                 source: "elm";
1528                                 action: STATE_SET "default" 0.0;
1529                                 target: "disclip";
1530                         }
1531                         program {
1532                                 name: "item_click2";
1533                                 signal: "mouse,down,1";
1534                                 source: "over2";
1535                                 script {
1536                                         set_state(PART:"bg", "clicked", 0.0);
1537                                 }
1538                         }
1539                         program {
1540                                 name: "item_unclick2";
1541                                 signal: "mouse,up,1";
1542                                 source: "over2";
1543                                 script {
1544                                         set_state(PART:"bg", "default", 0.0);
1545                                 }
1546                         }
1547                 }
1548         }
1549 ///////////////////////////////////////////////////////////////////////////////
1550         group {
1551                 name: "elm/ctxpopup/icon_text_style_item/default";
1552                 parts {
1553                         part {
1554                                 name: "event_blocker";
1555                                 mouse_events: 1;
1556                                 description {
1557                                         state: "default" 0.0;
1558                                 }
1559                         }
1560                         part {
1561                                 name: "bg";
1562                                 mouse_events: 0;
1563                                 type: RECT;
1564                                 description {
1565                                         state: "default" 0.0;
1566                                         color: GENLIST_PART_BG_COLOR_INC;
1567                                         visible: 1;
1568                                 }
1569                                 description {
1570                                         state: "clicked" 0.0;
1571                                         color: GENLIST_PART_LIST_PRESS_COLOR_INC;
1572                                         visible: 1;
1573                                 }
1574                         }
1575                         part {
1576                                 name: "icon_left_padding";
1577                                 scale: 1;
1578                                 mouse_events: 0;
1579                                 description {
1580                                         state: "default" 0.0;
1581                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1582                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1583                                         align: 0 0;
1584                                         fixed: 1 1;
1585                                         visible: 0;
1586                                 }
1587                         }
1588                         part {
1589                                 name: "separator";
1590                                 mouse_events: 0;
1591                                 type: RECT;
1592                                 scale: 1;
1593                                 description {
1594                                         state: "default" 0.0;
1595                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1596                                         align: 0.5 0;
1597                                         min: 1 0;
1598                                         max: 1 999999;
1599                                         visible: 0;
1600                                 }
1601                                 description {
1602                                         state: "horizontal" 0.0;
1603                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1604                                         align: 0 0.5;
1605                                         min: 1 0;
1606                                         max: 1 999999;
1607                                         visible: 1;
1608                                 }
1609                         description {
1610                                         state: "vertical" 0.0;
1611                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1612                                         align: 0.5 0;
1613                                         min: 0 1;
1614                                         max: 999999 1;
1615                                         visible: 1;
1616                                 }
1617                         }
1618                         part {
1619                                 name: "elm.swallow.icon";
1620                                 type: SWALLOW;
1621                                 scale: 1;
1622                                 description {
1623                                         state: "default" 0.0;
1624                                         min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1625                                         max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1626                                         align: 0 0.5;
1627                                         aspect: 1.0 1.0;
1628                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
1629                                 }
1630                         }
1631                         part {
1632                                 name: "icon_right_padding";
1633                                 scale: 1;
1634                                 mouse_events: 0;
1635                                 description {
1636                                         state: "default" 0.0;
1637                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1638                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1639                                         align: 0 0.5;
1640                                         fixed: 1 1;
1641                                         visible: 0;
1642                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
1643                                 }
1644                         }
1645                         part {
1646                                 name: "elm.text";
1647                                 type:  TEXT;
1648                                 mouse_events:  0;
1649                                 scale: 1;
1650                                 description {
1651                                         state: "default" 0.0;
1652                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1653                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_ITEM_PADDING_INC)-CTXPOPUP_ICON_WIDTH_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1654                                         fixed: 0 1;
1655                                         align: 0.5 0.5;
1656                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
1657                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
1658                                         color: GENLIST_PART_FONT_LIST_MAIN_TEXT_UNREAD_COLOR_INC;
1659                                         text {
1660                                                 font: "SLP:style=Roman";
1661                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1662                                                 align: 0.0 0.5;
1663                                                 min: 1 1;
1664                                                 text_class: "list_item";
1665                                         }
1666                                 }
1667                                 description {
1668                                         state: "compress" 0.0;
1669                                         inherit: "default" 0.0;
1670                                         max: -1 -1;
1671                                         text {
1672                                                 min: 0 1;
1673                                         }
1674                                 }
1675                                 description {
1676                                         state: "clicked" 0.0;
1677                                         inherit: "default" 0.0;
1678                                         color: GENLIST_PART_TEXT_PRESS_COLOR_INC;
1679                                 }
1680                         }
1681                         part {
1682                                 name: "text_right_padding";
1683                                 type: RECT;
1684                                 scale: 1;
1685                                 mouse_events: 0;
1686                                 description {
1687                                         state: "default" 0.0;
1688                                         visible: 0;
1689                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1690                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1691                                         fixed: 1 0;
1692                                         align: 1.0 0.5;
1693                         }
1694                         }
1695                         part {
1696                                 name: "over1";
1697                                 mouse_events: 1;
1698                                 repeat_events: 1;
1699                                 ignore_flags: ON_HOLD;
1700                                 description {
1701                                         state: "default" 0.0;
1702                                 }
1703                         }
1704                         part {
1705                                 name: "over2";
1706                                 mouse_events: 1;
1707                                 repeat_events: 1;
1708                                 description {
1709                                         state: "default" 0.0;
1710                                 }
1711                         }
1712                         part {
1713                                 name: "disclip";
1714                                 type: RECT;
1715                                 description {
1716                                         state: "default" 0.0;
1717                                         visible: 0;
1718                                 }
1719                                 description {
1720                                         state: "disabled" 0.0;
1721                                         visible: 1;
1722                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1723                                 }
1724                         }
1725                 }
1726                 programs {
1727                         program {
1728                                 name: "item_unclick";
1729                                 signal: "mouse,up,1";
1730                                 source: "over1";
1731                                 action: SIGNAL_EMIT "elm,action,click" "";
1732                         }
1733                         program {
1734                                 name: "disable";
1735                                 signal: "elm,state,disabled";
1736                                 source: "elm";
1737                                 action: STATE_SET "disabled" 0.0;
1738                                 target: "disclip";
1739                         }
1740                         program {
1741                                 name: "enable";
1742                                 signal: "elm,state,enabled";
1743                                 source: "elm";
1744                                 action: STATE_SET "default" 0.0;
1745                                 target: "disclip";
1746                         }
1747                         program {
1748                                 name: "default";
1749                                 signal: "elm,state,default";
1750                                 source: "elm";
1751                                 script {
1752                                         set_state(PART:"separator", "default", 0.0);
1753                                 }
1754                         }
1755                         program {
1756                                 name: "compress";
1757                                 signal: "elm,state,compress";
1758                                 source: "elm";
1759                                 action: STATE_SET "compress" 0.0;
1760                                 target: "elm.text";
1761                         }
1762                         program {
1763                                 name: "vertical";
1764                                 signal: "elm,state,vertical";
1765                                 source: "elm";
1766                                 script {
1767                                         set_state(PART:"separator", "vertical", 0.0);
1768                                 }
1769                         }
1770                         program {
1771                                 name: "horizontal";
1772                                 signal: "elm,state,horizontal";
1773                                 source: "elm";
1774                                 script {
1775                                         set_state(PART:"separator", "horizontal", 0.0);
1776                                 }
1777                         }
1778                         program {
1779                                 name: "item_click2";
1780                                 signal: "mouse,down,1";
1781                                 source: "over2";
1782                                 script {
1783                                         set_state(PART:"elm.text", "clicked", 0.0);
1784                                         set_state(PART:"bg", "clicked", 0.0);
1785                                 }
1786                         }
1787                         program {
1788                                 name: "item_unclick2";
1789                                 signal: "mouse,up,1";
1790                                 source: "over2";
1791                                 script {
1792                                         set_state(PART:"elm.text", "compress", 0.0);
1793                                         set_state(PART:"bg", "default", 0.0);
1794                                 }
1795                         }
1796                 }
1797         }
1798
1799 ///////////////////////////////////////////////////////////////////////////////////////
1800 #define CTXPOPUP_ENTRY_LIST_PADDING_LEFT 3
1801 #define CTXPOPUP_ENTRY_LIST_PADDING_TOP 6
1802 #define CTXPOPUP_ENTRY_LIST_PADDING_RIGHT 3
1803 #define CTXPOPUP_ENTRY_LIST_PADDING_BOTTOM 6
1804 //////////////////////////////////////////////////////////////////////////////////////
1805         group {
1806                 name: "elm/ctxpopup/base/extended/entry";
1807                 alias: "elm/ctxpopup/base/extended/entry/pass_event";
1808                 images {
1809                         image: "copy&paste_bg_center.png" COMP;
1810                         image: "ctxpopup_shadow.png" COMP;
1811                 }
1812                 parts {
1813                         part {
1814                                 name:"frame_shadow_left_top_padding";
1815                                 type:RECT;
1816                                 scale: 1;
1817                                 mouse_events: 0;
1818                                 description {
1819                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1820                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1821                                         align: 0 0;
1822                                         fixed: 1 1;
1823                                         visible: 0;
1824                                 }
1825                         }
1826                         part {
1827                                 name:"frame_shadow_right_bottom_padding";
1828                                 type:RECT;
1829                                 scale: 1;
1830                                 mouse_events: 0;
1831                                 description {
1832                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1833                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
1834                                         rel1{relative: 1 1;}
1835                                         align: 0 0;
1836                                         fixed: 1 1;
1837                                         visible: 0;
1838                                 }
1839                         }
1840                         part {
1841                                 name: "frame_shadow";
1842                                 type: IMAGE;
1843                                 scale: 1;
1844                                 mouse_events: 0;
1845                                 description {
1846                                         state: "default" 0.0;
1847                                         rel1 {to:"frame_shadow_left_top_padding"; relative: 1 1;}
1848                                         rel2 {to:"frame_shadow_right_bottom_padding";}
1849                                         image {
1850                                                 normal: "ctxpopup_shadow.png";
1851                                                 border: 10 10 10 10;
1852                                                 border_scale: 1;
1853                                         }
1854                                 }
1855                         }
1856                         part {
1857                                 name: "frame_bg";
1858                                 type: IMAGE;
1859                                 scale: 1;
1860                                 mouse_events: 0;
1861                                 description {
1862                                         state: "default" 0.0;
1863                                         rel1 {to:"elm.swallow.content";}
1864                                         rel2 {to:"elm.swallow.content";}
1865                                         image {
1866                                                 normal: "copy&paste_bg_center.png";
1867                                                 border: CTXPOPUP_ENTRY_CENTER_IMAGE_BORDER;
1868                                                 border_scale: 1;
1869                                         }
1870                                 }
1871                         }
1872                         part {
1873                                 name: "arrow_area_left";
1874                                 type: RECT;
1875                                 mouse_events: 0;
1876                                 scale: 1;
1877                                 description {
1878                                         state: "default" 0.0;
1879                                         visible: 0;
1880                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
1881                                         fixed: 1 1;
1882                                         align: 1 0.5;
1883                                         rel1 {
1884                                                 relative: 0 1;
1885                                                 to_y: "ctxpopup_frame_left_top";
1886                                         }
1887                                         rel2 {
1888                                                 relative:0 0;
1889                                                 to:"ctxpopup_frame_left_bottom";
1890                                         }
1891                                 }
1892                         }
1893                         part {
1894                                 name: "arrow_area_right";
1895                                 type: RECT;
1896                                 mouse_events: 0;
1897                                 scale: 1;
1898                                 description { state: "default" 0.0;
1899                                         visible: 0;
1900                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
1901                                         fixed: 1 1;
1902                                         align: 0 0.5;
1903                                         rel1 {
1904                                                 relative: 1 1;
1905                                                 to:"ctxpopup_frame_right_top";
1906                                         }
1907                                         rel2 {
1908                                                 relative: 1 0;
1909                                                 to_y: "ctxpopup_frame_right_bottom";
1910                                         }
1911                                 }
1912                         }
1913                         part {
1914                                 name: "arrow_area_up";
1915                                 type: RECT;
1916                                 mouse_events: 0;
1917                                 scale: 1;
1918                                 description { state: "default" 0.0;
1919                                         visible: 0;
1920                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1921                                         fixed: 1 1;
1922                                         align: 0.5 1;
1923                                         rel1 {
1924                                                 relative: 0 0;
1925                                                 to: "frame_bg";
1926                                         }
1927                                         rel2 {
1928                                                 relative: 1 0;
1929                                                 to: "frame_bg";
1930                                         }
1931                                 }
1932                         }
1933                         part {
1934                                 name: "arrow_area_down";
1935                                 type: RECT;
1936                                 mouse_events: 0;
1937                                 scale: 1;
1938                                 description {
1939                                         state: "default" 0.0;
1940                                         visible: 0;
1941                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1942                                         fixed: 1 1;
1943                                         align: 0.5 0;
1944                                         rel1 {
1945                                                 relative: 0 1;
1946                                                 to: "frame_bg";
1947                                         }
1948                                         rel2 {
1949                                                 relative: 1 1;
1950                                                 to: "frame_bg";
1951                                         }
1952                                 }
1953                         }
1954                         part {
1955                                 name: "elm.swallow.arrow_up";
1956                                 type: SWALLOW;
1957                                 mouse_events: 0;
1958                                 scale: 1;
1959                                 dragable {
1960                                         x: 1 1 0;
1961                                         y: 1 1 0;
1962                                         confine: "arrow_area_up";
1963                                 }
1964                                 description {
1965                                         state: "default" 0.0;
1966                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1967                                         fixed: 1 1;
1968                                         visible: 1;
1969                                 }
1970                         }
1971                         part {
1972                                 name: "elm.swallow.arrow_down";
1973                                 type: SWALLOW;
1974                                 mouse_events: 0;
1975                                 scale: 1;
1976                                 dragable {
1977                                         x: 1 1 0;
1978                                         y: 1 1 0;
1979                                         confine: "arrow_area_down";
1980                                 }
1981                                 description {
1982                                         state: "default" 0.0;
1983                                         min: 0 CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
1984                                         fixed: 1 1;
1985                                         visible: 1;
1986                                 }
1987                         }
1988                         part {
1989                                 name: "elm.swallow.arrow_left";
1990                                 type: SWALLOW;
1991                                 mouse_events: 0;
1992                                 scale: 1;
1993                                 dragable {
1994                                         x: 1 1 0;
1995                                         y: 1 1 0;
1996                                         confine: "arrow_area_left";
1997                                 }
1998                                 description {
1999                                         state: "default" 0.0;
2000                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
2001                                         fixed: 1 1;
2002                                         visible: 1;
2003                                 }
2004                         }
2005                         part {
2006                                 name: "elm.swallow.arrow_right";
2007                                 type: SWALLOW;
2008                                 mouse_events: 0;
2009                                 scale: 1;
2010                                 dragable {
2011                                         x: 1 1 0;
2012                                         y: 1 1 0;
2013                                         confine: "arrow_area_right";
2014                                 }
2015                                 description {
2016                                         state: "default" 0.0;
2017                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT 0;
2018                                         fixed: 1 1;
2019                                         visible: 1;
2020                                 }
2021                         }
2022                         part {
2023                                 name: "ctxpopup_frame_left_top";
2024                                 type: RECT;
2025                                 scale: 1;
2026                                 description {
2027                                         visible: 0;
2028                                         align: 0 0;
2029                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2030                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2031                                 }
2032                         }
2033                         part {
2034                                 name: "ctxpopup_frame_right_top";
2035                                 type: RECT;
2036                                 scale: 1;
2037                                 description {
2038                                         visible: 0;
2039                                         align: 1 0;
2040                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2041                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2042                                 }
2043                         }
2044                         part {
2045                                 name: "ctxpopup_frame_left_bottom";
2046                                 type: RECT;
2047                                 scale: 1;
2048                                 description {
2049                                         visible: 0;
2050                                         align: 0 1;
2051                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2052                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2053                                 }
2054                         }
2055                         part {
2056                                 name: "ctxpopup_frame_right_bottom";
2057                                 type: RECT;
2058                                 scale: 1;
2059                                 description {
2060                                         visible: 0;
2061                                         align: 1 1;
2062                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
2063                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
2064                                 }
2065                         }
2066                         part {
2067                                 name:"list_shadow_right_bottom_padding";
2068                                 type:RECT;
2069                                 scale: 1;
2070                                 mouse_events: 0;
2071                                 description {
2072                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
2073                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
2074                                         align: 0 0;
2075                                         fixed: 1 1;
2076                                         visible: 0;
2077                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
2078                                 }
2079                         }
2080                         part {
2081                                 name:"content_left_top_padding";
2082                                 type:RECT;
2083                                 scale: 1;
2084                                 mouse_events: 0;
2085                                 description {
2086                                         state: "default" 0.0;
2087                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2088                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2089                                         align: 0 0;
2090                                         fixed: 1 1;
2091                                         visible: 0;
2092                                 }
2093                         }
2094                         part {
2095                                 name:"content_right_bottom_padding";
2096                                 type:RECT;
2097                                 scale: 1;
2098                                 mouse_events: 0;
2099                                 description {
2100                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2101                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
2102                                         rel1 { relative: 1 1;}
2103                                         rel2 { relative: 1 1;}
2104                                         align: 1 1;
2105                                         fixed: 1 1;
2106                                         visible: 0;
2107                                 }
2108                         }
2109                         part {
2110                                 name: "elm.swallow.content";
2111                                 type: SWALLOW;
2112                                 description {
2113                                         state: "default" 0.0;
2114                                         align: 0 0;
2115                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.5 0.5;}
2116                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.5 0.5;}
2117                                 }
2118                         }
2119                 }
2120         }
2121 ///////////////////////////////////////////////////////////////////////////////////////
2122         group {
2123                 name: "elm/ctxpopup/arrow/extended/entry";
2124                 alias: "elm/ctxpopup/arrow/extended/entry/pass_event";
2125                 images {
2126                         image: "copy&paste_arrow_up.png" COMP;
2127                         image: "copy&paste_arrow_left.png" COMP;
2128                         image: "copy&paste_arrow_right.png" COMP;
2129                         image: "copy&paste_arrow_down.png" COMP;
2130                 }
2131                 parts {
2132                         part {
2133                                 name: "ctxpopup_arrow";
2134                                 type: IMAGE;
2135                                 scale: 1;
2136                                 description {
2137                                         state: "default" 0.0;
2138                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2139                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2140                                         fixed: 1 1;
2141                                         visible: 0;
2142                                         align: 0.5 0.5;
2143                                 }
2144                                 description {
2145                                         state: "left" 0.0;
2146                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2147                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2148                                         fixed: 1 1;
2149                                         align: 0 0.5;
2150                                         image {
2151                                                 normal: "copy&paste_arrow_left.png";
2152                                         }
2153                                 }
2154                                 description {
2155                                         state: "right" 0.0;
2156                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2157                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH;
2158                                         fixed: 1 1;
2159                                         align: 1 0.5;
2160                                         image {
2161                                                 normal: "copy&paste_arrow_right.png";
2162                                         }
2163                                 }
2164                                 description {
2165                                         state: "top" 0.0;
2166                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2167                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2168                                         fixed: 1 1;
2169                                         align: 0.5 0;
2170                                         image {
2171                                                 normal: "copy&paste_arrow_up.png";
2172                                         }
2173                                 }
2174                                 description {
2175                                         state: "bottom" 0.0;
2176                                         min: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2177                                         max: CTXPOPUP_ENTRY_ARROW_SIZE_WIDTH CTXPOPUP_ENTRY_ARROW_SIZE_HEIGHT;
2178                                         fixed: 1 1;
2179                                         align: 0.5 1;
2180                                         image {
2181                                                 normal: "copy&paste_arrow_down.png";
2182                                         }
2183                                 }
2184                         }
2185                 }
2186                 programs {
2187                         program {
2188                                 name: "enable_left_arrow";
2189                                 signal: "elm,state,left";
2190                                 source: "elm";
2191                                 action: STATE_SET "left" 0.0;
2192                                 target: "ctxpopup_arrow";
2193                         }
2194                         program {
2195                                 name: "enable_right_arrow";
2196                                 signal: "elm,state,right";
2197                                 source: "elm";
2198                                 action: STATE_SET "right" 0.0;
2199                                 target: "ctxpopup_arrow";
2200                         }
2201                         program {
2202                                 name: "enable_top_arrow";
2203                                 signal: "elm,state,top";
2204                                 source: "elm";
2205                                 action: STATE_SET "top" 0.0;
2206                                 target: "ctxpopup_arrow";
2207                         }
2208                         program {
2209                                 name: "enable_bottom_arrow";
2210                                 signal: "elm,state,bottom";
2211                                 source: "elm";
2212                                 action: STATE_SET "bottom" 0.0;
2213                                 target: "ctxpopup_arrow";
2214                         }
2215                 }
2216         }
2217 ///////////////////////////////////////////////////////////////////////////////////////
2218 #define CTXPOPUP_ENTRY_ITEM_BG_PART \
2219                         part {\
2220                                 name: "bg";\
2221                                 mouse_events: 0;\
2222                                 type: IMAGE;\
2223                                 description {\
2224                                         state: "default" 0.0;\
2225                                         visible: 0;\
2226                                         rel1 {to:"left_bg_padding"; relative: 1 0;}\
2227                                         rel2 {to:"right_bg_padding"; relative: 0 1;}\
2228                                         image {\
2229                                                 normal: "copy&paste_press_center.png";\
2230                                                 border: 0 0 0 0;\
2231                                         }\
2232                                 }\
2233                                 description {\
2234                                         state: "clicked" 0.0;\
2235                                         inherit: "default" 0.0;\
2236                                         visible: 1;\
2237                                         image {\
2238                                                 normal: "copy&paste_press_center.png";\
2239                                                 border: 0 0 0 0;\
2240                                         }\
2241                                 }\
2242                         }
2243 #define CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART \
2244                         part {\
2245                                 name: "left_bg_padding";\
2246                                 type: IMAGE;\
2247                                 scale: 1;\
2248                                 mouse_events: 0;\
2249                                 description {\
2250                                         state: "default" 0.0;\
2251                                         visible: 0;\
2252                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2253                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2254                                         align: 0 0.5;\
2255                                         fixed: 1 0;\
2256                                         rel1 { to: "event_blocker"; relative: 0 0; }\
2257                                         rel2 { to: "event_blocker"; relative: 0 1; }\
2258                                         image {\
2259                                                 normal: "copy&paste_press_left.png";\
2260                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
2261                                                 border_scale: 1;\
2262                                         }\
2263                                 }\
2264                                 description {\
2265                                         state: "clicked" 0.0;\
2266                                         inherit: "default" 0.0;\
2267                                         visible: 1;\
2268                                         image {\
2269                                                 normal: "copy&paste_press_left.png";\
2270                                                 border: CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0 0;\
2271                                                 border_scale: 1;\
2272                                         }\
2273                                 }\
2274                         }
2275 #define CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART \
2276                         part {\
2277                                 name: "right_bg_padding";\
2278                                 type: IMAGE;\
2279                                 scale: 1;\
2280                                 mouse_events: 0;\
2281                                 description {\
2282                                         state: "default" 0.0;\
2283                                         visible: 0;\
2284                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2285                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2286                                         fixed: 1 0;\
2287                                         align: 1.0 0.5;\
2288                                         rel1 { to: "event_blocker"; relative: 1 0; }\
2289                                         rel2 { to: "event_blocker"; relative: 1 1; }\
2290                                         image {\
2291                                                 normal: "copy&paste_press_right.png";\
2292                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
2293                                                 border_scale: 1;\
2294                                         }\
2295                                 }\
2296                                 description {\
2297                                         state: "clicked" 0.0;\
2298                                         inherit: "default" 0.0;\
2299                                         visible: 1;\
2300                                         image {\
2301                                                 normal: "copy&paste_press_right.png";\
2302                                                 border: 0 CTXPOPUP_ENTRY_IMAGE_BORDER_WIDTH 0 0;\
2303                                                 border_scale: 1;\
2304                                         }\
2305                                 }\
2306                         }
2307 #define CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART \
2308                         part {\
2309                                 name: "left_padding";\
2310                                 type: RECT;\
2311                                 scale: 1;\
2312                                 mouse_events: 0;\
2313                                 description {\
2314                                         state: "default" 0.0;\
2315                                         visible: 0;\
2316                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2317                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2318                                         align: 0 0.5;\
2319                                         fixed: 1 0;\
2320                                 }\
2321                         }
2322 #define CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART \
2323                         part {\
2324                                 name: "right_padding";\
2325                                 type: RECT;\
2326                                 scale: 1;\
2327                                 mouse_events: 0;\
2328                                 description {\
2329                                         state: "default" 0.0;\
2330                                         visible: 0;\
2331                                         min: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2332                                         max: CTXPOPUP_ENTRY_ITEM_PADDING_WIDTH CTXPOPUP_ENTRY_ITEM_HEIGHT;\
2333                                         fixed: 1 0;\
2334                                         align: 1.0 0.5;\
2335                                 }\
2336                         }
2337 #define CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART \
2338                         part {\
2339                                 name: "left_separator";\
2340                                 mouse_events: 0;\
2341                                 type: RECT;\
2342                                 scale: 1;\
2343                                 description {\
2344                                         state: "default" 0.0;\
2345                                         visible: 0;\
2346                                         color: CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_COLOR;\
2347                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2348                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2349                                         fixed: 1 1;\
2350                                         rel2 {\
2351                                                 relative: 0 1;\
2352                                         }\
2353                                 }\
2354                                 description {\
2355                                         state: "vertical" 0.0;\
2356                                         inherit: "default" 0.0;\
2357                                         visible: 1;\
2358                                 }\
2359                                 description {\
2360                                         state: "horizontal" 0.0;\
2361                                         inherit: "default" 0.0;\
2362                                         visible: 1;\
2363                                 }\
2364                         }
2365 #define CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART \
2366                         part {\
2367                                 name: "right_separator";\
2368                                 mouse_events: 0;\
2369                                 type: RECT;\
2370                                 scale: 1;\
2371                                 description {\
2372                                         state: "default" 0.0;\
2373                                         visible: 0;\
2374                                         color: CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_COLOR;\
2375                                         min: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2376                                         max: CTXPOPUP_ENTRY_SEPARATOR_WIDTH CTXPOPUP_ENTRY_SEPARATOR_HEIGHT;\
2377                                         fixed: 1 1;\
2378                                         rel1 {\
2379                                                 offset: -1 0;\
2380                                         }\
2381                                         rel2 {\
2382                                                 relative: 0 1;\
2383                                                 offset: -1 0;\
2384                                         }\
2385                                 }\
2386                                 description {\
2387                                         state: "vertical" 0.0;\
2388                                         inherit: "default" 0.0;\
2389                                         visible: 1;\
2390                                 }\
2391                                 description {\
2392                                         state: "horizontal" 0.0;\
2393                                         inherit: "default" 0.0;\
2394                                         visible: 1;\
2395                                 }\
2396                         }
2397 ///////////////////////////////////////////////////////////////////////////////////////
2398
2399         group {
2400                 name: "elm/ctxpopup/text_style_item/extended/entry";
2401                 alias: "elm/ctxpopup/text_style_item/extended/entry/pass_event";
2402                 images {
2403                         image: "copy&paste_press_center.png" COMP;
2404                         image: "copy&paste_press_left.png" COMP;
2405                         image: "copy&paste_press_right.png" COMP;
2406                 }
2407                 parts {
2408                         part {
2409                                 name: "event_blocker";
2410                                 mouse_events: 1;
2411                                 description {
2412                                         state: "default" 0.0;
2413                                         color: 0 0 0 0;
2414                                 }
2415                         }
2416                         CTXPOPUP_ENTRY_ITEM_BG_PART
2417                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2418                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2419                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2420                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2421                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2422                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
2423                         part {
2424                                 name: "elm.text";
2425                                 type:  TEXT;
2426                                 mouse_events:  0;
2427                                 scale: 1;
2428                                 description {
2429                                         state: "default" 0.0;
2430                                         min: 1 CTXPOPUP_ENTRY_ITEM_HEIGHT;
2431                                         max: CTXPOPUP_ENTRY_ITEM_WIDTH_MAX CTXPOPUP_ENTRY_ITEM_HEIGHT;
2432                                         fixed: 0 1;
2433                                         align: 0.5 0.5;
2434                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2435                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2436                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2437                                         text {
2438                                                 font: "SLP:style=Roman";
2439                                                 size: CTXPOPUP_ENTRY_ITEM_FONT_SIZE;
2440                                                 align: 0.5 0.5;
2441                                                 min: 1 1;
2442                                                 text_class: "list_item";
2443                                         }
2444                                 }
2445                                 description {
2446                                         state: "clicked" 0.0;
2447                                         inherit: "default" 0.0;
2448                                         color: CTXPOPUP_ENTRY_ITEM_TEXT_COLOR;
2449                                 }
2450                         }
2451                         part {
2452                                 name: "over1";
2453                                 mouse_events: 1;
2454                                 repeat_events: 1;
2455                                 ignore_flags: ON_HOLD;
2456                                 description {
2457                                         state: "default" 0.0;
2458                                 }
2459                         }
2460                         part {
2461                                 name: "over2";
2462                                 mouse_events: 1;
2463                                 repeat_events: 1;
2464                                 description {
2465                                         state: "default" 0.0;
2466                                 }
2467                         }
2468                         part {
2469                                 name: "disclip";
2470                                 type: RECT;
2471                                 description {
2472                                         state: "default" 0.0;
2473                                         visible: 0;
2474                                 }
2475                                 description {
2476                                         state: "disabled" 0.0;
2477                                         visible: 1;
2478                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2479                                 }
2480                         }
2481                 }
2482                 programs {
2483                         program {
2484                                 name: "item_unclick";
2485                                 signal: "mouse,up,1";
2486                                 source: "over1";
2487                                 action: SIGNAL_EMIT "elm,action,click" "";
2488                         }
2489                         program {
2490                                 name: "disable";
2491                                 signal: "elm,state,disabled";
2492                                 source: "elm";
2493                                 action: STATE_SET "disabled" 0.0;
2494                                 target: "disclip";
2495                         }
2496                         program {
2497                                 name: "enable";
2498                                 signal: "elm,state,enabled";
2499                                 source: "elm";
2500                                 action: STATE_SET "default" 0.0;
2501                                 target: "disclip";
2502                         }
2503                         program {
2504                                 name: "item_click2";
2505                                 signal: "mouse,down,1";
2506                                 source: "over2";
2507                                 script {
2508                                         set_state(PART:"elm.text", "clicked", 0.0);
2509                                         set_state(PART:"bg", "clicked", 0.0);
2510                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2511                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2512                                 }
2513                         }
2514                         program {
2515                                 name: "item_unclick2";
2516                                 signal: "mouse,up,1";
2517                                 source: "over2";
2518                                 script {
2519                                         set_state(PART:"elm.text", "default", 0.0);
2520                                         set_state(PART:"bg", "default", 0.0);
2521                                         set_state(PART:"left_bg_padding", "default", 0.0);
2522                                         set_state(PART:"right_bg_padding", "default", 0.0);
2523                                 }
2524                         }
2525                         program {
2526                                 name: "default";
2527                                 signal: "elm,state,default";
2528                                 source: "elm";
2529                                 script {
2530                                         set_state(PART:"left_separator", "default", 0.0);
2531                                         set_state(PART:"right_separator", "default", 0.0);
2532                                 }
2533                         }
2534                         program {
2535                                 name: "vertical";
2536                                 signal: "elm,state,vertical";
2537                                 source: "elm";
2538                                 script {
2539                                         set_state(PART:"left_separator", "vertical", 0.0);
2540                                         set_state(PART:"right_separator", "vertical", 0.0);
2541                                 }
2542                         }
2543                         program {
2544                                 name: "horizontal";
2545                                 signal: "elm,state,horizontal";
2546                                 source: "elm";
2547                                 script {
2548                                         set_state(PART:"left_separator", "horizontal", 0.0);
2549                                         set_state(PART:"right_separator", "horizontal", 0.0);
2550                                 }
2551                         }
2552                 }
2553         }
2554 ///////////////////////////////////////////////////////////////////////////////
2555         group {
2556                 name: "elm/ctxpopup/icon_style_item/extended/entry";
2557                 images {
2558                         image: "copy&paste_press_center.png" COMP;
2559                         image: "copy&paste_press_left.png" COMP;
2560                         image: "copy&paste_press_right.png" COMP;
2561                 }
2562                 parts {
2563                         part {
2564                                 name: "event_blocker";
2565                                 mouse_events: 1;
2566                                 description {
2567                                         state: "default" 0.0;
2568                                         color: 0 0 0 0;
2569                                 }
2570                         }
2571                         CTXPOPUP_ENTRY_ITEM_BG_PART
2572                         CTXPOPUP_ENTRY_ITEM_LEFT_BG_PADDING_PART
2573                         CTXPOPUP_ENTRY_ITEM_RIGHT_BG_PADDING_PART
2574                         CTXPOPUP_ENTRY_ITEM_LEFT_PADDING_PART
2575                         CTXPOPUP_ENTRY_ITEM_RIGHT_PADDING_PART
2576                         CTXPOPUP_ENTRY_ITEM_LEFT_SEPARATOR_PART
2577                         CTXPOPUP_ENTRY_ITEM_RIGHT_SEPARATOR_PART
2578                         part {
2579                                 name: "elm.swallow.icon";
2580                                 type: SWALLOW;
2581                                 scale: 1;
2582                                 description {
2583                                         state: "default" 0.0;
2584                                         min: 36 36;
2585                                         max: 36 36;
2586                                         fixed: 0 1;
2587                                         align: 0.5 0.5;
2588 //                                      aspect: 1.0 1.0;
2589                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
2590                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
2591                                 }
2592                         }
2593                         part {
2594                                 name: "elm.swallow.icon.paint";
2595                                 type: RECT;
2596                                 scale: 1;
2597                                 description {
2598                                         state: "default" 0.0;
2599                                         visible: 0;
2600                                         color: 255 255 0 255;
2601                                         rel1 { to: "elm.swallow.icon"; }
2602                                         rel2 { to: "elm.swallow.icon"; }
2603                                 }
2604                         }
2605                         part {
2606                                 name: "over1";
2607                                 mouse_events: 1;
2608                                 repeat_events: 1;
2609                                 ignore_flags: ON_HOLD;
2610                                 description {
2611                                         state: "default" 0.0;
2612                                 }
2613                         }
2614                         part {
2615                                 name: "over2";
2616                                 mouse_events: 1;
2617                                 repeat_events: 1;
2618                                 description {
2619                                         state: "default" 0.0;
2620                                 }
2621                         }
2622                         part {
2623                                 name: "disclip";
2624                                 type: RECT;
2625                                 description {
2626                                         state: "default" 0.0;
2627                                         visible: 0;
2628                                 }
2629                                 description {
2630                                         state: "disabled" 0.0;
2631                                         visible: 1;
2632                                         color: CTXPOPUP_ENTRY_ITEM_DISABLED_COLOR;
2633                                 }
2634                         }
2635                 }
2636                 programs {
2637                         program {
2638                                 name: "item_unclick";
2639                                 signal: "mouse,up,1";
2640                                 source: "over1";
2641                                 action: SIGNAL_EMIT "elm,action,click" "";
2642                         }
2643                         program {
2644                                 name: "disable";
2645                                 signal: "elm,state,disabled";
2646                                 source: "elm";
2647                                 action: STATE_SET "disabled" 0.0;
2648                                 target: "disclip";
2649                         }
2650                         program {
2651                                 name: "item_click2";
2652                                 signal: "mouse,down,1";
2653                                 source: "over2";
2654                                 script {
2655                                         set_state(PART:"bg", "clicked", 0.0);
2656                                         set_state(PART:"left_bg_padding", "clicked", 0.0);
2657                                         set_state(PART:"right_bg_padding", "clicked", 0.0);
2658                                 }
2659                         }
2660                         program {
2661                                 name: "item_unclick2";
2662                                 signal: "mouse,up,1";
2663                                 source: "over2";
2664                                 script {
2665                                         set_state(PART:"bg", "default", 0.0);
2666                                         set_state(PART:"left_bg_padding", "default", 0.0);
2667                                         set_state(PART:"right_bg_padding", "default", 0.0);
2668                                 }
2669                         }
2670                         program {
2671                                 name: "default";
2672                                 signal: "elm,state,default";
2673                                 source: "elm";
2674                                 script {
2675                                         set_state(PART:"left_separator", "default", 0.0);
2676                                         set_state(PART:"right_separator", "default", 0.0);
2677                                 }
2678                         }
2679                         program {
2680                                 name: "vertical";
2681                                 signal: "elm,state,vertical";
2682                                 source: "elm";
2683                                 script {
2684                                         set_state(PART:"left_separator", "vertical", 0.0);
2685                                         set_state(PART:"right_separator", "vertical", 0.0);
2686                                 }
2687                         }
2688                         program {
2689                                 name: "horizontal";
2690                                 signal: "elm,state,horizontal";
2691                                 source: "elm";
2692                                 script {
2693                                         set_state(PART:"left_separator", "horizontal", 0.0);
2694                                         set_state(PART:"right_separator", "horizontal", 0.0);
2695                                 }
2696                         }
2697                 }
2698         }
2699
2700 ///////////////////////////////////////////////////////////////////////////////////////
2701 #define CTXPOPUP_IE_FONT_COLOR 255 255 255 255
2702 #define CTXPOPUP_IE_CLICKED_FONT_COLOR 255 255 100 255
2703 #define CTXPOPUP_IE_SEPARATOR_COLOR 120 120 120 255
2704 #define CTXPOPUP_IE_ITEM_DISABLED_COLOR 200 200 200 127
2705 #define CTXPOPUP_IE_SEPARATOR_PADDING_SIZE 6 2
2706 ///////////////////////////////////////////////////////////////////////////////
2707 group {
2708         name: "elm/ctxpopup/base/extended/imageeditor";
2709         images {
2710                 image: "imageeditor_bg.png" COMP;
2711         }
2712         parts {
2713                 part {
2714                         name: "ctxpopup_frame";
2715                         type: IMAGE;
2716                         scale: 1;
2717                         description {
2718                                 image {
2719                                         normal: "imageeditor_bg.png";
2720                                         border: 10 10 10 10;
2721                                         border_scale: 1;
2722                                 }
2723                         }
2724                 }
2725                 part {
2726                         name: "elm.swallow.content";
2727                         type: SWALLOW;
2728                         description {
2729                                 state: "default" 0.0;
2730                         }
2731                 }//part
2732         }//parts
2733 }
2734 ///////////////////////////////////////////////////////////////////////////////
2735 group { name: "elm/ctxpopup/arrow/extended/imageeditor";
2736         images {
2737                 image: "imageeditor_left_arrow.png" COMP;
2738                 image: "imageeditor_right_arrow.png" COMP;
2739                 image: "imageeditor_top_arrow.png" COMP;
2740                 image: "imageeditor_bottom_arrow.png" COMP;
2741         }
2742         parts {
2743                 part {
2744                         name: "ctxpopup_arrow";
2745                         type: IMAGE;
2746                         scale: 1;
2747                         description {
2748                                 state: "default" 0.0;
2749                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2750                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2751                                 fixed: 1 1;
2752                                 visible: 0;
2753                                 align: 0.5 0.5;
2754                         }
2755                         description {
2756                                 state: "left" 0.0;
2757                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2758                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2759                                 fixed: 1 1;
2760                                 align: 0.0 0.5;
2761                                 image {
2762                                         normal: "imageeditor_left_arrow.png";
2763                                 }
2764                         }
2765                         description {
2766                                 state: "right" 0.0;
2767                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2768                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2769                                 fixed: 1 1;
2770                                 align: 1.0 0.5;
2771                                 image {
2772                                         normal: "imageeditor_right_arrow.png";
2773                                 }
2774                         }
2775                         description {
2776                                 state: "top" 0.0;
2777                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2778                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2779                                 fixed: 1 1;
2780                                 align: 0.5 0.0;
2781                                 image {
2782                                         normal: "imageeditor_top_arrow.png";
2783                                 }
2784                         }
2785                         description {
2786                                 state: "bottom" 0.0;
2787                                 min: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2788                                 max: CTXPOPUP_IE_ARROW_SIZE_INC CTXPOPUP_IE_ARROW_SIZE_INC;
2789                                 fixed: 1 1;
2790                                 align: 0.5 1.0;
2791                                 image {
2792                                         normal: "imageeditor_bottom_arrow.png";
2793                                 }
2794                         }
2795                 }
2796         }
2797         programs {
2798                 program {
2799                         name: "enable_left_arrow";
2800                         signal: "elm,state,left";
2801                         source: "elm";
2802                         action: STATE_SET "left" 0.0;
2803                         target: "ctxpopup_arrow";
2804                 }
2805                 program {
2806                         name: "enable_right_arrow";
2807                         signal: "elm,state,right";
2808                         source: "elm";
2809                         action: STATE_SET "right" 0.0;
2810                         target: "ctxpopup_arrow";
2811                 }
2812                 program {
2813                         name: "enable_top_arrow";
2814                         signal: "elm,state,top";
2815                         source: "elm";
2816                         action: STATE_SET "top" 0.0;
2817                         target: "ctxpopup_arrow";
2818                 }
2819                 program {
2820                         name: "enable_bottom_arrow";
2821                         signal: "elm,state,bottom";
2822                         source: "elm";
2823                         action: STATE_SET "bottom" 0.0;
2824                         target: "ctxpopup_arrow";
2825                 }
2826         }
2827 }
2828 ///////////////////////////////////////////////////////////////////////////////
2829 group {
2830         name: "elm/ctxpopup/icon_text_style_item/extended/imageeditor";
2831         images {
2832                 image: "imageeditor_bar_press.png" COMP;
2833         }
2834
2835         parts {
2836                 part {
2837                         name: "event_blocker";
2838                         mouse_events: 1;
2839                         description {
2840                                 state: "default" 0.0;
2841                         }
2842                 }
2843
2844                 part {
2845                         name: "bg";
2846                         mouse_events: 0;
2847                         type: IMAGE;
2848                         description {
2849                                 state: "default" 0.0;
2850                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2851                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2852                                 visible: 0;
2853                         }
2854                         description {
2855                                 state: "clicked" 0.0;
2856                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
2857                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2858                                 image {
2859                                         normal: "imageeditor_bar_press.png";
2860                                         border: 10 10 10 10;
2861                                         border_scale: 1;
2862                                 }
2863                         }
2864                 }
2865
2866                 part {
2867                         name: "icon_left_padding";
2868                         type: RECT;
2869                         scale: 1;
2870                         mouse_events: 0;
2871                         description {
2872                                 state: "default" 0.0;
2873                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2874                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2875                                 align: 0 0;
2876                                 fixed: 1 1;
2877                                 visible: 0;
2878                         }
2879                 }
2880                 part {
2881                         name: "separator_left_top_padding";
2882                         type: RECT;
2883                         scale: 1;
2884                 description {
2885                                 state: "default" 0.0;
2886                                 visible: 0;
2887                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2888                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2889                                 align: 0 0;
2890                                 fixed: 1 1;
2891                         }
2892                 }
2893                 part {
2894                         name: "separator_right_top_padding";
2895                         type: RECT;
2896                         scale: 1;
2897                 description {
2898                                 state: "default" 0.0;
2899                                 visible: 0;
2900                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2901                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2902                                 align: 1 0;
2903                                 fixed: 1 1;
2904                         }
2905                 }
2906                 part {
2907                         name: "separator_left_bottom_padding";
2908                         type: RECT;
2909                         scale: 1;
2910                 description {
2911                                 state: "default" 0.0;
2912                                 visible: 0;
2913                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2914                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2915                                 align: 0 1;
2916                                 fixed: 1 1;
2917                         }
2918                 }
2919                 part {
2920                         name: "separator_right_bottom_padding";
2921                         type: RECT;
2922                         scale: 1;
2923                 description {
2924                                 state: "default" 0.0;
2925                                 visible: 0;
2926                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2927                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
2928                                 align: 1 1;
2929                                 fixed: 1 1;
2930                         }
2931                 }
2932
2933                 part {
2934                         name: "bottom_separator";
2935                         mouse_events: 0;
2936                         type: RECT;
2937                         scale: 1;
2938                         description {
2939                                 state: "default" 0.0;
2940                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
2941                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
2942                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
2943                         }
2944                 }
2945                 part {
2946                         name: "elm.swallow.icon";
2947                         type: SWALLOW;
2948                         scale: 1;
2949                         description {
2950                                 state: "default" 0.0;
2951                                 min: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2952                                 max: CTXPOPUP_IE_ICON_WIDTH_INC CTXPOPUP_IE_ICON_HEIGHT_INC;
2953                                 align: 0 0.5;
2954                                 aspect: 1.0 1.0;
2955                                 rel1 { to:"icon_left_padding"; relative: 1 0; }
2956                         }
2957                 }
2958                 part {
2959                         name: "icon_right_padding";
2960                         type: RECT;
2961                         scale: 1;
2962                         mouse_events: 0;
2963                         description {
2964                                 state: "default" 0.0;
2965                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2966                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
2967                                 align: 0 0.5;
2968                                 fixed: 1 1;
2969                                 visible: 0;
2970                                 rel1 { to:"elm.swallow.icon"; relative: 1 1; }
2971                         }
2972                 }
2973                 part {
2974                         name: "elm.text";
2975                         type:  TEXT;
2976                         mouse_events:  0;
2977                         scale: 1;
2978                         description {
2979                                 state: "default" 0.0;
2980                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
2981                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_IE_ITEM_PADDING_INC)-CTXPOPUP_IE_ICON_WIDTH_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
2982                                 fixed: 0 1;
2983                                 align: 0.5 0.5;
2984                                 rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
2985                                 rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
2986                                 color: CTXPOPUP_IE_FONT_COLOR;
2987                                 text {
2988                                         font: "SLP:style=Medium";
2989                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
2990                                         align: 0.0 0.5;
2991                                         min: 1 1;
2992                                         text_class: "list_item";
2993                                 }
2994                         }
2995                         description {
2996                                 state: "clicked" 0.0;
2997                                 inherit: "default" 0.0;
2998                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
2999                         }
3000                 }
3001                 part {
3002                         name: "text_right_padding";
3003                         type: RECT;
3004                         scale: 1;
3005                         mouse_events: 0;
3006                         description {
3007                                 state: "default" 0.0;
3008                                 visible: 0;
3009                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3010                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3011                                 fixed: 1 0;
3012                                 align: 1.0 0.5;
3013                 }
3014                 }
3015                 part {
3016                         name: "over1";
3017                         mouse_events: 1;
3018                         repeat_events: 1;
3019                         ignore_flags: ON_HOLD;
3020                         description {
3021                                 state: "default" 0.0;
3022                         }
3023                 }
3024                 part {
3025                         name: "over2";
3026                         mouse_events: 1;
3027                         repeat_events: 1;
3028                         description {
3029                                 state: "default" 0.0;
3030                         }
3031                 }
3032                 part {
3033                         name: "disclip";
3034                         type: RECT;
3035                         description {
3036                                 state: "default" 0.0;
3037                                 visible: 0;
3038                         }
3039                         description {
3040                                 state: "disabled" 0.0;
3041                                 visible: 1;
3042                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
3043                         }
3044                 }
3045         }
3046         programs {
3047                 program {
3048                         name: "item_unclick";
3049                         signal: "mouse,up,1";
3050                         source: "over1";
3051                         action: SIGNAL_EMIT "elm,action,click" "";
3052                 }
3053                 program {
3054                         name: "disable";
3055                         signal: "elm,state,disabled";
3056                         source: "elm";
3057                         action: STATE_SET "disabled" 0.0;
3058                         target: "disclip";
3059                 }
3060                 program {
3061                         name: "enable";
3062                         signal: "elm,state,enabled";
3063                         source: "elm";
3064                         action: STATE_SET "default" 0.0;
3065                         target: "disclip";
3066                 }
3067                 program {
3068                         name: "item_click2";
3069                         signal: "mouse,down,1";
3070                         source: "over2";
3071                         script {
3072                                 set_state(PART:"elm.text", "clicked", 0.0);
3073                         }
3074                 }
3075                 program {
3076                         name: "item_unclick2";
3077                         signal: "mouse,up,1";
3078                         source: "over2";
3079                         script {
3080                                 set_state(PART:"elm.text", "default", 0.0);
3081                         }
3082                 }
3083         }
3084 }
3085 ///////////////////////////////////////////////////////////////////////////////////////
3086 group {
3087         name: "elm/ctxpopup/text_style_item/extended/imageeditor";
3088         images {
3089                 image: "imageeditor_bar_press.png" COMP;
3090         }
3091
3092         parts {
3093                 part {
3094                         name: "separator_left_padding";
3095                         type: RECT;
3096                         scale: 1;
3097                 description {
3098                                 state: "default" 0.0;
3099                                 visible: 0;
3100                                 min: 2 2;
3101                                 max: 2 2;
3102                                 align: 0 1;
3103                                 fixed: 1 1;
3104                         }
3105                 }
3106                 part {
3107                         name: "bg";
3108                         mouse_events: 0;
3109                         type: IMAGE;
3110                         description {
3111                         state: "default" 0.0;
3112                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
3113                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3114                         visible: 0;
3115                         }
3116                         description {
3117                                 state: "clicked" 0.0;
3118                                 rel1 { to:"separator_left_top_padding"; relative: 1 0; }
3119                         rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3120                         image {
3121                                         normal: "imageeditor_bar_press.png";
3122                                         border: 10 10 10 10;
3123                                         border_scale: 1;
3124                                 }
3125                         }
3126                 }
3127                 part {
3128                         name: "separator_left_top_padding";
3129                         type: RECT;
3130                         scale: 1;
3131                         description {
3132                                 state: "default" 0.0;
3133                                 visible: 0;
3134                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3135                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3136                                 align: 0 0;
3137                                 fixed: 1 1;
3138                         }
3139                 }
3140                 part {
3141                         name: "separator_right_top_padding";
3142                         type: RECT;
3143                         scale: 1;
3144                         description {
3145                                 state: "default" 0.0;
3146                                 visible: 0;
3147                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3148                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3149                                 align: 1 0;
3150                                 fixed: 1 1;
3151                         }
3152                 }
3153                 part {
3154                         name: "separator_left_bottom_padding";
3155                         type: RECT;
3156                         scale: 1;
3157                         description {
3158                                 state: "default" 0.0;
3159                                 visible: 0;
3160                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3161                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3162                                 align: 0 1;
3163                                 fixed: 1 1;
3164                         }
3165                 }
3166                 part {
3167                         name: "separator_right_bottom_padding";
3168                         type: RECT;
3169                         scale: 1;
3170                         description {
3171                                 state: "default" 0.0;
3172                                 visible: 0;
3173                                 min: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3174                                 max: CTXPOPUP_IE_SEPARATOR_PADDING_SIZE;
3175                                 align: 1 1;
3176                                 fixed: 1 1;
3177                         }
3178                 }
3179
3180                 part {
3181                         name: "bottom_separator";
3182                         mouse_events: 0;
3183                         type: RECT;
3184                         scale: 1;
3185                         description {
3186                                 state: "default" 0.0;
3187                                 color: CTXPOPUP_IE_SEPARATOR_COLOR;
3188                                 rel1 { to:"separator_left_bottom_padding"; relative: 1 0.5; }
3189                                 rel2 { to:"separator_right_bottom_padding"; relative: 0 1; }
3190                         }
3191                 }
3192                 part {
3193                         name: "left_padding";
3194                         type: RECT;
3195                         scale: 1;
3196                         mouse_events: 0;
3197                         description {
3198                                 state: "default" 0.0;
3199                                 min: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3200                                 max: CTXPOPUP_IE_ITEM_PADDING_INC CTXPOPUP_IE_ITEM_HEIGHT_INC;
3201                                 align: 0 0.5;
3202                                 fixed: 1 1;
3203                                 visible: 0;
3204                         }
3205                 }
3206                 part {
3207                         name: "elm.text";
3208                         type:  TEXT;
3209                         mouse_events:  0;
3210                         scale: 1;
3211                         description {
3212                                 state: "default" 0.0;
3213                                 min: 1 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3214                                 max: (CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_IE_ITEM_PADDING_INC) CTXPOPUP_IE_ITEM_HEIGHT_INC;
3215                                 fixed: 0 1;
3216                                 align: 0.5 0.5;
3217                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3218                                 rel2 {relative: 0.0 1.0; to: "right_padding";}
3219                                 color: CTXPOPUP_IE_FONT_COLOR;
3220                                 text {
3221                                         font: "SLP:style=Medium";
3222                                         size: CTXPOPUP_IE_FONT_SIZE_INC;
3223                                         align: 0.5 0.5;
3224                                         min: 1 1;
3225                                         text_class: "slp_medium";
3226                                 }
3227                         }
3228                         description {
3229                                 state: "clicked" 0.0;
3230                                 inherit: "default" 0.0;
3231                                 color: CTXPOPUP_IE_CLICKED_FONT_COLOR;
3232                         }
3233                 }
3234                 part {
3235                         name: "right_padding";
3236                         scale: 1;
3237                         mouse_events: 0;
3238                         description {
3239                                 state: "default" 0.0;
3240                                 visible: 0;
3241                                 min: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3242                                 max: 30 CTXPOPUP_IE_ITEM_HEIGHT_INC;
3243                                 fixed: 1 0;
3244                                 align: 1.0 0.5;
3245                         }
3246                 }
3247                 part {
3248                         name: "over1";
3249                         mouse_events: 1;
3250                         repeat_events: 1;
3251                         ignore_flags: ON_HOLD;
3252                         description {
3253                                 state: "default" 0.0;
3254                         }
3255                 }
3256                 part {
3257                         name: "over2";
3258                         mouse_events: 1;
3259                         repeat_events: 1;
3260                         description {
3261                                 state: "default" 0.0;
3262                         }
3263                 }
3264                 part {
3265                         name: "disclip";
3266                         type: RECT;
3267                         description {
3268                                 state: "default" 0.0;
3269                                 visible: 0;
3270                         }
3271                         description {
3272                                 state: "disabled" 0.0;
3273                                 visible: 1;
3274                                 color: CTXPOPUP_IE_ITEM_DISABLED_COLOR;
3275                         }
3276                 }
3277
3278         }
3279
3280         programs {
3281                 program {
3282                         name: "item_unclick";
3283                         signal: "mouse,up,1";
3284                         source: "over1";
3285                         action: SIGNAL_EMIT "elm,action,click" "";
3286                 }
3287                 program {
3288                         name: "disable";
3289                         signal: "elm,state,disabled";
3290                         source: "elm";
3291                         action: STATE_SET "disabled" 0.0;
3292                         target: "disclip";
3293                 }
3294                 program {
3295                         name: "enable";
3296                         signal: "elm,state,enabled";
3297                         source: "elm";
3298                         action: STATE_SET "default" 0.0;
3299                         target: "disclip";
3300                 }
3301
3302                 program {
3303                         name: "item_click2";
3304                         signal: "mouse,down,1";
3305                         source: "over2";
3306                         script {
3307                                 set_state(PART:"elm.text", "clicked", 0.0);
3308                         }
3309                 }
3310                 program {
3311                         name: "item_unclick2";
3312                         signal: "mouse,up,1";
3313                         source: "over2";
3314                         script {
3315                                 set_state(PART:"elm.text", "default", 0.0);
3316                         }
3317                 }
3318         }
3319 }
3320
3321 ///////////////////////////////////////////////////////////////////////////////////////
3322 #define CTXPOPUP_TP_TEXT_WIDTH 32
3323 #define CTXPOPUP_TP_PADDING 15
3324 #define CTXPOPUP_TP_FONT_COLOR 231 173 95 255
3325 #define CTXPOPUP_TP_CLICKED_FONT_COLOR 255 255 255 255
3326 #define CTXPOPUP_TP_FONT_SIZE 24
3327 ///////////////////////////////////////////////////////////////////////////////
3328 group {
3329         name: "elm/ctxpopup/base/datetime/default";
3330         alias: "elm/ctxpopup/base/timepicker";
3331         parts {
3332                 part {
3333                         name: "ctxpopup_frame";
3334                         type: RECT;
3335                         scale: 1;
3336                         clip_to: "ctxpopup_clip";
3337                         description {
3338                                 color: CTXPOPUP_TP_BG_COLOR_INC;
3339                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
3340                                 rel1 { to: "elm.swallow.content"; }
3341                                 rel2 { to: "elm.swallow.content"; }
3342                         }
3343                 }
3344                 part {
3345                         name: "elm.swallow.content";
3346                         type: SWALLOW;
3347                         scale: 1;
3348                         clip_to: "ctxpopup_clip";
3349                         description {
3350                                 state: "default" 0.0;
3351                                 min: 1 CTXPOPUP_TP_HEIGHT_INC;
3352                         }
3353                 }
3354                 part { name: "arrow_area_left";
3355                                 type: RECT;
3356                                 mouse_events: 0;
3357                                 scale: 1;
3358                                 clip_to: "ctxpopup_clip";
3359                                 description { state: "default" 0.0;
3360                                         visible: 0;
3361                                         min: 20 0;
3362                                         fixed: 1 1;
3363                                         align: 1 0.5;
3364                                         rel1 {
3365                                                 relative: 0 0;
3366                                                 to_y: "ctxpopup_frame";
3367                                         }
3368                                         rel2 {
3369                                                 relative:0 1;
3370                                                 to:"ctxpopup_frame";
3371                                         }
3372                                 }
3373                         }
3374                         part { name: "arrow_area_right";
3375                                 type: RECT;
3376                                 mouse_events: 0;
3377                                 scale: 1;
3378                                 clip_to: "ctxpopup_clip";
3379                                 description { state: "default" 0.0;
3380                                         visible: 0;
3381                                         min: 20 0;
3382                                         fixed: 1 1;
3383                                         align: 0 0.5;
3384                                         rel1 {
3385                                                 relative: 1 0;
3386                                                 to:"ctxpopup_frame";
3387                                         }
3388                                         rel2 {
3389                                                 relative: 1 1;
3390                                                 to_y: "ctxpopup_frame";
3391                                         }
3392                                 }
3393                         }
3394                         part { name: "arrow_area_up";
3395                                 type: RECT;
3396                                 mouse_events: 0;
3397                                 scale: 1;
3398                                 clip_to: "ctxpopup_clip";
3399                                 description { state: "default" 0.0;
3400                                         visible: 0;
3401                                         min: 0 20;
3402                                         fixed: 1 1;
3403                                         align: 0.5 1;
3404                                         rel1 {
3405                                                 relative: 0 0;
3406                                                 to_x: "ctxpopup_frame";
3407                                         }
3408                                         rel2 {
3409                                                 relative: 1 0;
3410                                                 to:"ctxpopup_frame";
3411                                         }
3412                                 }
3413                         }
3414                         part { name: "arrow_area_down";
3415                                 type: RECT;
3416                                 mouse_events: 0;
3417                                 scale: 1;
3418                                 clip_to: "ctxpopup_clip";
3419                                 description { state: "default" 0.0;
3420                                         visible: 0;
3421                                         min: 0 20;
3422                                         fixed: 1 1;
3423                                         align: 0.5 0;
3424                                         rel1 {
3425                                                 relative: 0 1;
3426                                                 to:"ctxpopup_frame";
3427                                         }
3428                                         rel2 {
3429                                                 relative: 1 1;
3430                                                 to_x: "ctxpopup_frame";
3431                                         }
3432                                 }
3433                         }
3434                         part { name: "elm.swallow.arrow_up";
3435                                 type: SWALLOW;
3436                                 mouse_events: 0;
3437                                 scale: 1;
3438                                 clip_to: "ctxpopup_clip";
3439                                 dragable {
3440                                         x: 1 1 0;
3441                                         y: 1 1 0;
3442                                         confine: "arrow_area_up";
3443                                 }
3444                                 description {
3445                                         state: "default" 0.0;
3446                                         min: 20 20;
3447                                         fixed: 1 1;
3448                                         visible: 1;
3449                                 }
3450                         }
3451                         part { name: "elm.swallow.arrow_down";
3452                                 type: SWALLOW;
3453                                 mouse_events: 0;
3454                                 scale: 1;
3455                                 clip_to: "ctxpopup_clip";
3456                                 dragable {
3457                                         x: 1 1 0;
3458                                         y: 1 1 0;
3459                                         confine: "arrow_area_down";
3460                                 }
3461                                 description {
3462                                         state: "default" 0.0;
3463                                         min: 20 20;
3464                                         fixed: 1 1;
3465                                         visible: 1;
3466                                 }
3467                         }
3468                         part { name: "elm.swallow.arrow_left";
3469                                 type: SWALLOW;
3470                                 mouse_events: 0;
3471                                 scale: 1;
3472                                 clip_to: "ctxpopup_clip";
3473                                 dragable {
3474                                         x: 1 1 0;
3475                                         y: 1 1 0;
3476                                         confine: "arrow_area_left";
3477                                 }
3478                                 description {
3479                                         state: "default" 0.0;
3480                                         min: 20 20;
3481                                         fixed: 1 1;
3482                                         visible: 1;
3483                                 }
3484                         }
3485                         part { name: "elm.swallow.arrow_right";
3486                                 type: SWALLOW;
3487                                 mouse_events: 0;
3488                                 scale: 1;
3489                                 clip_to: "ctxpopup_clip";
3490                                 dragable {
3491                                         x: 1 1 0;
3492                                         y: 1 1 0;
3493                                         confine: "arrow_area_right";
3494                                 }
3495                                 description {
3496                                         state: "default" 0.0;
3497                                         min: 20 20;
3498                                         fixed: 1 1;
3499                                         visible: 1;
3500                                 }
3501                         }
3502                         part { name: "ctxpopup_clip";
3503                                 type: RECT;
3504                                 description { state: "default" 0.0;
3505                                 color: 255 255 255 0;
3506                                 rel1 { to:"ctxpopup_frame"; relative: 0 0; }
3507                                 rel2 { to:"ctxpopup_frame"; relative: 0 1; }
3508                                 }
3509                                 description { state: "show_up" 0.0;
3510                                         color: 255 255 255 0;
3511                                         rel1 { to:"arrow_area_down"; relative: 0 1; }
3512                                         rel2 { to:"arrow_area_down"; relative: 1 1; }
3513                                 }
3514                                 description { state: "show_left" 0.0;
3515                                         color: 255 255 255 0;
3516                                         rel1 { to:"arrow_area_right"; relative: 1 0; }
3517                                         rel2 { to:"arrow_area_right"; relative: 1 1; }
3518                                 }
3519                                 description { state: "show_right" 0.0;
3520                                         color: 255 255 255 0;
3521                                         rel1 { to:"arrow_area_left"; relative: 0 0; }
3522                                         rel2 { to:"arrow_area_left"; relative: 0 1; }
3523                                 }
3524                                 description { state: "show_down" 0.0;
3525                                         color: 255 255 255 0;
3526                                         rel1 { to:"arrow_area_up"; relative: 0 0; }
3527                                         rel2 { to:"arrow_area_up"; relative: 1 0; }
3528                                 }
3529                                 description { state: "hide_up" 0.0;
3530                                         color: 255 255 255 255;
3531                                         rel1 { to:"arrow_area_down"; relative: 0 1; }
3532                                         rel1 { to:"arrow_area_down"; relative: 1 1; }
3533                                 }
3534                                 description { state: "hide_left" 0.0;
3535                                         color: 255 255 255 255;
3536                                         rel1 { to:"arrow_area_right"; relative: 1 0; }
3537                                         rel2 { to:"arrow_area_right"; relative: 1 1; }
3538                                 }
3539                                 description { state: "hide_right" 0.0;
3540                                         color: 255 255 255 255;
3541                                         rel1 { to:"arrow_area_left"; relative: 0 0; }
3542                                         rel2 { to:"arrow_area_left"; relative: 0 1; }
3543                                 }
3544                                 description { state: "hide_down" 0.0;
3545                                         color: 255 255 255 255;
3546                                         rel1 { to:"arrow_area_up"; relative: 0 0; }
3547                                         rel2 { to:"arrow_area_up"; relative: 1 0; }
3548                                 }
3549                                 description { state: "visible" 0.0;
3550                                         color: 255 255 255 255;
3551                                         rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
3552                                         rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
3553                                 }
3554                         }
3555         }
3556         programs {
3557                 program { name: "show";
3558                         signal: "elm,state,show";
3559                         source: "elm";
3560                         action: STATE_SET "visible" 0.0;
3561                         transition: LINEAR 0.25;
3562                         target: "ctxpopup_clip";
3563                 }
3564                 program { name: "show_up";
3565                         signal: "elm,state,show,up";
3566                         source: "elm";
3567                         action: STATE_SET "show_up" 0.0;
3568                         transition: LINEAR 0.25;
3569                         target: "ctxpopup_clip";
3570                 }
3571                 program { name: "show_left";
3572                         signal: "elm,state,show,left";
3573                         source: "elm";
3574                         action: STATE_SET "show_left" 0.0;
3575                         transition: LINEAR 0.25;
3576                         target: "ctxpopup_clip";
3577                 }
3578                 program { name: "show_right";
3579                         signal: "elm,state,show,right";
3580                         source: "elm";
3581                         action: STATE_SET "show_right" 0.0;
3582                         transition: LINEAR 0.25;
3583                         target: "ctxpopup_clip";
3584                 }
3585                 program { name: "show_down";
3586                         signal: "elm,state,show,down";
3587                         source: "elm";
3588                         action: STATE_SET "show_down" 0.0;
3589                         transition: LINEAR 0.25;
3590                         target: "ctxpopup_clip";
3591                 }
3592                 program { name: "hide_up";
3593                         signal: "elm,state,hide,up";
3594                         source: "elm";
3595                         action: STATE_SET "hide_up" 0.0;
3596                         transition: LINEAR 0.25;
3597                         target: "ctxpopup_clip";
3598                         after: "hide_finished";
3599                 }
3600                 program { name: "hide_left";
3601                         signal: "elm,state,hide,left";
3602                         source: "elm";
3603                         action: STATE_SET "hide_left" 0.0;
3604                         transition: LINEAR 0.25;
3605                         target: "ctxpopup_clip";
3606                         after: "hide_finished";
3607                 }
3608                 program { name: "hide_right";
3609                         signal: "elm,state,hide,right";
3610                         source: "elm";
3611                         action: STATE_SET "hide_right" 0.0;
3612                         transition: LINEAR 0.25;
3613                         target: "ctxpopup_clip";
3614                         after: "hide_finished";
3615                 }
3616                 program { name: "hide_down";
3617                         signal: "elm,state,hide,down";
3618                         source: "elm";
3619                         action: STATE_SET "hide_down" 0.0;
3620                         transition: LINEAR 0.25;
3621                         target: "ctxpopup_clip";
3622                         after: "hide_finished";
3623                 }
3624                 program { name: "hide_finished";
3625                         action: SIGNAL_EMIT "elm,action,hide,finished" "";
3626                 }
3627         }
3628 }
3629 ///////////////////////////////////////////////////////////////////////////////
3630 group { name: "elm/ctxpopup/arrow/datetime/default";
3631         alias: "elm/ctxpopup/arrow/timepicker";
3632         images {
3633                 image: "timepicker_left_arrow.png" COMP;
3634                 image: "timepicker_right_arrow.png" COMP;
3635                 image: "timepicker_top_arrow.png" COMP;
3636                 image: "timepicker_bottom_arrow.png" COMP;
3637         }
3638         parts {
3639                 part {
3640                         name: "ctxpopup_arrow";
3641                         type: IMAGE;
3642                         scale: 1;
3643                         description {
3644                                 state: "default" 0.0;
3645                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3646                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3647                                 fixed: 1 1;
3648                                 visible: 0;
3649                                 align: 0.5 0.5;
3650                         }
3651                         description {
3652                                 state: "left" 0.0;
3653                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3654                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3655                                 fixed: 1 1;
3656                                 align: 1.0 0.5;
3657                                 image {
3658                                         normal: "timepicker_left_arrow.png";
3659                                 }
3660                         }
3661                         description {
3662                                 state: "right" 0.0;
3663                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3664                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3665                                 fixed: 1 1;
3666                                 align: 0.0 0.5;
3667                                 image {
3668                                         normal: "timepicker_right_arrow.png";
3669                                 }
3670                         }
3671                         description {
3672                                 state: "top" 0.0;
3673                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3674                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3675                                 fixed: 1 1;
3676                                 align: 0.5 1.0;
3677                                 image {
3678                                         normal: "timepicker_top_arrow.png";
3679                                 }
3680                         }
3681                         description {
3682                                 state: "bottom" 0.0;
3683                                 min: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3684                                 max: CTXPOPUP_TP_ARROW_SIZE_INC CTXPOPUP_TP_ARROW_SIZE_INC;
3685                                 fixed: 1 1;
3686                                 align: 0.5 0.0;
3687                                 image {
3688                                         normal: "timepicker_bottom_arrow.png";
3689                                 }
3690                         }
3691                 }
3692         }
3693         programs {
3694                 program {
3695                         name: "enable_left_arrow";
3696                         signal: "elm,state,left";
3697                         source: "elm";
3698                         action: STATE_SET "left" 0.0;
3699                         target: "ctxpopup_arrow";
3700                 }
3701                 program {
3702                         name: "enable_right_arrow";
3703                         signal: "elm,state,right";
3704                         source: "elm";
3705                         action: STATE_SET "right" 0.0;
3706                         target: "ctxpopup_arrow";
3707                 }
3708                 program {
3709                         name: "enable_top_arrow";
3710                         signal: "elm,state,top";
3711                         source: "elm";
3712                         action: STATE_SET "top" 0.0;
3713                         target: "ctxpopup_arrow";
3714                 }
3715                 program {
3716                         name: "enable_bottom_arrow";
3717                         signal: "elm,state,bottom";
3718                         source: "elm";
3719                         action: STATE_SET "bottom" 0.0;
3720                         target: "ctxpopup_arrow";
3721                 }
3722         }
3723 }
3724 ///////////////////////////////////////////////////////////////////////////////
3725 group {
3726         name: "elm/ctxpopup/text_style_item/datetime/default";
3727         alias: "elm/ctxpopup/text_style_item/timepicker";
3728         parts {
3729                 part {
3730                         name: "left_padding";
3731                         type: RECT;
3732                         scale: 1;
3733                         mouse_events: 0;
3734                         description {
3735                                 state: "default" 0.0;
3736                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3737                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3738                                 align: 0 0.5;
3739                                 fixed: 1 1;
3740                                 visible: 0;
3741                         }
3742                 }
3743                 part {
3744                         name: "elm.text";
3745                         type:  TEXT;
3746                         mouse_events:  0;
3747                         scale: 1;
3748                         description {
3749                                 state: "default" 0.0;
3750                                 min: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3751                                 max: CTXPOPUP_TP_TEXT_WIDTH CTXPOPUP_TP_HEIGHT_INC;
3752                                 fixed: 1 1;
3753                                 align: 0 0;
3754                                 rel1 {relative: 1.0 0.0; to: "left_padding";}
3755                                 color: CTXPOPUP_TP_FONT_COLOR;
3756                                 text {
3757                                         font: "SLP:style=Medium";
3758                                         size: CTXPOPUP_TP_FONT_SIZE;
3759                                         align: 0.5 0.5;
3760                                         min: 1 1;
3761                                         text_class: "slp_medium";
3762                                 }
3763                         }
3764                         description {
3765                                 state: "clicked" 0.0;
3766                                 inherit: "default" 0.0;
3767                                 color: 255 255 255 255;
3768                         }
3769                 }
3770                 part {
3771                         name: "right_padding";
3772                         scale: 1;
3773                         mouse_events: 0;
3774                         description {
3775                                 state: "default" 0.0;
3776                                 min: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3777                                 max: CTXPOPUP_TP_PADDING CTXPOPUP_TP_HEIGHT_INC;
3778                                 align: 0 0;
3779                         rel1 {relative: 1.0 0.0; to: "elm.text";}
3780                                 visible: 0;
3781         }
3782                 }
3783                 part {
3784                         name: "over1";
3785                         mouse_events: 1;
3786                         repeat_events: 1;
3787                         ignore_flags: ON_HOLD;
3788                         description {
3789                                 state: "default" 0.0;
3790                         }
3791                 }
3792                 part {
3793                         name: "over2";
3794                         mouse_events: 1;
3795                         repeat_events: 1;
3796                         description {
3797                                 state: "default" 0.0;
3798                         }
3799                 }
3800         }
3801
3802         programs {
3803                 program {
3804                         name: "item_unclick";
3805                         signal: "mouse,up,1";
3806                         source: "over1";
3807                         action: SIGNAL_EMIT "elm,action,click" "";
3808                 }
3809                 program {
3810                         name: "item_click";
3811                         signal: "mouse,down,1";
3812                         source: "over2";
3813                         script {
3814                                 set_state(PART:"elm.text", "clicked", 0.0);
3815                         }
3816                 }
3817                 program {
3818                         name: "item_unclick2";
3819                         signal: "mouse,up,1";
3820                         source: "over2";
3821                         script {
3822                                 set_state(PART:"elm.text", "default", 0.0);
3823                         }
3824                 }
3825         }
3826 }