summaryrefslogtreecommitdiff
path: root/res/edc
diff options
context:
space:
mode:
Diffstat (limited to 'res/edc')
-rw-r--r--res/edc/images/ic_zoom_indicator_down_foc.pngbin0 -> 2807 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_down_nor.pngbin0 -> 2728 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_left_foc.pngbin0 -> 2786 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_left_nor.pngbin0 -> 2764 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_right_foc.pngbin0 -> 2777 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_right_nor.pngbin0 -> 2759 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_up_foc.pngbin0 -> 2803 bytes
-rw-r--r--res/edc/images/ic_zoom_indicator_up_nor.pngbin0 -> 2667 bytes
-rw-r--r--res/edc/mediahub.edc1
-rw-r--r--res/edc/view/zoom.edc230
-rw-r--r--res/edc/widgets/button.edc166
11 files changed, 397 insertions, 0 deletions
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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_down_foc.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_down_nor.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_left_foc.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_left_nor.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_right_foc.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_right_nor.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_up_foc.png
Binary files 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
--- /dev/null
+++ b/res/edc/images/ic_zoom_indicator_up_nor.png
Binary files 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;
+ }
+ }
+}