Revision: 4098
          http://vexi.svn.sourceforge.net/vexi/?rev=4098&view=rev
Author:   clrg
Date:     2011-03-28 22:44:58 +0000 (Mon, 28 Mar 2011)

Log Message:
-----------
Consolidate redirect logic for lib.text.default and editbox implementations

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/editbox.t
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/editbox.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/editbox.t  
2011-03-28 22:37:10 UTC (rev 4097)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/layout/editbox.t  
2011-03-28 22:44:58 UTC (rev 4098)
@@ -1,13 +1,11 @@
 <!-- Copyright 2009 - see COPYING for details [LGPL] -->
 
-<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.text"
-    xmlns:rdt="vexi.util.redirect">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.text">
     <meta:doc>
         <author>Charles Goodwin</author>
     </meta:doc>
     
     <default>
         v_textbox = v_edit;
-        rdt..addRedirect(thisbox, v_textbox, "multiline", "textalign", 
"wraptext", "wrapwidth");
     </default>
 </vexi>

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t    
2011-03-28 22:37:10 UTC (rev 4097)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/text/default.t    
2011-03-28 22:44:58 UTC (rev 4098)
@@ -80,13 +80,11 @@
         $edit.focused ++= function(v) { cascade = v; $cursor.repeat = v; }
         
         thisbox.cursorcolor ++= static.cursorcolorWrite;
-        thisbox.multiline ++= static.forwardToEdit;
-        thisbox.textalign ++= static.forwardToEdit;
-        thisbox.wrapwidth ++= static.forwardToEdit;
         
+        .util.redirect..addRedirect(thisbox, v_edit, "multiline", "textalign", 
"wraptext", "wrapwidth");
+        
     </ui:box>
     
     static.cursorcolorWrite = function(v) { cascade = v; trapee.v_cursor.fill 
= v; }
-    static.forwardToEdit = function(v) { cascade = v; trapee.v_edit[trapname] 
= v; }
     
 </vexi>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to