From: Soohye Shin Date: Thu, 2 Jul 2015 06:04:50 +0000 (+0900) Subject: add photo and photo viewer edc X-Git-Tag: accepted/tizen/tv/20150728.070602~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d33e00d99ebfa3bce28361ba5e942c458d14385;p=profile%2Ftv%2Fapps%2Fnative%2Fair_home.git add photo and photo viewer edc Change-Id: Ib9a34e475d4639bd0c760cfe55ef762967ba3706 Signed-off-by: Soohye Shin --- diff --git a/edje/view/photo.edc b/edje/view/photo.edc index 28ab518..d6e8f97 100644 --- a/edje/view/photo.edc +++ b/edje/view/photo.edc @@ -18,5 +18,242 @@ group { name, GRP_PHOTO; parts { + part { + name, "up"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel2.relative, 1.0 0.0; + min, 0 104; + fixed, 0 1; + align, 0.5 0.0; + } + } + part { + name, "title"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + rel1.to, "title"; + rel2.to, "title"; + fixed, 1 1; + text { + text, "Select photo"; + size, 46; + font, "TizenSans"; + } + color, 51 51 51 255; + } + } + part { + name, "bottom"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.0 1.0; + min, 0 148; + fixed, 0 1; + align, 0.5 1.0; + } + } + part { + name, PART_PHOTO_LIST; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "title"; + relative, 0.0 1.0; + } + rel2 { + to, "bottom"; + relative, 1.0 0.0; + } + fixed, 1 1; + } + } + } +} + +group { + name, GRP_PHOTO_VIEWER; + parts { + part { + name, "bg"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + min, 740 650; + } + } + part { + name, "pad.title"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.5 0.0; + rel2.relative, 0.5 0.0; + min, 0 46; + fixed, 1 1; + align, 0.5 0.0; + visible, 0; + } + } + part { + name, "title"; + type, TEXT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "pad.title"; + relative, 1.0 1.0; + } + rel2.to, "pad.title"; + min, 488 42; + fixed, 1 1; + align, 0.5 0.0; + text { + font, "TizenSans"; + size, 42; + text, "Preview image"; + } + color, 51 51 51 255; + } + } + part { + name, "pad.viewer"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "title"; + relative, 0.5 1.0; + } + rel2 { + to, "title"; + relative, 0.5 1.0; + } + min, 0 40; + fixed, 1 1; + align, 0.5 0.0; + visible, 0; + } + } + part { + name, PART_PHOTO_VIEWER; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "pad.viewer"; + relative, 1.0 1.0; + } + rel2.to, "pad.viewer"; + min, 488 368; + fixed, 1 1; + align, 0.5 0.0; + } + } + part { + name, "crop.left"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.to, PART_PHOTO_VIEWER; + rel2 { + to, PART_PHOTO_VIEWER; + relative, 0.0 1.0; + } + min, 58 0; + fixed, 1 0; + align, 0.0 0.5; + color, 0 0 0 102; + } + } + part { + name, "crop.left.line"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, "crop.left"; + relative, 1.0 0.0; + } + rel2.to, "crop.left"; + min, 2 0; + fixed, 1 0; + align, 0.0 0.5; + } + } + part { + name, "crop.right"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1 { + to, PART_PHOTO_VIEWER; + relative, 1.0 0.0; + } + rel2.to, PART_PHOTO_VIEWER; + min, 58 0; + fixed, 1 1; + align, 1.0 0.5; + color, 0 0 0 102; + } + } + part { + name, "crop.right.line"; + type, RECT; + scale, 1; + description { + state, "default" 0.0; + rel1.to, "crop.right"; + rel2 { + to, "crop.right"; + relative, 0.0 1.0; + } + min, 2 0; + fixed, 1 1; + align, 1.0 0.5; + } + } + part { + name, PART_PHOTO_VIEWER_CANCEL; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.5 1.0; + rel2.relative, 0.5 1.0; + min, 370 90; + align, 1.0 1.0; + fixed, 1 1; + } + } + part { + name, PART_PHOTO_VIEWER_DONE; + type, SWALLOW; + scale, 1; + description { + state, "default" 0.0; + rel1.relative, 0.5 1.0; + rel2.relative, 0.5 1.0; + min, 370 90; + align, 0.0 1.0; + fixed, 1 1; + } + } } } diff --git a/include/defs.h b/include/defs.h index 8c15615..adcd83f 100644 --- a/include/defs.h +++ b/include/defs.h @@ -46,6 +46,7 @@ #define GRP_USER_EDIT_ICON_LIST_ITEM "group.user.edit.icon.list.item" #define GRP_BAR_ITEM "group.bar.item" #define GRP_PHOTO "group.photo" +#define GRP_PHOTO_VIEWER "group.photo.viewer" #define PART_HOME_MENU_BAR "part.home.menu.bar" #define PART_HOME_UP_ARROW "part.home.up.arrow" @@ -86,6 +87,10 @@ #define PART_BAR_ITEM_LOCK "part.bar.item.lock" #define PART_BAR_ITEM_LOCK_FOCUS "part.bar.item.lock.focus" #define PART_USER_BAR "part.user.bar" +#define PART_PHOTO_LIST "part.photo.list" +#define PART_PHOTO_VIEWER "part.photo.viewer" +#define PART_PHOTO_VIEWER_CANCEL "part.photo.viewer.cancel" +#define PART_PHOTO_VIEWER_DONE "part.photo.viewer.done" #define SIG_SHOW_NAVIGATION "sig.show.navigation" #define SIG_HIDE_NAVIGATION "sig.hide.navigation"