[Commits] r431 - in apps/opengeo/geoexplorer/trunk: . lib
commits at geoext.org
commits at geoext.org
Tue Apr 21 17:46:05 CEST 2009
Author: dwins
Date: 2009-04-21 17:46:05 +0200 (Tue, 21 Apr 2009)
New Revision: 431
Added:
apps/opengeo/geoexplorer/trunk/about.html
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Add 'about this app' dialog when the 'GeoExplorer' button is pressed. #156
Added: apps/opengeo/geoexplorer/trunk/about.html
===================================================================
--- apps/opengeo/geoexplorer/trunk/about.html (rev 0)
+++ apps/opengeo/geoexplorer/trunk/about.html 2009-04-21 15:46:05 UTC (rev 431)
@@ -0,0 +1,64 @@
+<html>
+ <head>
+ <title>About GeoExplorer</title>
+ <style type="text/css">
+ body {
+ font-size: smaller;
+ }
+
+ h2 {
+ text-align: center;
+ font-weight: bold;
+ font-size: larger;
+ }
+
+ div.versioninfo {
+ text-align: center;
+ }
+
+ div.logo {
+ margin-left: auto;
+ margin-right: auto;
+ height: 70px;
+ width: 70px;
+ background: black;
+ }
+
+ h3 {
+ font-weight: bold;
+ }
+
+ a {
+ display: block;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="logo"></div>
+ <h2> GeoExplorer </h2>
+ <div class="versioninfo">Version 0.1</div>
+ <h3> Engineering & Design by OpenGeo </h3>
+ <a href="http://opengeo.org/">http://opengeo.org/</a>
+ © 2009, OpenGeo under the XYZ license.
+
+ <h3> GeoExt Framework </h3>
+ <a href="http://geoext.org/">http://geoext.org/</a>
+ © 2009, OSGeo under the BSD license.
+
+ <h3> GeoSilk Icons </h3>
+ <a href="http://projects.opengeo.org/geosilk/">http://projects.opengeo.org/geosilk/</a>
+ © 2009, OpenGeo under CC-BY 3.0.
+
+ <h3> Silk Icons </h3>
+ <a href="http://famfamfam.com/lab/icons/silk/">http://famfamfam.com/lab/icons/silk/</a>
+ © Mark James under CC-BY 3.0.
+
+ <h3> Contributors </h3>
+ <ul>
+ <li>Tim Schaub</li>
+ <li>David Winslow</li>
+ <li>Sebastian Benthall</li>
+ <li>Rolando Peñate</li>
+ </ul>
+ </body>
+</html>
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-20 20:45:46 UTC (rev 430)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-21 15:46:05 UTC (rev 431)
@@ -567,8 +567,8 @@
var tools = [
new Ext.Button({
text: "GeoExplorer",
- iconCls: "icon-geoexplorer"
- // could have menu here with link to OpenGeo
+ iconCls: "icon-geoexplorer",
+ handler: this.displayAppInfo
}),
"-",
new Ext.Button({
@@ -870,5 +870,16 @@
});
return config;
+ },
+
+ displayAppInfo: function() {
+ var win = new Ext.Window({
+ title: "About GeoExplorer",
+ html: "<iframe style=\"border: none; height: 100%; width: 100%\" src=\"about.html\"><a target=\"_blank\" href=\"about.html\">About GeoExplorer</a> </iframe>",
+ modal: true,
+ width: 350,
+ height: 400
+ });
+ win.show();
}
});
More information about the Commits
mailing list