2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
20 name: "elm/panes/vertical/default";
22 image: "arrow_right.png" COMP;
23 image: "arrow_left.png" COMP;
24 image: "00_splitscreen_handler_top.png" COMP;
25 image: "00_splitscreen_handler_middle.png" COMP;
26 image: "00_splitscreen_handler_bottom.png" COMP;
29 public state_pair = 0; //0:both content are not set, 1:both content are set
55 rel2.relative: 0.0 1.0;
61 name: "elm.swallow.left";
63 clip_to: "whole_left";
67 rel1.to: "whole_left";
68 rel2.to: "whole_left";
81 rel1.relative: 1.0 0.0;
87 name: "elm.swallow.right";
89 clip_to: "whole_right";
93 rel1.to: "whole_right";
94 rel2.to: "whole_right";
97 part { name:"bar_top";
99 description { state:"default" 0.0;
100 rel1 { relative: 0 0; to_x: "elm.bar"; }
101 rel2 { relative: 1 0; to: "elm.bar"; }
103 normal: "00_splitscreen_handler_top.png";
106 description { state: "disabled" 0.0;
107 inherit: "default" 0.0;
112 part { name: "elm.bar";
120 description { state: "default" 0.0;
121 min: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
122 max: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
124 rel1.relative: 0.0 0.5;
125 rel2.relative: 1.0 0.5;
127 normal: "00_splitscreen_handler_middle.png";
129 color: 255 255 255 255;
131 description { state: "default" 0.1;
132 inherit: "default" 0.0;
133 min: PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
134 max: PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
136 description { state: "clicked" 0.0;
137 inherit: "default" 0.0;
138 color: 200 200 200 200;
140 description { state: "clicked" 0.1;
141 inherit: "default" 0.1;
142 color: 200 200 200 200;
144 description { state: "disabled" 0.0;
145 inherit: "default" 0.0;
146 min: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
147 max: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
150 description { state: "disabled" 0.1;
151 inherit: "default" 0.1;
152 min: PANES_STYLE_DEFAULT_FIXED_SIZE_INC PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
153 max: PANES_STYLE_DEFAULT_FIXED_SIZE_INC PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
157 part { name:"bar_bottom";
159 description { state:"default" 0.0;
160 rel1 { relative: 0 1; to: "elm.bar"; }
161 rel2 { relative: 1 1; to_x: "elm.bar"; }
163 normal: "00_splitscreen_handler_bottom.png";
166 description { state: "disabled" 0.0;
167 inherit: "default" 0.0;
171 part { name: "over2";
174 ignore_flags: ON_HOLD;
175 description { state: "default" 0.0;
179 description { state: "disabled" 0.0;
180 inherit: "default" 0.0;
184 part { name: "over3";
187 description { state: "default" 0.0;
188 color: 255 255 255 0;
192 description { state: "clicked" 0.0;
193 inherit: "default" 0.0;
195 color: 255 255 255 255;
198 part { name:"bar_disabled";
200 description { state:"default" 0.0;
201 rel1 { relative: 0 0; to_x: "elm.bar"; }
202 rel2 { relative: 1 1; to_x: "elm.bar"; }
203 color: PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC;
206 description { state: "disabled" 0.0;
207 inherit: "default" 0.0;
217 description { state: "default" 0.0;
218 min: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
219 max: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
220 color: 255 255 255 0;
222 rel1.relative: 1.0 0.5;
223 rel1.to_x: "elm.bar";
224 rel1.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
226 rel2.relative: 1.0 0.5;
227 rel2.to_x: "elm.bar";
228 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
230 image.normal: "arrow_right.png";
234 description { state: "default" 0.1;
235 inherit: "default" 0.0;
236 image.normal: "arrow_left.png";
238 description { state: "anim_1" 0.0;
239 inherit: "default" 0.0;
240 color: 255 255 255 200;
241 rel1.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_FROM_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
242 rel2.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 +PANES_STYLE_DEFAULT_ARROW_SIZE_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
244 description { state: "anim_1" 0.1;
245 inherit: "default" 0.0;
246 image.normal: "arrow_left.png";
247 color: 255 255 255 200;
248 rel1.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_FROM_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
249 rel2.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 +PANES_STYLE_DEFAULT_ARROW_FROM_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
251 description { state: "anim_2" 0.0;
252 inherit: "default" 0.0;
253 color: 255 255 255 0;
254 rel1.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
255 rel2.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
257 description { state: "anim_2" 0.1;
258 inherit: "default" 0.0;
259 image.normal: "arrow_left.png";
260 color: 255 255 255 0;
261 rel1.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
262 rel2.offset: (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
269 description { state: "default" 0.0;
270 min: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
271 max: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
272 color: 255 255 255 0;
274 rel1.relative: 0.0 0.5;
275 rel1.to_x: "elm.bar";
276 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
278 rel2.relative: 0.0 0.5;
279 rel2.to_x: "elm.bar";
280 rel2.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
282 image.normal: "arrow_left.png";
286 description { state: "default" 0.1;
287 inherit: "default" 0.0;
288 image.normal: "arrow_right.png";
290 description { state: "anim_1" 0.0;
291 inherit: "default" 0.0;
292 color: 255 255 255 200;
293 rel1.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
294 rel2.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
296 description { state: "anim_1" 0.1;
297 inherit: "default" 0.0;
298 image.normal: "arrow_right.png";
299 color: 255 255 255 200;
300 rel1.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
301 rel2.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
303 description { state: "anim_2" 0.0;
304 inherit: "default" 0.0;
305 color: 255 255 255 0;
306 rel1.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
307 rel2.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
309 description { state: "anim_2" 0.1;
310 inherit: "default" 0.0;
311 image.normal: "arrow_right.png";
312 color: 255 255 255 0;
313 rel1.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC) -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
314 rel2.offset: (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC) PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
321 signal: "elm.panes.pair";
326 set_int(state_pair, 1);
327 get_state(PART:"elm.bar", st, 30, vl);
328 set_state(PART:"elm.bar", st, 0.1);
332 name: "panes_unpair";
333 signal: "elm.panes.unpair";
338 set_int(state_pair, 0);
339 get_state(PART:"elm.bar", st, 30, vl);
340 set_state(PART:"elm.bar", st, 0.0);
344 name: "button_click";
345 signal: "mouse,down,1";
347 action: SIGNAL_EMIT "elm,action,press" "";
348 after: "button_click_anim";
349 after: "arrow_anim_start";
352 name: "button_click_anim";
354 if(get_int(state_pair) == 1)
355 set_state(PART:"elm.bar", "clicked", 0.1);
357 set_state(PART:"elm.bar", "clicked", 0.0);
361 name: "button_unclick";
362 signal: "mouse,up,1";
364 action: SIGNAL_EMIT "elm,action,unpress" "";
365 after: "button_unclick_anim";
366 after: "arrow_anim_stop";
369 name: "button_unclick_anim";
371 if(get_int(state_pair) == 1)
372 set_state(PART:"elm.bar", "default", 0.1);
374 set_state(PART:"elm.bar", "default", 0.0);
378 name: "button_click2";
379 signal: "mouse,down,1";
381 action: STATE_SET "clicked" 0.0;
385 name: "button_unclick2";
386 signal: "mouse,up,1";
388 action: STATE_SET "default" 0.0;
389 transition: DECELERATE 0.5;
393 name: "button_unclick3";
394 signal: "mouse,up,1";
396 action: SIGNAL_EMIT "elm,action,click" "";
399 name: "button_down_double";
400 signal: "mouse,down,1,double";
402 action: SIGNAL_EMIT "elm,action,click,double" "";
407 name: "arrow_anim_start";
411 get_state(PART:"arrow_left", st, 30, vl);
413 run_program(PROGRAM:"arrow_anim_start_ltr");
416 run_program(PROGRAM:"arrow_anim_start_rtl");
421 name: "arrow_anim_stop";
425 get_state(PART:"arrow_left", st, 30, vl);
427 run_program(PROGRAM:"arrow_anim_stop_ltr");
430 run_program(PROGRAM:"arrow_anim_stop_rtl");
435 name: "arrow_anim_start_ltr";
436 action: STATE_SET "anim_1" 0.0;
437 target: "arrow_right";
438 target: "arrow_left";
439 transition: LINEAR 0.6;
440 after: "arrow_anim_1_ltr";
443 name: "arrow_anim_1_ltr";
444 action: STATE_SET "anim_2" 0.0;
445 target: "arrow_right";
446 target: "arrow_left";
447 transition: LINEAR 0.6;
448 after: "arrow_anim_2_ltr";
451 name: "arrow_anim_2_ltr";
452 action: STATE_SET "default" 0.0;
453 target: "arrow_right";
454 target: "arrow_left";
455 after: "arrow_anim_start_ltr";
458 name: "arrow_anim_stop_ltr";
460 target: "arrow_anim_start_ltr";
461 target: "arrow_anim_1_ltr";
462 target: "arrow_anim_2_ltr";
463 after: "arrow_anim_stop_1_ltr";
466 name: "arrow_anim_stop_1_ltr";
467 action: STATE_SET "default" 0.0;
468 target: "arrow_right";
469 target: "arrow_left";
470 transition: DECELERATE 0.4;
473 name: "arrow_anim_start_rtl";
474 action: STATE_SET "anim_1" 0.1;
475 target: "arrow_right";
476 target: "arrow_left";
477 transition: LINEAR 0.6;
478 after: "arrow_anim_1_rtl";
481 name: "arrow_anim_1_rtl";
482 action: STATE_SET "anim_2" 0.1;
483 target: "arrow_right";
484 target: "arrow_left";
485 transition: LINEAR 0.6;
486 after: "arrow_anim_2_rtl";
489 name: "arrow_anim_2_rtl";
490 action: STATE_SET "default" 0.1;
491 target: "arrow_right";
492 target: "arrow_left";
493 after: "arrow_anim_start_rtl";
496 name: "arrow_anim_stop_rtl";
498 target: "arrow_anim_start_rtl";
499 target: "arrow_anim_1_rtl";
500 target: "arrow_anim_2_rtl";
501 after: "arrow_anim_stop_1_rtl";
504 name: "arrow_anim_stop_1_rtl";
505 action: STATE_SET "default" 0.1;
506 target: "arrow_right";
507 target: "arrow_left";
508 transition: DECELERATE 0.4;
510 program { name: "to_rtl";
511 signal: "edje,state,rtl";
516 get_state(PART:"arrow_left", st, 30, vl);
518 set_state(PART:"arrow_left", st, 0.1);
520 get_state(PART:"arrow_right", st, 30, vl);
522 set_state(PART:"arrow_right", st, 0.1);
526 program { name: "to_ltr";
527 signal: "edje,state,ltr";
532 get_state(PART:"arrow_left", st, 30, vl);
534 set_state(PART:"arrow_left", st, 0.0);
536 get_state(PART:"arrow_right", st, 30, vl);
538 set_state(PART:"arrow_right", st, 0.0);
545 signal: "elm.panes.fixed";
547 action: STATE_SET "disabled" 0.0;
550 target: "bar_bottom";
551 target: "bar_disabled";
553 //allow the movement by interaction
555 name: "panes_unfixed";
556 signal: "elm.panes.unfixed";
558 action: STATE_SET "default" 0.0;
561 target: "bar_bottom";
562 target: "bar_disabled";
568 name: "elm/panes/horizontal/default";
570 image: "arrow_up.png" COMP;
571 image: "arrow_down.png" COMP;
572 image: "00_splitscreen_handler_left_hor.png" COMP;
573 image: "00_splitscreen_handler_middle_hor.png" COMP;
574 image: "00_splitscreen_handler_right_hor.png" COMP;
577 public state_pair = 0; //0:both content are not set, 1:both content are set
588 state: "default" 0.0;
601 state: "default" 0.0;
602 rel2.to_y: "elm.bar";
603 rel2.relative: 1.0 0.0;
609 name: "elm.swallow.left";
611 clip_to: "whole_left";
614 state: "default" 0.0;
615 rel1.to: "whole_left";
616 rel2.to: "whole_left";
627 state: "default" 0.0;
628 rel1.to_y: "elm.bar";
629 rel1.relative: 0.0 1.0;
635 name: "elm.swallow.right";
637 clip_to: "whole_right";
640 state: "default" 0.0;
641 rel1.to: "whole_right";
642 rel2.to: "whole_right";
645 part { name:"bar_left";
647 description { state:"default" 0.0;
648 rel1 { relative: 0 0; to_y: "elm.bar"; }
649 rel2 { relative: 0 1; to: "elm.bar"; }
651 normal: "00_splitscreen_handler_left_hor.png";
654 description { state: "disabled" 0.0;
655 inherit: "default" 0.0;
660 part { name: "elm.bar";
668 description { state: "default" 0.0;
669 max: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
670 min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
671 rel1.relative: 0.5 0.0;
672 rel2.relative: 0.5 1.0;
675 normal: "00_splitscreen_handler_middle_hor.png";
677 color: 255 255 255 255;
679 description { state: "default" 0.1;
680 inherit: "default" 0.0;
681 max: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC;
682 min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC;
684 description { state: "clicked" 0.0;
685 inherit: "default" 0.0;
686 color: 200 200 200 200;
688 description { state: "clicked" 0.1;
689 inherit: "default" 0.1;
690 color: 200 200 200 200;
692 description { state: "disabled" 0.0;
693 inherit: "default" 0.0;
694 min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
695 max: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
698 description { state: "disabled" 0.1;
699 inherit: "default" 0.1;
700 min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC PANES_STYLE_DEFAULT_FIXED_SIZE_INC;
701 max: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC PANES_STYLE_DEFAULT_FIXED_SIZE_INC;
705 part { name:"bar_right";
707 description { state:"default" 0.0;
708 rel1 { relative: 1 0; to: "elm.bar"; }
709 rel2 { relative: 1 1; to_y: "elm.bar"; }
711 normal: "00_splitscreen_handler_right_hor.png";
714 description { state: "disabled" 0.0;
715 inherit: "default" 0.0;
719 part { name: "over2";
722 ignore_flags: ON_HOLD;
723 description { state: "default" 0.0;
727 description { state: "disabled" 0.0;
728 inherit: "default" 0.0;
732 part { name: "over3";
735 description { state: "default" 0.0;
736 color: 255 255 255 0;
740 description { state: "clicked" 0.0;
741 inherit: "default" 0.0;
743 color: 255 255 255 255;
746 part { name:"bar_disabled";
748 description { state:"default" 0.0;
749 rel1 { relative: 0 0; to_y: "elm.bar"; }
750 rel2 { relative: 1 1; to_y: "elm.bar"; }
751 color: PANES_DEFAULT_FIXED_SEPERATOR_NORMAL_COLOR_INC;
754 description { state: "disabled" 0.0;
755 inherit: "default" 0.0;
765 description { state: "default" 0.0;
766 min: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
767 max: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
768 color: 255 255 255 0;
770 rel1.relative: 0.5 1.0;
771 rel1.to_y: "elm.bar";
772 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
774 rel2.relative: 0.5 1.0;
775 rel2.to_y: "elm.bar";
776 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
778 image.normal: "arrow_down.png";
782 description { state: "anim_1" 0.0;
783 inherit: "default" 0.0;
784 color: 255 255 255 200;
785 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 +PANES_STYLE_DEFAULT_ARROW_FROM_INC);
786 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 +PANES_STYLE_DEFAULT_ARROW_FROM_INC);
788 description { state: "anim_2" 0.0;
789 inherit: "default" 0.0;
790 color: 255 255 255 0;
791 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC);
792 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 + PANES_STYLE_DEFAULT_ARROW_TO_INC);
799 description { state: "default" 0.0;
800 min: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
801 max: PANES_STYLE_DEFAULT_ARROW_SIZE_INC PANES_STYLE_DEFAULT_ARROW_SIZE_INC;
802 color: 255 255 255 0;
804 rel1.relative: 0.5 0.0;
805 rel1.to_y: "elm.bar";
806 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
808 rel2.relative: 0.5 0.0;
809 rel2.to_y: "elm.bar";
810 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2;
812 image.normal: "arrow_up.png";
816 description { state: "anim_1" 0.0;
817 inherit: "default" 0.0;
818 color: 255 255 255 200;
819 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC);
820 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_FROM_INC);
822 description { state: "anim_2" 0.0;
823 inherit: "default" 0.0;
824 color: 255 255 255 0;
825 rel1.offset: -PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC);
826 rel2.offset: PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 (-PANES_STYLE_DEFAULT_ARROW_SIZE_INC/2 - PANES_STYLE_DEFAULT_ARROW_TO_INC);
833 signal: "elm.panes.pair";
838 set_int(state_pair, 1);
839 get_state(PART:"elm.bar", st, 30, vl);
840 set_state(PART:"elm.bar", st, 0.1);
844 name: "panes_unpair";
845 signal: "elm.panes.unpair";
850 set_int(state_pair, 0);
851 get_state(PART:"elm.bar", st, 30, vl);
852 set_state(PART:"elm.bar", st, 0.0);
856 name: "button_click";
857 signal: "mouse,down,1";
859 action: SIGNAL_EMIT "elm,action,press" "";
860 after: "button_click_anim";
861 after: "arrow_anim_start";
864 name: "button_click_anim";
866 if(get_int(state_pair) == 1)
867 set_state(PART:"elm.bar", "clicked", 0.1);
869 set_state(PART:"elm.bar", "clicked", 0.0);
873 name: "button_unclick";
874 signal: "mouse,up,1";
876 action: SIGNAL_EMIT "elm,action,unpress" "";
877 after: "button_unclick_anim";
878 after: "arrow_anim_stop";
881 name: "button_unclick_anim";
883 if(get_int(state_pair) == 1)
884 set_state(PART:"elm.bar", "default", 0.1);
886 set_state(PART:"elm.bar", "default", 0.0);
890 name: "button_click2";
891 signal: "mouse,down,1";
893 action: STATE_SET "clicked" 0.0;
897 name: "button_unclick2";
898 signal: "mouse,up,1";
900 action: STATE_SET "default" 0.0;
901 transition: DECELERATE 0.5;
905 name: "button_unclick3";
906 signal: "mouse,up,1";
908 action: SIGNAL_EMIT "elm,action,click" "";
911 name: "button_down_double";
912 signal: "mouse,down,1,double";
914 action: SIGNAL_EMIT "elm,action,click,double" "";
919 name: "arrow_anim_start";
920 action: STATE_SET "anim_1" 0.0;
921 target: "arrow_right";
922 target: "arrow_left";
923 transition: LINEAR 0.6;
924 after: "arrow_anim_1";
927 name: "arrow_anim_1";
928 action: STATE_SET "anim_2" 0.0;
929 target: "arrow_right";
930 target: "arrow_left";
931 transition: LINEAR 0.6;
932 after: "arrow_anim_2";
935 name: "arrow_anim_2";
936 action: STATE_SET "default" 0.0;
937 target: "arrow_right";
938 target: "arrow_left";
939 after: "arrow_anim_start";
942 name: "arrow_anim_stop";
944 target: "arrow_anim_start";
945 target: "arrow_anim_1";
946 target: "arrow_anim_2";
947 after: "arrow_anim_stop_1";
950 name: "arrow_anim_stop_1";
951 action: STATE_SET "default" 0.0;
952 target: "arrow_right";
953 target: "arrow_left";
954 transition: DECELERATE 0.4;
959 signal: "elm.panes.fixed";
961 action: STATE_SET "disabled" 0.0;
965 target: "bar_disabled";
967 //allow the movement by interaction
969 name: "panes_unfixed";
970 signal: "elm.panes.unfixed";
972 action: STATE_SET "default" 0.0;
976 target: "bar_disabled";
981 //Vertical Panes style to be used by music application
983 name: "elm/panes/vertical/music";
985 image: "arrow_right.png" COMP;
986 image: "arrow_left.png" COMP;
987 image: "00_splitscreen_handler_top.png" COMP;
988 image: "00_splitscreen_handler_middle.png" COMP;
989 image: "00_splitscreen_handler_bottom.png" COMP;
990 image: "00_splitscreen_pain_music.png" COMP;
993 public state_pair = 0; //0:both content are not set, 1:both content are set
1004 state: "default" 0.0;
1017 state: "default" 0.0;
1018 rel2.to_x: "elm.bar";
1019 rel2.relative: 0.0 1.0;
1025 name: "elm.swallow.left";
1027 clip_to: "whole_left";
1030 state: "default" 0.0;
1031 rel1.to: "whole_left";
1032 rel2.to: "whole_left";
1038 name: "whole_right";
1043 state: "default" 0.0;
1044 rel1.to_x: "elm.bar";
1045 rel1.relative: 1.0 0.0;
1051 name: "elm.swallow.right";
1053 clip_to: "whole_right";
1056 state: "default" 0.0;
1057 rel1.to: "whole_right";
1058 rel2.to: "whole_right";
1061 part { name:"bar_top";
1063 description { state:"default" 0.0;
1064 rel1 { relative: 0 0; to_x: "elm.bar"; }
1065 rel2 { relative: 1 0; to: "elm.bar"; }
1067 normal: "00_splitscreen_handler_top.png";
1070 description { state: "disabled" 0.0;
1071 inherit: "default" 0.0;
1076 part { name: "elm.bar";
1084 description { state: "default" 0.0;
1088 rel1.relative: 0.0 0.5;
1089 rel2.relative: 1.0 0.5;
1091 normal: "00_splitscreen_handler_middle.png";
1093 color: 255 255 255 255;
1095 description { state: "default" 0.1;
1096 inherit: "default" 0.0;
1100 description { state: "clicked" 0.0;
1101 inherit: "default" 0.0;
1102 color: 200 200 200 200;
1104 description { state: "clicked" 0.1;
1105 inherit: "default" 0.1;
1106 color: 200 200 200 200;
1108 description { state: "disabled" 0.0;
1109 inherit: "default" 0.0;
1114 description { state: "disabled" 0.1;
1115 inherit: "default" 0.1;
1121 part { name:"bar_bottom";
1123 description { state:"default" 0.0;
1124 rel1 { relative: 0 1; to: "elm.bar"; }
1125 rel2 { relative: 1 1; to_x: "elm.bar"; }
1127 normal: "00_splitscreen_handler_bottom.png";
1130 description { state: "disabled" 0.0;
1131 inherit: "default" 0.0;
1135 part { name: "over2";
1138 ignore_flags: ON_HOLD;
1139 description { state: "default" 0.0;
1143 description { state: "disabled" 0.0;
1144 inherit: "default" 0.0;
1148 part { name: "over3";
1151 description { state: "default" 0.0;
1152 color: 255 255 255 0;
1156 description { state: "clicked" 0.0;
1157 inherit: "default" 0.0;
1159 color: 255 255 255 255;
1162 part { name:"bar_disabled";
1163 description { state:"default" 0.0;
1164 rel1 { relative: 0 0; to_x: "elm.bar"; }
1165 rel2 { relative: 1 1; to_x: "elm.bar"; }
1167 normal: "00_splitscreen_pain_music.png";
1171 description { state: "disabled" 0.0;
1172 inherit: "default" 0.0;
1179 name: "arrow_right";
1182 description { state: "default" 0.0;
1185 color: 255 255 255 0;
1187 rel1.relative: 1.0 0.5;
1188 rel1.to_x: "elm.bar";
1189 rel1.offset: 45/2 -45/2;
1191 rel2.relative: 1.0 0.5;
1192 rel2.to_x: "elm.bar";
1193 rel2.offset: 45/2 45/2;
1195 image.normal: "arrow_right.png";
1199 description { state: "anim_1" 0.0;
1200 inherit: "default" 0.0;
1201 color: 255 255 255 200;
1202 rel1.offset: (45/2 + 10) -45/2;
1203 rel2.offset: (45/2 +10) 45/2;
1205 description { state: "anim_2" 0.0;
1206 inherit: "default" 0.0;
1207 color: 255 255 255 0;
1208 rel1.offset: (45/2 + 20) -45/2;
1209 rel2.offset: (45/2 + 20) 45/2;
1216 description { state: "default" 0.0;
1219 color: 255 255 255 0;
1221 rel1.relative: 0.0 0.5;
1222 rel1.to_x: "elm.bar";
1223 rel1.offset: -45/2 -45/2;
1225 rel2.relative: 0.0 0.5;
1226 rel2.to_x: "elm.bar";
1227 rel2.offset: -45/2 45/2;
1229 image.normal: "arrow_left.png";
1233 description { state: "anim_1" 0.0;
1234 inherit: "default" 0.0;
1235 color: 255 255 255 200;
1236 rel1.offset: (-45/2 - 10) -45/2;
1237 rel2.offset: (-45/2 - 10) 45/2;
1239 description { state: "anim_2" 0.0;
1240 inherit: "default" 0.0;
1241 color: 255 255 255 0;
1242 rel1.offset: (-45/2 - 20) -45/2;
1243 rel2.offset: (-45/2 - 20) 45/2;
1250 signal: "elm.panes.pair";
1255 set_int(state_pair, 1);
1256 get_state(PART:"elm.bar", st, 30, vl);
1257 set_state(PART:"elm.bar", st, 0.1);
1261 name: "panes_unpair";
1262 signal: "elm.panes.unpair";
1267 set_int(state_pair, 0);
1268 get_state(PART:"elm.bar", st, 30, vl);
1269 set_state(PART:"elm.bar", st, 0.0);
1273 name: "button_click";
1274 signal: "mouse,down,1";
1276 action: SIGNAL_EMIT "elm,action,press" "";
1277 after: "button_click_anim";
1278 after: "arrow_anim_start";
1281 name: "button_click_anim";
1283 if(get_int(state_pair) == 1)
1284 set_state(PART:"elm.bar", "clicked", 0.1);
1286 set_state(PART:"elm.bar", "clicked", 0.0);
1290 name: "button_unclick";
1291 signal: "mouse,up,1";
1293 action: SIGNAL_EMIT "elm,action,unpress" "";
1294 after: "button_unclick_anim";
1295 after: "arrow_anim_stop";
1298 name: "button_unclick_anim";
1300 if(get_int(state_pair) == 1)
1301 set_state(PART:"elm.bar", "default", 0.1);
1303 set_state(PART:"elm.bar", "default", 0.0);
1307 name: "button_click2";
1308 signal: "mouse,down,1";
1310 action: STATE_SET "clicked" 0.0;
1314 name: "button_unclick2";
1315 signal: "mouse,up,1";
1317 action: STATE_SET "default" 0.0;
1318 transition: DECELERATE 0.5;
1322 name: "button_unclick3";
1323 signal: "mouse,up,1";
1325 action: SIGNAL_EMIT "elm,action,click" "";
1328 name: "button_down_double";
1329 signal: "mouse,down,1,double";
1331 action: SIGNAL_EMIT "elm,action,click,double" "";
1336 name: "arrow_anim_start";
1337 action: STATE_SET "anim_1" 0.0;
1338 target: "arrow_right";
1339 target: "arrow_left";
1340 transition: LINEAR 0.6;
1341 after: "arrow_anim_1";
1344 name: "arrow_anim_1";
1345 action: STATE_SET "anim_2" 0.0;
1346 target: "arrow_right";
1347 target: "arrow_left";
1348 transition: LINEAR 0.6;
1349 after: "arrow_anim_2";
1352 name: "arrow_anim_2";
1353 action: STATE_SET "default" 0.0;
1354 target: "arrow_right";
1355 target: "arrow_left";
1356 after: "arrow_anim_start";
1359 name: "arrow_anim_stop";
1360 action: ACTION_STOP;
1361 target: "arrow_anim_start";
1362 target: "arrow_anim_1";
1363 target: "arrow_anim_2";
1364 after: "arrow_anim_stop_1";
1367 name: "arrow_anim_stop_1";
1368 action: STATE_SET "default" 0.0;
1369 target: "arrow_right";
1370 target: "arrow_left";
1371 transition: DECELERATE 0.4;
1375 name: "panes_fixed";
1376 signal: "elm.panes.fixed";
1378 action: STATE_SET "disabled" 0.0;
1381 target: "bar_bottom";
1382 target: "bar_disabled";
1384 //allow the movement by interaction
1386 name: "panes_unfixed";
1387 signal: "elm.panes.unfixed";
1389 action: STATE_SET "default" 0.0;
1392 target: "bar_bottom";
1393 target: "bar_disabled";
1398 //Horizontal Panes style to be used by music application
1400 name: "elm/panes/horizontal/music";
1402 image: "arrow_up.png" COMP;
1403 image: "arrow_down.png" COMP;
1404 image: "00_splitscreen_handler_left_hor.png" COMP;
1405 image: "00_splitscreen_handler_middle_hor.png" COMP;
1406 image: "00_splitscreen_handler_right_hor.png" COMP;
1407 image: "00_splitscreen_pain_hor.png" COMP;
1410 public state_pair = 0; //0:both content are not set, 1:both content are set
1421 state: "default" 0.0;
1434 state: "default" 0.0;
1435 rel2.to_y: "elm.bar";
1436 rel2.relative: 1.0 0.0;
1442 name: "elm.swallow.left";
1444 clip_to: "whole_left";
1447 state: "default" 0.0;
1448 rel1.to: "whole_left";
1449 rel2.to: "whole_left";
1455 name: "whole_right";
1460 state: "default" 0.0;
1461 rel1.to_y: "elm.bar";
1462 rel1.relative: 0.0 1.0;
1468 name: "elm.swallow.right";
1470 clip_to: "whole_right";
1473 state: "default" 0.0;
1474 rel1.to: "whole_right";
1475 rel2.to: "whole_right";
1478 part { name:"bar_left";
1480 description { state:"default" 0.0;
1481 rel1 { relative: 0 0; to_y: "elm.bar"; }
1482 rel2 { relative: 0 1; to: "elm.bar"; }
1484 normal: "00_splitscreen_handler_left_hor.png";
1487 description { state: "disabled" 0.0;
1488 inherit: "default" 0.0;
1493 part { name: "elm.bar";
1501 description { state: "default" 0.0;
1504 rel1.relative: 0.5 0.0;
1505 rel2.relative: 0.5 1.0;
1508 normal: "00_splitscreen_handler_middle_hor.png";
1510 color: 255 255 255 255;
1512 description { state: "default" 0.1;
1513 inherit: "default" 0.0;
1517 description { state: "clicked" 0.0;
1518 inherit: "default" 0.0;
1519 color: 200 200 200 200;
1521 description { state: "clicked" 0.1;
1522 inherit: "default" 0.1;
1523 color: 200 200 200 200;
1525 description { state: "disabled" 0.0;
1526 inherit: "default" 0.0;
1531 description { state: "disabled" 0.1;
1532 inherit: "default" 0.1;
1538 part { name:"bar_right";
1540 description { state:"default" 0.0;
1541 rel1 { relative: 1 0; to: "elm.bar"; }
1542 rel2 { relative: 1 1; to_y: "elm.bar"; }
1544 normal: "00_splitscreen_handler_right_hor.png";
1547 description { state: "disabled" 0.0;
1548 inherit: "default" 0.0;
1552 part { name: "over2";
1555 ignore_flags: ON_HOLD;
1556 description { state: "default" 0.0;
1560 description { state: "disabled" 0.0;
1561 inherit: "default" 0.0;
1565 part { name: "over3";
1568 description { state: "default" 0.0;
1569 color: 255 255 255 0;
1573 description { state: "clicked" 0.0;
1574 inherit: "default" 0.0;
1576 color: 255 255 255 255;
1579 part { name:"bar_disabled";
1580 description { state:"default" 0.0;
1581 rel1 { relative: 0 0; to_y: "elm.bar"; }
1582 rel2 { relative: 1 1; to_y: "elm.bar"; }
1584 normal: "00_splitscreen_pain_hor.png";
1588 description { state: "disabled" 0.0;
1589 inherit: "default" 0.0;
1596 name: "arrow_right";
1599 description { state: "default" 0.0;
1602 color: 255 255 255 0;
1604 rel1.relative: 0.5 1.0;
1605 rel1.to_y: "elm.bar";
1606 rel1.offset: -45/2 45/2;
1608 rel2.relative: 0.5 1.0;
1609 rel2.to_y: "elm.bar";
1610 rel2.offset: 45/2 45/2;
1612 image.normal: "arrow_down.png";
1616 description { state: "anim_1" 0.0;
1617 inherit: "default" 0.0;
1618 color: 255 255 255 200;
1619 rel1.offset: -45/2 (45/2 +10);
1620 rel2.offset: 45/2 (45/2 +10);
1622 description { state: "anim_2" 0.0;
1623 inherit: "default" 0.0;
1624 color: 255 255 255 0;
1625 rel1.offset: -45/2 (45/2 + 20);
1626 rel2.offset: 45/2 (45/2 + 20);
1633 description { state: "default" 0.0;
1636 color: 255 255 255 0;
1638 rel1.relative: 0.5 0.0;
1639 rel1.to_y: "elm.bar";
1640 rel1.offset: -45/2 -45/2;
1642 rel2.relative: 0.5 0.0;
1643 rel2.to_y: "elm.bar";
1644 rel2.offset: 45/2 -45/2;
1646 image.normal: "arrow_up.png";
1650 description { state: "anim_1" 0.0;
1651 inherit: "default" 0.0;
1652 color: 255 255 255 200;
1653 rel1.offset: -45/2 (-45/2 - 10);
1654 rel2.offset: 45/2 (-45/2 - 10);
1656 description { state: "anim_2" 0.0;
1657 inherit: "default" 0.0;
1658 color: 255 255 255 0;
1659 rel1.offset: -45/2 (-45/2 - 20);
1660 rel2.offset: 45/2 (-45/2 - 20);
1667 signal: "elm.panes.pair";
1672 set_int(state_pair, 1);
1673 get_state(PART:"elm.bar", st, 30, vl);
1674 set_state(PART:"elm.bar", st, 0.1);
1678 name: "panes_unpair";
1679 signal: "elm.panes.unpair";
1684 set_int(state_pair, 0);
1685 get_state(PART:"elm.bar", st, 30, vl);
1686 set_state(PART:"elm.bar", st, 0.0);
1690 name: "button_click";
1691 signal: "mouse,down,1";
1693 action: SIGNAL_EMIT "elm,action,press" "";
1694 after: "button_click_anim";
1695 after: "arrow_anim_start";
1698 name: "button_click_anim";
1700 if(get_int(state_pair) == 1)
1701 set_state(PART:"elm.bar", "clicked", 0.1);
1703 set_state(PART:"elm.bar", "clicked", 0.0);
1707 name: "button_unclick";
1708 signal: "mouse,up,1";
1710 action: SIGNAL_EMIT "elm,action,unpress" "";
1711 after: "button_unclick_anim";
1712 after: "arrow_anim_stop";
1715 name: "button_unclick_anim";
1717 if(get_int(state_pair) == 1)
1718 set_state(PART:"elm.bar", "default", 0.1);
1720 set_state(PART:"elm.bar", "default", 0.0);
1724 name: "button_click2";
1725 signal: "mouse,down,1";
1727 action: STATE_SET "clicked" 0.0;
1731 name: "button_unclick2";
1732 signal: "mouse,up,1";
1734 action: STATE_SET "default" 0.0;
1735 transition: DECELERATE 0.5;
1739 name: "button_unclick3";
1740 signal: "mouse,up,1";
1742 action: SIGNAL_EMIT "elm,action,click" "";
1745 name: "button_down_double";
1746 signal: "mouse,down,1,double";
1748 action: SIGNAL_EMIT "elm,action,click,double" "";
1753 name: "arrow_anim_start";
1754 action: STATE_SET "anim_1" 0.0;
1755 target: "arrow_right";
1756 target: "arrow_left";
1757 transition: LINEAR 0.6;
1758 after: "arrow_anim_1";
1761 name: "arrow_anim_1";
1762 action: STATE_SET "anim_2" 0.0;
1763 target: "arrow_right";
1764 target: "arrow_left";
1765 transition: LINEAR 0.6;
1766 after: "arrow_anim_2";
1769 name: "arrow_anim_2";
1770 action: STATE_SET "default" 0.0;
1771 target: "arrow_right";
1772 target: "arrow_left";
1773 after: "arrow_anim_start";
1776 name: "arrow_anim_stop";
1777 action: ACTION_STOP;
1778 target: "arrow_anim_start";
1779 target: "arrow_anim_1";
1780 target: "arrow_anim_2";
1781 after: "arrow_anim_stop_1";
1784 name: "arrow_anim_stop_1";
1785 action: STATE_SET "default" 0.0;
1786 target: "arrow_right";
1787 target: "arrow_left";
1788 transition: DECELERATE 0.4;
1792 name: "panes_fixed";
1793 signal: "elm.panes.fixed";
1795 action: STATE_SET "disabled" 0.0;
1798 target: "bar_right";
1799 target: "bar_disabled";
1801 //allow the movement by interaction
1803 name: "panes_unfixed";
1804 signal: "elm.panes.unfixed";
1806 action: STATE_SET "default" 0.0;
1809 target: "bar_right";
1810 target: "bar_disabled";