Enlightenment CVS committal Author : rephorm Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/data/themes/e17/groups Modified Files: tree.edc Log Message: add Expansion widget use this in tree2 so children get correctly inset from parents ** themes need to be updated to use theme key /expansion/group instead of /node/check/group, and support the signals 'expandable' and 'nonexpandable' ** =================================================================== RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/tree.edc,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- tree.edc 12 Jan 2007 10:19:29 -0000 1.7 +++ tree.edc 14 Feb 2007 10:40:52 -0000 1.8 @@ -86,54 +86,36 @@ group { name: "ewl/tree/expansion"; + min: 12 12; parts { part { - name: "base"; + name: "clip"; type: RECT; mouse_events: 1; description { state: "default" 0.0; - min: 12 12; - - rel1 - { - relative: 0.0 0.0; - offset: 0 0; - } - rel2 - { - relative: 1.0 1.0; - offset: -1 -1; - } - color: 255 255 255 255; + visible: 1; + } + description + { + state: "hidden" 0.0; + visible: 0; } } part { name: "expansion"; mouse_events: 1; + clip_to: "clip"; description { state: "default" 0.0; - min: 5 5; - - rel1 - { - to: "base"; - relative: 0.5 0.5; - offset: 0 0; - } - rel2 - { - to: "base"; - relative: 0.5 0.5; - offset: -1 -1; - } + max: 5 5; image { normal: "e17_icon_right_arrow.png"; @@ -149,58 +131,25 @@ } } } - part - { - name: "hide"; - type: RECT; - mouse_events: 0; - - description - { - state: "default" 0.0; - visible: 0; - rel1 - { - relative: 0.0 0.0; - offset: 0 0; - to: "expansion"; - } - rel2 - { - relative: 1.0 1.0; - offset: -1 -1; - to: "expansion"; - } - color: 255 255 255 0; - } - description - { - state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - } - } } programs { program { - name: "visible"; - signal: "default"; + name: "expandable"; + signal: "expandable"; source: "*"; - action: STATE_SET "show" 0.0; - transition: LINEAR 0.0; - target: "hide"; + action: STATE_SET "default" 0.0; + target: "clip"; } program { - name: "hidden"; - signal: "node,default"; + name: "nonexpandable"; + signal: "nonexpandable"; source: "*"; - action: STATE_SET "default" 0.0; - transition: LINEAR 0.0; - target: "hide"; + action: STATE_SET "hidden" 0.0; + target: "clip"; } program { ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs