From 980652cd0c3096ce73c0dbfe312ad30cedd669cb Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Thu, 3 Sep 2015 15:33:08 +0900 Subject: add zoom view Change-Id: I9ac6f1e9c89064bd8b25bb083be21c1f17a12c6e Signed-off-by: Minkyu Kang --- res/edc/images/ic_zoom_indicator_down_foc.png | Bin 0 -> 2807 bytes res/edc/images/ic_zoom_indicator_down_nor.png | Bin 0 -> 2728 bytes res/edc/images/ic_zoom_indicator_left_foc.png | Bin 0 -> 2786 bytes res/edc/images/ic_zoom_indicator_left_nor.png | Bin 0 -> 2764 bytes res/edc/images/ic_zoom_indicator_right_foc.png | Bin 0 -> 2777 bytes res/edc/images/ic_zoom_indicator_right_nor.png | Bin 0 -> 2759 bytes res/edc/images/ic_zoom_indicator_up_foc.png | Bin 0 -> 2803 bytes res/edc/images/ic_zoom_indicator_up_nor.png | Bin 0 -> 2667 bytes res/edc/mediahub.edc | 1 + res/edc/view/zoom.edc | 230 +++++++++++++++++++++++++ res/edc/widgets/button.edc | 166 ++++++++++++++++++ 11 files changed, 397 insertions(+) create mode 100644 res/edc/images/ic_zoom_indicator_down_foc.png create mode 100644 res/edc/images/ic_zoom_indicator_down_nor.png create mode 100644 res/edc/images/ic_zoom_indicator_left_foc.png create mode 100644 res/edc/images/ic_zoom_indicator_left_nor.png create mode 100644 res/edc/images/ic_zoom_indicator_right_foc.png create mode 100644 res/edc/images/ic_zoom_indicator_right_nor.png create mode 100644 res/edc/images/ic_zoom_indicator_up_foc.png create mode 100644 res/edc/images/ic_zoom_indicator_up_nor.png create mode 100644 res/edc/view/zoom.edc (limited to 'res') diff --git a/res/edc/images/ic_zoom_indicator_down_foc.png b/res/edc/images/ic_zoom_indicator_down_foc.png new file mode 100644 index 0000000..797738c Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_down_foc.png differ diff --git a/res/edc/images/ic_zoom_indicator_down_nor.png b/res/edc/images/ic_zoom_indicator_down_nor.png new file mode 100644 index 0000000..1ec7c1a Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_down_nor.png differ diff --git a/res/edc/images/ic_zoom_indicator_left_foc.png b/res/edc/images/ic_zoom_indicator_left_foc.png new file mode 100644 index 0000000..d224bb1 Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_left_foc.png differ diff --git a/res/edc/images/ic_zoom_indicator_left_nor.png b/res/edc/images/ic_zoom_indicator_left_nor.png new file mode 100644 index 0000000..bdc35fe Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_left_nor.png differ diff --git a/res/edc/images/ic_zoom_indicator_right_foc.png b/res/edc/images/ic_zoom_indicator_right_foc.png new file mode 100644 index 0000000..2509aa1 Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_right_foc.png differ diff --git a/res/edc/images/ic_zoom_indicator_right_nor.png b/res/edc/images/ic_zoom_indicator_right_nor.png new file mode 100644 index 0000000..0825b13 Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_right_nor.png differ diff --git a/res/edc/images/ic_zoom_indicator_up_foc.png b/res/edc/images/ic_zoom_indicator_up_foc.png new file mode 100644 index 0000000..ee95dee Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_up_foc.png differ diff --git a/res/edc/images/ic_zoom_indicator_up_nor.png b/res/edc/images/ic_zoom_indicator_up_nor.png new file mode 100644 index 0000000..ecd4be4 Binary files /dev/null and b/res/edc/images/ic_zoom_indicator_up_nor.png differ diff --git a/res/edc/mediahub.edc b/res/edc/mediahub.edc index c73dcd1..3c2d3be 100644 --- a/res/edc/mediahub.edc +++ b/res/edc/mediahub.edc @@ -21,6 +21,7 @@ collections { #include "view/viewer.edc" #include "view/mplayer.edc" #include "view/action_menu.edc" + #include "view/zoom.edc" #include "layout/movie.edc" #include "layout/gallery.edc" #include "layout/music.edc" diff --git a/res/edc/view/zoom.edc b/res/edc/view/zoom.edc new file mode 100644 index 0000000..6beb985 --- /dev/null +++ b/res/edc/view/zoom.edc @@ -0,0 +1,230 @@ +/* + * 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. + */ + +group { + name: GRP_ZOOM_VIEW; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + color: 0 0 0 255; + } + } + part { + name: PART_ZOOM_CONTENT; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + } + part { + name: "padding_top"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 0 40; + rel1 { + to: "bg"; + relative: 0.0 0.0; + } + rel2 { + to: "bg"; + relative: 1.0 0.0; + } + align: 0.0 0.0; + fixed: 0 1; + } + } + part { + name: "padding_bottom"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 0 40; + rel1 { + to: "bg"; + relative: 0.0 1.0; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + } + align: 0.0 1.0; + fixed: 0 1; + } + } + part { + name: "padding_left"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 40 0; + rel1 { + to: "bg"; + relative: 0.0 0.0; + } + rel2 { + to: "bg"; + relative: 0.0 1.0; + } + align: 0.0 0.0; + fixed: 1 0; + } + } + part { + name: "padding_right"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 40 0; + rel1 { + to: "bg"; + relative: 1.0 0.0; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + } + align: 1.0 0.0; + fixed: 1 0; + } + } + part { + name: "arrow_btn0"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 90 90; + rel1 { + to: "padding_top"; + relative: 0.5 1.0; + } + rel2 { + to: "padding_top"; + relative: 0.5 1.0; + } + fixed: 1 1; + align: 0.5 0.0; + } + } + part { + name: "arrow_btn1"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 90 90; + rel1 { + to: "padding_bottom"; + relative: 0.5 0.0; + } + rel2 { + to: "padding_bottom"; + relative: 0.5 0.0; + } + fixed: 1 1; + align: 0.5 1.0; + } + } + part { + name: "arrow_btn2"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 90 90; + rel1 { + to: "padding_left"; + relative: 1.0 0.5; + } + rel2 { + to: "padding_left"; + relative: 1.0 0.5; + } + fixed: 1 1; + align: 0.0 0.5; + } + } + part { + name: "arrow_btn3"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 90 90; + rel1 { + to: "padding_right"; + relative: 0.0 0.5; + } + rel2 { + to: "padding_right"; + relative: 0.0 0.5; + } + fixed: 1 1; + align: 1.0 0.5; + } + } + part { + name: "padding_navi"; + type: SPACER; + scale: 1; + description { + state: "default" 0.0; + min: 40 40; + rel1 { + to: "bg"; + relative: 1.0 1.0; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + } + align: 1.0 1.0; + fixed: 1 1; + } + } + part { + name: PART_ZOOM_NAVI; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + min: 536 300; + rel1 { + to: "padding_navi"; + relative: 0.0 0.0; + } + rel2 { + to: "padding_navi"; + relative: 0.0 0.0; + } + align: 1.0 1.0; + fixed: 1 1; + } + } + } +} diff --git a/res/edc/widgets/button.edc b/res/edc/widgets/button.edc index c796b32..b29bd5d 100644 --- a/res/edc/widgets/button.edc +++ b/res/edc/widgets/button.edc @@ -4408,3 +4408,169 @@ group { } } } + +group { + name: "elm/button/base/zoom_btn_up"; + data.item, "focus_highlight" "on"; + images { + image: IMAGE_ZOOM_UP_NORMAL COMP; + image: IMAGE_ZOOM_UP_FOC COMP; + } + parts { + part { + name: "bg"; + scale: 1; + description { + state: "default" 0.0; + min: 90 90; + image { + normal: IMAGE_ZOOM_UP_NORMAL; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + image { + normal: IMAGE_ZOOM_UP_FOC; + } + } + } + } + programs { + program { + name: "button_clicked"; + signal: "mouse,clicked,1"; + source: "bg"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program { + name: SIG_BTN_CLICKED; + signal: SIG_BTN_CLICKED; + source: ""; + after: "emit,signal"; + } + program { + name: "emit,signal"; + action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_UP; + } + program { + name: SIG_SET_FOCUS; + signal: SIG_SET_FOCUS; + source: ""; + action: STATE_SET "selected" 0.0; + target: "bg"; + } + program { + name: SIG_SET_UNFOCUS; + signal: SIG_SET_UNFOCUS; + source: ""; + action: STATE_SET "default" 0.0; + target: "bg"; + } + } +} + +group { + name: "elm/button/base/zoom_btn_down"; + inherit: "elm/button/base/zoom_btn_up"; + data.item, "focus_highlight" "on"; + images { + image: IMAGE_ZOOM_DOWN_NORMAL COMP; + image: IMAGE_ZOOM_DOWN_FOC COMP; + } + parts { + part { + name: "bg"; + scale: 1; + description { + state: "default" 0.0; + image { + normal: IMAGE_ZOOM_DOWN_NORMAL; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + image { + normal: IMAGE_ZOOM_DOWN_FOC; + } + } + } + } + programs { + program { + name: "emit,signal"; + action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_DOWN; + } + } +} + +group { + name: "elm/button/base/zoom_btn_left"; + inherit: "elm/button/base/zoom_btn_up"; + data.item, "focus_highlight" "on"; + images { + image: IMAGE_ZOOM_LEFT_NORMAL COMP; + image: IMAGE_ZOOM_LEFT_FOC COMP; + } + parts { + part { + name: "bg"; + scale: 1; + description { + state: "default" 0.0; + image { + normal: IMAGE_ZOOM_LEFT_NORMAL; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + image { + normal: IMAGE_ZOOM_LEFT_FOC; + } + } + } + } + programs { + program { + name: "emit,signal"; + action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_LEFT; + } + } +} + +group { + name: "elm/button/base/zoom_btn_right"; + inherit: "elm/button/base/zoom_btn_up"; + data.item, "focus_highlight" "on"; + images { + image: IMAGE_ZOOM_RIGHT_NORMAL COMP; + image: IMAGE_ZOOM_RIGHT_FOC COMP; + } + parts { + part { + name: "bg"; + scale: 1; + description { + state: "default" 0.0; + image { + normal: IMAGE_ZOOM_RIGHT_NORMAL; + } + } + description { + state: "selected" 0.0; + inherit: "default" 0.0; + image { + normal: IMAGE_ZOOM_RIGHT_FOC; + } + } + } + } + programs { + program { + name: "emit,signal"; + action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_RIGHT; + } + } +} -- cgit v1.2.3