[Commits] r2895 - in sandbox/mapgears/geoext.ux/ux/WMSBrowser: lib/GeoExt.ux/widgets resources/css

commits at geoext.org commits at geoext.org
Fri Dec 14 13:45:26 CET 2012


Author: sbrunner
Date: 2012-12-14 13:45:26 +0100 (Fri, 14 Dec 2012)
New Revision: 2895

Modified:
   sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
   sandbox/mapgears/geoext.ux/ux/WMSBrowser/resources/css/WMSBrowser.css
Log:
Replace style by class

Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js	2012-12-14 12:45:26 UTC (rev 2894)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/lib/GeoExt.ux/widgets/WMSBrowser.js	2012-12-14 12:45:26 UTC (rev 2895)
@@ -375,7 +375,7 @@
     initMyItems: function() {
         // north (connection informations)
         this.serverComboBox = new Ext.form.ComboBox({
-            style:'padding:0px;margin:0px;',
+            cls: 'wms-browser-combo',
             columnWidth: 0.85,
             'name': 'wms_url',
             xtype: 'combo',
@@ -395,13 +395,13 @@
         var northPanel = new Ext.form.FormPanel({
             height: 'auto',
             autoHeight: true,
-            border: false,
+            unstyled: true,
             region: 'north',
             layout: 'column',
             items: [this.serverComboBox, {
                 columnWidth: 0.15,
                 width: '100%',
-                style:'padding:0px;margin:0px;',
+                cls: 'wms-browser-connect-btn',
                 xtype: 'button',
                 text: this.connectText,
                 scope: this,
@@ -417,6 +417,7 @@
                 region: 'south',
                 collapsible: true,
                 collapsed: true,
+                cls: 'wms-browser-mappanel',
                 border: false,
                 height: 200,
                 floatable: false,
@@ -451,11 +452,12 @@
         }
 
         this.infoPanel = new Ext.Panel({
+            unstyled: true,
             anchor: '50% 100%',
             x: '50%',
             y: '0',
-                    region: 'east',
-                    width: '50%',
+            region: 'east',
+            width: '50%',
             layout: 'border',
             border: true,
             items: [
@@ -516,7 +518,11 @@
      * to this widget to display and select the layers from nodes in a tree.
      */
     createTreePanel: function() {
-        var options = {'wmsbrowser': this};
+        var options = {
+            'wmsbrowser': this,
+            border: true,
+            cls: 'wms-browser-tree'
+        };
         return new GeoExt.ux.tree.WMSBrowserTreePanel(options);
     },
 
@@ -542,6 +548,7 @@
             anchor: '100% 100%',
             defaultType: 'textfield',
             border: false,
+            cls: 'wms-browser-description-fieldset',
             items: [{
                 x: 0,
                 y: 0,
@@ -580,13 +587,12 @@
             Ext.applyIf(
                 this.layerNameFieldOptions, {
                     width: 275,
-                    xtype: 'textfield'
+                    xtype: 'textfield',
+                    cls: 'wms-browser-layername-label'
             })
         );
         items.push(this.layerNameField);
 
-        items.push('-');
-
         // AddLayer action
         var actionOptions = {
             handler: this.addLayer,
@@ -603,7 +609,12 @@
         var action = new Ext.Action(actionOptions);
         items.push(action);
 
-        Ext.apply(this, {bbar: new Ext.Toolbar(items)});
+        Ext.apply(this, {
+            bbar: new Ext.Toolbar({
+                items: items,
+                cls: 'wms-browser-toolbar'
+            })
+        });
     },
 
     /** private: method[triggerGetCapabilities]

Modified: sandbox/mapgears/geoext.ux/ux/WMSBrowser/resources/css/WMSBrowser.css
===================================================================
--- sandbox/mapgears/geoext.ux/ux/WMSBrowser/resources/css/WMSBrowser.css	2012-12-14 12:45:26 UTC (rev 2894)
+++ sandbox/mapgears/geoext.ux/ux/WMSBrowser/resources/css/WMSBrowser.css	2012-12-14 12:45:26 UTC (rev 2895)
@@ -0,0 +1,4 @@
+.wms-browser-combo, .wms-browser-connect-btn {
+    padding: 0px;
+    margin: 0px;
+}



More information about the Commits mailing list