Revision: 1906
          http://svn.sourceforge.net/vexi/?rev=1906&view=rev
Author:   clrg
Date:     2007-07-02 09:45:59 -0700 (Mon, 02 Jul 2007)

Log Message:
-----------
Oops...
- arguments.index -> arguments.trapname
- redirect orient, layout in lib.role.popupmanager
- and we have a nearly working demo screen!

Modified Paths:
--------------
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/role/popupmanager.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/body.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/cardpane.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/menu.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/table.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/toolbar.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/combo.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/option.t
    widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tree.t

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/role/popupmanager.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/role/popupmanager.t 
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/role/popupmanager.t 
2007-07-02 16:45:59 UTC (rev 1906)
@@ -10,6 +10,8 @@
             <ui:box id="content" />
         </ui:box>
         
+        vexi..vexi.util.redirect..addRedirect(thisbox, $content, "orient", 
"layout");
+        
         var interval = 50;    // sleep interval for pop thread
         var popgroups = {};   // track pop groups
         var popforegs = {};   // popgroup foregrounds

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t        
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t        
2007-07-02 16:45:59 UTC (rev 1906)
@@ -217,7 +217,7 @@
         // child removed
         else
         {
-            v = trapee[arguments.index];
+            v = trapee[arguments.trapname];
             v.Enter --= trapee.activeTrap;
         }
     }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/body.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/body.t       
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/body.t       
2007-07-02 16:45:59 UTC (rev 1906)
@@ -26,7 +26,7 @@
         Children ++= function(v)
         {
             cascade = v;
-            v.fill = (arguments.index-1)%2 ? fill2 : fill1;
+            v.fill = (arguments.trapname-1)%2 ? fill2 : fill1;
             v.Press1 ++= selectFunc;
         }
            

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/cardpane.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/cardpane.t   
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/cardpane.t   
2007-07-02 16:45:59 UTC (rev 1906)
@@ -54,7 +54,7 @@
                     return;
                 }
                 
-                c = thisbox[arguments.index];
+                c = thisbox[arguments.trapname];
                 // if c is the shown card, attempt to show another
                 if (show == c)
                 {

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t  
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/lazytable.t  
2007-07-02 16:45:59 UTC (rev 1906)
@@ -319,7 +319,7 @@
                     c.Children ++= function(e)
                     {
                         cascade = e;
-                        e.width = th_head[arguments.index].width;
+                        e.width = th_head[arguments.trapname].width;
                     }
                 }
             }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/menu.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/menu.t       
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/menu.t       
2007-07-02 16:45:59 UTC (rev 1906)
@@ -32,7 +32,7 @@
             
             v.Children ++= function()
             {
-                return th_list[arguments.index];
+                return th_list[arguments.trapname];
             }
         }
 
@@ -53,7 +53,7 @@
                 if (lockChildren) return;
                 // otherwise spoof the put back to th_content
                 lockChildren = true;
-                th_content[arguments.index] = c;
+                th_content[arguments.trapname] = c;
                 lockChildren = false;
             }
             

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t  
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/splitpane.t  
2007-07-02 16:45:59 UTC (rev 1906)
@@ -216,7 +216,7 @@
                     return;
                 }
                 
-                c = trapee[arguments.index];
+                c = trapee[arguments.trapname];
                 
                 if (c.type == "divider")
                 {

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t    
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/submenu.t    
2007-07-02 16:45:59 UTC (rev 1906)
@@ -35,7 +35,7 @@
             
             v.Children ++= function()
             {
-                return th_list[arguments.index];
+                return th_list[arguments.trapname];
             }
         }
         
@@ -56,7 +56,7 @@
                 if (lockChildren) return;
                 // otherwise spoof the put back to th_content
                 lockChildren = true;
-                th_content[arguments.index] = c;
+                th_content[arguments.trapname] = c;
                 lockChildren = false;
             }
             

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/table.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/table.t      
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/table.t      
2007-07-02 16:45:59 UTC (rev 1906)
@@ -329,7 +329,7 @@
                     c.Children ++= function(e)
                     {
                         cascade = e;
-                        e.width = th_head[arguments.index].width;
+                        e.width = th_head[arguments.trapname].width;
                     }
                 }
             }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-07-02 16:45:59 UTC (rev 1906)
@@ -85,7 +85,7 @@
                 }
                 
                 // place the tab
-                th_head[arguments.index] = c.v_tab;
+                th_head[arguments.trapname] = c.v_tab;
                 
                 cascade = c;
             }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/toolbar.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/toolbar.t    
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/widget/toolbar.t    
2007-07-02 16:45:59 UTC (rev 1906)
@@ -14,7 +14,7 @@
         {
             v.Children ++= function(c)
             {
-                if (c == null) th_content[arguments.index].group = null;
+                if (c == null) th_content[arguments.trapname].group = null;
                 else if (group) c.group = group;
                 else group = c.group;
             }

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/combo.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/combo.t     
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/combo.t     
2007-07-02 16:45:59 UTC (rev 1906)
@@ -71,8 +71,8 @@
         $edit.height ++= function(v) { th_viewport.height = v; }
         
         /** move proxy children to $popbox children */
-        $proxy.Children ++= function(v) { $content[arguments.index] = v; }
-        $proxy.Children ++= function() { return $content[arguments.index]; }
+        $proxy.Children ++= function(v) { $content[arguments.trapname] = v; }
+        $proxy.Children ++= function() { return $content[arguments.trapname]; }
         
     </lib:widget.combo>
 </vexi>

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/option.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/option.t    
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/option.t    
2007-07-02 16:45:59 UTC (rev 1906)
@@ -70,8 +70,8 @@
         $pad.width ++= function(v) { $focus.width = v; }
         
         /** move proxy children to $popbox children */
-        $proxy.Children ++= function(v) { $content[arguments.index] = v; }
-        $proxy.Children ++= function() { return $content[arguments.index]; }
+        $proxy.Children ++= function(v) { $content[arguments.trapname] = v; }
+        $proxy.Children ++= function() { return $content[arguments.trapname]; }
         
     </lib:option>
     

Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tree.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tree.t      
2007-07-02 16:35:08 UTC (rev 1905)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/theme/win2k/tree.t      
2007-07-02 16:45:59 UTC (rev 1906)
@@ -61,7 +61,7 @@
                     return;
                 }
                 
-                c = trapee[arguments.index];
+                c = trapee[arguments.trapname];
                 $vtrail.display = $handle.display = (v.numchildren>0);
                 c.y --= vtrailHeightFunc;
                 cascade = null;


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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to