summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuresh kumar <suresh.ku1@samsung.com>2017-03-17 14:43:33 (GMT)
committerBowon Ryu <bowon.ryu@samsung.com>2017-03-20 06:59:21 (GMT)
commit74b74fb01e0f0ff47fd62e386e71e8855d76729b (patch)
treeb09e87856d77a66462a30e06a66f9a978a0e618f
parent72c22f1275c591bc2a5bde6107798563e9469108 (diff)
downloadefl-theme-tizen-mobile-74b74fb01e0f0ff47fd62e386e71e8855d76729b.zip
efl-theme-tizen-mobile-74b74fb01e0f0ff47fd62e386e71e8855d76729b.tar.gz
efl-theme-tizen-mobile-74b74fb01e0f0ff47fd62e386e71e8855d76729b.tar.bz2
Fix the EDC warning in default and pending stylesrefs/changes/97/119797/1
[Model] Z400F [BinType] AP [Customer] N/A [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] Fix EDC warning in default and pending styles [Cause & Measure] Cause : EDC warning in default and pending styles Measure : Fixed EDC warning in default and pending styles [Checking Method] N/A [Team] UIFW/EFL [Developer] suresh007 [Solution company] SRIB [Change Type] N/A Change-Id: Ie4fe378160b4ede48143ee3b617cbbdaf5fba600
-rw-r--r--mobile/widgets/progressbar.edc108
1 files changed, 52 insertions, 56 deletions
diff --git a/mobile/widgets/progressbar.edc b/mobile/widgets/progressbar.edc
index 3f51a3f..fb1dac4 100644
--- a/mobile/widgets/progressbar.edc
+++ b/mobile/widgets/progressbar.edc
@@ -484,6 +484,24 @@
public text_bottom_left_show = 0;
public text_bottom_right_show = 0;
public text_status_show = 0;
+ public base_size_set() {
+ if (!get_int(text_top_right_show)) {
+ if (get_int(text_bottom_left_show)
+ + get_int(text_bottom_right_show)
+ + get_int(text_status_show) == 0)
+ set_state(PART:"base", "default", 0.0);
+ else
+ set_state(PART:"base", "base_with_one_text", 0.0);
+ }
+ else {
+ if (get_int(text_bottom_left_show)
+ + get_int(text_bottom_right_show)
+ + get_int(text_status_show) == 0)
+ set_state(PART:"base", "base_with_one_text", 0.0);
+ else
+ set_state(PART:"base", "base_with_two_text", 0.0);
+ }
+ }
public set_enable(m) {
if (m) {
set_state(PART:"bg_progressbar", "default", 0.0);
@@ -526,26 +544,6 @@
}
}
programs {
- program { "base_size_set";
- script {
- if (!get_int(text_top_right_show)) {
- if (get_int(text_bottom_left_show)
- + get_int(text_bottom_right_show)
- + get_int(text_status_show) == 0)
- set_state(PART:"base", "default", 0.0);
- else
- set_state(PART:"base", "base_with_one_text", 0.0);
- }
- else {
- if (get_int(text_bottom_left_show)
- + get_int(text_bottom_right_show)
- + get_int(text_status_show) == 0)
- set_state(PART:"base", "base_with_one_text", 0.0);
- else
- set_state(PART:"base", "base_with_two_text", 0.0);
- }
- }
- }
program { "on_visible_top_right";
script {
set_int(text_top_right_show, SHOW);
@@ -553,14 +551,14 @@
set_state(PART:"elm.text.top.right", "visible", 0.0);
else
set_state(PART:"elm.text.top.right", "disabled_visible", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_top_right";
script {
set_int(text_top_right_show, HIDE);
set_state(PART:"elm.text.top.right", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_bottom_left";
@@ -570,14 +568,14 @@
set_state(PART:"elm.text.bottom.left", "visible", 0.0);
else
set_state(PART:"elm.text.bottom.left", "disabled_visible", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_bottom_left";
script {
set_int(text_bottom_left_show, HIDE);
set_state(PART:"elm.text.bottom.left", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_bottom_right";
@@ -592,14 +590,14 @@
set_state(PART:"elm.text.status", "default", 0.0);
set_state(PART:"elm.text.bottom.right", "disabled_visible", 0.0);
}
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_bottom_right";
script {
set_int(text_bottom_right_show, HIDE);
set_state(PART:"elm.text.bottom.right", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_units";
@@ -614,14 +612,14 @@
set_state(PART:"elm.text.bottom.right", "default", 0.0);
set_state(PART:"elm.text.status", "disabled_visible", 0.0);
}
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_units";
script {
set_int(text_status_show, HIDE);
set_state(PART:"elm.text.status", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "slide_to_end";
@@ -1038,6 +1036,24 @@
public text_bottom_left_show = 0;
public text_bottom_right_show = 0;
public text_status_show = 0;
+ public base_size_set() {
+ if (!get_int(text_top_right_show)) {
+ if (get_int(text_bottom_left_show)
+ + get_int(text_bottom_right_show)
+ + get_int(text_status_show) == 0)
+ set_state(PART:"base", "default", 0.0);
+ else
+ set_state(PART:"base", "base_with_one_text", 0.0);
+ }
+ else {
+ if (get_int(text_bottom_left_show)
+ + get_int(text_bottom_right_show)
+ + get_int(text_status_show) == 0)
+ set_state(PART:"base", "base_with_one_text", 0.0);
+ else
+ set_state(PART:"base", "base_with_two_text", 0.0);
+ }
+ }
public set_enable(m) {
if (m) {
set_state(PART:"bg_progressbar", "default", 0.0);
@@ -1077,26 +1093,6 @@
}
}
programs {
- program { "base_size_set";
- script {
- if (!get_int(text_top_right_show)) {
- if (get_int(text_bottom_left_show)
- + get_int(text_bottom_right_show)
- + get_int(text_status_show) == 0)
- set_state(PART:"base", "default", 0.0);
- else
- set_state(PART:"base", "base_with_one_text", 0.0);
- }
- else {
- if (get_int(text_bottom_left_show)
- + get_int(text_bottom_right_show)
- + get_int(text_status_show) == 0)
- set_state(PART:"base", "base_with_one_text", 0.0);
- else
- set_state(PART:"base", "base_with_two_text", 0.0);
- }
- }
- }
program { "on_visible_top_right";
script {
set_int(text_top_right_show, SHOW);
@@ -1104,14 +1100,14 @@
set_state(PART:"elm.text.top.right", "visible", 0.0);
else
set_state(PART:"elm.text.top.right", "disabled_visible", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_top_right";
script {
set_int(text_top_right_show, HIDE);
set_state(PART:"elm.text.top.right", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_bottom_left";
@@ -1121,14 +1117,14 @@
set_state(PART:"elm.text.bottom.left", "visible", 0.0);
else
set_state(PART:"elm.text.bottom.left", "disabled_visible", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_bottom_left";
script {
set_int(text_bottom_left_show, HIDE);
set_state(PART:"elm.text.bottom.left", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_bottom_right";
@@ -1143,14 +1139,14 @@
set_state(PART:"elm.text.status", "default", 0.0);
set_state(PART:"elm.text.bottom.right", "disabled_visible", 0.0);
}
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_bottom_right";
script {
set_int(text_bottom_right_show, HIDE);
set_state(PART:"elm.text.bottom.right", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_visible_units";
@@ -1165,14 +1161,14 @@
set_state(PART:"elm.text.bottom.right", "default", 0.0);
set_state(PART:"elm.text.status", "disabled_visible", 0.0);
}
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "on_hidden_units";
script {
set_int(text_status_show, HIDE);
set_state(PART:"elm.text.status", "default", 0.0);
- run_program(PROGRAM:"base_size_set");
+ base_size_set();
}
}
program { "slide_to_end";