summaryrefslogtreecommitdiff
path: root/mobile/widgets/flipselector.edc
diff options
context:
space:
mode:
authorChunEon Park <chuneon.park@samsung.com>2015-05-06 09:59:07 +0900
committerChunEon Park <chuneon.park@samsung.com>2015-05-06 09:59:07 +0900
commit6b2b56632e48b46be0efdd9c996b70e33f380e89 (patch)
tree5e38c14acd1995871ee4bdfd5fb86d014a9094e0 /mobile/widgets/flipselector.edc
parent699aa3efc83535239e9037493d198615f4e9e12f (diff)
downloadefl-theme-tizen-mobile-6b2b56632e48b46be0efdd9c996b70e33f380e89.tar.gz
efl-theme-tizen-mobile-6b2b56632e48b46be0efdd9c996b70e33f380e89.tar.bz2
efl-theme-tizen-mobile-6b2b56632e48b46be0efdd9c996b70e33f380e89.zip
flipselector: fix minors
fix scalability. fix code convention. add copyright. Change-Id: Ib6a7adfb60ac3ad06a476535f25bc3c217511190
Diffstat (limited to 'mobile/widgets/flipselector.edc')
-rw-r--r--mobile/widgets/flipselector.edc117
1 files changed, 89 insertions, 28 deletions
diff --git a/mobile/widgets/flipselector.edc b/mobile/widgets/flipselector.edc
index ef1326e8..7217b318 100644
--- a/mobile/widgets/flipselector.edc
+++ b/mobile/widgets/flipselector.edc
@@ -1,3 +1,29 @@
+/*
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
#define FLIP_PICKER_MAX_LEN (3)
#define FLIP_PICKER_MAX_LEN_STR "3"
@@ -135,14 +161,17 @@ group { name: "elm/flipselector/base/default";
}
}
parts {
- part { name: "base"; type: SPACER;
+ part { name: "base";
+ type: SPACER;
scale: 1;
description { state: "default" 0.0;
min: FLIPSELECTOR_BASE_SIZE_INC;
max: FLIPSELECTOR_BASE_SIZE_INC;
}
}
- part { name: "bottom"; type: IMAGE;
+ part { name: "bottom";
+ type: IMAGE;
+ scale: 1;
description { state: "default" 0.0;
min: FLIPSELECTOR_BOTTOM_SIZE_INC;
align: 0.5 1.0;
@@ -157,7 +186,8 @@ group { name: "elm/flipselector/base/default";
visible: 0;
}
}
- part { name: "top_bg"; type: IMAGE;
+ part { name: "top_bg";
+ type: IMAGE;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "top";
@@ -170,7 +200,9 @@ group { name: "elm/flipselector/base/default";
visible: 0;
}
}
- part { name: "top"; type: IMAGE;
+ part { name: "top";
+ type: IMAGE;
+ scale: 1;
description { state: "default" 0.0;
min: FLIPSELECTOR_TOP_SIZE_INC;
align: 0.5 0.0;
@@ -187,6 +219,7 @@ group { name: "elm/flipselector/base/default";
}
part { name: "divider";
type: RECT;
+ scale: 1;
description { state: "default" 0.0;
min: FLIPSELECTOR_DIVIDER_SIZE_INC;
align: 0.5 0.0;
@@ -197,7 +230,9 @@ group { name: "elm/flipselector/base/default";
color: 0 0 0 38;
}
}
- part { name: "bottom_text_prev"; type: TEXT; mouse_events: 0;
+ part { name: "bottom_text_prev";
+ type: TEXT;
+ mouse_events: 0;
clip_to: "bottom_prev";
scale: 1;
description { state: "default" 0.0;
@@ -205,7 +240,8 @@ group { name: "elm/flipselector/base/default";
rel1.to: "divider";
rel2.to: "divider";
rel2.relative: 1.0 0.0;
- text { font: "Tizen:style=Regular"; size: 108;
+ text { font: "Tizen:style=Regular";
+ size: 108;
min: 1 1;
ellipsis: -1;
align: 0.5 0.5;
@@ -217,12 +253,13 @@ group { name: "elm/flipselector/base/default";
color: 0 0 0 127;
}
}
- part { name: "bottom_prev"; type: RECT; mouse_events: 0;
+ part { name: "bottom_prev";
+ type: RECT;
+ mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "divider";
rel2.to: "bottom";
- color: 255 255 255 255;
}
description { state: "shrink" 0.0;
inherit: "default" 0.0;
@@ -230,7 +267,9 @@ group { name: "elm/flipselector/base/default";
rel1.relative: 0.0 1.0;
}
}
- part { name: "elm.bottom"; type: TEXT; mouse_events: 0;
+ part { name: "elm.bottom";
+ type: TEXT;
+ mouse_events: 0;
clip_to: "bottom_clipper";
scale: 1;
description { state: "default" 0.0;
@@ -238,7 +277,8 @@ group { name: "elm/flipselector/base/default";
rel1.to: "divider";
rel2.to: "divider";
rel2.relative: 1.0 0.0;
- text { font: "Tizen:style=Regular"; size: 108;
+ text { font: "Tizen:style=Regular";
+ size: 108;
min: 1 1;
ellipsis: -1;
align: 0.5 0.5;
@@ -254,7 +294,9 @@ group { name: "elm/flipselector/base/default";
color: 0 0 0 127;
}
}
- part { name: "top_text_prev"; type: TEXT; mouse_events: 0;
+ part { name: "top_text_prev";
+ type: TEXT;
+ mouse_events: 0;
clip_to: "top_prev";
scale: 1;
description { state: "default" 0.0;
@@ -275,7 +317,9 @@ group { name: "elm/flipselector/base/default";
color: 0 0 0 127;
}
}
- part { name: "top_prev"; type: RECT; mouse_events: 0;
+ part { name: "top_prev";
+ type: RECT;
+ mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "top";
@@ -288,7 +332,9 @@ group { name: "elm/flipselector/base/default";
rel2.relative: 1.0 0.0;
}
}
- part { name: "elm.top"; type: TEXT; mouse_events: 0;
+ part { name: "elm.top";
+ type: TEXT;
+ mouse_events: 0;
clip_to: "top_clipper";
scale: 1;
description { state: "default" 0.0;
@@ -296,7 +342,8 @@ group { name: "elm/flipselector/base/default";
rel1.to: "divider";
rel2.to: "divider";
rel2.relative: 1.0 0.0;
- text { font: "Tizen:style=Regular"; size: 108;
+ text { font: "Tizen:style=Regular";
+ size: 108;
min: 1 1;
ellipsis: -1;
align: 0.5 0.5;
@@ -325,7 +372,8 @@ group { name: "elm/flipselector/base/default";
rel2.relative: 1.0 0.0;
}
}
- part { name: "arrow_top"; mouse_events: 0;
+ part { name: "arrow_top";
+ mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
@@ -360,7 +408,8 @@ group { name: "elm/flipselector/base/default";
rel2.to: "bottom";
}
}
- part { name: "arrow_bottom"; mouse_events: 0;
+ part { name: "arrow_bottom";
+ mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
@@ -382,21 +431,24 @@ group { name: "elm/flipselector/base/default";
color: 0 0 0 38;
}
}
- part { name: "top_clipper"; type: RECT;
+ part { name: "top_clipper";
+ type: RECT;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "top";
rel2.to: "divider";
}
}
- part { name: "bottom_clipper"; type: RECT;
+ part { name: "bottom_clipper";
+ type: RECT;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "bottom";
rel2.to: "bottom";
}
}
- part { name: "event_blocker"; type: RECT;
+ part { name: "event_blocker";
+ type: RECT;
description { state: "default" 0.0;
fixed: 1 1;
color: 0 0 0 0;
@@ -410,7 +462,8 @@ group { name: "elm/flipselector/base/default";
}
programs {
program {
- signal: "load"; source: "";
+ signal: "load";
+ source: "";
script {
append_str(cur, "");
append_str(prev, "");
@@ -419,7 +472,8 @@ group { name: "elm/flipselector/base/default";
}
}
program {
- signal: "elm,state,button,hidden"; source: "elm";
+ signal: "elm,state,button,hidden";
+ source: "elm";
action: STATE_SET "hidden" 0.0;
target: "arrow_top";
target: "arrow_bottom";
@@ -428,7 +482,8 @@ group { name: "elm/flipselector/base/default";
target: "bottom";
}
program {
- signal: "elm,state,button,visible"; source: "elm";
+ signal: "elm,state,button,visible";
+ source: "elm";
action: STATE_SET "default" 0.0;
target: "arrow_top";
target: "arrow_bottom";
@@ -437,23 +492,28 @@ group { name: "elm/flipselector/base/default";
target: "bottom";
}
program { name: "up";
- signal: "mouse,down,1"; source: "top";
+ signal: "mouse,down,1";
+ source: "top";
action: SIGNAL_EMIT "elm,action,up,start" "elm";
}
program { name: "up,stop";
- signal: "mouse,up,1"; source: "top";
+ signal: "mouse,up,1";
+ source: "top";
action: SIGNAL_EMIT "elm,action,up,stop" "elm";
}
program { name: "down";
- signal: "mouse,down,1"; source: "bottom";
+ signal: "mouse,down,1";
+ source: "bottom";
action: SIGNAL_EMIT "elm,action,down,start" "elm";
}
program { name: "down,stop";
- signal: "mouse,up,1"; source: "bottom";
+ signal: "mouse,up,1";
+ source: "bottom";
action: SIGNAL_EMIT "elm,action,down,stop" "elm";
}
program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
+ signal: "elm,state,disabled";
+ source: "elm";
script {
new st[31];
new Float:vl;
@@ -473,7 +533,8 @@ group { name: "elm/flipselector/base/default";
}
}
program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
+ signal: "elm,state,enabled";
+ source: "elm";
script {
new st[31];
new Float:vl;