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