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;
49 rel1.relative: 0.0 0.0/*HOME_WGT_MIN_Y*/;
50 rel2.relative: 1.0 1.0/*HOME_WGT_MAX_Y*/;
54 /*======================CHOOSER CAPTION=========================*/
56 name: "chooser_caption";
61 rel1.relative: 0.0 HOME_CHOOSER_CAPTION_Y_MIN;
62 rel2.relative: 1.0 HOME_CHOOSER_CAPTION_Y_MAX;
66 name: PART_CHOOSER_CAPTION_MIDDLE_LABEL;
73 color: 255 255 255 255;
83 to: "chooser_caption";
88 to: "chooser_caption";
92 state: "chooser_activated" 0.0;
93 inherit: "default" 0.0;
98 name: PART_CHOOSER_CAPTION_LEFT_LABEL;
103 color: 255 255 255 255;
104 state: "default" 0.0;
115 to: "chooser_caption";
120 to: "chooser_caption";
124 state: "chooser_activated" 0.0;
125 inherit: "default" 0.0;
130 name: "chooser_caption_left_clickable_space";
136 state: "default" 0.0;
141 to: "chooser_caption_left_label";
146 to: "chooser_caption_left_label";
151 state: "chooser_activated" 0.0;
152 inherit: "default" 0.0;
157 name: PART_CHOOSER_CAPTION_RIGHT_LABEL;
162 state: "default" 0.0;
164 color: 255 255 255 255;
167 align: (1.0 - 0.25) 0.90;
174 to: "chooser_caption";
179 to: "chooser_caption";
183 state: "chooser_activated" 0.0;
184 inherit: "default" 0.0;
189 name: "chooser_caption_right_clickable_space";
195 state: "default" 0.0;
200 to: "chooser_caption_right_label";
205 to: "chooser_caption_right_label";
210 state: "chooser_activated" 0.0;
211 inherit: "default" 0.0;
216 /*==================== BUTTON : MENU IMPLEMENATION ===============*/
222 state: "default" 0.0;
223 rel1.relative: HOME_MENU_BTN_X_MIN HOME_BTNS_Y_MIN;
224 rel2.relative: HOME_MENU_BTN_X_MAX HOME_BTNS_Y_MAX;
232 state: "default" 0.0;
233 rel1 { relative: 0.0 0.0; to: "menu_btn"; }
234 rel2 { relative: 1.0 1.0; to: "menu_btn"; }
238 normal: "../images/home_button_bg.png";
243 inherit: "default" 0.0;
244 color: 255 255 255 40;
247 state: "chooser_activated" 0.0;
252 state: "all_apps_view_state" 0.0;
253 inherit: "default" 0.0;
257 state: "home_view_state" 0.0;
258 inherit: "default" 0.0;
262 state: "all_apps_edit_state" 0.0;
263 inherit: "default" 0.0;
268 name: "home_view_menu_icon";
275 state: "default" 0.0;
276 rel1 { relative: 0.27 0.1; to: "menu_btn"; }
277 rel2 { relative: 0.73 0.9; to: "menu_btn"; }
278 color: 255 255 255 255;
282 normal: "../images/home_icon_menu.png";
287 state: "all_apps_view_state" 0.0;
288 inherit: "default" 0.0;
289 color: 255 255 255 0;
293 state: "home_view_state" 0.0;
294 inherit: "default" 0.0;
298 state: "all_apps_edit_state" 0.0;
299 inherit: "all_apps_view_state" 0.0;
305 name: "all_apps_view_menu_icon";
312 state: "default" 0.0;
313 rel1 { relative: 0.27 0.1; to: "menu_btn"; }
314 rel2 { relative: 0.73 0.9; to: "menu_btn"; }
315 color: 255 255 255 0;
319 normal: "../images/all_apps_icon_menu.png";
324 state: "chooser_activated" 0.0;
329 state: "all_apps_view_state" 0.0;
330 inherit: "default" 0.0;
331 color: 255 255 255 255;
335 state: "home_view_state" 0.0;
336 inherit: "default" 0.0;
340 state: "all_apps_edit_state" 0.0;
341 inherit: "all_apps_view_state" 0.0;
346 /*==================== BUTTON : HOME ICON IMPLEMENTATION ===============*/
352 state: "default" 0.0;
353 rel1.relative: HOME_HOME_BTN_X_MIN HOME_BTNS_Y_MIN;
354 rel2.relative: HOME_HOME_BTN_X_MAX HOME_BTNS_Y_MAX;
362 state: "default" 0.0;
363 rel1 { relative: 0.0 0.0; to: "home"; }
364 rel2 { relative: 1.0 1.0; to: "home"; }
368 normal: "../images/home_button_bg.png";
373 inherit: "default" 0.0;
374 color: 255 255 255 40;
377 state: "chooser_activated" 0.0;
382 state: "all_apps_view_state" 0.0;
383 inherit: "default" 0.0;
387 state: "home_view_state" 0.0;
388 inherit: "default" 0.0;
392 state: "all_apps_edit_state" 0.0;
393 inherit: "default" 0.0;
399 name: "home_view_home_icon";
406 state: "default" 0.0;
407 rel1 { relative: 0.27 0.1; to: "home"; }
408 rel2 { relative: 0.73 0.9; to: "home"; }
409 color: 255 255 255 255;
413 normal: "../images/home_icon_reorder.png";
418 state: "chooser_activated" 0.0;
423 state: "all_apps_view_state" 0.0;
424 inherit: "default" 0.0;
425 color: 255 255 255 0;
429 state: "home_view_state" 0.0;
430 inherit: "default" 0.0;
434 state: "all_apps_edit_state" 0.0;
435 inherit: "all_apps_view_state" 0.0;
442 name: "all_apps_view_home_icon";
449 state: "default" 0.0;
450 rel1 { relative: 0.27 0.1; to: "home"; }
451 rel2 { relative: 0.73 0.9; to: "home"; }
452 color: 255 255 255 0;
456 normal: "../images/home_icon_home.png";
461 state: "chooser_activated" 0.0;
466 state: "all_apps_view_state" 0.0;
467 inherit: "default" 0.0;
468 color: 255 255 255 255;
472 state: "home_view_state" 0.0;
473 inherit: "default" 0.0;
474 color: 255 255 255 0;
478 state: "all_apps_edit_state" 0.0;
479 inherit: "all_apps_view_state" 0.0;
484 /*==================== DYNAMIC INDEX: ===============*/
490 state: "default" 0.0;
491 rel1.relative: HOME_PG_INDEX_X_MIN HOME_BTNS_Y_MIN;
492 rel2.relative: HOME_PG_INDEX_X_MAX HOME_BTNS_Y_MAX;
497 name: PART_NEXT_PAGE_INDICE;
501 state: "default" 0.0;
502 color: 20 20 100 100;
503 rel1.relative: INDICE_NEXT_PAGE_X_MIN HOME_WGT_MIN_Y;
504 rel2.relative: INDICE_NEXT_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
508 state: "visible" 0.0;
509 inherit: "default" 0.0;
514 name: PART_PREV_PAGE_INDICE;
518 state: "default" 0.0;
519 color: 20 20 100 100;
520 rel1.relative: INDICE_PREV_PAGE_X_MIN HOME_WGT_MIN_Y;
521 rel2.relative: INDICE_PREV_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
525 state: "visible" 0.0;
526 inherit: "default" 0.0;
531 name: PART_EVENT_BLOCKER;
536 state: "default" 0.0;
538 rel1 {relative: 0.0 0.0; to: "bg_spacer";}
539 rel2 {relative: 1.0 1.0; to: "bg_spacer";}
543 state: "blocked" 0.0;
544 inherit: "default" 0.0;
549 /*============== PROGRAMS TO OPERATE ON bottom buttons =============*/
552 name: "menu_btn_down";
553 signal: "mouse,down,1";
554 source: "menu_btn_bg";
555 action: STATE_SET "press" 0.0;
556 target: "menu_btn_bg";
557 transition: DECELERATE 0.1;
561 signal: "mouse,up,1";
562 source: "menu_btn_bg";
563 action: STATE_SET "default" 0.0;
564 target: "menu_btn_bg";
565 transition: DECELERATE 0.1;
568 name: "menu_btn_click";
569 signal: "mouse,clicked,1";
570 source: "menu_btn_bg";
571 action: SIGNAL_EMIT SIGNAL_MENU_BTN_CLICKED SIGNAL_SOURCE;
574 name: "home_btn_down";
575 signal: "mouse,down,1";
576 source: "home_btn_bg";
577 action: STATE_SET "press" 0.0;
578 target: "home_btn_bg";
579 transition: DECELERATE 0.1;
583 signal: "mouse,up,1";
584 source: "home_btn_bg";
585 action: STATE_SET "default" 0.0;
586 target: "home_btn_bg";
587 transition: DECELERATE 0.1;
590 name: "home_btn_click";
591 signal: "mouse,clicked,1";
592 source: "home_btn_bg";
593 action: SIGNAL_EMIT SIGNAL_HOME_BTN_CLICKED SIGNAL_SOURCE;
597 name: "menu_icon_home_view_state_set";
598 signal: SIGNAL_BOTTOM_BUTTONS_HOME_STATE_SET;
599 source: SIGNAL_SOURCE;
600 action: STATE_SET "home_view_state" 0.0;
601 target: "home_view_menu_icon";
602 target: "all_apps_view_menu_icon";
603 target: "home_view_home_icon";
604 target: "all_apps_view_home_icon";
605 target: "menu_btn_bg";
606 target: "home_btn_bg";
607 transition: LINEAR 0.3;
611 name: "menu_icon_all_apps_view_state_set";
612 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_STATE_SET;
613 source: SIGNAL_SOURCE;
614 action: STATE_SET "all_apps_view_state" 0.0;
615 target: "home_view_menu_icon";
616 target: "all_apps_view_menu_icon";
617 target: "home_view_home_icon";
618 target: "all_apps_view_home_icon";
619 target: "menu_btn_bg";
620 target: "home_btn_bg";
621 transition: LINEAR 0.3;
625 name: "menu_icon_all_apps_edit_state_set";
626 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_EDIT_STATE_SET;
627 source: SIGNAL_SOURCE;
628 action: STATE_SET "all_apps_edit_state" 0.0;
629 target: "home_view_menu_icon";
630 target: "all_apps_view_menu_icon";
631 target: "home_view_home_icon";
632 target: "all_apps_view_home_icon";
633 target: "menu_btn_bg";
634 target: "home_btn_bg";
637 /*============== PROGRAMS TO OPERATE ON CHOOSER CAPTION =============*/
639 name: "chooser_caption_activate";
640 signal: SIGNAL_CHOOSER_CAPTION_ACTIVATE;
641 source: SIGNAL_SOURCE;
642 action: STATE_SET "chooser_activated" 0.0;
643 target: "chooser_caption_middle_label";
644 target: "chooser_caption_left_label";
645 target: "chooser_caption_left_clickable_space";
646 target: "chooser_caption_right_label";
647 target: "chooser_caption_right_clickable_space";
648 target: "all_apps_view_menu_icon";
649 target: "menu_btn_bg";
650 target: "home_btn_bg";
651 target: "all_apps_view_home_icon";
654 name: "chooser_caption_deactivate";
655 signal: SIGNAL_CHOOSER_CAPTION_DEACTIVATE;
656 source: SIGNAL_SOURCE;
657 action: STATE_SET "default" 0.0;
658 target: "chooser_caption_middle_label";
659 target: "chooser_caption_left_label";
660 target: "chooser_caption_left_clickable_space";
661 target: "chooser_caption_right_label";
662 target: "chooser_caption_right_clickable_space";
663 target: "menu_btn_bg";
664 target: "all_apps_view_menu_icon";
665 target: "home_btn_bg";
666 target: "all_apps_view_home_icon";
668 /*============= PROGRAMS TO OPERATOE ON INDICES =====================*/
670 name: "next_page_indice_show";
671 signal: SIGNAL_NEXT_PAGE_INDICE_SHOW;
672 source: SIGNAL_SOURCE;
673 action: STATE_SET "visible" 0.0;
674 target: PART_NEXT_PAGE_INDICE;
677 name: "prev_page_indice_show";
678 signal: SIGNAL_PREV_PAGE_INDICE_SHOW;
679 source: SIGNAL_SOURCE;
680 action: STATE_SET "visible" 0.0;
681 target: PART_PREV_PAGE_INDICE;
684 name: "indice_off_program";
685 signal: SIGNAL_INDICE_HIDE;
686 source: SIGNAL_SOURCE;
687 action: STATE_SET "default" 0.0;
688 target: PART_PREV_PAGE_INDICE;
689 target: PART_NEXT_PAGE_INDICE;
692 name: "block_events";
693 signal: SIGNAL_BLOCK_EVENTS;
694 source: SIGNAL_SOURCE;
695 action: STATE_SET "blocked" 0.0;
696 target: PART_EVENT_BLOCKER;
699 name: "unblock_events";
700 signal: SIGNAL_UNBLOCK_EVENTS;
701 source: SIGNAL_SOURCE;
702 action: STATE_SET "default" 0.0;
703 target: PART_EVENT_BLOCKER;