[elc_naviframe]: Issue fix: when title is hidden option header is not
authorShilpa Singh <shilpa.singh@samsung.com>
Fri, 7 Oct 2011 08:40:49 +0000 (17:40 +0900)
committerShilpa Singh <shilpa.singh@samsung.com>
Fri, 7 Oct 2011 11:16:15 +0000 (20:16 +0900)
hidden.

Change-Id: Ie26729ac2832bf1d8f4b15dfd6e5dfead6c198d2

themes/groups/naviframe.edc

index 263e1cf..1ff5dd6 100644 (file)
                inherit: "default" 0.0;
                min: 1 NAVIFRAME_OH_OPENED_H_INC;
             }
+            description { state: "hide" 0.0;
+               inherit: "default" 0.0;
+               min: 0 0;
+               max: 0 0;
+               fixed: 1 1;
+            }
          }
          part { name: "optionheader_bg";
             type: IMAGE;
          }
          part { name: "title_base";
             type: RECT;
-            clip_to: "title_clip";
-            scale: 1;
             description { state: "default" 0.0;
-               min: 1 NAVIFRAME_TITLE_H_INC;
-               align: 0.5 0.0;
-               fixed: 0 1;
-               rel1 { relative: 0.0 0.0; }
-               rel2 { relative: 1.0 0.0; }
+               rel1 { to: "title_clip"; }
+               rel2 { to: "title_clip"; }
                color: NAVIFRAME_TITLE_BG_COLOR_INC;
             }
          }
          program { name: "title_show";
             signal: "elm,state,title,show";
             source: "elm";
-            action: STATE_SET "default" 0.0;
-            target: "title_clip";
+            script {
+               set_state(PART:"title_clip", "default", 0.0);
+               if (get_int(oh_show) == 1) {
+                  if (get_int(oh_close) == 1) {
+                     emit("elm,state,optionheader,instant_close", "");
+                  }else {
+                     emit("elm,state,optionheader,instant_open", "");
+                  }
+               }
+               else
+                 set_state(PART:"optionheader_clip", "default", 0.0);
+            }
          }
          program { name: "title_hide";
             signal: "elm,state,title,hide";
             source: "elm";
             action: STATE_SET "hide" 0.0;
             target: "title_clip";
+            target: "optionheader_clip";
          }
          program { name: "optionheader_show";
             signal: "elm,state,elm.swallow.optionheader,show";
                inherit: "default" 0.0;
                min: 1 NAVIFRAME_OH_OPENED_DOUBLE_H_INC;
             }
+            description { state: "hide" 0.0;
+               inherit: "default" 0.0;
+               min: 0 0;
+               max: 0 0;
+               fixed: 1 1;
+            }
          }
          part { name: "optionheader_bg";
             type: IMAGE;
          }
          part { name: "title_base";
             type: RECT;
-            clip_to: "title_clip";
-            scale: 1;
             description { state: "default" 0.0;
-               min: 1 NAVIFRAME_TITLE_H_INC;
-               align: 0.5 0.0;
-               fixed: 0 1;
-               rel1 { relative: 0.0 0.0; }
-               rel2 { relative: 1.0 0.0; }
+               rel1 { to: "title_clip"; }
+               rel2 { to: "title_clip"; }
                color: NAVIFRAME_TITLE_BG_COLOR_INC;
             }
          }
          program { name: "title_show";
             signal: "elm,state,title,show";
             source: "elm";
-            action: STATE_SET "default" 0.0;
-            target: "title_clip";
+            script {
+               set_state(PART:"title_clip", "default", 0.0);
+               if (get_int(oh_show) == 1) {
+                  if (get_int(oh_close) == 1) {
+                     emit("elm,state,optionheader,instant_close", "");
+                  }else {
+                     emit("elm,state,optionheader,instant_open", "");
+                  }
+               }
+               else
+                 set_state(PART:"optionheader_clip", "default", 0.0);
+            }
          }
          program { name: "title_hide";
             signal: "elm,state,title,hide";
             source: "elm";
             action: STATE_SET "hide" 0.0;
             target: "title_clip";
+            target: "optionheader_clip";
          }
          program { name: "optionheader_show";
             signal: "elm,state,elm.swallow.optionheader,show";
                inherit: "default" 0.0;
                min: 1 NAVIFRAME_OH_OPENED_H_INC;
             }
+            description { state: "hide" 0.0;
+               inherit: "default" 0.0;
+               min: 0 0;
+               max: 0 0;
+               fixed: 1 1;
+            }
          }
          part { name: "optionheader_bg";
             type: IMAGE;
          }
          part { name: "title_base";
             type: RECT;
-            clip_to: "title_clip";
-            scale: 1;
             description { state: "default" 0.0;
-               min: 1 NAVIFRAME_TITLE_H_INC;
-               align: 0.5 0.0;
-               fixed: 0 1;
-               rel1 { relative: 0.0 0.0; }
-               rel2 { relative: 1.0 0.0; }
+               rel1 { to: "title_clip"; }
+               rel2 { to: "title_clip"; }
                color: NAVIFRAME_TITLE_BG_COLOR_INC;
             }
          }
          program { name: "title_show";
             signal: "elm,state,title,show";
             source: "elm";
-            action: STATE_SET "default" 0.0;
-            target: "title_clip";
+            script {
+               set_state(PART:"title_clip", "default", 0.0);
+               if (get_int(oh_show) == 1) {
+                  if (get_int(oh_close) == 1) {
+                     emit("elm,state,optionheader,instant_close", "");
+                  }else {
+                     emit("elm,state,optionheader,instant_open", "");
+                  }
+               }
+               else
+                 set_state(PART:"optionheader_clip", "default", 0.0);
+            }
          }
          program { name: "title_hide";
             signal: "elm,state,title,hide";
             source: "elm";
             action: STATE_SET "hide" 0.0;
             target: "title_clip";
+            target: "optionheader_clip";
          }
          program { name: "optionheader_show";
             signal: "elm,state,elm.swallow.optionheader,show";
                inherit: "default" 0.0;
                min: 1 NAVIFRAME_OH_OPENED_DOUBLE_H_INC;
             }
+            description { state: "hide" 0.0;
+               inherit: "default" 0.0;
+               min: 0 0;
+               max: 0 0;
+               fixed: 1 1;
+            }
          }
          part { name: "optionheader_bg";
             type: IMAGE;
          }
          part { name: "title_base";
             type: RECT;
-            clip_to: "title_clip";
-            scale: 1;
             description { state: "default" 0.0;
-               min: 1 NAVIFRAME_TITLE_H_INC;
-               align: 0.5 0.0;
-               fixed: 0 1;
-               rel1 { relative: 0.0 0.0; }
-               rel2 { relative: 1.0 0.0; }
+               rel1 { to: "title_clip"; }
+               rel2 { to: "title_clip"; }
                color: NAVIFRAME_TITLE_BG_COLOR_INC;
             }
          }
          program { name: "title_show";
             signal: "elm,state,title,show";
             source: "elm";
-            action: STATE_SET "default" 0.0;
-            target: "title_clip";
+            script {
+               set_state(PART:"title_clip", "default", 0.0);
+               if (get_int(oh_show) == 1) {
+                  if (get_int(oh_close) == 1) {
+                     emit("elm,state,optionheader,instant_close", "");
+                  }else {
+                     emit("elm,state,optionheader,instant_open", "");
+                  }
+               }
+               else
+                 set_state(PART:"optionheader_clip", "default", 0.0);
+            }
          }
          program { name: "title_hide";
             signal: "elm,state,title,hide";
             source: "elm";
             action: STATE_SET "hide" 0.0;
             target: "title_clip";
+            target: "optionheader_clip";
          }
          program { name: "optionheader_show";
             signal: "elm,state,elm.swallow.optionheader,show";