Revision: 2126
          http://vexi.svn.sourceforge.net/vexi/?rev=2126&view=rev
Author:   clrg
Date:     2007-09-05 15:05:20 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
Remove pointless vexi.widget.tab template

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t

Removed Paths:
-------------
    trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-09-05 20:31:24 UTC (rev 2125)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/tabpane.t    
2007-09-05 22:05:20 UTC (rev 2126)
@@ -1,6 +1,6 @@
 <!-- Copyright 2006 - see COPYING for details [LGPL] -->
 
-<vexi xmlns="org.vexi.lib.widget" xmlns:ui="vexi://ui" 
xmlns:meta="vexi://meta" xmlns:math="vexi.util.math">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" 
xmlns="org.vexi.lib.widget">
     <meta:doc>
         <author>Charles Goodwin</author>
     </meta:doc>
@@ -16,7 +16,8 @@
         thisbox.th_next;
         thisbox.th_prev;
         
-        var tabgroup;
+        var newtab = vexi..vexi.theme.tab;
+        var tabgroup = null;
         
         /** (un)displays the close button */
         displayCloseButton ++= function(v) { th_close.display = v; cascade = 
v; }
@@ -74,7 +75,7 @@
                 // create the tab if needed
                 if (!c.v_tab)
                 {
-                    if (!c.v_tab) c.v_tab = vexi..vexi.widget.tab(vexi.box);
+                    if (!c.v_tab) c.v_tab = newtab(vexi.box);
                     
                     if (!tabgroup)
                     {
@@ -106,20 +107,6 @@
             
             cascade = v;
             
-            /** drop tabs of exiting cards tabs *
-            FIXME: reinstate
-            v.ChildRemoved ++= function(c)
-            {
-                // destroy tab if it has not moved
-                if (c.v_tab.group == tabgroup)
-                {
-                    c.v_tab.group = null;
-                    c.v_tab.thisbox = null;
-                }
-                // don't allow last tab to be closed
-                if (th_close) th_close.enabled = (v.numchildren > 1);
-            }*/
-            
             /** select tab of shown card */
             show ++= function(c)
             {

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-09-05 20:31:24 UTC (rev 2125)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/win2k/tab.t       
2007-09-05 22:05:20 UTC (rev 2126)
@@ -1,12 +1,12 @@
 <!-- Copyright 2006 - see COPYING for details [LGPL] -->
 
 <vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" 
xmlns="org.vexi.theme.win2k"
-    xmlns:lay="vexi.layout" xmlns:lib="org.vexi.lib.widget" 
xmlns:rdrt="vexi.util.redirect">
+    xmlns:lay="vexi.layout" xmlns:lib="org.vexi.lib" 
xmlns:rdrt="vexi.util.redirect">
     <meta:doc>
         <author>Charles Goodwin</author>
     </meta:doc>
     
-    <lib:tab redirect="$content" layout="place">
+    <lib:widget.tab redirect="$content" layout="place">
         <bevel id="bg" fill="#c4c0b8" form="tabtop" y="2" shrink="true">
             <lay:pad padding="3">
                 <focusborder id="focus">
@@ -31,7 +31,9 @@
         
         rdrt..addRedirect(thisbox, $content, "orient", "font", "fontsize", 
"text", "textcolor");
         
-    </lib:tab>
+    </lib:widget.tab>
+    <lib:role.focusable />
+    <lib:role.tooltipable />
     
     /** 'raise' when selected */
     static.selectedFunc = function(v)

Deleted: trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t        2007-09-05 
20:31:24 UTC (rev 2125)
+++ trunk/widgets/org.vexi.widgets/src/vexi/widget/tab.t        2007-09-05 
22:05:20 UTC (rev 2126)
@@ -1,16 +0,0 @@
-<!-- Copyright 2006 - see COPYING for details [LGPL] -->
-
-<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme" 
xmlns:role="org.vexi.lib.role">
-    <meta:doc>
-        <name>Tab</name>
-        <desc>A tab for use in a tabpane</desc>
-        <usage>
-            Tabpane automatically manages tabs, so for most circumstances
-            you will not be wanting to use this widget manually
-        </usage>
-    </meta:doc>
-    
-    <tab />
-    <role:focusable />
-    <role:tooltipable />
-</vexi>


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to