seoz pushed a commit to branch master.

commit b457f8f3d2485b0d45e197e4f3a3959771434ef8
Author: Daniel Juyung Seo <[email protected]>
Date:   Tue Jul 23 17:12:42 2013 +0900

    actionslider.edc: use group inherit \o/
---
 data/themes/widgets/actionslider.edc | 229 +----------------------------------
 1 file changed, 2 insertions(+), 227 deletions(-)

diff --git a/data/themes/widgets/actionslider.edc 
b/data/themes/widgets/actionslider.edc
index f9ad75f..6a3b7c4 100644
--- a/data/themes/widgets/actionslider.edc
+++ b/data/themes/widgets/actionslider.edc
@@ -231,97 +231,13 @@ group { name: "elm/actionslider/base/default";
 }
 
 group { name: "elm/actionslider/base/bar";
-
-   images {
-      image: "shelf_inset.png" COMP;
-      image: "ilist_1.png" COMP;
-      image: "bt_bases.png" COMP;
-      image: "bt_basew.png" COMP;
-      image: "bt_hilightw.png" COMP;
-   }
+   inherit: "elm/actionslider/base/default";
 
    parts {
-      part {
-         name: "base";
-         mouse_events: 0;
-         scale: 1;
-         description {
-            state: "default" 0.0;
-            min: 150 30;
-            rel1.offset: 1 1;
-            rel2.offset: -2 -2;
-            image {
-               normal: "ilist_1.png";
-               border: 2 2 2 2;
-            }
-            fill.smooth: 0;
-         }
-      }
-      part { name: "conf_over";
-         mouse_events:  0;
-         description { state: "default" 0.0;
-            rel1.to: "base";
-            rel2.to: "base";
-            image {
-               normal: "shelf_inset.png";
-               border: 7 7 7 7;
-               middle: 0;
-            }
-            fill.smooth : 0;
-         }
-      }
-      part { name: "icon.dragable.area";
-         type: SPACER;
-         description { state: "default" 0.0;
-            rel1.to: "base";
-            rel2.to: "base";
-         }
-      }
-      part { name: "elm.text.left";
-         type: TEXT;
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            color: 0 0 0 255;
-            text {
-               font: "Sans,Edje-Vera";
-               size: 10;
-               align: 0.05 0.5;
-               min: 1 1;
-            }
-         }
-      }
-      part { name: "elm.text.center";
-         type: TEXT;
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            color: 0 0 0 255;
-            text {
-               font: "Sans,Edje-Vera";
-               size: 10;
-               align: 0.5 0.5;
-               min: 1 1;
-            }
-         }
-      }
-      part { name: "elm.text.right";
-         type: TEXT;
-         mouse_events: 0;
-         scale: 1;
-         description { state: "default" 0.0;
-            color: 0 0 0 255;
-            text {
-               font: "Sans,Edje-Vera";
-               size: 10;
-               align: 0.95 0.5;
-               min: 1 1;
-            }
-         }
-      }
       part { name: "bar";
          type: RECT;
          mouse_events: 0;
+         insert_before: "elm.drag_button_base";
          description { state: "default" 0.0;
             rel1.to: "base";
             rel1.offset: 0 2;
@@ -334,146 +250,5 @@ group { name: "elm/actionslider/base/bar";
             color: 0 0 0 180;
          }
       }
-      part { name: "elm.drag_button_base";
-         type: SWALLOW;
-         mouse_events: 1;
-         scale: 1;
-         description { state: "default" 0.0;
-            fixed: 1 1;
-            min: 50 25;
-            align: 0.5 0.5;
-            rel1.to: "icon.dragable.area";
-            rel2 {
-               relative: 0.0 1.0;
-               to: "icon.dragable.area";
-            }
-         }
-         dragable {
-            confine: "icon.dragable.area";
-            x: 1 1 0;
-            y: 0 0 0;
-         }
-      }
-      part { name: "elm.drag_button";
-         type: RECT;
-         mouse_events: 1;
-         scale: 1;
-         description { state: "default" 0.0;
-            min: 50 25;
-            color: 255 255 255 0;
-            rel1.to_x: "elm.drag_button_base";
-            rel1.to_y: "icon.dragable.area";
-            rel2.to_x: "elm.drag_button_base";
-            rel2.to_y: "icon.dragable.area";
-         }
-         dragable {
-            events: "elm.drag_button_base";
-         }
-      }
-      part { name: "button0";
-         mouse_events: 0;
-         description { state: "default" 0.0;
-            rel1.to: "button2";
-            rel1.offset: -4 -4;
-            rel2.to: "button2";
-            rel2.offset: 3 3;
-            image {
-               normal: "bt_bases.png";
-               border: 11 11 11 11;
-               middle: SOLID;
-            }
-            color: 255 255 255 128;
-         }
-      }
-      part { name: "button2";
-         mouse_events: 0;
-         description { state: "default" 0.0;
-            rel1.to: "elm.drag_button";
-            rel2.to: "elm.drag_button";
-            image {
-               normal: "bt_basew.png";
-               border: 7 7 7 7;
-               middle: SOLID;
-            }
-            color: 255 255 255 210;
-         }
-      }
-      part { name: "button3";
-         mouse_events: 0;
-         description { state: "default" 0.0;
-            rel1.to: "button2";
-            rel2.to: "button2";
-            rel2.relative: 1.0 0.5;
-            image {
-               normal: "bt_hilightw.png";
-               border: 4 4 4 0;
-            }
-            color: 255 255 255 190;
-         }
-      }
-      part { name: "elm.text.indicator";
-         type: TEXT;
-         scale: 1;
-         mouse_events: 0;
-         description { state: "default" 0.0;
-            rel1 {
-               to: "elm.drag_button";
-               offset: 5 0;
-            }
-            rel2 {
-               to: "elm.drag_button";
-               offset: -5 0;
-            }
-            color: 0 0 0 255;
-            text {
-               font: "Sans,Edje-Vera";
-               size: 10;
-               align: 0.5 0.5;
-               min: 0 1;
-            }
-         }
-      }
-      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";
-         signal: "mouse,up,1";
-         source: "elm.drag_button";
-         action: SIGNAL_EMIT "elm.drag_button,mouse,up" "";
-      }
-      program { name: "elm.drag_button,mouse,down";
-         signal: "mouse,down,1*";
-         source: "elm.drag_button";
-         action: SIGNAL_EMIT "elm.drag_button,mouse,down" "";
-      }
-      program { name: "elm.drag_button,mouse,move";
-         signal: "mouse,move";
-         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";
-      }
    }
 }
-

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to