[Commits] r1283 - core/trunk/geoext/examples

commits at geoext.org commits at geoext.org
Thu Jul 23 22:07:20 CEST 2009


Author: elemoine
Date: 2009-07-23 22:07:20 +0200 (Thu, 23 Jul 2009)
New Revision: 1283

Modified:
   core/trunk/geoext/examples/toolbar.js
Log:
add tooltips in the toolbar example, no functional change


Modified: core/trunk/geoext/examples/toolbar.js
===================================================================
--- core/trunk/geoext/examples/toolbar.js	2009-07-23 09:53:02 UTC (rev 1282)
+++ core/trunk/geoext/examples/toolbar.js	2009-07-23 20:07:20 UTC (rev 1283)
@@ -7,6 +7,8 @@
  */
 
 Ext.onReady(function() {
+    Ext.QuickTips.init();
+
     var map = new OpenLayers.Map();
     var wms = new OpenLayers.Layer.WMS(
         "Global Imagery",
@@ -22,7 +24,8 @@
     action = new GeoExt.Action({
         control: new OpenLayers.Control.ZoomToMaxExtent(),
         map: map,
-        text: "max extent"
+        text: "max extent",
+        tooltip: "zoom to max extent"
     });
     actions["max_extent"] = action;
     toolbarItems.push(action);
@@ -38,6 +41,7 @@
         toggleGroup: "draw",
         allowDepress: false,
         pressed: true,
+        tooltip: "navigate",
         // check item options
         group: "draw",
         checked: true
@@ -54,6 +58,7 @@
         // button options
         toggleGroup: "draw",
         allowDepress: false,
+        tooltip: "draw polygon",
         // check item options
         group: "draw"
     });
@@ -69,6 +74,7 @@
         // button options
         toggleGroup: "draw",
         allowDepress: false,
+        tooltip: "draw line",
         // check item options
         group: "draw"
     });
@@ -85,7 +91,8 @@
         }),
         map: map,
         // button options
-        enableToggle: true
+        enableToggle: true,
+        tooltip: "select feature"
     });
     actions["select"] = action;
     toolbarItems.push(action);
@@ -98,7 +105,8 @@
     action = new GeoExt.Action({
         text: "previous",
         control: ctrl.previous,
-        disabled: true
+        disabled: true,
+        tooltip: "previous in history"
     });
     actions["previous"] = action;
     toolbarItems.push(action);
@@ -106,7 +114,8 @@
     action = new GeoExt.Action({
         text: "next",
         control: ctrl.next,
-        disabled: true
+        disabled: true,
+        tooltip: "next in history"
     });
     actions["next"] = action;
     toolbarItems.push(action);



More information about the Commits mailing list