From: Soohye Shin Date: Thu, 11 Jun 2015 07:31:37 +0000 (+0900) Subject: add home edc X-Git-Tag: accepted/tizen/tv/20150728.070602~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=319209eff9d76a7d0ed5c9dc701926e5edd14cb9;p=profile%2Ftv%2Fapps%2Fnative%2Fair_home.git add home edc Change-Id: I828aebc508cc35a655b0ec1adce409362af971fa Signed-off-by: Soohye Shin --- diff --git a/edje/home.edc b/edje/home.edc index 2c43ca4..dab3887 100644 --- a/edje/home.edc +++ b/edje/home.edc @@ -17,4 +17,5 @@ #include "../include/defs.h" collections { + #include "view/home.edc" } diff --git a/edje/images/btn_navigation_down.png b/edje/images/btn_navigation_down.png new file mode 100644 index 0000000..9c1aa1c Binary files /dev/null and b/edje/images/btn_navigation_down.png differ diff --git a/edje/images/btn_navigation_up.png b/edje/images/btn_navigation_up.png new file mode 100644 index 0000000..3501eeb Binary files /dev/null and b/edje/images/btn_navigation_up.png differ diff --git a/edje/images/ico_arrow_down.png b/edje/images/ico_arrow_down.png deleted file mode 100644 index 94336fc..0000000 Binary files a/edje/images/ico_arrow_down.png and /dev/null differ diff --git a/edje/images/ico_arrow_up.png b/edje/images/ico_arrow_up.png deleted file mode 100644 index 2677c97..0000000 Binary files a/edje/images/ico_arrow_up.png and /dev/null differ diff --git a/edje/view/home.edc b/edje/view/home.edc new file mode 100644 index 0000000..e056717 --- /dev/null +++ b/edje/view/home.edc @@ -0,0 +1,505 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "../../include/defs.h" +group{ + name, GRP_HOME; + parts { + part { + name, "clip.up.arrow"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel2.relative, 1.0 0.0; + min, 0 97; + align, 0.5 1.0; + fixed, 0 1; + visible, 0; + } + description { + state, "show" 0.0; + inherit, "default" 0.0; + align, 0.5 0.0; + visible, 1; + } + } + part { + name, PART_HOME_UP_ARROW; + type, SWALLOW; + scale, 1; + clip_to, "clip.up.arrow"; + description { + state, "default" 0.0; + rel1.to, "clip.up.arrow"; + rel2 { + to, "clip.up.arrow"; + relative, 1.0 0.0; + } + fixed, 1 1; + align, 0.5 0.0; + min, 97 97; + } + } + part { + name, "clip.down.arrow"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.0 1.0; + min, 0 97; + align, 0.5 0.0; + fixed, 0 1; + visible, 0; + } + description { + state, "show" 0.0; + inherit, "default" 0.0; + align, 0.5 1.0; + visible, 1; + } + } + part { + name, PART_HOME_DOWN_ARROW; + type, SWALLOW; + scale, 1; + clip_to, "clip.down.arrow"; + description { + state, "default" 0.0; + rel1 { + to, "clip.down.arrow"; + relative, 0.0 1.0; + } + rel2.to, "clip.down.arrow"; + fixed, 1 1; + align, 0.5 1.0; + min, 97 97; + } + } + part { + name, "pad.list"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.5 1.0; + rel2.relative, 0.5 1.0; + fixed, 1 1; + align, 0.5 1.0; + min, 0 188; + } + } + part { + name, PART_HOME_MENU_BAR; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1 { + relative, 0.0 0.0; + to, "pad.list"; + } + rel2 { + relative, 0.0 0.0; + to, "pad.list"; + } + fixed, 1 1; + align, 0.5 1.0; + min, 947 158; + } + } + } + programs { + program { + name, "sig,show,navigation"; + signal, SIG_SHOW_NAVIGATION; + source, SRC_PROG; + action, STATE_SET "show" 0.0; + target, "clip.up.arrow"; + target, "clip.down.arrow"; + transition, DECEL 0.5; + } + program { + name, "sig,hide,navigation"; + signal, SIG_HIDE_NAVIGATION; + source, SRC_PROG; + action, STATE_SET "default" 0.0; + target, "clip.up.arrow"; + target, "clip.down.arrow"; + transition, DECEL 0.5; + } + } +} + +group { + name, GRP_HOME_DOWN_ARROW; + images { + image, "btn_navigation_down.png" COMP; + } + parts { + part { + name, "bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 97 97; + visible, 0; + } + } + part { + name, "text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + min, 97 30; + rel1.relative, 0.5 0.0; + rel2.relative, 0.5 0.0; + align, 0.5 0.0; + fixed, 1 1; + text { + size, 31; + font, "TizenSans"; + text, "Recent"; + } + color, 124 124 124 255; + } + } + part { + name, "pad.arrow"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 0 11; + rel1 { + to, "text"; + relative, 0.5 1.0; + } + rel2 { + to, "text"; + relative, 0.5 1.0; + } + fixed, 1 1; + align, 0.5 0.0; + visible, 0; + } + } + part { + name, "arrow"; + type, IMAGE; + scale, 1; + description { + state, "default" 0.0; + min, 97 34; + rel1 { + relative, 1.0 1.0; + to, "pad.arrow"; + } + rel2 { + relative, 1.0 1.0; + to, "pad.arrow"; + } + image.normal, "btn_navigation_down.png"; + align, 0.5 0.0; + fixed, 1 1; + } + } + } +} + +group { + name, GRP_HOME_UP_ARROW; + images { + image, "btn_navigation_up.png" COMP; + } + parts { + part { + name, "bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 97 97; + visible, 0; + } + } + part { + name, "text"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + min, 97 30; + rel1.relative, 0.5 1.0; + rel2.relative, 0.5 1.0; + align, 0.5 1.0; + fixed, 1 1; + text { + size, 31; + font, "TizenSans"; + text, "ETG"; + } + color, 124 124 124 255; + } + } + part { + name, "pad.arrow"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 0 11; + rel1 { + to, "text"; + relative, 0.5 0.0; + } + rel2 { + to, "text"; + relative, 0.5 0.0; + } + fixed, 1 1; + align, 0.5 1.0; + visible, 0; + } + } + part { + name, "arrow"; + type, IMAGE; + scale, 1; + description { + state, "default" 0.0; + min, 97 34; + rel1 { + relative, 0.0 0.0; + to, "pad.arrow"; + } + rel2 { + relative, 0.0 0.0; + to, "pad.arrow"; + } + image.normal, "btn_navigation_up.png"; + align, 0.5 1.0; + fixed, 1 1; + } + } + } +} + +group { + name, GRP_HOME_ITEM; + parts { + part { + name, "bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 157 157; + } + } + part { + name, "clip"; + type, RECT; + description { + state, "default" 0.0; + color, 0 0 0 0; + } + description { + state, "focus" 0.0; + inherit, "default" 0.0; + color, 255 255 255 255; + } + description { + state, "up" 0.0; + inherit, "default" 0.0; + rel1.relative, 0.0 -1.0; + rel2.relative, 1.0 0.0; + color, 255 255 255 255; + } + description { + state, "down" 0.0; + inherit, "default" 0.0; + rel1.relative, 0.0 1.0; + rel2.relative, 1.0 2.0; + color, 255 255 255 255; + } + description { + state, "right" 0.0; + inherit, "default" 0.0; + rel1.relative, 1.0 0.0; + rel2.relative, 2.0 1.0; + color, 255 255 255 255; + } + description { + state, "left" 0.0; + inherit, "default" 0.0; + rel1.relative, -1.0 0.0; + rel2.relative, 0.0 1.0; + color, 255 255 255 255; + } + } + part { + name, PART_HOME_ITEM_BG; + type, SWALLOW; + scale, 1; + clip_to, "clip"; + description { + state, "default" 0.0; + min, 157 157; + } + } + part { + name, "pad.icon"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 0 26; + rel1.relative, 0.5 0.0; + rel2.relative, 0.5 0.0; + align, 0.5 0.0; + fixed, 1 1; + visible, 0; + } + } + part { + name, PART_HOME_ITEM_ICON; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + min, 70 70; + rel1 { + to, "pad.icon"; + relative, 1.0 1.0; + } + rel2 { + to, "pad.icon"; + relative, 1.0 1.0; + } + align, 0.5 0.0; + fixed, 1 1; + } + } + part { + name, "pad.text"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 0 23; + rel1.relative, 0.5 1.0; + rel2.relative, 0.5 1.0; + align, 0.5 1.0; + fixed, 1 1; + visible, 0; + } + } + part { + name, PART_HOME_ITEM_NAME; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + min, 127 38; + rel1 { + to, "pad.text"; + relative, 0.0 0.0; + } + rel2 { + to, "pad.text"; + relative, 0.0 0.0; + } + align, 0.5 1.0; + fixed, 1 1; + text { + size, 22; + font, "TizenSans"; + } + color, 104 104 104 255; + } + } + } + programs { + program { + name, "sig,initial,focus"; + signal, SIG_INITIAL_FOCUS; + source, SRC_PROG; + action, STATE_SET "default" 0.0; + target, "clip"; + after, "sig,focus"; + } + program { + name, "sig,focus"; + signal, SIG_FOCUS; + source, SRC_PROG; + action, STATE_SET "focus" 0.0; + transition, LINEAR 0.5; + target, "clip"; + } + program { + name, "sig,focus,to,up"; + signal, SIG_FOCUS_TO_UP; + source, SRC_PROG; + action, STATE_SET "up" 0.0; + transition, LINEAR 0.5; + target, "clip"; + } + program { + name, "sig,focus,to,down"; + signal, SIG_FOCUS_TO_DOWN; + source, SRC_PROG; + action, STATE_SET "down" 0.0; + transition, LINEAR 0.5; + target, "clip"; + } + program { + name, "sig,focus,to,right"; + signal, SIG_FOCUS_TO_RIGHT; + source, SRC_PROG; + action, STATE_SET "right" 0.0; + transition, LINEAR 0.5; + target, "clip"; + } + program { + name, "sig,unfocus,to,right"; + signal, SIG_UNFOCUS_TO_RIGHT; + source, SRC_PROG; + action, STATE_SET "left" 0.0; + target, "clip"; + after, "sig,focus"; + } + program { + name, "sig,focus,to,left"; + signal, SIG_FOCUS_TO_LEFT; + source, SRC_PROG; + action, STATE_SET "left" 0.0; + transition, LINEAR 0.5; + target, "clip"; + } + program { + name, "sig,unfocus,to,left"; + signal, SIG_UNFOCUS_TO_LEFT; + source, SRC_PROG; + action, STATE_SET "right" 0.0; + target, "clip"; + after, "sig,focus"; + } + } +} diff --git a/images/icn_app_foc.png b/images/icn_app_foc.png deleted file mode 100644 index 168cff4..0000000 Binary files a/images/icn_app_foc.png and /dev/null differ diff --git a/images/icn_history_foc.png b/images/icn_history_foc.png deleted file mode 100644 index 31724a4..0000000 Binary files a/images/icn_history_foc.png and /dev/null differ diff --git a/images/icn_movie_foc.png b/images/icn_movie_foc.png deleted file mode 100644 index 4df351e..0000000 Binary files a/images/icn_movie_foc.png and /dev/null differ diff --git a/images/icn_noti_foc.png b/images/icn_noti_foc.png deleted file mode 100644 index 682df4b..0000000 Binary files a/images/icn_noti_foc.png and /dev/null differ diff --git a/images/ico_man.png b/images/ico_man.png deleted file mode 100644 index 541717e..0000000 Binary files a/images/ico_man.png and /dev/null differ diff --git a/include/defs.h b/include/defs.h index e066d89..d51708a 100644 --- a/include/defs.h +++ b/include/defs.h @@ -17,4 +17,30 @@ #ifndef __AIR_HOME_DEFS_H__ #define __AIR_HOME_DEFS_H__ +#define SRC_PROG "prog" + +#define GRP_HOME "group.home" +#define GRP_HOME_UP_ARROW "group.home.up.arrow" +#define GRP_HOME_DOWN_ARROW "group.home.down.arrow" +#define GRP_HOME_ITEM "group.home.item" + +#define PART_HOME_MENU_BAR "part.home.menu.bar" +#define PART_HOME_UP_ARROW "part.home.up.arrow" +#define PART_HOME_DOWN_ARROW "part.home.down.arrow" +#define PART_HOME_ITEM_ICON "part.home.item.icon" +#define PART_HOME_ITEM_NAME "part.home.item.name" +#define PART_HOME_ITEM_BG "part.home.item.bg" + +#define SIG_SHOW_NAVIGATION "sig.show.navigation" +#define SIG_HIDE_NAVIGATION "sig.hide.navigation" +#define SIG_INITIAL_FOCUS "sig.initial.focus" +#define SIG_FOCUS "sig.focus" +#define SIG_FOCUS_TO_UP "sig.focus.to.up" +#define SIG_FOCUS_TO_DOWN "sig.focus.to.down" +#define SIG_FOCUS_TO_RIGHT "sig.focus.to.right" +#define SIG_FOCUS_TO_LEFT "sig.focus.to.left" +#define SIG_UNFOCUS "sig.unfocus" +#define SIG_UNFOCUS_TO_RIGHT "sig.unfocus.to.right" +#define SIG_UNFOCUS_TO_LEFT "sig.unfocus.to.left" + #endif /* __AIR_HOME_DEFS_H__ */