Revision: 4720 http://sourceforge.net/p/vexi/code/4720 Author: clrg Date: 2014-08-28 14:55:13 +0000 (Thu, 28 Aug 2014) Log Message: ----------- Update shadepane - change to use v_textbox for text-related property redirects - change to set title with 'text' write
Modified Paths: -------------- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/shadepane.t branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/shadepane.t branches/vexi3/org.vexi-vexi.widgets/src_main/vexi/widget/shadepane.t Added Paths: ----------- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/shadepane.t Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/shadepane.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/shadepane.t 2014-08-28 14:45:34 UTC (rev 4719) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/shadepane.t 2014-08-28 14:55:13 UTC (rev 4720) @@ -1,16 +1,14 @@ -<!-- Copyright 2009 - see COPYING for details [LGPL] --> +<!-- Copyright 2014 - see COPYING for details [LGPL] --> -<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.role"> - <meta:doc> - <author>Charles Goodwin</author> - </meta:doc> +<vexi xmlns:ui="vexi://ui" + xmlns="org.vexi.lib.role"> - <ui:box> + <focusable /> + <tooltipable /> + <ui:Box> thisbox.canclose ++= static.cancloseWrite; thisbox.shade ++= static.shadeWrite; - thisbox.title ++= static.titleRead; - thisbox.title ++= static.titleWrite; thisbox.th_close ++= function(v) { cascade = v; @@ -23,13 +21,9 @@ v.Press1 ++= function(v) { shade = !shade; return; } } - </ui:box> - <focusable /> - <tooltipable /> + </ui:Box> static.cancloseWrite = function(v) { trapee.th_close.display = v; cascade = v; } static.shadeWrite = function(v) { trapee.th_content.display = !v; cascade = v; } - static.titleRead = function() { return trapee.th_title.text; } - static.titleWrite = function(v) { trapee.th_title.text = v; return; } </vexi> Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/shadepane.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/shadepane.t 2014-08-28 14:45:34 UTC (rev 4719) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/shadepane.t 2014-08-28 14:55:13 UTC (rev 4720) @@ -1,10 +1,10 @@ -<!-- Copyright 2011 - see COPYING for details [LGPL] --> +<!-- Copyright 2014 - see COPYING for details [LGPL] --> -<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme" - xmlns:lay="vexi.layout" xmlns:util="vexi.util" xmlns:lib="org.vexi.lib.widget"> - <meta:doc> - <author>Charles Goodwin</author> - </meta:doc> +<vexi xmlns:ui="vexi://ui" + xmlns:lay="org.vexi.lib.layout" + xmlns:util="vexi.util" + xmlns:lib="org.vexi.lib.widget" + xmlns="vexi.theme"> <lib:shadepane /> <ui:box redirect=":$content" margin="3" padding="3" vshrink="true"> @@ -27,6 +27,8 @@ thisbox.th_title = $title; thisbox.th_titlebar = $titlebar; + thisbox.v_textbox = $title; + var downarrow = .image.arrowdown_white; var rightarrow = .image.arrowright_white; Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/vexi/widget/shadepane.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/vexi/widget/shadepane.t 2014-08-28 14:45:34 UTC (rev 4719) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/vexi/widget/shadepane.t 2014-08-28 14:55:13 UTC (rev 4720) @@ -1,17 +1,18 @@ -<!-- Copyright 2009 - see COPYING for details [LGPL] --> +<!-- Copyright 2014 - see COPYING for details [LGPL] --> -<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns:theme="vexi.theme" - xmlns="org.vexi.lib.layout"> +<vexi xmlns:ui="vexi://ui" + xmlns:meta="vexi://meta" + xmlns:theme="vexi.theme" + xmlns="org.vexi.lib.layout"> + <meta:doc> - <author>Charles Goodwin</author> <name>Shade Pane</name> <desc>A titled area that can be collapsed to just show the title</desc> <usage> - To set the title, put to the 'title' property of a - collapsing pane widget. + To set the title, put to the 'text' property of a shade pane. - Put to the 'collapse' property programmatically collapse - (true) and expand (false) the pane. + Put to the 'collapse' property to programmatically collapse + (true) and expand (false) the pane - defaults to expanded. </usage> </meta:doc> Added: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/shadepane.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/shadepane.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/shadepane.t 2014-08-28 14:55:13 UTC (rev 4720) @@ -0,0 +1,19 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> + <w:surface /> + <ui:box fill="white" orient="vertical"> + <w:shadepane text="Shadepane Top"> + <ui:Box fill="#88ff0000" width="100" height="100" /> + </w:shadepane> + <w:shadepane text="Shadepane Middle" titlefill="#ff0000"> + <ui:Box fill="#8800ff00" width="100" height="100" /> + </w:shadepane> + <w:shadepane text="Shadepane Bottom" titlefill="#ffff00"> + <ui:Box fill="#880000ff" width="100" height="100" /> + </w:shadepane> + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn