Revision: 4660 http://sourceforge.net/p/vexi/code/4660 Author: mkpg2 Date: 2014-02-14 16:23:56 +0000 (Fri, 14 Feb 2014) Log Message: ----------- Reorganise the poke directory.
Added Paths: ----------- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/clone.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/test_add_del.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/layout/ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/util/ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/all.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/basic.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/fields.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/pacman_origin.jpg branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scroll.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollbar.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollpane.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/slider.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/table.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/text.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/textfield.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tree/ Removed Paths: ------------- branches/vexi3/org.vexi-vexi.widgets/src_poke/Poker.t branches/vexi3/org.vexi-vexi.widgets/src_poke/clone.t branches/vexi3/org.vexi-vexi.widgets/src_poke/devstuff/ branches/vexi3/org.vexi-vexi.widgets/src_poke/misc/ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/layout/ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/util/ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollbar.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollpane.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/textfield.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/tree/ branches/vexi3/org.vexi-vexi.widgets/src_poke/tool/test_add_del.t branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/ Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/Poker.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/Poker.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/Poker.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,9 +0,0 @@ -<!-- DO NOT COMMIT CHANGES TO THIS FILE --> - -<vexi xmlns:ui="vexi://ui" xmlns:wi="vexi.widget"> - <!--wi:surface /--> - <ui:box> - <PokeTemplate /> - vexi.ui.frame = thisbox; - </ui:box> -</vexi> Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/clone.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/clone.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/clone.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,23 +0,0 @@ -/* - vexi.log.info("Starting widget test suite..."); - - // clone the vexi resource to create our environment - var vexi_world = vexi.clone(vexi); - vexi.log.info("Successfully cloned environment"); - - // clone the vexi namespace within our environent - var vexi_res = vexi.clone(vexi..vexi); - vexi.log.info("Succesfully did resource clone"); - - // trap the theme namespace to return the desired theme - vexi_res.theme ++= function() { return vexi..org.vexi.theme.classic; } - vexi.log.info("Successfully themed environment"); - - // trap the vexi namespace to return our themed namespace - vexi_world..vexi ++= function() { return vexi_res; } - vexi.log.info("Successfully themed resource environment"); - - // instantiate our application in the themed environment - vexi_world..org.vexi.test.alpha(vexi.box); - vexi.log.info("Successfully initiated test suite"); -*/ \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/clone.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/clone.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/clone.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/clone.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,23 @@ +/* + vexi.log.info("Starting widget test suite..."); + + // clone the vexi resource to create our environment + var vexi_world = vexi.clone(vexi); + vexi.log.info("Successfully cloned environment"); + + // clone the vexi namespace within our environent + var vexi_res = vexi.clone(vexi..vexi); + vexi.log.info("Succesfully did resource clone"); + + // trap the theme namespace to return the desired theme + vexi_res.theme ++= function() { return vexi..org.vexi.theme.classic; } + vexi.log.info("Successfully themed environment"); + + // trap the vexi namespace to return our themed namespace + vexi_world..vexi ++= function() { return vexi_res; } + vexi.log.info("Successfully themed resource environment"); + + // instantiate our application in the themed environment + vexi_world..org.vexi.test.alpha(vexi.box); + vexi.log.info("Successfully initiated test suite"); +*/ \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/test_add_del.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/misc/test_add_del.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/test_add_del.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/core/test_add_del.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,39 @@ +<!-- public domain --> + +<vexi xmlns="vexi.theme" xmlns:ui="vexi://ui"> + <ui:box orient="vertical" framewidth="300" frameheight="300"> + <ui:box id="c" text="Add" fill="black" textcolor="white" /> + <ui:box height="1" fill="black" /> + <ui:box id="t" rowspan="2" /> + vexi.ui.frame = thisbox; + + var add = true; + var tip = false; + + $c.Press1 ++= function(v) { + if (add) { + if (tip) return; + + tip = true; + vexi.thread = function(v) { + //// CHANGE ME //// + $t[0] = vexi.box; + /////////////////// + + $c.fill = "white"; + $c.textcolor = "black"; + $c.text = "Del"; + add = false; + tip = false; + } + } else { + $t[0] = null; + $c.fill = "black"; + $c.textcolor = "white"; + $c.text = "Add"; + add = true; + } + } + + </ui:box> +</vexi> Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollbar.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollbar.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollbar.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,45 +0,0 @@ -<!-- public domain --> - -<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> - <w:surface /> - <ui:box orient="vertical"> - <ui:box vshrink="true"> - <ui:box width="160" /> - <ui:box id="horizontal_only" layout="place" align="topleft" height="80"> - <ui:box fill="red" height="80" width="2000"> - <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> - </ui:box> - </ui:box> - <ui:box id="pad_top" /> - </ui:box> - <ui:box> - <ui:box id="vertical_only" layout="place" align="topleft" width="160"> - <ui:box fill="blue" height="2000" width="160"> - <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> - </ui:box> - </ui:box> - <ui:box id="vertical_and_horizontal" layout="place" align="topleft"> - <ui:box fill="gray" height="2000" width="2000"> - <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> - </ui:box> - </ui:box> - <w:scrollbar id="vertical_scrollbar" orient="vertical" /> - </ui:box> - <ui:box vshrink="true"> - <ui:box width="160" /> - <w:scrollbar id="horizontal_scrollbar" /> - <ui:box id="pad_bottom" /> - </ui:box> - - $vertical_scrollbar.width ++= function(v) { cascade = v; $pad_top.width = v; $pad_bottom.width = v; } - - $vertical_scrollbar.viewport = $vertical_and_horizontal; - $horizontal_scrollbar.viewport = $vertical_and_horizontal; - - $vertical_scrollbar.addListener($vertical_only); - $horizontal_scrollbar.addListener($horizontal_only); - - vexi.ui.frame = thisbox; - - </ui:box> -</vexi> Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollpane.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollpane.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollpane.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,15 +0,0 @@ -<!-- public domain --> - -<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> - <w:surface /> - <ui:box orient="vertical"> - <w:scrollpane> - <ui:box fill="gray" height="2000" width="2000"> - <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> - </ui:box> - </w:scrollpane> - - vexi.ui.frame = thisbox; - - </ui:box> -</vexi> Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/textfield.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/textfield.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/textfield.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,20 +0,0 @@ -<!-- public domain --> - -<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> - <w:surface /> - <ui:box fill="white" orient="vertical"> - <ui:box> - <ui:Box /> - <w:textfield id="field" fill="yellow" /> - <ui:Box /> - </ui:box> - <ui:box> - <w:link id="enable" text="Enable" /> - </ui:box> - - $enable.action ++= function(v) { $field.enabled = !$field.enabled; } - - vexi.ui.frame = thisbox; - - </ui:box> -</vexi> Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/all.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/all.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/all.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/all.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,16 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:wi="vexi.widget"> + <wi:surface /> + <ui:box titlebar="Creates one of each widget"> + <wi:scrollpane> + for (var k in wi) + if (k!=".svn" and k!="surface" and k!="scrollpane" and k!="table") + thisbox[numchildren] = wi[k](vexi.box); + for (var k in wi.table) + if (k!=".svn") + thisbox[numchildren] = wi.table[k](vexi.box); + </wi:scrollpane> + vexi.ui.frame = thisbox; + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/basic.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/basic.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/basic.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/basic.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,29 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box orient="vertical"> + <ui:box id="widgets" shrink="true"> + <w:check text="A" id="asdf" /> + <w:radio text="B" /> + <w:radio text="C" /> + </ui:box> + <ui:box id="outputs" shrink="true"> + <ui:box /> + <ui:box /> + <ui:box /> + </ui:box> + <w:button id="check" text="Check" /> + + vexi.ui.frame = thisbox; + + $check.action ++= function(v) { + for (var i=0; $widgets.numchildren>i; i++) + $outputs[i].text = $widgets[i].value; + return; + } + + $asdf.value = null; + + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/fields.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/fields.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/fields.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/fields.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,72 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box> + <ui:box id="b1" align="left" orient="vertical" focusableState="true" enableState="true"> + <ui:box /> + <w:textfield shadowtext="normal textfield" /> + <w:textfield maxlength="3" shadowtext="maxlength 3 / shrink" /> + <w:textfield forcecase="upper" shadowtext="forcecase uppercase" /> + <w:textfield forcecase="lower" shadowtext="forcecase lowercase" /> + <w:numfield shadowtext="normal numfield" /> + <w:textarea shadowtext="normal textarea" /> + <ui:box> + <w:button id="f1" text="Toggle focusable" /> + <w:button id="e1" text="Toggle Enable" /> + </ui:box> + </ui:box> + <ui:box id="b2" align="left" orient="vertical" focusableState="true" enableState="true"> + <ui:box /> + <w:textfield type="alpha" shadowtext="type alpha" /> + <w:textfield type="numeric" shadowtext="type numeric" /> + <w:textfield type="alphanumeric" shadowtext="type alphanumeric" /> + <w:combo shadowtext="normal combo" /> + <w:spin shadowtext="spin" /> + <w:textarea /> + <ui:box> + <w:button id="f2" text="Toggle focusable 2" /> + <w:button id="e2" text="Toggle Enable" /> + </ui:box> + </ui:box> + + const setenable = function(block) { + var enable = block.enableState; + for (var i,field in block) + field.enabled = !enable; + block[0].text = "enabled: "+!enable; + block.enableState = !enable; + } + + $e1.action ++= function(v) { + setenable($b1); + return; + } + + $e2.action ++= function(v) { + setenable($b2); + return; + } + + const setfocus = function(block) { + var focus = block.focusableState; + for (var i,field in block) + field.focusable = !focus; + block[0].text = "focusable: "+!focus; + block.focusableState = !focus; + } + + $f1.action ++= function(v) { + setfocus($b1); + return; + } + + $f2.action ++= function(v) { + setfocus($b2); + return; + } + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/pacman_origin.jpg (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/pacman_origin.jpg) =================================================================== (Binary files differ) Index: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/pacman_origin.jpg =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/pacman_origin.jpg 2014-01-03 16:59:03 UTC (rev 4637) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/pacman_origin.jpg 2014-02-14 16:23:56 UTC (rev 4660) Property changes on: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/pacman_origin.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scroll.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/scroll.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scroll.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scroll.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,21 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box frameheight="200"> + <ui:box> + <w:scrollbar orient="horizontal" /> + </ui:box> + <w:bevel form="down"> + <w:scrollpane> + <ui:box shrink="true"> + fill = .test["pacman_origin.jpg"]; + </ui:box> + </w:scrollpane> + </w:bevel> + <ui:box> + <w:scrollbar orient="vertical" /> + </ui:box> + vexi.ui.frame = thisbox; + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollbar.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollbar.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollbar.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollbar.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,45 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> + <w:surface /> + <ui:box orient="vertical"> + <ui:box vshrink="true"> + <ui:box width="160" /> + <ui:box id="horizontal_only" layout="place" align="topleft" height="80"> + <ui:box fill="red" height="80" width="2000"> + <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> + </ui:box> + </ui:box> + <ui:box id="pad_top" /> + </ui:box> + <ui:box> + <ui:box id="vertical_only" layout="place" align="topleft" width="160"> + <ui:box fill="blue" height="2000" width="160"> + <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> + </ui:box> + </ui:box> + <ui:box id="vertical_and_horizontal" layout="place" align="topleft"> + <ui:box fill="gray" height="2000" width="2000"> + <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> + </ui:box> + </ui:box> + <w:scrollbar id="vertical_scrollbar" orient="vertical" /> + </ui:box> + <ui:box vshrink="true"> + <ui:box width="160" /> + <w:scrollbar id="horizontal_scrollbar" /> + <ui:box id="pad_bottom" /> + </ui:box> + + $vertical_scrollbar.width ++= function(v) { cascade = v; $pad_top.width = v; $pad_bottom.width = v; } + + $vertical_scrollbar.viewport = $vertical_and_horizontal; + $horizontal_scrollbar.viewport = $vertical_and_horizontal; + + $vertical_scrollbar.addListener($vertical_only); + $horizontal_scrollbar.addListener($horizontal_only); + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollpane.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/scrollpane.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollpane.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/scrollpane.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,15 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> + <w:surface /> + <ui:box orient="vertical"> + <w:scrollpane> + <ui:box fill="gray" height="2000" width="2000"> + <ui:box fill=":poke.image.block_mask_20x20" tile="true" /> + </ui:box> + </w:scrollpane> + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/slider.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/slider.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/slider.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/slider.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,21 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box orient="vertical"> + <ui:box> + <ui:box align="right" text="Slider value: " /> + <ui:box id="output" align="left" /> + </ui:box> + <ui:box> + <ui:box /> + <w:slider id="slider" minvalue="0" maxvalue="10" step="1" /> + <ui:box /> + </ui:box> + + $slider.value ++= function(v) { cascade = v; $output.text = v; } + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/table.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/table.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/table.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/table.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,11 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box orient="vertical"> + <org.vexi.demo.feature.table_dynamic /> + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/tabs.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/tabs.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,27 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns="vexi.widget"> + <surface /> + <ui:box> + <tabpane> + <ui:box orient="vertical" tabtext="Options"> + <option> + <item text="Alpha" /> + <item text="Beti" /> + <item text="Spaghetti" /> + </option> + <combo> + <item text="Aubergine" /> + <item text="Brocoli" /> + <item text="Cabbage" /> + </combo> + <button tooltip="testing 123" /> + </ui:box> + for (var i=0; 10>i; i++) { + thisbox[numchildren] = vexi.box; + thisbox[numchildren-1].tabtext = "Test Tab "+i; + } + </tabpane> + vexi.ui.frame = thisbox; + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/text.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/visualtest/text.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/text.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/text.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,39 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget"> + <w:surface /> + <ui:box orient="vertical"> + <ui:box vshrink="true"> + <ui:box text="Wrapping" /> + <ui:box text="No wrap" /> + </ui:box> + <ui:box> + <w:textarea id="edit"> + text = "Apples and oranges,\npears and mangos.\n\nPotatoes and sprouts,\ncelery and leak.\n\n" + + "All that kind of stuff is healthy for you but doesn't taste as nice as chocolate!\n\n" + + "123 12345 1.23 123.45"; + </w:textarea> + <w:textarea id="edit2" wraptext="false"> + text = "Apples and oranges, pears and mangos. Potatoes and sprouts, celery and leak.\n\n" + + "All that kind of stuff is healthy for you but doesn't taste as nice as chocolate!\n\n" + + "123 12345 1.23 123.45"; + </w:textarea> + </ui:box> + <ui:box> + <w:button id="set" text="Set Focused" /> + <w:button id="get" text="Get Cursor Index" /> + <ui:box id="output" /> + </ui:box> + $edit.value ++= function(v) { $edit2.value = v; cascade = v; } + $get.action ++= function(v) { + cascade = v; + $output.text = "Cursor position: "+$edit.v_edit.getCursorCharIndex(); + }; + $set.action ++= function(v) { + cascade = v; + $edit.focused = true; + }; + $set.focused ++= function(v) { cascade = v; vexi.log.info(new vexi.js.Exception("button focus: "+v)); }; + vexi.ui.frame = thisbox; + </ui:box> +</vexi> \ No newline at end of file Copied: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/textfield.t (from rev 4637, branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/vexi/widget/textfield.t) =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/textfield.t (rev 0) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/textfield.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -0,0 +1,20 @@ +<!-- public domain --> + +<vexi xmlns:ui="vexi://ui" xmlns:w="vexi.widget" xmlns:poke="poke"> + <w:surface /> + <ui:box fill="white" orient="vertical"> + <ui:box> + <ui:Box /> + <w:textfield id="field" fill="yellow" /> + <ui:Box /> + </ui:box> + <ui:box> + <w:link id="enable" text="Enable" /> + </ui:box> + + $enable.action ++= function(v) { $field.enabled = !$field.enabled; } + + vexi.ui.frame = thisbox; + + </ui:box> +</vexi> Deleted: branches/vexi3/org.vexi-vexi.widgets/src_poke/tool/test_add_del.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/tool/test_add_del.t 2014-02-14 16:23:03 UTC (rev 4659) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/tool/test_add_del.t 2014-02-14 16:23:56 UTC (rev 4660) @@ -1,39 +0,0 @@ -<!-- public domain --> - -<vexi xmlns="vexi.theme" xmlns:ui="vexi://ui"> - <ui:box orient="vertical" framewidth="300" frameheight="300"> - <ui:box id="c" text="Add" fill="black" textcolor="white" /> - <ui:box height="1" fill="black" /> - <ui:box id="t" rowspan="2" /> - vexi.ui.frame = thisbox; - - var add = true; - var tip = false; - - $c.Press1 ++= function(v) { - if (add) { - if (tip) return; - - tip = true; - vexi.thread = function(v) { - //// CHANGE ME //// - $t[0] = vexi.box; - /////////////////// - - $c.fill = "white"; - $c.textcolor = "black"; - $c.text = "Del"; - add = false; - tip = false; - } - } else { - $t[0] = null; - $c.fill = "black"; - $c.textcolor = "white"; - $c.text = "Add"; - add = true; - } - } - - </ui:box> -</vexi> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn