summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadoslaw Czerski <r.czerski@samsung.com>2016-04-13 12:15:31 +0200
committerRadoslaw Czerski <r.czerski@samsung.com>2016-04-13 12:15:31 +0200
commit2498d9b3a237e7bdaaf944286692cc397d4badc1 (patch)
tree32715992b0abb378a8ce2ca3f370d3324308092f
parentab99b1de9286fff7d9ce246ca3c3e2d5ed99cbd3 (diff)
downloadindicator-win-2498d9b3a237e7bdaaf944286692cc397d4badc1.tar.gz
indicator-win-2498d9b3a237e7bdaaf944286692cc397d4badc1.tar.bz2
indicator-win-2498d9b3a237e7bdaaf944286692cc397d4badc1.zip
edc: indicator paddings and scover code removed.
Change-Id: I72e9a11770c55228b8b485c4b006fef9763d7530 Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
-rw-r--r--res/resource/indicator_common.edc26
-rw-r--r--res/resource/indicator_port.edc420
2 files changed, 55 insertions, 391 deletions
diff --git a/res/resource/indicator_common.edc b/res/resource/indicator_common.edc
index 80e4ea0..7ca00a1 100644
--- a/res/resource/indicator_common.edc
+++ b/res/resource/indicator_common.edc
@@ -250,6 +250,30 @@
} \
} \
+#define FIXED_FIRST_RECT_FROM_LEFT( rectName, rel_x, MinWidth, colorValue, visibleValue) \
+ part { \
+ name: rectName; \
+ type: RECT; \
+ mouse_events: 0; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: MinWidth 0; \
+ fixed: 1 1; \
+ rel1 { relative: 1.0 0.0; to: rel_x;} \
+ rel2 { relative: 0.0 1.0; to: rel_x;} \
+ align: 0.0 0.5; \
+ color : colorValue; \
+ visible: visibleValue; \
+ } \
+ description { \
+ state: "hide" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ visible: 0; \
+ } \
+ } \
+
#define FIXED_RECT_FROM_LEFT( rectName, rel_x, rel_y, MinWidth, colorValue, visibleValue) \
part { \
name: rectName; \
@@ -273,7 +297,7 @@
visible: 0; \
} \
} \
-
+
#define FIXED_RECT_FROM_RIGHT( rectName, rel_x, rel_y, MinWidth, colorValue, visibleValue) \
part { \
name: rectName; \
diff --git a/res/resource/indicator_port.edc b/res/resource/indicator_port.edc
index 12e5cf2..3ba6801 100644
--- a/res/resource/indicator_port.edc
+++ b/res/resource/indicator_port.edc
@@ -121,145 +121,6 @@ collections {
}
}
- /* Left padding */
- part {
- name: "resize_padding.left";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 0 0;
- fixed: 1 0;
- rel1 { relative: 0.0 0.0; to: "elm.rect.bg"; }
- rel2 { relative: 0.0 1.0; to: "elm.rect.bg"; }
- align: 0.0 0.0;
- visible: 0;
- }
- description {
- state: "1" 0.0;
- inherit: "default" 0.0;
- min: 1 0;
- color: 255 0 0 255;
- }
- description {
- state: "2" 0.0;
- inherit: "default" 0.0;
- min: 2 0;
- color: 0 255 0 255;
- }
- description {
- state: "3" 0.0;
- inherit: "default" 0.0;
- min: 3 0;
- color: 0 0 255 255;
- }
-
- description {
- state: "4" 0.0;
- inherit: "default" 0.0;
- min: 4 0;
- color: 255 255 0 255;
- }
- }
- part {
- name: "padding.left";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: LEFT_PADDING_WIDTH 0;
- fixed: 1 0;
- rel1 { relative: 0.0 0.0; to: "elm.rect.bg"; }
- rel2 { relative: 0.0 1.0; to: "elm.rect.bg"; }
- align: 0.0 0.0;
- color:0 0 0 0;
- visible: 0;
- }
- description {
- state: "scover" 0.0;
- inherit: "default" 0.0;
- min: 72 0;
- }
- }
- /* Right padding */
- part {
- name: "resize_padding.right";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 0 0;
- fixed: 1 0;
- rel1 { relative: 1.0 0.0; to: "elm.rect.bg"; }
- rel2 { relative: 1.0 1.0; to: "elm.rect.bg"; }
- align: 0.0 0.0;
- visible: 0;
- }
- description {
- state: "1" 0.0;
- inherit: "default" 0.0;
- min: 1 0;
- color: 255 0 0 255;
- }
- description {
- state: "2" 0.0;
- inherit: "default" 0.0;
- min: 2 0;
- color: 0 255 0 255;
- }
- description {
- state: "3" 0.0;
- inherit: "default" 0.0;
- min: 3 0;
- color: 0 0 255 255;
- }
-
- description {
- state: "4" 0.0;
- inherit: "default" 0.0;
- min: 4 0;
- color: 255 255 0 255;
- }
-
- }
- part {
- name: "padding.right";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- min: RIGHT_PADDING_WIDTH 0;
- fixed: 1 0;
- rel1 { relative: 1.0 0.0; to: "elm.rect.bg"; }
- rel2 { relative: 1.0 1.0; to: "elm.rect.bg"; }
- align: 1.0 0.0;
- color : 0 0 0 0;
- visible: 0;
- }
- description {
- state: "scover" 0.0;
- inherit: "default" 0.0;
- min: 72 0;
- }
- description {
- state: "dynamic" 0.0;
- inherit: "default" 0.0;
- rel1 {
- relative: 1.0 0.0; to: "resize_padding.right";
- offset : 73 0;
- }
- rel2 {
- relative: 1.0 1.0; to: "resize_padding.right";
- offset : 73 0;
- }
- align: 1.0 0.0;
- }
-
- }
part {
name: "elm.rect.bg.base";
type: RECT;
@@ -346,25 +207,6 @@ collections {
}
visible: 0;
}
- description {
- state: "during_call" 0.0;
- inherit: "default" 0.0;
- color_class:"AO005";
- visible : 1;
- }
- description {
- state: "call_hold" 0.0;
- inherit: "default" 0.0;
- color_class:"AO007";
- visible : 1;
- }
- description {
- state: "call_end" 0.0;
- inherit: "default" 0.0;
- color_class:"AO006";
- visible : 1;
- }
- }
part {
name: "elm.rect.right_con";
@@ -390,7 +232,7 @@ collections {
description {
state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 0.0; to_x: padding.left; to_y: elm.rect.bg; }
+ rel1 { relative: 1.0 0.0; to_x: elm.rect.bg; to_y: elm.rect.bg; }
rel2 { relative: 0.0 1.0; to_x: elm.swallow.fixed6; to_y: elm.rect.bg; }
align: 0.0 0.0;
}
@@ -433,14 +275,14 @@ collections {
visible: 0;
min: 0 INDICATOR_HEIGHT;
fixed: 0 1;
- rel1 { relative: 1.0 1.0; to_x: padding.left; to_y: elm.swallow.noti; }
- rel2 { relative: 0.0 1.0; to_x: padding.right; to_y: elm.swallow.noti; }
+ rel1 { relative: 1.0 1.0; to_x: elm.rect.bg; to_y: elm.swallow.noti; }
+ rel2 { relative: 0.0 1.0; to_x: elm.rect.bg; to_y: elm.swallow.noti; }
align: 0.0 0.0;
visible: 0;
}
}
part {
- name: "plmn.padding.left";
+ name: "plmn.elm.rect.bg";
type: RECT;
scale: 1;
mouse_events: 0;
@@ -471,13 +313,13 @@ collections {
visible: 1;
rel1 {
relative: 1.0 1.0;
- to_x: "plmn.padding.left";
+ to_x: "plmn.elm.rect.bg";
to_y: "plmn.bg";
}
rel2 {
relative: 0.0 0.0;
- to_x: "plmn.padding.right";
+ to_x: "plmn.elm.rect.bg";
to_y: "plmn.bg";
}
text {
@@ -521,8 +363,8 @@ collections {
min: 0 0;
#endif
fixed: 1 0;
- rel1 { relative: 1.0 0.0; to_x: padding.left; to_y: elm.rect.right_con; }
- rel2 { relative: 1.0 1.0; to_x: padding.left; to_y: elm.rect.right_con; }
+ rel1 { relative: 1.0 0.0; to_x: elm.rect.bg; to_y: elm.rect.right_con; }
+ rel2 { relative: 0.0 1.0; to_x: elm.rect.bg; to_y: elm.rect.right_con; }
align: 0.0 0.5;
visible: 1;
}
@@ -616,8 +458,12 @@ collections {
state: "default" 0.0;
min: BATTERY_ICON_WIDTH BATTERY_ICON_HEIGHT;
fixed: 1 0;
- rel1 { relative: 0.0 0.0; to_x: "padding.right"; to_y: "elm.rect.bg"; }
- rel2 { relative: 0.0 1.0; to_x: "padding.right"; to_y: "elm.rect.bg"; }
+ rel1 { relative: 0.0 0.0;
+ to: "elm.rect.bg";
+ }
+ rel2 { relative: 0.0 1.0;
+ to: "elm.rect.bg";
+ }
align: 1.0 0.5;
visible: 1;
}
@@ -665,7 +511,7 @@ collections {
//////////////////////////////////////////
/* ICON_FIXED3 (RSSI 1) + PADDING_FIXED4(RIGHT, FIXED PADDING) */
- FIXED_RECT_FROM_LEFT( "elm.rect.rssi1", "padding.left", "elm.rect.bg", DEFAULT_ICON_PADDING, INDI_DEFAULT_BG_TEST, 0)
+ FIXED_FIRST_RECT_FROM_LEFT( "elm.rect.rssi1", "elm.rect.bg", DEFAULT_ICON_PADDING, INDI_DEFAULT_BG_TEST, 0)
SWALLOW_PART_FROM_LEFT_WITH_SPACE( "elm.swallow.fixed1", "elm.rect.rssi1", "elm.rect.bg", DEFAULT_ICON_WIDTH, DEFAULT_ICON_HEIGHT )
/* ICON_FIXED4 (RSSI 2) + PADDING_FIXED5(RIGHT, FIXED PADDING) */
@@ -852,8 +698,8 @@ collections {
min: 0 0;
#endif
fixed: 1 0;
- rel1 { relative: 0.0 0.0; to_x: padding.right; to_y: elm.rect.right_con; }
- rel2 { relative: 0.0 1.0; to_x: padding.right; to_y: elm.rect.right_con; }
+ rel1 { relative: 0.0 0.0; to_x: elm.rect.bg; to_y: elm.rect.right_con; }
+ rel2 { relative: 0.0 1.0; to_x: elm.rect.bg; to_y: elm.rect.right_con; }
align: 1.0 0.5;
visible: 1;
}
@@ -893,7 +739,7 @@ collections {
}
}
part {
- name: "plmn_dynamic.padding.left";
+ name: "plmn_dynamic.elm.rect.bg";
type: RECT;
mouse_events: 0;
scale: 1;
@@ -923,8 +769,8 @@ collections {
state: "default" 0.0;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 0.5; to_x:plmn_dynamic.padding.left; to_y: elm.rect.right_con; }
- rel2 { relative: 1.0 0.5; to_x:plmn_dynamic.padding.left; to_y: elm.rect.right_con; }
+ rel1 { relative: 1.0 0.5; to_x:plmn_dynamic.elm.rect.bg; to_y: elm.rect.right_con; }
+ rel2 { relative: 1.0 0.5; to_x:plmn_dynamic.elm.rect.bg; to_y: elm.rect.right_con; }
align: 0.0 0.5;
visible: 0;
}
@@ -962,7 +808,7 @@ collections {
}
}
part {
- name: "clock.padding.left";
+ name: "clock.elm.rect.bg";
type: RECT;
mouse_events: 0;
scale: 1;
@@ -1080,90 +926,6 @@ collections {
inherit: "default" 0.0;
}
}
-
- part {
- name: "message.padding.left";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: MESSAGE_PADDING 0;
- fixed: 1 0;
- rel1 {
- relative: 0.0 0.0;
- to: "message.bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "message.bg";
- }
- align: 0.0 0.0;
- visible: 0;
- }
- description {
- state: "scover" 0.0;
- inherit: "default" 0.0;
- min: 72 0;
- }
- }
- part {
- name: "message.padding.right";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: MESSAGE_PADDING 0;
- fixed: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "message.bg";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "message.bg";
- }
- align: 1.0 0.0;
- visible: 0;
- }
- description {
- state: "scover" 0.0;
- inherit: "default" 0.0;
- min: 72 0;
- }
- }
- part {
- name: "message.padding.top";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 0 INDICATOR_PADDING_H;
- fixed: 0 1;
- rel1 { relative: 0.0 0.0; to: "message.bg"; }
- rel2 { relative: 1.0 0.0; to: "message.bg"; }
- align: 0.0 0.0;
- visible: 0;
- }
- }
- part {
- name: "message.padding.bottom";
- type: RECT;
- scale: 1;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- min: 0 INDICATOR_PADDING_H;
- fixed: 0 1;
- rel1 { relative: 0.0 1.0; to: "message.bg"; }
- rel2 { relative: 1.0 1.0; to: "message.bg"; }
- align: 0.0 1.0;
- visible: 0;
- }
-
- }
part {
name: "message.text";
type: TEXTBLOCK;
@@ -1174,15 +936,13 @@ collections {
fixed: 1 1;
visible: 1;
rel1 {
- relative: 1.0 0.0;
- to_x: "message.padding.left";
- to_y: "message.bg";
+ relative: 0.0 0.0;
+ to: "message.bg";
}
rel2 {
relative: 0.0 1.0;
- to_x: "message.padding.right";
- to_y: "message.bg";
+ to: "message.bg";
}
text {
style: "message_style";
@@ -1193,15 +953,13 @@ collections {
state: "line2" 0.0;
inherit: "default" 0.0;
rel1 {
- relative: 1.0 1.0;
- to_x: "message.padding.left";
- to_y: "message.bg";
+ relative: 0.0 1.0;
+ to: "message.bg";
}
rel2 {
relative: 0.0 2.0;
- to_x: "message.padding.right";
- to_y: "message.bg";
+ to: "message.bg";
}
text {
style: "message_style2";
@@ -1243,15 +1001,13 @@ collections {
fixed: 1 1;
visible: 1;
rel1 {
- relative: 1.0 -1.0;
- to_x: "message.padding.left";
- to_y: "message.text";
+ relative: 0.0 -1.0;
+ to: "message.text";
}
rel2 {
relative: 0.0 0.0;
- to_x: "message.padding.right";
- to_y: "message.text";
+ to: "message.text";
}
text {
style: "message_style";
@@ -1707,123 +1463,7 @@ collections {
target: "elm.rect.noti";
}
// S Cover
- program {
- name: "indicator.scover.on";
- action: STATE_SET "scover" 0.0;
- signal: "indicator.scover.on";
- source: "indicator.prog";
- target: "padding.left";
- target: "padding.right";
- target: "message.padding.left";
- target: "message.padding.right";
- }
- program {
- name: "indicator.scover.off";
- action: STATE_SET "default" 0.0;
- signal: "indicator.scover.off";
- source: "indicator.prog";
- target: "padding.left";
- target: "padding.right";
- target: "message.padding.left";
- target: "message.padding.right";
- }
- program {
- name: "indicator.padding.dynamic.on";
- action: STATE_SET "dynamic" 0.0;
- signal: "indicator.padding.dynamic.on";
- source: "indicator.prog";
- target: "padding.right";
- transition: LINEAR 0.4;
- }
- program {
- name: "indicator.padding.dynamic.off";
- action: STATE_SET "default" 0.0;
- signal: "indicator.padding.dynamic.off";
- source: "indicator.prog";
- target: "padding.right";
- transition: LINEAR 0.4;
- }
- program {
- name: "indicator.padding.dynamic.off.noeffect";
- action: STATE_SET "default" 0.0;
- signal: "indicator.padding.dynamic.off.noeffect";
- source: "indicator.prog";
- target: "padding.right";
- }
-
- program {
- name: "indicator.padding.resize.0";
- action: STATE_SET "default" 0.0;
- signal: "indicator.padding.resize.0";
- source: "indicator.prog";
- target: "resize_padding.left";
- target: "resize_padding.right";
- }
- program {
- name: "indicator.padding.resize.1";
- action: STATE_SET "1" 0.0;
- signal: "indicator.padding.resize.1";
- source: "indicator.prog";
- target: "resize_padding.left";
- target: "resize_padding.right";
- }
-
- program {
- name: "indicator.padding.resize.2";
- action: STATE_SET "2" 0.0;
- signal: "indicator.padding.resize.2";
- source: "indicator.prog";
- target: "resize_padding.left";
- target: "resize_padding.right";
- }
-
- program {
- name: "indicator.padding.resize.3";
- action: STATE_SET "3" 0.0;
- signal: "indicator.padding.resize.3";
- source: "indicator.prog";
- target: "resize_padding.left";
- target: "resize_padding.right";
- }
-
- program {
- name: "indicator.padding.resize.4";
- action: STATE_SET "4" 0.0;
- signal: "indicator.padding.resize.4";
- source: "indicator.prog";
- target: "resize_padding.left";
- target: "resize_padding.right";
- }
-
- program {
- name: "indicator.bg.call.0";
- action: STATE_SET "default" 0.0;
- signal: "indicator.bg.call.0";
- source: "indicator.prog";
- target: "elm.rect.bg.call";
- }
- program {
- name: "indicator.bg.call.1";
- action: STATE_SET "during_call" 0.0;
- signal: "indicator.bg.call.1";
- source: "indicator.prog";
- target: "elm.rect.bg.call";
- }
- program {
- name: "indicator.bg.call.2";
- action: STATE_SET "call_hold" 0.0;
- signal: "indicator.bg.call.2";
- source: "indicator.prog";
- target: "elm.rect.bg.call";
- }
- program {
- name: "indicator.bg.call.3";
- action: STATE_SET "call_end" 0.0;
- signal: "indicator.bg.call.3";
- source: "indicator.prog";
- target: "elm.rect.bg.call";
- }
program {
name: "clock.font.12";