[dayselector.edc] errors are fixed in dayselector's edc file to support for dynamic...
authorsumanth <sumanth.m@samsung.com>
Mon, 25 Jul 2011 18:58:59 +0000 (14:58 -0400)
committersumanth <sumanth.m@samsung.com>
Mon, 25 Jul 2011 18:58:59 +0000 (14:58 -0400)
Change-Id: I4bbcf92613871afa7497f03a69ee97900f727740

themes/groups/dayselector.edc

index 115f5c6..27e1a25 100644 (file)
@@ -197,10 +197,42 @@ group {
 }
 group {
    name: "elm/check/base/dayselector/sun_first_sun";
+   alias: "elm/check/base/dayselector/default_sun";
    images {
       image: "00_alarm_repeat_button_normal_01.png" COMP;
       image: "00_alarm_repeat_button_press_01.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -312,41 +344,33 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }
@@ -356,6 +380,37 @@ group {
       image: "00_alarm_repeat_button_normal_01.png" COMP;
       image: "00_alarm_repeat_button_press_01.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -467,41 +522,33 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }
@@ -511,6 +558,11 @@ group {
    alias: "elm/check/base/dayselector/sun_first_wed";
    alias: "elm/check/base/dayselector/sun_first_thu";
    alias: "elm/check/base/dayselector/sun_first_fri";
+   alias: "elm/check/base/dayselector/default_mon";
+   alias: "elm/check/base/dayselector/default_tue";
+   alias: "elm/check/base/dayselector/default_wed";
+   alias: "elm/check/base/dayselector/default_thu";
+   alias: "elm/check/base/dayselector/default_fri";
    alias: "elm/check/base/dayselector/mon_first_tue";
    alias: "elm/check/base/dayselector/mon_first_wed";
    alias: "elm/check/base/dayselector/mon_first_thu";
@@ -519,6 +571,37 @@ group {
       image: "00_alarm_repeat_button_normal_02.png" COMP;
       image: "00_alarm_repeat_button_press_02.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -630,41 +713,33 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }
@@ -675,6 +750,37 @@ group {
       image: "00_alarm_repeat_button_normal_02.png" COMP;
       image: "00_alarm_repeat_button_press_02.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -786,51 +892,75 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }
 
 group {
    name: "elm/check/base/dayselector/sun_first_sat";
+   alias: "elm/check/base/dayselector/default_sat";
    images {
       image: "00_alarm_repeat_button_normal_03.png" COMP;
       image: "00_alarm_repeat_button_press_03.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -942,41 +1072,33 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }
@@ -987,6 +1109,37 @@ group {
       image: "00_alarm_repeat_button_normal_03.png" COMP;
       image: "00_alarm_repeat_button_press_03.png" COMP;
    }
+   script {
+      public check_is_on = 0;
+      public text_show = 1;
+      public checkon() {
+         set_state(PART:"check", "visible", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 1);
+      }
+      public checkoff() {
+         set_state(PART:"check", "default", 0.0);
+         if(get_int(text_show) == 1)
+           set_state(PART:"elm.text", "default", 0.0);
+         else if(get_int(text_show) == 0)
+            set_state(PART:"elm.text", "hide", 0.0);
+         set_int(check_is_on, 0);
+      }
+      public show_check_text() {
+         if(get_int(check_is_on) == 1)
+            set_state(PART:"elm.text", "checked", 0.0);
+         else if(get_int(check_is_on) == 0)
+            set_state(PART:"elm.text", "default", 0.0);
+         set_int(text_show, 1);
+      }
+      public hide_check_text() {
+         set_state(PART:"elm.text", "hide", 0.0);
+         set_int(text_show, 0);
+      }
+   }
    parts {
       part {
          name: "bg";
@@ -1098,41 +1251,33 @@ group {
          name: "check_on";
          signal: "elm,state,check,on";
          source: "elm";
-         after: "checkon";
-      }
-      program {
-         name: "checkon";
          script {
-            set_state(PART:"check", "visible", 0.0);
-            set_state(PART:"elm.text", "checked", 0.0);
+            checkon();
          }
       }
       program {
          name: "check_off";
          signal: "elm,state,check,off";
          source: "elm";
-         after:"checkoff";
-      }
-      program {
-         name: "checkoff";
          script {
-            set_state(PART:"check", "default", 0.0);
-            set_state(PART:"elm.text", "default", 0.0);
+            checkoff();
          }
       }
       program {
          name: "text_show";
          signal: "elm,state,text,visible";
          source: "elm";
-         action:  STATE_SET "default" 0.0;
-         target: "elm.text";
+         script {
+            show_check_text();
+         }
        }
       program {
          name: "text_hide";
          signal: "elm,state,text,hidden";
          source: "elm";
-         action:  STATE_SET "hide" 0.0;
-         target: "elm.text";
+         script {
+            hide_check_text();
+         }
       }
    }
 }