Current status : http://img812.imageshack.us/f/screendetourelm.png/
2010/11/15 Enlightenment SVN <[email protected]> > Log: > detour-elm : add checkbox and radio > > Author: watchwolf > Date: 2010-11-15 10:50:38 -0800 (Mon, 15 Nov 2010) > New Revision: 54568 > > Added: > trunk/THEMES/detour-elm/images/check_bt0.png > trunk/THEMES/detour-elm/images/check_bt1.png > trunk/THEMES/detour-elm/images/check_bt2.png > trunk/THEMES/detour-elm/images/radio_bt0.png > trunk/THEMES/detour-elm/images/radio_bt1.png > trunk/THEMES/detour-elm/images/radio_bt2.png > Modified: > trunk/THEMES/detour-elm/images.edc trunk/THEMES/detour-elm/main.edc > > > Property changes on: trunk/THEMES/detour-elm/images/check_bt0.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: trunk/THEMES/detour-elm/images/check_bt1.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: trunk/THEMES/detour-elm/images/check_bt2.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: trunk/THEMES/detour-elm/images/radio_bt0.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: trunk/THEMES/detour-elm/images/radio_bt1.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: trunk/THEMES/detour-elm/images/radio_bt2.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > Modified: trunk/THEMES/detour-elm/images.edc > =================================================================== > --- trunk/THEMES/detour-elm/images.edc 2010-11-15 17:49:20 UTC (rev 54567) > +++ trunk/THEMES/detour-elm/images.edc 2010-11-15 18:50:38 UTC (rev 54568) > @@ -41,3 +41,13 @@ > image: "images/scrollframe_im1.png" COMP; /* inset */ > image: "images/scrollframe-bar_im2.png" COMP; /* vertical bar */ > > +//~ check > +image: "images/check_bt0.png" COMP; > +image: "images/check_bt1.png" COMP; > +image: "images/check_bt2.png" COMP; > + > +//~ radio > +image: "images/radio_bt0.png" COMP; > +image: "images/radio_bt1.png" COMP; > +image: "images/radio_bt2.png" COMP; > + > > Modified: trunk/THEMES/detour-elm/main.edc > =================================================================== > --- trunk/THEMES/detour-elm/main.edc 2010-11-15 17:49:20 UTC (rev 54567) > +++ trunk/THEMES/detour-elm/main.edc 2010-11-15 18:50:38 UTC (rev 54568) > @@ -4844,5 +4844,518 @@ > } > } > > /////////////////////////////////////////////////////////////////////////////// > + > + > + > > /////////////////////////////////////////////////////////////////////////////// > + group { name: "elm/check/base/default"; > + parts { > + part { name: "bg_check"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel1 { > + to: "bg"; > + } > + rel2 { > + to: "bg"; > + } > + color: 255 255 255 0; > + image.normal: "images/check_bt0.png"; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + color: 255 255 255 255; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 0; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 0; > + } > + > + } > + part { name: "bg"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel2.relative: 0.0 1.0; > + align: 0.0 0.5; > + min: 20 18; > + max: 20 18; > + aspect: 1.0 1.0; > + aspect_preference: BOTH; > + image { > + normal: "images/check_bt1.png"; > + border: 8 7 8 7; > + middle: 0; > + } > + fill.smooth : 0; > + } > + } > + part { name: "check"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel1 { > + to: "bg"; > + } > + rel2 { > + to: "bg"; > + } > + color: 255 255 255 0; > + image.normal: "images/check_bt2.png"; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + color: 255 255 255 255; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 0; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 128; > + } > + } > + part { name: "elm.swallow.content"; > + type: SWALLOW; > + description { state: "default" 0.0; > + fixed: 1 0; > + visible: 0; > + align: 0.0 0.5; > + rel1.to_x: "bg"; > + rel1.relative: 1.0 0.0; > + rel1.offset: 1 1; > + rel2.to_x: "bg"; > + rel2.offset: 1 -2; > + rel2.relative: 1.0 1.0; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + fixed: 1 0; > + visible: 1; > + aspect: 1.0 1.0; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 128; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 128; > + fixed: 1 0; > + visible: 1; > + aspect: 1.0 1.0; > + } > + } > + part { name: "elm.text"; > + type: TEXT; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + visible: 0; > + rel1.to_x: "elm.swallow.content"; > + rel1.relative: 1.0 0.0; > + rel1.offset: 1 1; > + rel2.relative: 1.0 1.0; > + rel2.offset: -2 -2; > + color: 0 0 0 255; > + text { > + font: "Sans,Edje-Vera"; > + size: 10; > + min: 0 1; > + align: 0.0 0.5; > + } > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + visible: 1; > + text.min: 1 1; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 0 0 0 128; > + color3: 0 0 0 0; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 0 0 0 128; > + color3: 0 0 0 0; > + visible: 1; > + text.min: 1 1; > + } > + } > + part { name: "events"; > + type: RECT; > + ignore_flags: ON_HOLD; > + description { state: "default" 0.0; > + color: 0 0 0 0; > + } > + } > + 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; > + visible: 1; > + } > + } > + } > + programs { > + program { name: "click"; > + signal: "mouse,up,1"; > + source: "events"; > + action: SIGNAL_EMIT "elm,action,check,toggle" ""; > + } > + program { name: "check_on"; > + signal: "elm,state,check,on"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "check"; > + target: "bg_check"; > + transition: SINUSOIDAL 0.2; > + } > + program { name: "check_off"; > + signal: "elm,state,check,off"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "check"; > + target: "bg_check"; > + transition: SINUSOIDAL 0.2; > + } > + program { name: "text_show"; > + signal: "elm,state,text,visible"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "elm.text"; > + } > + program { name: "text_hide"; > + signal: "elm,state,text,hidden"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "elm.text"; > + } > + program { name: "icon_show"; > + signal: "elm,state,icon,visible"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "elm.swallow.content"; > + } > + program { name: "icon_hide"; > + signal: "elm,state,icon,hidden"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "elm.swallow.content"; > + } > + program { name: "disable"; > + signal: "elm,state,disabled"; > + source: "elm"; > + action: STATE_SET "disabled" 0.0; > + target: "disabler"; > + after: "disable_text"; > + } > + program { name: "disable_text"; > + script { > + new st[31]; > + new Float:vl; > + get_state(PART:"elm.text", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.text", "disabled_visible", 0.0); > + else > + set_state(PART:"elm.text", "disabled", 0.0); > + > + get_state(PART:"elm.swallow.content", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.swallow.content", "disabled_visible", > 0.0); > + else > + set_state(PART:"elm.swallow.content", "disabled", 0.0); > + > + get_state(PART:"check", st, 30, vl); > + if (!strcmp(st, "visible")) > + { > + set_state(PART:"check", "disabled_visible", 0.0); > + set_state(PART:"bg_check", "disabled_visible", 0.0); > + } > + else > + { > + set_state(PART:"check", "disabled", 0.0); > + set_state(PART:"bg_check", "disabled", 0.0); > + } > + } > + } > + program { name: "enable"; > + signal: "elm,state,enabled"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "disabler"; > + after: "enable_text"; > + } > + program { name: "enable_text"; > + script { > + new st[31]; > + new Float:vl; > + get_state(PART:"elm.text", st, 30, vl); > + if (!strcmp(st, "disabled_visible")) > + set_state(PART:"elm.text", "visible", 0.0); > + else > + set_state(PART:"elm.text", "default", 0.0); > + > + get_state(PART:"elm.swallow.content", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.swallow.content", "visible", 0.0); > + else > + set_state(PART:"elm.swallow.content", "default", 0.0); > + > + get_state(PART:"check", st, 30, vl); > + if (!strcmp(st, "visible")) > + { > + set_state(PART:"check", "visible", 0.0); > + set_state(PART:"bg_check", "visible", 0.0); > + } > + else > + { > + set_state(PART:"check", "default", 0.0); > + set_state(PART:"bg_check", "default", 0.0); > + } > + } > + } > + } > + } > + > + > + > /////////////////////////////////////////////////////////////////////////////// > + group { name: "elm/radio/base/default"; > + parts { > + part { name: "bg_radio"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel1.to: "bg"; > + rel2.to: "bg"; > + color: 255 255 255 0; > + image.normal: "images/radio_bt0.png"; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + color: 255 255 255 255; > + } > + } > + part { name: "bg"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel2.relative: 0.0 1.0; > + align: 0.0 0.5; > + min: 20 18; > + max: 20 18; > + aspect: 1.0 1.0; > + aspect_preference: VERTICAL; > + image.normal: "images/radio_bt1.png"; > + image.border: 9 8 9 8; > + } > + } > + part { name: "radio"; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + rel1.to: "bg"; > + rel2.to: "bg"; > + color: 255 255 255 0; > + image.normal: "images/radio_bt2.png"; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + color: 255 255 255 255; > + } > + } > + part { name: "elm.swallow.content"; > + type: SWALLOW; > + description { state: "default" 0.0; > + fixed: 1 0; > + visible: 0; > + align: 0.0 0.5; > + color: 0 0 0 0; > + rel1.to_x: "bg"; > + rel1.relative: 1.0 0.0; > + rel1.offset: 1 1; > + rel2.to_x: "bg"; > + rel2.relative: 1.0 1.0; > + rel2.offset: 2 -2; > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + visible: 1; > + color: 255 255 255 255; > + aspect: 1.0 1.0; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 128; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 128 128 128 128; > + visible: 1; > + aspect: 1.0 1.0; > + } > + } > + part { name: "elm.text"; > + type: TEXT; > + mouse_events: 0; > + scale: 1; > + description { state: "default" 0.0; > + visible: 0; > + rel1.to_x: "elm.swallow.content"; > + rel1.relative: 1.0 0.0; > + rel1.offset: 1 1; > + rel2.relative: 1.0 1.0; > + rel2.offset: -2 -2; > + color: 0 0 0 255; > + text { > + font: "Sans,Edje-Vera"; > + size: 10; > + min: 0 0; > + align: 0.0 0.5; > + } > + } > + description { state: "visible" 0.0; > + inherit: "default" 0.0; > + visible: 1; > + text.min: 1 1; > + } > + description { state: "disabled" 0.0; > + inherit: "default" 0.0; > + color: 0 0 0 128; > + color3: 0 0 0 0; > + } > + description { state: "disabled_visible" 0.0; > + inherit: "default" 0.0; > + color: 0 0 0 128; > + color3: 0 0 0 0; > + visible: 1; > + text.min: 1 1; > + } > + } > + part { name: "events"; > + type: RECT; > + ignore_flags: ON_HOLD; > + description { state: "default" 0.0; > + color: 0 0 0 0; > + } > + } > + 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; > + visible: 1; > + } > + } > + } > + programs { > + program { name: "click"; > + signal: "mouse,up,1"; > + source: "events"; > + action: SIGNAL_EMIT "elm,action,radio,toggle" ""; > + } > + program { name: "radio_on"; > + signal: "elm,state,radio,on"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "radio"; > + target: "bg_radio"; > + transition: SINUSOIDAL 0.2; > + } > + program { name: "radio_off"; > + signal: "elm,state,radio,off"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "radio"; > + target: "bg_radio"; > + transition: SINUSOIDAL 0.4; > + } > + program { name: "text_show"; > + signal: "elm,state,text,visible"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "elm.text"; > + } > + program { name: "text_hide"; > + signal: "elm,state,text,hidden"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "elm.text"; > + } > + program { name: "icon_show"; > + signal: "elm,state,icon,visible"; > + source: "elm"; > + action: STATE_SET "visible" 0.0; > + target: "elm.swallow.content"; > + } > + program { name: "icon_hide"; > + signal: "elm,state,icon,hidden"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "elm.swallow.content"; > + } > + program { name: "disable"; > + signal: "elm,state,disabled"; > + source: "elm"; > + action: STATE_SET "disabled" 0.0; > + target: "disabler"; > + after: "disable_text"; > + } > + program { name: "disable_text"; > + script { > + new st[31]; > + new Float:vl; > + get_state(PART:"elm.text", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.text", "disabled_visible", 0.0); > + else > + set_state(PART:"elm.text", "disabled", 0.0); > + > + get_state(PART:"elm.swallow.content", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.swallow.content", "disabled_visible", > 0.0); > + else > + set_state(PART:"elm.swallow.content", "disabled", 0.0); > + } > + } > + program { name: "enable"; > + signal: "elm,state,enabled"; > + source: "elm"; > + action: STATE_SET "default" 0.0; > + target: "disabler"; > + after: "enable_text"; > + } > + program { name: "enable_text"; > + script { > + new st[31]; > + new Float:vl; > + get_state(PART:"elm.text", st, 30, vl); > + if (!strcmp(st, "disabled_visible")) > + set_state(PART:"elm.text", "visible", 0.0); > + else > + set_state(PART:"elm.text", "default", 0.0); > + > + get_state(PART:"elm.swallow.content", st, 30, vl); > + if (!strcmp(st, "visible")) > + set_state(PART:"elm.swallow.content", "visible", 0.0); > + else > + set_state(PART:"elm.swallow.content", "default", 0.0); > + } > + } > + } > + } > } > > > > > ------------------------------------------------------------------------------ > Centralized Desktop Delivery: Dell and VMware Reference Architecture > Simplifying enterprise desktop deployment and management using > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > client virtualization framework. Read more! > http://p.sf.net/sfu/dell-eql-dev2dev > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > -- Regards. ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
