2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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
8 * http://floralicense.org/license/
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.
17 #include "../../inc/conf.h"
21 image: "../images/btn_delete_nor.png" COMP;
22 image: "../images/edit_all_page_create.png" COMP;
23 image: "../images/frame.png" COMP;
24 image: "../images/resize_button.png" COMP;
29 ///@todo it would rather be named livebox_scroller_page
30 name: "livebox_container";
34 //background fills the whole page in pagescroller
42 relative: 0.0 CONTENT_Y_MIN;
45 relative: 1.0 CONTENT_Y_MAX;
61 relative: 0.0 0.0; to: "content";
65 relative: 1.0 1.0; to: "content";
84 rel1 {relative: 0.0 0.0; to: "content";}
85 rel2 {relative: 1.0 1.0; to: "content";}
91 inherit: "default" 0.0;
97 name : "add_page_button";
101 state: "default" 0.0;
102 rel1 {relative: LIVEBOX_ADD_PAGE_BUTTON_X_MIN LIVEBOX_ADD_PAGE_BUTTON_Y_MIN; to: "edit_dim";}
103 rel2 {relative: LIVEBOX_ADD_PAGE_BUTTON_X_MAX LIVEBOX_ADD_PAGE_BUTTON_Y_MAX; to: "edit_dim";}
105 normal: "../images/edit_all_page_create.png";
107 aspect_preference: BOTH;
112 inherit: "default" 0.0;
118 //content is smaller than the background and positioned in the center
123 state: "default" 0.0;
124 rel1 { relative: LIVEBOX_X_MIN 0.0; to: "bg";}
125 rel2 { relative: LIVEBOX_X_MAX 1.0; to: "bg";}
130 rel1 {relative: LIVEBOX_EDIT_X_MIN LIVEBOX_EDIT_Y_MIN; to: "bg";}
131 rel2 {relative: LIVEBOX_EDIT_X_MAX LIVEBOX_EDIT_Y_MAX; to: "bg";}
136 name: "remove_button";
141 state: "default" 0.0;
142 rel1{relative: 0.0 0.0; to: "content";}
143 rel2{relative: 1.0 1.0; to: "content";}
144 color: 255 255 255 255;
148 min: LIVEBOX_REMOVE_BUTTON_SIZE LIVEBOX_REMOVE_BUTTON_SIZE;
149 max: LIVEBOX_REMOVE_BUTTON_SIZE LIVEBOX_REMOVE_BUTTON_SIZE;
150 aspect_preference: BOTH;
153 normal: "../images/btn_delete_nor.png";
158 inherit: "default" 0.0;
163 // =================================================================================
166 name: "slider.vertical";
172 state: "default" 0.0;
176 relative: 0.0 -0.025;
183 to_x: "button.right";
187 min: LIVEBOX_SLIDER_BUTTON_SIZE 0;
188 max: LIVEBOX_SLIDER_BUTTON_SIZE -1;
200 confine: "slider.vertical";
206 state: "default" 0.0;
210 min: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
214 normal: "../images/resize_button.png";
219 state: "button,warning" 0.0;
240 confine: "slider.vertical";
247 state: "default" 0.0;
251 min: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
255 normal: "../images/resize_button.png";
260 state: "button,warning" 0.0;
274 name: "slider.horizontal";
281 state: "default" 0.0;
286 relative: -0.025 0.0;
297 min: 0 LIVEBOX_SLIDER_BUTTON_SIZE;
298 max: -1 LIVEBOX_SLIDER_BUTTON_SIZE;
303 name: "button.right";
311 confine: "slider.horizontal";
318 state: "default" 0.0;
321 min: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
322 max: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
336 normal: "../images/resize_button.png";
341 state: "button,warning" 0.0;
362 confine: "slider.horizontal";
369 state: "default" 0.0;
372 min: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
373 max: LIVEBOX_SLIDER_BUTTON_SIZE LIVEBOX_SLIDER_BUTTON_SIZE;
388 normal: "../images/resize_button.png";
393 state: "button,warning" 0.0;
406 name: "event_blocker";
411 state: "default" 0.0;
415 rel1 { relative: 0.0 0.0; to: "content";}
416 rel2 { relative: 1.0 1.0; to: "content";}
420 inherit: "default" 0.0;
431 state: "default" 0.0;
434 relative: LIVEBOX_RESIZE_FRAME_REL_1 LIVEBOX_RESIZE_FRAME_REL_1;
440 relative: LIVEBOX_RESIZE_FRAME_REL_2 LIVEBOX_RESIZE_FRAME_REL_2;
441 to_x: "button.right";
445 normal: "../images/frame.png";
453 inherit: "default" 0.0;
457 state: "button,warning";
458 inherit: "default" 0.0;
463 // ===========================================================================
467 name: "remove_button_show";
468 signal: "remove_button,show";
470 action: STATE_SET "show" 0.0;
471 target: "remove_button";
472 transition: DECELERATE 0.20;
475 name: "event_blocker_show";
476 action: STATE_SET "show" 0.0;
477 target: "event_blocker";
481 name: "remove_button_hide";
482 signal: "remove_button,hide";
484 action: STATE_SET "default" 0.0;
485 target: "remove_button";
486 transition: DECELERATE 0.20;
489 name: "remove_button_hide_instant";
490 signal: "remove_button,hide,instant";
492 action: STATE_SET "default" 0.0;
493 target: "remove_button";
494 after: "event_blocker_hide";
497 name: "event_blocker_hide";
498 action: STATE_SET "default" 0.0;
499 target: "event_blocker";
503 name: "remove_button_clicked";
504 signal: "mouse,clicked,1";
505 source: "remove_button";
506 action: SIGNAL_EMIT "remove_button,clicked" "layout";
509 // =========================================================================
512 name: "drag,outside";
513 signal: "drag,outside";
515 action: STATE_SET "button,warning" 0.0;
516 target: "button.left";
517 target: "button.right";
519 target: "button.down";
527 action: STATE_SET "default" 0.0;
528 target: "button.left";
529 target: "button.right";
531 target: "button.down";
537 name: "sliders,hide";
538 signal: "sliders,hide";
540 action: STATE_SET "hidden" 0.0;
541 target: "button.left";
542 target: "button.right";
544 target: "button.down";
550 name: "sliders,show";
551 signal: "sliders,show";
553 action: STATE_SET "default" 0.0;
554 target: "button.left";
555 target: "button.right";
557 target: "button.down";
560 // ==================================================================================================
565 signal: SIGNAL_GRID_SHADOW_HIDE;
566 source: PART_GRID_BG;
567 action: STATE_SET "hidden" 0.0;
574 signal: SIGNAL_GRID_SHADOW_SHOW;
575 source: PART_GRID_BG;
576 action: STATE_SET "default" 0.0;
581 // ==================================================================================================
585 signal: "edit,start";
587 action: STATE_SET "edit" 0.0;
595 action: STATE_SET "default" 0.0;
603 action: STATE_SET "visible" 0.0;
604 target: "add_page_button";
610 action: STATE_SET "default" 0.0;
611 target: "add_page_button";
615 name: "add_page_clicked";
616 signal: "mouse,clicked,1";
617 source: "add_page_button";
618 action: SIGNAL_EMIT "add_page_button_clicked" "layout";