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"
20 image: "../images/home_button_bg.png" COMP;
21 image: "../images/home_icon_home.png" COMP;
22 image: "../images/home_icon_menu.png" COMP;
23 image: "../images/all_apps_icon_menu.png" COMP;
24 image: "../images/home_icon_reorder.png" COMP;
37 rel1.relative: 0.0 0.0;
38 rel2.relative: 1.0 1.0;
40 * This is temporary fix due to strange elm_box bechaviour in the index swallow.
41 * Box has dynamic size which affects whole layout.
55 rel1.relative: 0.0 0.0/*HOME_WGT_MIN_Y*/;
56 rel2.relative: 1.0 1.0/*HOME_WGT_MAX_Y*/;
60 /*======================CHOOSER CAPTION=========================*/
62 name: "chooser_caption";
67 rel1.relative: 0.0 HOME_CHOOSER_CAPTION_Y_MIN;
68 rel2.relative: 1.0 HOME_CHOOSER_CAPTION_Y_MAX;
72 name: PART_CHOOSER_CAPTION_MIDDLE_LABEL;
79 color: 255 255 255 255;
89 to: "chooser_caption";
94 to: "chooser_caption";
98 state: "chooser_activated" 0.0;
99 inherit: "default" 0.0;
104 name: PART_CHOOSER_CAPTION_LEFT_LABEL;
109 color: 255 255 255 255;
110 state: "default" 0.0;
121 to: "chooser_caption";
126 to: "chooser_caption";
130 state: "chooser_activated" 0.0;
131 inherit: "default" 0.0;
136 name: "chooser_caption_left_clickable_space";
142 state: "default" 0.0;
147 to: "chooser_caption_left_label";
152 to: "chooser_caption_left_label";
157 state: "chooser_activated" 0.0;
158 inherit: "default" 0.0;
163 name: PART_CHOOSER_CAPTION_RIGHT_LABEL;
168 state: "default" 0.0;
170 color: 255 255 255 255;
173 align: (1.0 - 0.25) 0.90;
180 to: "chooser_caption";
185 to: "chooser_caption";
189 state: "chooser_activated" 0.0;
190 inherit: "default" 0.0;
195 name: "chooser_caption_right_clickable_space";
201 state: "default" 0.0;
206 to: "chooser_caption_right_label";
211 to: "chooser_caption_right_label";
216 state: "chooser_activated" 0.0;
217 inherit: "default" 0.0;
222 /*==================== BUTTON : MENU IMPLEMENATION ===============*/
228 state: "default" 0.0;
229 rel1.relative: HOME_MENU_BTN_X_MIN HOME_BTNS_Y_MIN;
230 rel2.relative: HOME_MENU_BTN_X_MAX HOME_BTNS_Y_MAX;
238 state: "default" 0.0;
239 rel1 { relative: 0.0 0.0; to: "menu_btn"; }
240 rel2 { relative: 1.0 1.0; to: "menu_btn"; }
244 normal: "../images/home_button_bg.png";
249 inherit: "default" 0.0;
250 color: 255 255 255 40;
253 state: "chooser_activated" 0.0;
258 state: "all_apps_view_state" 0.0;
259 inherit: "default" 0.0;
263 state: "home_view_state" 0.0;
264 inherit: "default" 0.0;
268 state: "all_apps_edit_state" 0.0;
269 inherit: "default" 0.0;
274 name: "home_view_menu_icon";
281 state: "default" 0.0;
282 rel1 { relative: 0.27 0.1; to: "menu_btn"; }
283 rel2 { relative: 0.73 0.9; to: "menu_btn"; }
284 color: 255 255 255 255;
288 normal: "../images/home_icon_menu.png";
293 state: "all_apps_view_state" 0.0;
294 inherit: "default" 0.0;
295 color: 255 255 255 0;
299 state: "home_view_state" 0.0;
300 inherit: "default" 0.0;
304 state: "all_apps_edit_state" 0.0;
305 inherit: "all_apps_view_state" 0.0;
311 name: "all_apps_view_menu_icon";
318 state: "default" 0.0;
319 rel1 { relative: 0.27 0.1; to: "menu_btn"; }
320 rel2 { relative: 0.73 0.9; to: "menu_btn"; }
321 color: 255 255 255 0;
325 normal: "../images/all_apps_icon_menu.png";
330 state: "chooser_activated" 0.0;
335 state: "all_apps_view_state" 0.0;
336 inherit: "default" 0.0;
337 color: 255 255 255 255;
341 state: "home_view_state" 0.0;
342 inherit: "default" 0.0;
346 state: "all_apps_edit_state" 0.0;
347 inherit: "all_apps_view_state" 0.0;
352 /*==================== BUTTON : HOME ICON IMPLEMENTATION ===============*/
358 state: "default" 0.0;
359 rel1.relative: HOME_HOME_BTN_X_MIN HOME_BTNS_Y_MIN;
360 rel2.relative: HOME_HOME_BTN_X_MAX HOME_BTNS_Y_MAX;
368 state: "default" 0.0;
369 rel1 { relative: 0.0 0.0; to: "home"; }
370 rel2 { relative: 1.0 1.0; to: "home"; }
374 normal: "../images/home_button_bg.png";
379 inherit: "default" 0.0;
380 color: 255 255 255 40;
383 state: "chooser_activated" 0.0;
388 state: "all_apps_view_state" 0.0;
389 inherit: "default" 0.0;
393 state: "home_view_state" 0.0;
394 inherit: "default" 0.0;
398 state: "all_apps_edit_state" 0.0;
399 inherit: "default" 0.0;
405 name: "home_view_home_icon";
412 state: "default" 0.0;
413 rel1 { relative: 0.27 0.1; to: "home"; }
414 rel2 { relative: 0.73 0.9; to: "home"; }
415 color: 255 255 255 255;
419 normal: "../images/home_icon_reorder.png";
424 state: "chooser_activated" 0.0;
429 state: "all_apps_view_state" 0.0;
430 inherit: "default" 0.0;
431 color: 255 255 255 0;
435 state: "home_view_state" 0.0;
436 inherit: "default" 0.0;
440 state: "all_apps_edit_state" 0.0;
441 inherit: "all_apps_view_state" 0.0;
448 name: "all_apps_view_home_icon";
455 state: "default" 0.0;
456 rel1 { relative: 0.27 0.1; to: "home"; }
457 rel2 { relative: 0.73 0.9; to: "home"; }
458 color: 255 255 255 0;
462 normal: "../images/home_icon_home.png";
467 state: "chooser_activated" 0.0;
472 state: "all_apps_view_state" 0.0;
473 inherit: "default" 0.0;
474 color: 255 255 255 255;
478 state: "home_view_state" 0.0;
479 inherit: "default" 0.0;
480 color: 255 255 255 0;
484 state: "all_apps_edit_state" 0.0;
485 inherit: "all_apps_view_state" 0.0;
490 /*==================== DYNAMIC INDEX: ===============*/
496 state: "default" 0.0;
497 rel1.relative: HOME_PG_INDEX_X_MIN HOME_BTNS_Y_MIN;
498 rel2.relative: HOME_PG_INDEX_X_MAX HOME_BTNS_Y_MAX;
502 name: PART_NEXT_PAGE_INDICE;
506 state: "default" 0.0;
507 color: 20 20 100 100;
508 rel1.relative: INDICE_NEXT_PAGE_X_MIN HOME_WGT_MIN_Y;
509 rel2.relative: INDICE_NEXT_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
513 state: "visible" 0.0;
514 inherit: "default" 0.0;
519 name: PART_PREV_PAGE_INDICE;
523 state: "default" 0.0;
524 color: 20 20 100 100;
525 rel1.relative: INDICE_PREV_PAGE_X_MIN HOME_WGT_MIN_Y;
526 rel2.relative: INDICE_PREV_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
530 state: "visible" 0.0;
531 inherit: "default" 0.0;
536 name: PART_EVENT_BLOCKER;
541 state: "default" 0.0;
543 rel1 {relative: 0.0 0.0; to: "bg_spacer";}
544 rel2 {relative: 1.0 1.0; to: "bg_spacer";}
548 state: "blocked" 0.0;
549 inherit: "default" 0.0;
554 /*============== PROGRAMS TO OPERATE ON bottom buttons =============*/
557 name: "menu_btn_down";
558 signal: "mouse,down,1";
559 source: "menu_btn_bg";
560 action: STATE_SET "press" 0.0;
561 target: "menu_btn_bg";
562 transition: DECELERATE 0.1;
566 signal: "mouse,up,1";
567 source: "menu_btn_bg";
568 action: STATE_SET "default" 0.0;
569 target: "menu_btn_bg";
570 transition: DECELERATE 0.1;
573 name: "menu_btn_click";
574 signal: "mouse,clicked,1";
575 source: "menu_btn_bg";
576 action: SIGNAL_EMIT SIGNAL_MENU_BTN_CLICKED SIGNAL_SOURCE;
579 name: "home_btn_down";
580 signal: "mouse,down,1";
581 source: "home_btn_bg";
582 action: STATE_SET "press" 0.0;
583 target: "home_btn_bg";
584 transition: DECELERATE 0.1;
588 signal: "mouse,up,1";
589 source: "home_btn_bg";
590 action: STATE_SET "default" 0.0;
591 target: "home_btn_bg";
592 transition: DECELERATE 0.1;
595 name: "home_btn_click";
596 signal: "mouse,clicked,1";
597 source: "home_btn_bg";
598 action: SIGNAL_EMIT SIGNAL_HOME_BTN_CLICKED SIGNAL_SOURCE;
602 name: "menu_icon_home_view_state_set";
603 signal: SIGNAL_BOTTOM_BUTTONS_HOME_STATE_SET;
604 source: SIGNAL_SOURCE;
605 action: STATE_SET "home_view_state" 0.0;
606 target: "home_view_menu_icon";
607 target: "all_apps_view_menu_icon";
608 target: "home_view_home_icon";
609 target: "all_apps_view_home_icon";
610 target: "menu_btn_bg";
611 target: "home_btn_bg";
612 transition: LINEAR 0.3;
616 name: "menu_icon_all_apps_view_state_set";
617 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_STATE_SET;
618 source: SIGNAL_SOURCE;
619 action: STATE_SET "all_apps_view_state" 0.0;
620 target: "home_view_menu_icon";
621 target: "all_apps_view_menu_icon";
622 target: "home_view_home_icon";
623 target: "all_apps_view_home_icon";
624 target: "menu_btn_bg";
625 target: "home_btn_bg";
626 transition: LINEAR 0.3;
630 name: "menu_icon_all_apps_edit_state_set";
631 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_EDIT_STATE_SET;
632 source: SIGNAL_SOURCE;
633 action: STATE_SET "all_apps_edit_state" 0.0;
634 target: "home_view_menu_icon";
635 target: "all_apps_view_menu_icon";
636 target: "home_view_home_icon";
637 target: "all_apps_view_home_icon";
638 target: "menu_btn_bg";
639 target: "home_btn_bg";
642 /*============== PROGRAMS TO OPERATE ON CHOOSER CAPTION =============*/
644 name: "chooser_caption_activate";
645 signal: SIGNAL_CHOOSER_CAPTION_ACTIVATE;
646 source: SIGNAL_SOURCE;
647 action: STATE_SET "chooser_activated" 0.0;
648 target: "chooser_caption_middle_label";
649 target: "chooser_caption_left_label";
650 target: "chooser_caption_left_clickable_space";
651 target: "chooser_caption_right_label";
652 target: "chooser_caption_right_clickable_space";
653 target: "all_apps_view_menu_icon";
654 target: "menu_btn_bg";
655 target: "home_btn_bg";
656 target: "all_apps_view_home_icon";
659 name: "chooser_caption_deactivate";
660 signal: SIGNAL_CHOOSER_CAPTION_DEACTIVATE;
661 source: SIGNAL_SOURCE;
662 action: STATE_SET "default" 0.0;
663 target: "chooser_caption_middle_label";
664 target: "chooser_caption_left_label";
665 target: "chooser_caption_left_clickable_space";
666 target: "chooser_caption_right_label";
667 target: "chooser_caption_right_clickable_space";
668 target: "menu_btn_bg";
669 target: "all_apps_view_menu_icon";
670 target: "home_btn_bg";
671 target: "all_apps_view_home_icon";
673 /*============= PROGRAMS TO OPERATOE ON INDICES =====================*/
675 name: "next_page_indice_show";
676 signal: SIGNAL_NEXT_PAGE_INDICE_SHOW;
677 source: SIGNAL_SOURCE;
678 action: STATE_SET "visible" 0.0;
679 target: PART_NEXT_PAGE_INDICE;
682 name: "prev_page_indice_show";
683 signal: SIGNAL_PREV_PAGE_INDICE_SHOW;
684 source: SIGNAL_SOURCE;
685 action: STATE_SET "visible" 0.0;
686 target: PART_PREV_PAGE_INDICE;
689 name: "indice_off_program";
690 signal: SIGNAL_INDICE_HIDE;
691 source: SIGNAL_SOURCE;
692 action: STATE_SET "default" 0.0;
693 target: PART_PREV_PAGE_INDICE;
694 target: PART_NEXT_PAGE_INDICE;
697 name: "block_events";
698 signal: SIGNAL_BLOCK_EVENTS;
699 source: SIGNAL_SOURCE;
700 action: STATE_SET "blocked" 0.0;
701 target: PART_EVENT_BLOCKER;
704 name: "unblock_events";
705 signal: SIGNAL_UNBLOCK_EVENTS;
706 source: SIGNAL_SOURCE;
707 action: STATE_SET "default" 0.0;
708 target: PART_EVENT_BLOCKER;