initial draft of the org.tizen.video-player
[apps/core/preloaded/video-player.git] / res / edc / vp-ctxpopup.edc
1 ///////////////////////////////////////////////////////////////////////////////////////
2 //
3 // ctxpopup
4 //
5 ///////////////////////////////////////////////////////////////////////////////////////
6
7 #define CTXPOPUP_SHADOW_PADDING 10
8 #define CTXPOPUP_FRAME_CORNER_SIZE 4 4
9 #define CTXPOPUP_FONT_COLOR 0 0 0 255
10 #define CTXPOPUP_CLICKED_FONT_COLOR 255 255 255 255
11 #define CTXPOPUP_ITEM_DISABLED_COLOR 0 0 0 100
12 #define CTXPOPUP_LIST_PADDING 10
13 #define CTXPOPUP_LIST_SHADOW_PADDING 3
14
15 #define CTXPOPUP_BUBBLE_BG_IMAGE "white/common/00_popup_bubble_bg.png"
16 #define CTXPOPUP_BG_IMAGE "white/common/T01-2_popup_bg.png"
17 #define CTXPOPUP_BUBBLE_BG_IMAGE_BORDER 13 13 13 13
18 #define CTXPOPUP_BG_IMAGE_BORDER 3 3 3 3
19 #define CTXPOPUP_BG_IMAGEEDITOR_BORDER 10 10 10 10
20 #define CTXPOPUP_BG_COLOR_INC 0 0 0 165
21 #define CTXPOPUP_BG_PRESS_COLOR_INC 0 140 210 255
22 #define CTXPOPUP_MAIN_TEXT_UNREAD_COLOR_INC 249 249 249 255
23 #define CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC 249 249 249 255
24 #define CTXPOPUP_SEPARATOR_COLOR_INC 200 200 200 255
25 #define CTXPOPUP_HORIZONTAL_SEPARATOR_COLOR_INC 200 200 200 255
26 #define CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC 1 0
27 #define CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC 1 999999
28 #define CTXPOPUP_VERTICAL_SEPARATOR_MIN_SIZE_INC 0 1
29 #define CTXPOPUP_VERTICAL_SEPARATOR_MAX_SIZE_INC 999999 1
30 #define CTXPOPUP_TP_BG_COLOR_INC 0 140 210 255
31 #define CTXPOPUP_ITEM_TEXT_SIZE_INC 44
32 #define CTXPOPUP_ITEM_MAIN_TEXT_SIZE_INC 44
33 #define CTXPOPUP_ITEM_HEIGHT_INC 110
34 #define CTXPOPUP_ITEM_ICON_INC 160 110
35 #define CTXPOPUP_ICON_WIDTH_INC 80
36 #define CTXPOPUP_ICON_HEIGHT_INC 80
37 #define CTXPOPUP_ARROW_SIZE_INC 48 48
38 #define CTXPOPUP_CONTENT_WIDTH_MAX_INC 630
39 #define CTXPOPUP_ITEM_PADDING_INC 25
40 #define CTXPOPUP_IE_ARROW_SIZE_INC 52
41 #define CTXPOPUP_IE_FONT_SIZE_INC 40
42 #define CTXPOPUP_IE_ITEM_PADDING_INC 22
43 #define CTXPOPUP_IE_ITEM_HEIGHT_INC 75
44 #define CTXPOPUP_IE_CONTENT_WIDTH_MAX_INC 720
45 #define CTXPOPUP_IE_ICON_WIDTH_INC 60
46 #define CTXPOPUP_IE_ICON_HEIGHT_INC 60
47 #define CTXPOPUP_TP_ARROW_SIZE_INC 30
48 #define CTXPOPUP_TP_HEIGHT_INC 106
49
50 ///////////////////////////////////////////////////////////////////////////////
51         group {
52                 name: "elm/scroller/base/video/ctxpopup";
53                 script {
54                         public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
55                         public timer0(val) {
56                                 new v;
57                         v = get_int(sbvis_v);
58                         if (v) {
59                                 v = get_int(sbalways_v);
60                                 if(!v) {
61                                         emit("do-hide-vbar", "");
62                                         set_int(sbvis_v, 0);
63                                 }
64                         }
65                         v = get_int(sbvis_h);
66                         if (v) {
67                                 v = get_int(sbalways_h);
68                                 if(!v) {
69                                         emit("do-hide-hbar", "");
70                                         set_int(sbvis_h, 0);
71                                 }
72                         }
73                         set_int(sbvis_timer, 0);
74                         return 0;
75                         }
76                 }
77                 images {
78                         image: "white/common/01_scroller.png" COMP;
79                 }
80                 parts {
81                         part {
82                                 name: "clipper";
83                                 type: RECT;
84                                 mouse_events: 0;
85                                 scale: 1;
86                                 description {
87                                         state: "default" 0.0;
88                                 }
89                         }
90                         part {
91                                 name: "elm.swallow.content";
92                                 clip_to: "clipper";
93                                 type: SWALLOW;
94                                 scale: 1;
95                                 description {
96                                         state: "default" 0.0;
97                                         align: 0.5 0.5;
98                                 }
99                         }
100                         part {
101                                 name: "sb_vbar_clip_master";
102                                 type: RECT;
103                                 mouse_events: 0;
104                                 description {
105                                         state: "default" 0.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_clip";
115                                 clip_to:"sb_vbar_clip_master";
116                                 type: RECT;
117                                 mouse_events: 0;
118                                 scale: 1;
119                                 description {
120                                         state: "default" 0.0;
121                                         align: 0.0 0.0;
122                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
123                                 }
124                                 description {
125                                         state: "hidden" 0.0;
126                                         visible: 0;
127                                         color: 255 255 255 0;
128                                 }
129                         }
130                         part {
131                                 name: "sb_vbar";
132                                 type: RECT;
133                                 mouse_events: 0;
134                                 scale: 1;
135                                 description {
136                                         state: "default" 0.0;
137                                         fixed: 1 1;
138                                         visible: 0;
139                                         align: 1.0 0.0;
140                                         rel1{ to:"clipper"; relative: 1.0 0.0; }
141                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
142                                 }
143                         }
144                         part {
145                                 name: "elm.dragable.vbar";
146                                 clip_to: "sb_vbar_clip";
147                                 mouse_events: 0;
148                                 scale: 1;
149                                 dragable {
150                                         x: 0 0 0;
151                                         y: 1 1 0;
152                                         confine: "sb_vbar";
153                                 }
154                                 description {
155                                         state: "default" 0.0;
156                                         fixed: 1 1;
157                                         min: 14 32;
158                                         rel1 {
159                                                 relative: 0.5  0.5;
160                                                 to: "sb_vbar";
161                                         }
162                                         rel2 {
163                                                 relative: 0.5  0.5;
164                                                 to: "sb_vbar";
165                                         }
166                                         image {
167                                                 normal: "white/common/01_scroller.png";
168                                                 border: 0 0 6 6;
169                                                 border_scale: 1;
170                                         }
171                                 }
172                         }
173                         part {
174                                 name: "sb_hbar_clip_master";
175                                 type: RECT;
176                                 mouse_events: 0;
177                                 description {
178                                         state: "default" 0.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_clip";
188                                 clip_to: "sb_hbar_clip_master";
189                                 type: RECT;
190                                 mouse_events: 0;
191                                 scale: 1;
192                                 description {
193                                         state: "default" 0.0;
194                                         align: 0.0 0.0;
195                                         rel2{ to:"clipper"; relative: 1.0 1.0;}
196                                 }
197                                 description {
198                                         state: "hidden" 0.0;
199                                         visible: 0;
200                                         color: 255 255 255 0;
201                                 }
202                         }
203                         part {
204                                 name: "sb_hbar";
205                                 type: RECT;
206                                 mouse_events: 0;
207                                 scale: 1;
208                                 description {
209                                         state: "default" 0.0;
210                                         fixed: 1 1;
211                                         visible: 0;
212                                         align: 0.0 1.0;
213                                         rel1 {to:"clipper"; relative: 0.0 1.0;}
214                                         rel2 {to:"clipper"; relative: 1.0 1.0;}
215                                 }
216                         }
217                         part {
218                                 name: "elm.dragable.hbar";
219                                 clip_to: "sb_hbar_clip";
220                                 mouse_events: 0;
221                                 scale: 1;
222                                 dragable {
223                                         x: 1 1 0;
224                                         y: 0 0 0;
225                                         confine: "sb_hbar";
226                                 }
227                                 description {
228                                         state: "default" 0.0;
229                                         fixed: 1 1;
230                                         min: 32 12;
231                                         rel1 {relative: 0.5  0.5; to: "sb_hbar";}
232                                         rel2 {relative: 0.5  0.5; to: "sb_hbar";}
233                                         image {
234                                                 normal: "white/common/01_scroller.png";
235                                                 border: 6 6 0 0;
236                                                 border_scale: 1;
237                                         }
238                                 }
239                         }
240                 }
241                 programs {
242                         program {
243                                 name: "load";
244                                 signal: "load";
245                                 source: "";
246                                 script {
247                                         set_state(PART:"sb_vbar_clip", "hidden", 0.0);
248                                         set_state(PART:"sb_hbar_clip", "hidden", 0.0);
249                                         set_int(sbvis_v, 0);
250                                         set_int(sbvis_h, 0);
251                                         set_int(sbalways_v, 0);
252                                         set_int(sbalways_h, 0);
253                                         set_int(sbvis_timer, 0);
254                                 }
255                         }
256                         program {
257                                 name: "vbar_show";
258                                 signal: "elm,action,show,vbar";
259                                 source: "elm";
260                                 action: STATE_SET "default" 0.0;
261                                 target: "sb_vbar_clip_master";
262                         }
263                         program {
264                                 name: "vbar_hide";
265                                 signal: "elm,action,hide,vbar";
266                                 source: "elm";
267                                 action:  STATE_SET "hidden" 0.0;
268                                 target: "sb_vbar_clip_master";
269                         }
270                         program {
271                                 name: "vbar_show_always";
272                                 signal: "elm,action,show_always,vbar";
273                                 source: "elm";
274                                 script {
275                                         new v;
276                                         v = get_int(sbvis_v);
277                                         v |= get_int(sbalways_v);
278                                         if (!v) {
279                                                 set_int(sbalways_v, 1);
280                                                 emit("do-show-vbar", "");
281                                                 set_int(sbvis_v, 1);
282                                         }
283                                 }
284                         }
285                         program {
286                                 name: "vbar_show_notalways";
287                                 signal: "elm,action,show_notalways,vbar";
288                                 source: "elm";
289                                 script {
290                                         new v;
291                                         v = get_int(sbalways_v);
292                                         if (v) {
293                                                 set_int(sbalways_v, 0);
294                                                 v = get_int(sbvis_v);
295                                                 if (!v) {
296                                                         emit("do-hide-vbar", "");
297                                                 set_int(sbvis_v, 0);
298                                                 }
299                                         }
300                                 }
301                         }
302                         program {
303                                 name: "sb_vbar_show";
304                                 signal: "do-show-vbar";
305                                 source: "";
306                                 action:  STATE_SET "default" 0.0;
307                                 transition: LINEAR 1.0;
308                                 target: "sb_vbar_clip";
309                         }
310                         program {
311                                 name: "sb_vbar_hide";
312                                 signal: "do-hide-vbar";
313                                 source: "";
314                                 action:  STATE_SET "hidden" 0.0;
315                                 transition: LINEAR 1.0;
316                                 target: "sb_vbar_clip";
317                         }
318                         program {
319                                 name: "hbar_show";
320                                 signal: "elm,action,show,hbar";
321                                 source: "elm";
322                                 action:  STATE_SET "default" 0.0;
323                                 target: "sb_hbar_clip_master";
324                         }
325                         program {
326                                 name: "hbar_hide";
327                                 signal: "elm,action,hide,hbar";
328                                 source: "elm";
329                                 action:  STATE_SET "hidden" 0.0;
330                                 target: "sb_hbar_clip_master";
331                         }
332                         program {
333                                 name: "hbar_show_always";
334                                 signal: "elm,action,show_always,hbar";
335                                 source: "elm";
336                                 script {
337                                         new v;
338                                         v = get_int(sbvis_h);
339                                         v |= get_int(sbalways_h);
340                                         if (!v) {
341                                                 set_int(sbalways_h, 1);
342                                                 emit("do-show-hbar", "");
343                                                 set_int(sbvis_h, 1);
344                                         }
345                                 }
346                         }
347                         program {
348                                 name: "hbar_show_notalways";
349                                 signal: "elm,action,show_notalways,hbar";
350                                 source: "elm";
351                                 script {
352                                         new v;
353                                         v = get_int(sbalways_h);
354                                         if (v) {
355                                                 set_int(sbalways_h, 0);
356                                                 v = get_int(sbvis_h);
357                                                 if (!v) {
358                                                         emit("do-hide-hbar", "");
359                                                         set_int(sbvis_h, 0);
360                                                 }
361                                         }
362                                 }
363                         }
364                         program {
365                                 name: "sb_hbar_show";
366                                 signal: "do-show-hbar";
367                                 source: "";
368                                 action:  STATE_SET "default" 0.0;
369                                 transition: LINEAR 1.0;
370                                 target: "sb_hbar_clip";
371                         }
372                         program {
373                                 name: "sb_hbar_hide";
374                                 signal: "do-hide-hbar";
375                                 source: "";
376                                 action:  STATE_SET "hidden" 0.0;
377                                 transition: LINEAR 1.0;
378                                 target: "sb_hbar_clip";
379                         }
380                         program {
381                                 name: "scroll";
382                                 signal: "elm,action,scroll";
383                                 source: "elm";
384                                 action:  STATE_SET "default" 0.0;
385                                 script {
386                                         new v;
387                                         v = get_int(sbvis_v);
388                                         v |= get_int(sbalways_v);
389                                         if (!v) {
390                                                 emit("do-show-vbar", "");
391                                                 set_int(sbvis_v, 1);
392                                         }
393                                         v = get_int(sbvis_h);
394                                         v |= get_int(sbalways_h);
395                                         if(!v) {
396                                                 emit("do-show-hbar", "");
397                                                 set_int(sbvis_h, 1);
398                                         }
399                                         v = get_int(sbvis_timer);
400                                         if (v > 0) cancel_timer(v);
401                                         v = timer(2.0, "timer0", 0);
402                                         set_int(sbvis_timer, v);
403                                 }
404                         }
405                 }
406         }
407 ///////////////////////////////////////////////////////////////////////////////
408         group {
409                 name: "elm/ctxpopup/bg/video/pass_event";
410                 alias: "elm/ctxpopup/bg/video/extended/entry/pass_event";
411                 alias: "elm/ctxpopup/bg/video/extended/entry";
412                 alias: "elm/ctxpopup/bg/video/timepicker";
413                 parts {
414                         part {
415                                 name: "bg";
416                                 type: RECT;
417                                 description {
418                                         state: "default" 0.0;
419                                         visible: 0;
420                                 }
421                                 description {
422                                         state: "visible" 0.0;
423                                         visible: 0;
424                                 }
425                         }
426                 }
427                 programs {
428                         program {
429                                 name: "show";
430                                 signal: "elm,state,show";
431                                 source: "elm";
432                                 action: STATE_SET "visible" 0.0;
433                                 target: "bg";
434                         }
435                         program {
436                                 name: "hide";
437                                 signal: "elm,state,hide";
438                                 source: "elm";
439                                 action: STATE_SET "default" 0.0;
440                                 target: "bg";
441                         }
442                 }
443         }
444 ///////////////////////////////////////////////////////////////////////////////
445         group {
446                 name: "elm/ctxpopup/bg/video/default";
447                 parts {
448                         part {
449                                 name: "bg";
450                                 type: RECT;
451                                 mouse_events: 1;
452                                 description {
453                                         state: "default" 0.0;
454                                         visible: 0;
455                                 }
456                                 description {
457                                         state: "visible" 0.0;
458                                         color: 0 0 0 0;
459                                         visible: 1;
460                                 }
461                         }
462                 }
463                 programs {
464                         program {
465                                 name:   "clicked_event";
466                                 signal: "mouse,clicked,1";
467                                 source: "bg";
468                                 action: SIGNAL_EMIT "elm,action,click" "";
469                         }
470                         program {
471                                 name: "show";
472                                 signal: "elm,state,show";
473                                 source: "elm";
474                                 action: STATE_SET "visible" 0.0;
475                                 target: "bg";
476                         }
477                         program {
478                                 name: "hide";
479                                 signal: "elm,state,hide";
480                                 source: "elm";
481                                 action: STATE_SET "default" 0.0;
482                                 target: "bg";
483                         }
484                 }
485         }
486
487         group {
488                 name: "elm/ctxpopup/base/video/default";
489                 images {
490                         image: CTXPOPUP_BUBBLE_BG_IMAGE COMP;
491                         image: CTXPOPUP_BG_IMAGE COMP;
492                 }
493                 parts {
494                         part {
495                                 name:"frame_shadow_left_top_padding";
496                                 type:RECT;
497                                 scale: 1;
498                                 mouse_events: 0;
499                                 description {
500                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
501                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
502                                         rel2 { relative: 0 0; }
503                                         align: 1 1;
504                                         fixed: 1 1;
505                                         visible: 0;
506                                 }
507                         }
508                         part {
509                                 name:"frame_shadow_right_bottom_padding";
510                                 type:RECT;
511                                 scale: 1;
512                                 mouse_events: 0;
513                                 description {
514                                         min: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
515                                         max: CTXPOPUP_SHADOW_PADDING CTXPOPUP_SHADOW_PADDING;
516                                         rel1{relative: 1 1;}
517                                         align: 0 0;
518                                         fixed: 1 1;
519                                         visible: 0;
520                                 }
521                         }
522
523                         part {
524                                 name: "frame_shadow";
525                                 type: IMAGE;
526                                 scale: 1;
527                                 mouse_events: 0;
528                                 clip_to: "ctxpopup_clip";
529                                 description {
530                                         state: "default" 0.0;
531                                         rel1 {
532                                         relative: 0.2 0.2;
533                                                 to:"frame_shadow_left_top_padding";
534                                         }
535                                         rel2 {
536                                                 relative: 0.8 0.8;
537                                                 to:"frame_shadow_right_bottom_padding";
538                                         }
539                                         image {
540                                                 normal: CTXPOPUP_BUBBLE_BG_IMAGE;
541                                                 border: CTXPOPUP_BUBBLE_BG_IMAGE_BORDER;
542                                                 border_scale: 1;
543                                         }
544                                 }
545                         }
546
547                         part { name: "arrow_area_left";
548                                 type: RECT;
549                                 mouse_events: 0;
550                                 scale: 1;
551                                 clip_to: "ctxpopup_clip";
552                                 description { state: "default" 0.0;
553                                         visible: 0;
554                                         min: 40 0;
555                                         fixed: 1 1;
556                                         align: 1 0.5;
557                                         rel1 {
558                                                 relative: 0 1;
559                                                 to_y: "ctxpopup_frame_left_top";
560                                         }
561                                         rel2 {
562                                                 relative:0 0;
563                                                 to:"ctxpopup_frame_left_bottom";
564                                         }
565                                 }
566                         }
567                         part { name: "arrow_area_right";
568                                 type: RECT;
569                                 mouse_events: 0;
570                                 scale: 1;
571                                 clip_to: "ctxpopup_clip";
572                                 description { state: "default" 0.0;
573                                         visible: 0;
574                                         min: 40 0;
575                                         fixed: 1 1;
576                                         align: 0 0.5;
577                                         rel1 {
578                                                 relative: 1 1;
579                                                 to:"ctxpopup_frame_right_top";
580                                         }
581                                         rel2 {
582                                                 relative: 1 0;
583                                                 to_y: "ctxpopup_frame_right_bottom";
584                                         }
585                                 }
586                         }
587                         part { name: "arrow_area_up";
588                                 type: RECT;
589                                 mouse_events: 0;
590                                 scale: 1;
591                                 clip_to: "ctxpopup_clip";
592                                 description { state: "default" 0.0;
593                                         visible: 0;
594                                         min: 0 40;
595                                         fixed: 1 1;
596                                         align: 0.5 1;
597                                         rel1 {
598                                                 relative: 1 0;
599                                                 to_x: "ctxpopup_frame_left_top";
600                                         }
601                                         rel2 {
602                                                 relative: 0 0;
603                                                 to:"ctxpopup_frame_right_top";
604                                         }
605                                 }
606                         }
607                         part { name: "arrow_area_down";
608                                 type: RECT;
609                                 mouse_events: 0;
610                                 scale: 1;
611                                 clip_to: "ctxpopup_clip";
612                                 description { state: "default" 0.0;
613                                         visible: 0;
614                                         min: 0 40;
615                                         fixed: 1 1;
616                                         align: 0.5 0;
617                                         rel1 {
618                                                 relative: 1 1;
619                                                 to:"ctxpopup_frame_left_bottom";
620                                         }
621                                         rel2 {
622                                                 relative: 0 1;
623                                                 to_x: "ctxpopup_frame_right_bottom";
624                                         }
625                                 }
626                         }
627                         part { name: "elm.swallow.arrow_up";
628                                 type: SWALLOW;
629                                 mouse_events: 0;
630                                 scale: 1;
631                                 clip_to: "ctxpopup_clip";
632                                 dragable {
633                                         x: 1 1 0;
634                                         y: 1 1 0;
635                                         confine: "arrow_area_up";
636                                 }
637                                 description {
638                                         state: "default" 0.0;
639                                         min: 40 40;
640                                         fixed: 1 1;
641                                         visible: 1;
642                                 }
643                         }
644                         part { name: "elm.swallow.arrow_down";
645                                 type: SWALLOW;
646                                 mouse_events: 0;
647                                 scale: 1;
648                                 clip_to: "ctxpopup_clip";
649                                 dragable {
650                                         x: 1 1 0;
651                                         y: 1 1 0;
652                                         confine: "arrow_area_down";
653                                 }
654                                 description {
655                                         state: "default" 0.0;
656                                         min: 40 40;
657                                         fixed: 1 1;
658                                         visible: 1;
659                                 }
660                         }
661                         part { name: "elm.swallow.arrow_left";
662                                 type: SWALLOW;
663                                 mouse_events: 0;
664                                 scale: 1;
665                                 clip_to: "ctxpopup_clip";
666                                 dragable {
667                                         x: 1 1 0;
668                                         y: 1 1 0;
669                                         confine: "arrow_area_left";
670                                 }
671                                 description {
672                                         state: "default" 0.0;
673                                         min: 40 40;
674                                         fixed: 1 1;
675                                         visible: 1;
676                                 }
677                         }
678                         part { name: "elm.swallow.arrow_right";
679                                 type: SWALLOW;
680                                 mouse_events: 0;
681                                 scale: 1;
682                                 clip_to: "ctxpopup_clip";
683                                 dragable {
684                                         x: 1 1 0;
685                                         y: 1 1 0;
686                                         confine: "arrow_area_right";
687                                 }
688                                 description {
689                                         state: "default" 0.0;
690                                         min: 40 40;
691                                         fixed: 1 1;
692                                         visible: 1;
693                                 }
694                         }
695
696                         part {
697                                 name: "ctxpopup_frame_left_top";
698                                 type: RECT;
699                                 scale: 1;
700                                 description {
701                                         visible: 0;
702                                         align: 0 0;
703                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
704                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
705                                 }
706                         }
707
708                         part {
709                                 name: "ctxpopup_frame_right_top";
710                                 type: RECT;
711                                 scale: 1;
712                                 description {
713                                         visible: 0;
714                                         align: 1 0;
715                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
716                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
717                                 }
718                         }
719
720                         part {
721                                 name: "ctxpopup_frame_left_bottom";
722                                 type: RECT;
723                                 scale: 1;
724                                 description {
725                                         visible: 0;
726                                         align: 0 1;
727                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
728                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
729                                 }
730                         }
731
732                         part {
733                                 name: "ctxpopup_frame_right_bottom";
734                                 type: RECT;
735                                 scale: 1;
736                                 description {
737                                         visible: 0;
738                                         align: 1 1;
739                                         min: CTXPOPUP_FRAME_CORNER_SIZE;
740                                         max: CTXPOPUP_FRAME_CORNER_SIZE;
741                                 }
742                         }
743                         part {
744                                 name:"list_shadow_right_bottom_padding";
745                                 type:RECT;
746                                 scale: 1;
747                                 mouse_events: 0;
748                                 description {
749                                         min: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
750                                         max: CTXPOPUP_LIST_SHADOW_PADDING CTXPOPUP_LIST_SHADOW_PADDING;
751                                         align: 0 0;
752                                         fixed: 1 1;
753                                         visible: 0;
754                                         rel1 {to:"elm.swallow.content";  relative: 1 1;}
755                                 }
756                         }
757                         part {
758                                 name:"content_left_top_padding";
759                                 type:RECT;
760                                 scale: 1;
761                                 mouse_events: 0;
762                                 description {
763                                         state: "default" 0.0;
764                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
765                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
766                                         align: 0 0;
767                                         fixed: 1 1;
768                                         visible: 0;
769                                 }
770                         }
771                         part {
772                                 name:"content_right_bottom_padding";
773                                 type:RECT;
774                                 scale: 1;
775                                 mouse_events: 0;
776                                 description {
777                                         min: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
778                                         max: CTXPOPUP_LIST_PADDING CTXPOPUP_LIST_PADDING;
779                                         rel1 { relative: 1 1;}
780                                         rel2 { relative: 1 1;}
781                                         align: 1 1;
782                                         fixed: 1 1;
783                                         visible: 0;
784                                 }
785                         }
786
787
788                         part {
789                                 name: "frame_bg";
790                                 type: IMAGE;
791                                 scale: 1;
792                                 mouse_events: 0;
793                                 clip_to: "ctxpopup_clip";
794                                 description {
795                                         state: "default" 0.0;
796                                         visible: 1;
797                                         rel1 {to:"ctxpopup_frame_left_top";}
798                                         rel2 {to:"ctxpopup_frame_right_bottom";}
799                                         image {
800                                                 normal: CTXPOPUP_BG_IMAGE;
801                                                 border: CTXPOPUP_BG_IMAGE_BORDER;
802                                                 border_scale: 1;
803                                         }
804                                 }
805                         }
806                         part {
807                                 name: "elm.swallow.content";
808                                 type: SWALLOW;
809                                 clip_to: "ctxpopup_clip";
810                                 description {
811                                         state: "default" 0.0;
812                                         align: 0 0;
813                                         rel1 {to:"ctxpopup_frame_left_top";  relative: 0.5 0.5;}
814                                         rel2 {to:"ctxpopup_frame_right_bottom";  relative: 0.5 0.5;}
815                                 }
816                         }
817                         part { name: "ctxpopup_clip";
818                                 type: RECT;
819                                 description { state: "default" 0.0;
820                                 color: 255 255 255 0;
821                                 rel1 { to:"ctxpopup_frame_left_top"; relative: 0.5 0.5; }
822                                 rel2 { to:"ctxpopup_frame_right_bottom"; relative: 0.5 0.5; }
823                                 }
824                                 description { state: "show_up" 0.0;
825                                         color: 255 255 255 0;
826                                         rel1 { to:"arrow_area_down"; relative: 0 1; }
827                                         rel2 { to:"arrow_area_down"; relative: 1 1; }
828                                 }
829                                 description { state: "show_left" 0.0;
830                                         color: 255 255 255 0;
831                                         rel1 { to:"arrow_area_right"; relative: 1 0; }
832                                         rel2 { to:"arrow_area_right"; relative: 1 1; }
833                                 }
834                                 description { state: "show_right" 0.0;
835                                         color: 255 255 255 0;
836                                         rel1 { to:"arrow_area_left"; relative: 0 0; }
837                                         rel2 { to:"arrow_area_left"; relative: 0 1; }
838                                 }
839                                 description { state: "show_down" 0.0;
840                                         color: 255 255 255 0;
841                                         rel1 { to:"arrow_area_up"; relative: 0 0; }
842                                         rel2 { to:"arrow_area_up"; relative: 1 0; }
843                                 }
844                                 description { state: "hide_up" 0.0;
845                                         color: 255 255 255 255;
846                                         rel1 { to:"arrow_area_down"; relative: 0 1; }
847                                         rel2 { to:"arrow_area_down"; relative: 1 1; }
848                                 }
849                                 description { state: "hide_left" 0.0;
850                                         color: 255 255 255 255;
851                                         rel1 { to:"arrow_area_right"; relative: 1 0; }
852                                         rel2 { to:"arrow_area_right"; relative: 1 1; }
853                                 }
854                                 description { state: "hide_right" 0.0;
855                                         color: 255 255 255 255;
856                                         rel1 { to:"arrow_area_left"; relative: 0 0; }
857                                         rel2 { to:"arrow_area_left"; relative: 0 1; }
858                                 }
859                                 description { state: "hide_down" 0.0;
860                                         color: 255 255 255 255;
861                                         rel1 { to:"arrow_area_up"; relative: 0 0; }
862                                         rel2 { to:"arrow_area_up"; relative: 1 0; }
863                                 }
864                                 description { state: "visible" 0.0;
865                                         color: 255 255 255 255;
866                                         rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
867                                         rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
868                                 }
869                         }
870                 }
871                 programs {
872                         program { name: "show";
873                                 signal: "elm,state,show";
874                                 source: "elm";
875                                 action: STATE_SET "visible" 0.0;
876                                 transition: LINEAR 0.25;
877                                 target: "ctxpopup_clip";
878                         }
879                         program { name: "show_up";
880                                 signal: "elm,state,show,up";
881                                 source: "elm";
882                                 action: STATE_SET "show_up" 0.0;
883                                 transition: LINEAR 0.25;
884                                 target: "ctxpopup_clip";
885                         }
886                         program { name: "show_left";
887                                 signal: "elm,state,show,left";
888                                 source: "elm";
889                                 action: STATE_SET "show_left" 0.0;
890                                 transition: LINEAR 0.25;
891                                 target: "ctxpopup_clip";
892                         }
893                         program { name: "show_right";
894                                 signal: "elm,state,show,right";
895                                 source: "elm";
896                                 action: STATE_SET "show_right" 0.0;
897                                 transition: LINEAR 0.25;
898                                 target: "ctxpopup_clip";
899                         }
900                         program { name: "show_down";
901                                 signal: "elm,state,show,down";
902                                 source: "elm";
903                                 action: STATE_SET "show_down" 0.0;
904                                 transition: LINEAR 0.25;
905                                 target: "ctxpopup_clip";
906                         }
907                         program { name: "hide_up";
908                                 signal: "elm,state,hide,up";
909                                 source: "elm";
910                                 action: STATE_SET "hide_up" 0.0;
911                                 transition: LINEAR 0.25;
912                                 target: "ctxpopup_clip";
913                                 after: "hide_finished";
914                         }
915                         program { name: "hide_left";
916                                 signal: "elm,state,hide,left";
917                                 source: "elm";
918                                 action: STATE_SET "hide_left" 0.0;
919                                 transition: LINEAR 0.25;
920                                 target: "ctxpopup_clip";
921                                 after: "hide_finished";
922                         }
923                         program { name: "hide_right";
924                                 signal: "elm,state,hide,right";
925                                 source: "elm";
926                                 action: STATE_SET "hide_right" 0.0;
927                                 transition: LINEAR 0.25;
928                                 target: "ctxpopup_clip";
929                                 after: "hide_finished";
930                         }
931                         program { name: "hide_down";
932                                 signal: "elm,state,hide,down";
933                                 source: "elm";
934                                 action: STATE_SET "hide_down" 0.0;
935                                 transition: LINEAR 0.25;
936                                 target: "ctxpopup_clip";
937                                 after: "hide_finished";
938                         }
939                         program { name: "hide_finished";
940                                 action: SIGNAL_EMIT "elm,action,hide,finished" "";
941                         }
942                 }
943         }
944
945 ///////////////////////////////////////////////////////////////////////////////
946         group { name: "elm/ctxpopup/arrow/video/default";
947                 images {
948                         image: "white/common/00_popup_tail_left.png" COMP;
949                         image: "white/common/00_popup_tail_right.png" COMP;
950                         image: "white/common/00_popup_tail_top.png" COMP;
951                         image: "white/common/00_popup_tail_bottom.png" COMP;
952                 }
953                 parts {
954                         part {
955                                 name: "ctxpopup_arrow";
956                                 type: IMAGE;
957                                 scale: 1;
958                                 description {
959                                         state: "default" 0.0;
960                                         min: CTXPOPUP_ARROW_SIZE_INC;
961                                         max: CTXPOPUP_ARROW_SIZE_INC;
962                                         fixed: 1 1;
963                                         visible: 0;
964                                         align: 0.5 0.5;
965                                 }
966                                 description {
967                                         state: "left" 0.0;
968                                         min: CTXPOPUP_ARROW_SIZE_INC;
969                                         max: CTXPOPUP_ARROW_SIZE_INC;
970                                         fixed: 1 1;
971                                         align: 1.0 0.5;
972                                         image {
973                                                 normal: "white/common/00_popup_tail_left.png";
974                                         }
975                                 }
976                                 description {
977                                         state: "right" 0.0;
978                                         min: CTXPOPUP_ARROW_SIZE_INC;
979                                         max: CTXPOPUP_ARROW_SIZE_INC;
980                                         fixed: 1 1;
981                                         align: 0.0 0.5;
982                                         image {
983                                                 normal: "white/common/00_popup_tail_right.png";
984                                         }
985                                 }
986                                 description {
987                                         state: "top" 0.0;
988                                         min: CTXPOPUP_ARROW_SIZE_INC;
989                                         max: CTXPOPUP_ARROW_SIZE_INC;
990                                         fixed: 1 1;
991                                         align: 0.5 1.0;
992                                         image {
993                                                 normal: "white/common/00_popup_tail_top.png";
994                                         }
995                                 }
996                                 description {
997                                         state: "bottom" 0.0;
998                                         min: CTXPOPUP_ARROW_SIZE_INC;
999                                         max: CTXPOPUP_ARROW_SIZE_INC;
1000                                         fixed: 1 1;
1001                                         align: 0.5 0.0;
1002                                         image {
1003                                                 normal: "white/common/00_popup_tail_bottom.png";
1004                                         }
1005                                 }
1006                         }
1007                 }
1008                 programs {
1009                         program {
1010                                 name: "enable_left_arrow";
1011                                 signal: "elm,state,left";
1012                                 source: "elm";
1013                                 action: STATE_SET "left" 0.0;
1014                                 target: "ctxpopup_arrow";
1015                         }
1016                         program {
1017                                 name: "enable_right_arrow";
1018                                 signal: "elm,state,right";
1019                                 source: "elm";
1020                                 action: STATE_SET "right" 0.0;
1021                                 target: "ctxpopup_arrow";
1022                         }
1023                         program {
1024                                 name: "enable_top_arrow";
1025                                 signal: "elm,state,top";
1026                                 source: "elm";
1027                                 action: STATE_SET "top" 0.0;
1028                                 target: "ctxpopup_arrow";
1029                         }
1030                         program {
1031                                 name: "enable_bottom_arrow";
1032                                 signal: "elm,state,bottom";
1033                                 source: "elm";
1034                                 action: STATE_SET "bottom" 0.0;
1035                                 target: "ctxpopup_arrow";
1036                         }
1037                 }
1038         }
1039 ///////////////////////////////////////////////////////////////////////////////
1040         group {
1041                 name: "elm/ctxpopup/text_style_item/video/default";
1042                 parts {
1043                         part {
1044                                 name: "event_blocker";
1045                                 mouse_events: 1;
1046                                 description {
1047                                         state: "default" 0.0;
1048                                         color: 0 0 0 0;
1049                                 }
1050                         }
1051                         part {
1052                                 name: "bg";
1053                                 mouse_events: 0;
1054                                 type: RECT;
1055                                 description {
1056                                         state: "default" 0.0;
1057                                         color: CTXPOPUP_BG_COLOR_INC;
1058                                         visible: 0;
1059                                 }
1060                                 description {
1061                                         state: "clicked" 0.0;
1062                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
1063                                         visible: 1;
1064                                 }
1065                         }
1066                         part {
1067                                 name: "separator";
1068                                 mouse_events: 0;
1069                                 type: RECT;
1070                                 scale: 1;
1071                                 description {
1072                                         state: "default" 0.0;
1073                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1074                                         align: 0.5 0;
1075                                         min: 1 0;
1076                                         max: 1 999999;
1077                                         visible: 0;
1078                                 }
1079                                 description {
1080                                         state: "horizontal" 0.0;
1081                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_COLOR_INC;
1082                                         align: 0 0.5;
1083                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
1084                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
1085                                         visible: 1;
1086                                 }
1087                         description {
1088                                         state: "vertical" 0.0;
1089                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1090                                         align: 0.5 0;
1091                                         min: 0 1;
1092                                         max: 999999 1;
1093                                         visible: 1;
1094                                 }
1095                         }
1096                         part {
1097                                 name: "left_padding";
1098                                 scale: 1;
1099                                 mouse_events: 0;
1100                                 description {
1101                                         state: "default" 0.0;
1102                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1103                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1104                                         align: 0 0.5;
1105                                         fixed: 1 1;
1106                                         visible: 0;
1107                                 }
1108                         }
1109                         part {
1110                                 name: "elm.text";
1111                                 type: TEXT;
1112                                 mouse_events: 0;
1113                                 scale: 1;
1114                                 description {
1115                                         state: "default" 0.0;
1116                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1117                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-2*CTXPOPUP_ITEM_PADDING_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1118                                         fixed: 0 1;
1119                                         align: 0.5 0.5;
1120                                         rel1 {relative: 1.0 0.0; to: "left_padding";}
1121                                         rel2 {relative: 0.0 1.0; to: "right_padding";}
1122                                         color: CTXPOPUP_MAIN_TEXT_UNREAD_COLOR_INC;
1123                                         text {
1124                                                 font: "SLP:style=Roman";
1125                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1126                                                 align: 0 0.5;
1127                                                 min: 1 1;
1128                                                 text_class: "list_item";
1129                                         }
1130                                 }
1131                                 description {
1132                                         state: "text_horizontal" 0.0;
1133                                         inherit: "default" 0.0;
1134                                         text {
1135                                                 size: CTXPOPUP_ITEM_MAIN_TEXT_SIZE_INC;
1136                                                 align: 0.5 0.5;
1137                                                 min: 1 1;
1138                                         }
1139                                 }
1140                                 description {
1141                                         state: "compress" 0.0;
1142                                         inherit: "default" 0.0;
1143                                         max: -1 -1;
1144                                         text {
1145                                                 min: 0 1;
1146                                         }
1147                                 }
1148                                 description {
1149                                         state: "compress.text_horizontal" 0.0;
1150                                         inherit: "default" 0.0;
1151                                         max: -1 -1;
1152                                         text {
1153                                                 size: CTXPOPUP_ITEM_MAIN_TEXT_SIZE_INC;
1154                                                 align: 0.5 0.5;
1155                                                 min: 0 1;
1156                                         }
1157                                 }
1158                                 description {
1159                                         state: "clicked" 0.0;
1160                                         inherit: "default" 0.0;
1161                                         color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
1162                                 }
1163                                 description {
1164                                         state: "clicked.text_horizontal" 0.0;
1165                                         inherit: "default" 0.0;
1166                                         color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
1167                                         text {
1168                                                 size: CTXPOPUP_ITEM_MAIN_TEXT_SIZE_INC;
1169                                                 align: 0.5 0.5;
1170                                                 min: 0 1;
1171                                         }
1172                                 }
1173                         }
1174                         part {
1175                                 name: "right_padding";
1176                                 scale: 1;
1177                                 mouse_events: 0;
1178                                 description {
1179                                         state: "default" 0.0;
1180                                         visible: 0;
1181                                         min: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1182                                         max: 30 CTXPOPUP_ITEM_HEIGHT_INC;
1183                                         fixed: 1 0;
1184                                         align: 1.0 0.5;
1185                                 }
1186                         }
1187                         part {
1188                                 name: "over1";
1189                                 mouse_events: 1;
1190                                 repeat_events: 1;
1191                                 ignore_flags: ON_HOLD;
1192                                 description {
1193                                         state: "default" 0.0;
1194                                 }
1195                         }
1196                         part {
1197                                 name: "over2";
1198                                 mouse_events: 1;
1199                                 repeat_events: 1;
1200                                 description {
1201                                         state: "default" 0.0;
1202                                 }
1203                         }
1204                         part {
1205                                 name: "disclip";
1206                                 type: RECT;
1207                                 description {
1208                                         state: "default" 0.0;
1209                                         visible: 0;
1210                                 }
1211                                 description {
1212                                         state: "disabled" 0.0;
1213                                         visible: 1;
1214                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1215                                 }
1216                         }
1217                 }
1218                 programs {
1219                         program {
1220                                 name: "item_unclick";
1221                                 signal: "mouse,up,1";
1222                                 source: "over1";
1223                                 action: SIGNAL_EMIT "elm,action,click" "";
1224                         }
1225                         program {
1226                                 name: "disable";
1227                                 signal: "elm,state,disabled";
1228                                 source: "elm";
1229                                 action: STATE_SET "disabled" 0.0;
1230                                 target: "disclip";
1231                         }
1232                         program {
1233                                 name: "enable";
1234                                 signal: "elm,state,enabled";
1235                                 source: "elm";
1236                                 action: STATE_SET "default" 0.0;
1237                                 target: "disclip";
1238                         }
1239                         program {
1240                                 name: "default";
1241                                 signal: "elm,state,default";
1242                                 source: "elm";
1243                                 script {
1244                                         set_state(PART:"separator", "default", 0.0);
1245                                 }
1246                         }
1247                         program {
1248                                 name: "compress";
1249                                 signal: "elm,state,compress";
1250                                 source: "elm";
1251                                 script {
1252                                         new st[31];
1253                                         new Float:vl;
1254                                         get_state(PART:"separator", st, 30, vl);
1255                                         if (!strcmp(st, "horizontal"))
1256                                                 set_state(PART:"elm.text", "compress.text_horizontal", 0.0);
1257                                         else
1258                                                 set_state(PART:"elm.text", "compress", 0.0);
1259                                 }
1260                         }
1261                         program {
1262                                 name: "vertical";
1263                                 signal: "elm,state,vertical";
1264                                 source: "elm";
1265                                 script {
1266                                         set_state(PART:"separator", "vertical", 0.0);
1267                                         set_state(PART:"elm.text", "vertical", 0.0);
1268                                 }
1269                         }
1270                         program {
1271                                 name: "horizontal";
1272                                 signal: "elm,state,horizontal";
1273                                 source: "elm";
1274                                 script {
1275                                         set_state(PART:"separator", "horizontal", 0.0);
1276                                         set_state(PART:"elm.text", "text_horizontal", 0.0);
1277                                 }
1278                         }
1279                         program {
1280                                 name: "text_horizontal";
1281                                 signal: "elm,state,text_horizontal";
1282                                 source: "elm";
1283                                 script {
1284                                         set_state(PART:"separator", "default", 0.0);
1285                                         set_state(PART:"elm.text", "text_horizontal", 0.0);
1286                                 }
1287                         }
1288                         program {
1289                                 name: "item_click2";
1290                                 signal: "mouse,down,1";
1291                                 source: "over2";
1292                                 script {
1293                                         new st[31];
1294                                         new Float:vl;
1295                                         get_state(PART:"separator", st, 30, vl);
1296                                         if (!strcmp(st, "horizontal"))
1297                                                 set_state(PART:"elm.text", "clicked.text_horizontal", 0.0);
1298                                         else
1299                                                 set_state(PART:"elm.text", "clicked", 0.0);
1300                                         set_state(PART:"bg", "clicked", 0.0);
1301                                 }
1302                         }
1303                         program {
1304                                 name: "item_unclick2";
1305                                 signal: "mouse,up,1";
1306                                 source: "over2";
1307                                 script {
1308                                         new st[31];
1309                                         new Float:vl;
1310                                         get_state(PART:"separator", st, 30, vl);
1311                                         if (!strcmp(st, "horizontal"))
1312                                                 set_state(PART:"elm.text", "compress.text_horizontal", 0.0);
1313                                         else
1314                                                 set_state(PART:"elm.text", "compress", 0.0);
1315                                         set_state(PART:"bg", "default", 0.0);
1316                                 }
1317                         }
1318                 }
1319         }
1320 ///////////////////////////////////////////////////////////////////////////////
1321         group {
1322                 name: "elm/ctxpopup/icon_style_item/video/default";
1323                 parts {
1324                         part {
1325                                 name: "event_blocker";
1326                                 mouse_events: 1;
1327                                 description {
1328                                         state: "default" 0.0;
1329                                         color: 0 0 0 0;
1330                                 }
1331                         }
1332                         part {
1333                                 name: "bg";
1334                                 scale: 1;
1335                                 mouse_events: 0;
1336                                 type: RECT;
1337                                 description {
1338                                         state: "default" 0.0;
1339                                         color: CTXPOPUP_BG_COLOR_INC;
1340                                         visible: 0;
1341                                         min: CTXPOPUP_ITEM_ICON_INC;
1342                                         max: CTXPOPUP_ITEM_ICON_INC;
1343                                 }
1344                                 description {
1345                                         state: "clicked" 0.0;
1346                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
1347                                         visible: 1;
1348                                 }
1349                         }
1350                         part {
1351                                 name: "left_top_padding";
1352                                 scale: 1;
1353                                 description {
1354                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1355                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1356                                         visible: 0;
1357                                         align: 0 0;
1358                                         fixed: 1 1;
1359                                 }
1360                         }
1361                         part {
1362                                 name: "separator";
1363                                 mouse_events: 0;
1364                                 type: RECT;
1365                                 scale: 1;
1366                                 description {
1367                                         state: "default" 0.0;
1368                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1369                                         align: 0.5 0;
1370                                         min: 1 0;
1371                                         max: 1 999999;
1372                                         visible: 0;
1373                                 }
1374                                 description {
1375                                         state: "horizontal" 0.0;
1376                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_COLOR_INC;
1377                                         align: 0 0.5;
1378                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
1379                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
1380                                         visible: 1;
1381                                 }
1382                         description {
1383                                         state: "vertical" 0.0;
1384                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_COLOR_INC;
1385                                         align: 0.5 0;
1386                                         min: CTXPOPUP_VERTICAL_SEPARATOR_MIN_SIZE_INC;
1387                                         max: CTXPOPUP_VERTICAL_SEPARATOR_MAX_SIZE_INC;
1388                                         visible: 1;
1389                                 }
1390                         }
1391                         part {
1392                                 name: "elm.swallow.icon";
1393                                 type: SWALLOW;
1394                                 scale: 1;
1395                                 description {
1396                                         state: "default" 0.0;
1397                                         min: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1398                                         max: (CTXPOPUP_ICON_WIDTH_INC - 10) (CTXPOPUP_ICON_HEIGHT_INC - 10);
1399                                         align: 0.5 0.5;
1400                                         aspect: 1.0 1.0;
1401                                         rel1 { to: "left_top_padding"; relative: 1 1; }
1402                                         rel2 { to: "right_bottom_padding"; relative: 0 0; }
1403                                 }
1404                         }
1405                         part {
1406                                 name: "right_bottom_padding";
1407                                 scale: 1;
1408                                 description {
1409                                         min: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1410                                         max: (CTXPOPUP_ITEM_PADDING_INC * 2) CTXPOPUP_ITEM_PADDING_INC;
1411                                         visible: 0;
1412                                         align: 1 1;
1413                                         fixed: 1 1;
1414                                 }
1415                         }
1416                         part {
1417                                 name: "over1";
1418                                 mouse_events: 1;
1419                                 repeat_events: 1;
1420                                 ignore_flags: ON_HOLD;
1421                                 description {
1422                                         state: "default" 0.0;
1423                                 }
1424                         }
1425                         part {
1426                                 name: "over2";
1427                                 mouse_events: 1;
1428                                 repeat_events: 1;
1429                                 description {
1430                                         state: "default" 0.0;
1431                                 }
1432                         }
1433                         part {
1434                                 name: "disclip";
1435                                 type: RECT;
1436                                 description {
1437                                         state: "default" 0.0;
1438                                         visible: 0;
1439                                 }
1440                                 description {
1441                                         state: "disabled" 0.0;
1442                                         visible: 1;
1443                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1444                                 }
1445                         }
1446                 }
1447                 programs {
1448                         program {
1449                                 name: "default";
1450                                 signal: "elm,state,default";
1451                                 source: "elm";
1452                                 script {
1453                                         set_state(PART:"separator", "default", 0.0);
1454                                 }
1455                         }
1456                         program {
1457                                 name: "vertical";
1458                                 signal: "elm,state,vertical";
1459                                 source: "elm";
1460                                 script {
1461                                         set_state(PART:"separator", "vertical", 0.0);
1462                                 }
1463                         }
1464                         program {
1465                                 name: "horizontal";
1466                                 signal: "elm,state,horizontal";
1467                                 source: "elm";
1468                                 script {
1469                                         set_state(PART:"separator", "horizontal", 0.0);
1470                                 }
1471                         }
1472                         program {
1473                                 name: "item_unclick";
1474                                 signal: "mouse,up,1";
1475                                 source: "over1";
1476                                 action: SIGNAL_EMIT "elm,action,click" "";
1477                         }
1478                         program {
1479                                 name: "disable";
1480                                 signal: "elm,state,disabled";
1481                                 source: "elm";
1482                                 action: STATE_SET "disabled" 0.0;
1483                                 target: "disclip";
1484                         }
1485                         program {
1486                                 name: "enable";
1487                                 signal: "elm,state,enabled";
1488                                 source: "elm";
1489                                 action: STATE_SET "default" 0.0;
1490                                 target: "disclip";
1491                         }
1492                         program {
1493                                 name: "item_click2";
1494                                 signal: "mouse,down,1";
1495                                 source: "over2";
1496                                 script {
1497                                         set_state(PART:"bg", "clicked", 0.0);
1498                                 }
1499                         }
1500                         program {
1501                                 name: "item_unclick2";
1502                                 signal: "mouse,up,1";
1503                                 source: "over2";
1504                                 script {
1505                                         set_state(PART:"bg", "default", 0.0);
1506                                 }
1507                         }
1508                 }
1509         }
1510 ///////////////////////////////////////////////////////////////////////////////
1511         group {
1512                 name: "elm/ctxpopup/icon_text_style_item/video/default";
1513                 parts {
1514                         part {
1515                                 name: "event_blocker";
1516                                 mouse_events: 1;
1517                                 description {
1518                                         state: "default" 0.0;
1519                                 }
1520                         }
1521                         part {
1522                                 name: "bg";
1523                                 mouse_events: 0;
1524                                 type: RECT;
1525                                 description {
1526                                         state: "default" 0.0;
1527                                         color: CTXPOPUP_BG_COLOR_INC;
1528                                         visible: 0;
1529                                 }
1530                                 description {
1531                                         state: "clicked" 0.0;
1532                                         color: CTXPOPUP_BG_PRESS_COLOR_INC;
1533                                         visible: 1;
1534                                 }
1535                         }
1536                         part {
1537                                 name: "icon_left_padding";
1538                                 scale: 1;
1539                                 mouse_events: 0;
1540                                 description {
1541                                         state: "default" 0.0;
1542                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1543                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1544                                         align: 0 0;
1545                                         fixed: 1 1;
1546                                         visible: 0;
1547                                 }
1548                         }
1549                         part {
1550                                 name: "separator";
1551                                 mouse_events: 0;
1552                                 type: RECT;
1553                                 scale: 1;
1554                                 description {
1555                                         state: "default" 0.0;
1556                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1557                                         align: 0.5 0;
1558                                         min: 1 0;
1559                                         max: 1 999999;
1560                                         visible: 0;
1561                                 }
1562                                 description {
1563                                         state: "horizontal" 0.0;
1564                                         color: CTXPOPUP_HORIZONTAL_SEPARATOR_COLOR_INC;
1565                                         align: 0 0.5;
1566                                         min: CTXPOPUP_HORIZONTAL_SEPARATOR_MIN_SIZE_INC;
1567                                         max: CTXPOPUP_HORIZONTAL_SEPARATOR_MAX_SIZE_INC;
1568                                         visible: 1;
1569                                 }
1570                         description {
1571                                         state: "vertical" 0.0;
1572                                         color: CTXPOPUP_SEPARATOR_COLOR_INC;
1573                                         align: 0.5 0;
1574                                         min: 0 1;
1575                                         max: 999999 1;
1576                                         visible: 1;
1577                                 }
1578                         }
1579                         part {
1580                                 name: "elm.swallow.icon";
1581                                 type: SWALLOW;
1582                                 scale: 1;
1583                                 description {
1584                                         state: "default" 0.0;
1585                                         min: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1586                                         max: CTXPOPUP_ICON_WIDTH_INC CTXPOPUP_ICON_HEIGHT_INC;
1587                                         align: 0 0.5;
1588                                         aspect: 1.0 1.0;
1589                                         rel1 { to:"icon_left_padding"; relative: 1 0; }
1590                                 }
1591                         }
1592                         part {
1593                                 name: "icon_right_padding";
1594                                 scale: 1;
1595                                 mouse_events: 0;
1596                                 description {
1597                                         state: "default" 0.0;
1598                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1599                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1600                                         align: 0 0.5;
1601                                         fixed: 1 1;
1602                                         visible: 0;
1603                                         rel1 { to:"elm.swallow.icon"; relative: 1 1; }
1604                                 }
1605                         }
1606                         part {
1607                                 name: "elm.text";
1608                                 type:  TEXT;
1609                                 mouse_events:  0;
1610                                 scale: 1;
1611                                 description {
1612                                         state: "default" 0.0;
1613                                         min: 1 CTXPOPUP_ITEM_HEIGHT_INC;
1614                                         max: (CTXPOPUP_CONTENT_WIDTH_MAX_INC-(3*CTXPOPUP_ITEM_PADDING_INC)-CTXPOPUP_ICON_WIDTH_INC) CTXPOPUP_ITEM_HEIGHT_INC;
1615                                         fixed: 0 1;
1616                                         align: 0.5 0.5;
1617                                         rel1 {relative: 1.0 0.0; to_x: "icon_right_padding";}
1618                                         rel2 {relative: 0.0 1.0; to_x: "text_right_padding";}
1619                                         color: CTXPOPUP_MAIN_TEXT_UNREAD_COLOR_INC;
1620                                         text {
1621                                                 font: "SLP:style=Roman";
1622                                                 size: CTXPOPUP_ITEM_TEXT_SIZE_INC;
1623                                                 align: 0.0 0.5;
1624                                                 min: 1 1;
1625                                                 text_class: "list_item";
1626                                         }
1627                                 }
1628                                 description {
1629                                         state: "compress" 0.0;
1630                                         inherit: "default" 0.0;
1631                                         max: -1 -1;
1632                                         text {
1633                                                 min: 0 1;
1634                                         }
1635                                 }
1636                                 description {
1637                                         state: "clicked" 0.0;
1638                                         inherit: "default" 0.0;
1639                                         color: CTXPOPUP_MAIN_TEXT_PRESS_COLOR_INC;
1640                                 }
1641                         }
1642                         part {
1643                                 name: "text_right_padding";
1644                                 type: RECT;
1645                                 scale: 1;
1646                                 mouse_events: 0;
1647                                 description {
1648                                         state: "default" 0.0;
1649                                         visible: 0;
1650                                         min: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1651                                         max: CTXPOPUP_ITEM_PADDING_INC CTXPOPUP_ITEM_HEIGHT_INC;
1652                                         fixed: 1 0;
1653                                         align: 1.0 0.5;
1654                         }
1655                         }
1656                         part {
1657                                 name: "over1";
1658                                 mouse_events: 1;
1659                                 repeat_events: 1;
1660                                 ignore_flags: ON_HOLD;
1661                                 description {
1662                                         state: "default" 0.0;
1663                                 }
1664                         }
1665                         part {
1666                                 name: "over2";
1667                                 mouse_events: 1;
1668                                 repeat_events: 1;
1669                                 description {
1670                                         state: "default" 0.0;
1671                                 }
1672                         }
1673                         part {
1674                                 name: "disclip";
1675                                 type: RECT;
1676                                 description {
1677                                         state: "default" 0.0;
1678                                         visible: 0;
1679                                 }
1680                                 description {
1681                                         state: "disabled" 0.0;
1682                                         visible: 1;
1683                                         color: CTXPOPUP_ITEM_DISABLED_COLOR;
1684                                 }
1685                         }
1686                 }
1687                 programs {
1688                         program {
1689                                 name: "item_unclick";
1690                                 signal: "mouse,up,1";
1691                                 source: "over1";
1692                                 action: SIGNAL_EMIT "elm,action,click" "";
1693                         }
1694                         program {
1695                                 name: "disable";
1696                                 signal: "elm,state,disabled";
1697                                 source: "elm";
1698                                 action: STATE_SET "disabled" 0.0;
1699                                 target: "disclip";
1700                         }
1701                         program {
1702                                 name: "enable";
1703                                 signal: "elm,state,enabled";
1704                                 source: "elm";
1705                                 action: STATE_SET "default" 0.0;
1706                                 target: "disclip";
1707                         }
1708                         program {
1709                                 name: "default";
1710                                 signal: "elm,state,default";
1711                                 source: "elm";
1712                                 script {
1713                                         set_state(PART:"separator", "default", 0.0);
1714                                 }
1715                         }
1716                         program {
1717                                 name: "compress";
1718                                 signal: "elm,state,compress";
1719                                 source: "elm";
1720                                 action: STATE_SET "compress" 0.0;
1721                                 target: "elm.text";
1722                         }
1723                         program {
1724                                 name: "vertical";
1725                                 signal: "elm,state,vertical";
1726                                 source: "elm";
1727                                 script {
1728                                         set_state(PART:"separator", "vertical", 0.0);
1729                                 }
1730                         }
1731                         program {
1732                                 name: "horizontal";
1733                                 signal: "elm,state,horizontal";
1734                                 source: "elm";
1735                                 script {
1736                                         set_state(PART:"separator", "horizontal", 0.0);
1737                                 }
1738                         }
1739                         program {
1740                                 name: "item_click2";
1741                                 signal: "mouse,down,1";
1742                                 source: "over2";
1743                                 script {
1744                                         set_state(PART:"elm.text", "clicked", 0.0);
1745                                         set_state(PART:"bg", "clicked", 0.0);
1746                                 }
1747                         }
1748                         program {
1749                                 name: "item_unclick2";
1750                                 signal: "mouse,up,1";
1751                                 source: "over2";
1752                                 script {
1753                                         set_state(PART:"elm.text", "compress", 0.0);
1754                                         set_state(PART:"bg", "default", 0.0);
1755                                 }
1756                         }
1757                 }
1758         }
1759
1760
1761
1762