[Commits] r849 - in apps/opengeo/geoexplorer/trunk: lib lib/GeoExplorer lib/GeoExplorer/Full script
commits at geoext.org
commits at geoext.org
Fri May 22 22:04:51 CEST 2009
Author: dwins
Date: 2009-05-22 22:04:51 +0200 (Fri, 22 May 2009)
New Revision: 849
Added:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
apps/opengeo/geoexplorer/trunk/script/GeoExplorer-debug.js
Log:
Make the full-screen app a subclass of GeoExplorer as well
Added: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js (rev 0)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer/Full/Full.js 2009-05-22 20:04:51 UTC (rev 849)
@@ -0,0 +1,21 @@
+GeoExplorer.Full = Ext.extend(GeoExplorer, {
+ /**
+ * api: method[createTools]
+ * Create the toolbar configuration for the main view.
+ */
+ createTools: function() {
+ var tools =
+ GeoExplorer.Full.superclass.createTools.apply(this, arguments);
+
+ var aboutButton = new Ext.Button({
+ text: "GeoExplorer",
+ iconCls: "icon-geoexplorer",
+ handler: this.displayAppInfo
+ });
+
+ tools.unshift("-");
+ tools.unshift(aboutButton);
+ return tools;
+ }
+
+});
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-22 19:45:30 UTC (rev 848)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-05-22 20:04:51 UTC (rev 849)
@@ -657,12 +657,6 @@
var tools = [
new Ext.Button({
- text: "GeoExplorer",
- iconCls: "icon-geoexplorer",
- handler: this.displayAppInfo
- }),
- "-",
- new Ext.Button({
tooltip: "Bookmark",
handler: this.bookmark,
scope: this,
Modified: apps/opengeo/geoexplorer/trunk/script/GeoExplorer-debug.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/script/GeoExplorer-debug.js 2009-05-22 19:45:30 UTC (rev 848)
+++ apps/opengeo/geoexplorer/trunk/script/GeoExplorer-debug.js 2009-05-22 20:04:51 UTC (rev 849)
@@ -3,13 +3,16 @@
// Since the applications are located one directory down from
// the base, all these includes must be prefixed by a ../
var jsfiles = new Array(
+ "lib/GeoExplorer/Viewer.js",
"lib/GeoExplorer/RowExpander.js",
+ "lib/GeoExplorer/MapToolToggle.js",
+ "lib/GeoExplorer/MapToolSplitToggle.js",
+ "lib/GeoExplorer/MapToolMenu.js",
+ "lib/GeoExplorer/LayerMenuItem.js",
"lib/GeoExplorer/CapabilitiesGrid.js",
- "lib/GeoExplorer/Viewer.js",
"lib/GeoExplorer.js",
- "lib/GeoExplorer/MapToolMenu.js",
- "lib/GeoExplorer/MapToolSplitToggle.js",
- "lib/GeoExplorer/MassGetFeatureInfo.js"
+ "lib/GeoExplorer/Full/Full.js",
+ "lib/GeoExplorer/Embed/Embed.js"
);
var appendable = !(/MSIE/.test(navigator.userAgent) ||
More information about the Commits
mailing list