details:   /erp/devel/pi/rev/8150b054c08f
changeset: 9314:8150b054c08f
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu Dec 23 01:06:59 2010 +0100
summary:   [tab][style] Added styles for child tabs

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
                                                                          |   
10 +
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
                                                                                
     |    3 +-
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
                                                                                
               |   27 +++
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active.gif
       |    0 
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active_Focus.gif
 |    0 
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_inactive.gif
     |    0 
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarChild_bg.gif
                 |    0 
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.css
                             |   68 ++++++++++
 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.js
                              |   33 ++++
 9 files changed, 139 insertions(+), 2 deletions(-)

diffs (204 lines):

diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
   Wed Dec 22 18:02:30 2010 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/ApplicationComponentProvider.java
   Thu Dec 23 01:06:59 2010 +0100
@@ -78,6 +78,8 @@
     globalResources.add(createStaticResource(
         "web/org.openbravo.client.application/js/ob-formitem-widgets.js", 
true));
     globalResources.add(createStaticResource(
+        "web/org.openbravo.client.application/js/ob-tab.js", false));
+    globalResources.add(createStaticResource(
         "web/org.openbravo.client.application/js/ob-grid.js", false));
 
     globalResources.add(createStaticResource(
@@ -126,6 +128,10 @@
     globalResources.add(createStyleSheetResource(
         "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
             + KernelConstants.SKIN_VERSION_PARAMETER
+            + "/org.openbravo.client.application/ob-tab-styles.css", false));
+    globalResources.add(createStyleSheetResource(
+        "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
+            + KernelConstants.SKIN_VERSION_PARAMETER
             + "/org.openbravo.client.application/ob-form-styles.css", false));
     globalResources.add(createStyleSheetResource(
         "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
@@ -155,6 +161,10 @@
     globalResources.add(createStaticResource(
         "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
             + KernelConstants.SKIN_VERSION_PARAMETER
+            + "/org.openbravo.client.application/ob-tab-styles.js", false));
+    globalResources.add(createStaticResource(
+        "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
+            + KernelConstants.SKIN_VERSION_PARAMETER
             + "/org.openbravo.client.application/ob-grid-styles.js", false));
     globalResources.add(createStaticResource(
         "web/org.openbravo.userinterface.smartclient/openbravo/skins/"
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Wed Dec 22 18:02:30 2010 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view.js
      Thu Dec 23 01:06:59 2010 +0100
@@ -979,7 +979,7 @@
 // = OBStandardViewTabSet =
 // The OBStandardViewTabSet is the tabset used within the standard view to
 // display child tabs
-isc.ClassFactory.defineClass('OBStandardViewTabSet', isc.TabSet);
+isc.ClassFactory.defineClass('OBStandardViewTabSet', isc.OBTabSetChild);
 
 isc.OBStandardViewTabSet.addClassProperties({
 
@@ -1048,7 +1048,6 @@
   paneContainerMargin: 0,
   paneContainerPadding: 0,
   showPaneContainerEdges: false,
-  useSimpleTabs: true,
   
   state: null,
   previousState: null,
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-tab.js
        Thu Dec 23 01:06:59 2010 +0100
@@ -0,0 +1,27 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2010 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+ */
+
+isc.ClassFactory.defineClass('OBTabSet', isc.TabSet);
+
+isc.ClassFactory.defineClass('OBTabBar', isc.TabBar);
+
+
+isc.ClassFactory.defineClass('OBTabSetChild', isc.OBTabSet);
+
+isc.ClassFactory.defineClass('OBTabBarChild', isc.OBTabBar);
\ No newline at end of file
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active.gif
Binary file 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active.gif
 has changed
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active_Focus.gif
Binary file 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_active_Focus.gif
 has changed
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_inactive.gif
Binary file 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarButtonChild_inactive.gif
 has changed
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarChild_bg.gif
Binary file 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/images/tab/tabBarChild_bg.gif
 has changed
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.css
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.css
      Thu Dec 23 01:06:59 2010 +0100
@@ -0,0 +1,68 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an 'AS IS'
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2010 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+*/
+
+.OBTabSetChild {
+
+}
+
+.OBTabBarChild {
+  background:  #ffffff url(./images/tab/tabBarChild_bg.gif) repeat-x scroll;
+  background-position: center top;
+}
+
+.OBTabSetChildContainer {
+
+}
+
+/* styles for simple css-styled tabs*/
+/* note only the top styles are present here because in Openbravo tabs in 
forms are shown in the top
+if the tab headers are on the right, left or bottom the same styles can be 
used */
+
+.OBTabBarChildButtonTopSelected,
+.OBTabBarChildButtonTopSelectedFocused,
+.OBTabBarChildButtonTopSelectedFocusedOver,
+.OBTabBarChildButtonTopSelectedFocusedDown,
+.OBTabBarChildButtonTopSelectedDown,
+.OBTabBarChildButtonTopSelectedDisabled,
+.OBTabBarChildButtonTopSelectedOver {
+  font-family: 'lucida sans', sans-serif;
+  font-size: 12px;
+  font-weight: normal;
+  color: #fff;
+  margin: 0px;
+  padding: 0px 8px 0px 8px;
+  background-image: url(./images/tab/tabBarButtonChild_active.gif);
+  background-position: center 2px;
+  background-repeat: repeat-x;
+}
+
+.OBTabBarChildButtonTop,
+.OBTabBarChildButtonTopOver,
+.OBTabBarChildButtonTopDown,
+.OBTabBarChildButtonTopDisabled {
+  font-family: 'lucida sans', sans-serif;
+  font-size: 12px;
+  font-weight: normal;
+  color: #fff;
+  margin: 0px;
+  padding: 0px 8px 0px 8px;
+  background-image: url(./images/tab/tabBarButtonChild_inactive.gif);
+  background-position: center 2px;
+  background-repeat: repeat-x;
+}
\ No newline at end of file
diff -r e90d0c13ca1d -r 8150b054c08f 
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.js
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/3.00/org.openbravo.client.application/ob-tab-styles.js
       Thu Dec 23 01:06:59 2010 +0100
@@ -0,0 +1,33 @@
+/*
+ *************************************************************************
+ * The contents of this file are subject to the Openbravo  Public  License
+ * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+ * Version 1.1  with a permitted attribution clause; you may not  use this
+ * file except in compliance with the License. You  may  obtain  a copy of
+ * the License at http://www.openbravo.com/legal/license.html
+ * Software distributed under the License  is  distributed  on  an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ * License for the specific  language  governing  rights  and  limitations
+ * under the License.
+ * The Original Code is Openbravo ERP.
+ * The Initial Developer of the Original Code is Openbravo SLU
+ * All portions are Copyright (C) 2010 Openbravo SLU
+ * All Rights Reserved.
+ * Contributor(s):  ______________________________________.
+ ************************************************************************
+*/
+
+
+isc.OBTabBarChild.addProperties({
+  buttonConstructor: isc.OBTabBarChildButton,
+  styleName: 'OBTabBarChild'
+});
+
+isc.OBTabSetChild.addProperties({
+  tabBarConstructor: isc.OBTabBarChild,
+  useSimpleTabs: true,
+  tabBarThickness: 38,
+  styleName: 'OBTabSetChild',
+  simpleTabBaseStyle: 'OBTabBarChildButton',
+  paneContainerClassName: "OBTabSetChildContainer"
+});

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to