[Commits] r419 - in apps/opengeo/geoexplorer/trunk: lib theme theme/img
commits at geoext.org
commits at geoext.org
Sat Apr 18 00:56:37 CEST 2009
Author: tschaub
Date: 2009-04-18 00:56:37 +0200 (Sat, 18 Apr 2009)
New Revision: 419
Added:
apps/opengeo/geoexplorer/trunk/theme/img/geoexplorer.gif
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css
Log:
Button tweaks.
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 22:08:51 UTC (rev 418)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-17 22:56:37 UTC (rev 419)
@@ -168,6 +168,7 @@
text: "Remove Layer",
iconCls: "icon-removeLayers",
disabled: true,
+ tooltip: "Remove Layer",
handler: function() {
var node = layerTree.getSelectionModel().getSelectedNode();
if(node && node.layer) {
@@ -228,7 +229,11 @@
region: 'center',
title: "Layers",
items: [layerTree],
- tbar: ["->", removeLayerAction, addLayerButton]
+ tbar: [
+ "->",
+ Ext.apply(new Ext.Button(removeLayerAction), {text: ""}),
+ addLayerButton
+ ]
});
var legendContainer = new GeoExt.LegendPanel({
@@ -369,18 +374,19 @@
bbar: [
"->",
new Ext.Button({
+ text: "Done",
+ handler: function() {
+ this.capGrid.hide();
+ },
+ scope: this
+ }),
+ new Ext.Button({
text: "Add Layers",
+ iconCls: "icon-addlayers",
handler: function(){
capGridPanel.addLayers()
},
scope : this
- }),
- new Ext.Button({
- text: "Done",
- handler: function() {
- this.capGrid.hide();
- },
- scope: this
})
]
});
@@ -548,11 +554,17 @@
var toolGroup = "toolGroup";
var tools = [
new Ext.Button({
+ text: "GeoExplorer",
+ iconCls: "icon-geoexplorer"
+ // could have menu here with link to OpenGeo
+ }),
+ "-",
+ new Ext.Button({
handler: this.bookmark,
scope: this,
iconCls: "icon-save"
}),
- "|"
+ "-"
,
new Ext.Button({
tooltip: "Pan Map",
@@ -596,7 +608,7 @@
enableToggle: true,
toggleGroup: toolGroup
}),
- "|",
+ "-",
new Ext.Button({
handler: function(){
this.map.zoomIn();
Modified: apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css
===================================================================
--- apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css 2009-04-17 22:08:51 UTC (rev 418)
+++ apps/opengeo/geoexplorer/trunk/theme/geoexplorer.css 2009-04-17 22:56:37 UTC (rev 419)
@@ -1,3 +1,7 @@
+.icon-geoexplorer {
+ background-image: url(img/geoexplorer.gif) !important;
+}
+
.icon-addlayers {
background-image: url(img/silk/add.png) !important;
}
Added: apps/opengeo/geoexplorer/trunk/theme/img/geoexplorer.gif
===================================================================
(Binary files differ)
Property changes on: apps/opengeo/geoexplorer/trunk/theme/img/geoexplorer.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the Commits
mailing list