seoz pushed a commit to branch master.

commit 5382e27d653054c4a09dc93254c66b25cf2e0762
Author: Daniel Juyung Seo <[email protected]>
Date:   Wed Jun 5 11:16:43 2013 +0900

    actionslider.edc: support disabled state.
---
 data/themes/widgets/actionslider.edc | 48 ++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/data/themes/widgets/actionslider.edc 
b/data/themes/widgets/actionslider.edc
index 9428e42..f9ad75f 100644
--- a/data/themes/widgets/actionslider.edc
+++ b/data/themes/widgets/actionslider.edc
@@ -186,6 +186,18 @@ group { name: "elm/actionslider/base/default";
             }
          }
       }
+      part { name: "disabler";
+         type: RECT;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            visible: 0;
+         }
+         description { state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            color: 20 20 20 20;
+            visible: 1;
+         }
+      }
    }
    programs {
       program { name: "elm.drag_button,mouse,up";
@@ -203,6 +215,18 @@ group { name: "elm/actionslider/base/default";
          source: "elm.drag_button_base";
          action: SIGNAL_EMIT "elm.drag_button,mouse,move" "";
       }
+      program { name: "disable";
+         signal: "elm,state,disabled";
+         source: "elm";
+         action: STATE_SET "disabled" 0.0;
+         target: "disabler";
+      }
+      program { name: "enable";
+         signal: "elm,state,enabled";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "disabler";
+      }
    }
 }
 
@@ -409,6 +433,18 @@ group { name: "elm/actionslider/base/bar";
             }
          }
       }
+      part { name: "disabler";
+         type: RECT;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            visible: 0;
+         }
+         description { state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            color: 20 20 20 20;
+            visible: 1;
+         }
+      }
    }
    programs {
       program { name: "elm.drag_button,mouse,up";
@@ -426,6 +462,18 @@ group { name: "elm/actionslider/base/bar";
          source: "elm.drag_button_base";
          action: SIGNAL_EMIT "elm.drag_button,mouse,move" "";
       }
+      program { name: "disable";
+         signal: "elm,state,disabled";
+         source: "elm";
+         action: STATE_SET "disabled" 0.0;
+         target: "disabler";
+      }
+      program { name: "enable";
+         signal: "elm,state,enabled";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "disabler";
+      }
    }
 }
 

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to