# HG changeset patch # User Ingo Weinzierl # Date 1315889350 0 # Node ID 22dc88b17253d1b0ce614b713846c9dcde3cfbe4 # Parent 5a299d49a989ae96b694c75ccffd9e448744f32f Added tooltips for the maptoolbar. flys-client/trunk@2709 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 5a299d49a989 -r 22dc88b17253 flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/ChangeLog Tue Sep 13 04:49:10 2011 +0000 @@ -1,3 +1,18 @@ +2011-09-13 Ingo Weinzierl + + flys/issue286 (Karte: Tooltips für die Werkzeugleiste) + + * src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java, + src/main/java/de/intevation/flys/client/client/ui/map/MeasureControl.java, + src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java: + Added tooltips for map controls. + + * src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants.java, + src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties: + Added tooltip texts. + 2011-09-12 Raimund Renkert * src/main/java/de/intevation/flys/client/client/ui/TableDataPanel.java: diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Tue Sep 13 04:49:10 2011 +0000 @@ -361,5 +361,25 @@ String step(); String calculationStarted(); + + String zoomMaxExtent(); + + String zoomIn(); + + String zoomOut(); + + String zoomLayer(); + + String moveMap(); + + String digitizeObjects(); + + String selectObject(); + + String removeObject(); + + String measureDistance(); + + String measureArea(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Tue Sep 13 04:49:10 2011 +0000 @@ -185,3 +185,13 @@ measurePolygon = images/measurePolygon.png step = Step calculationStarted = Calculation started. +zoomMaxExtent = Max extent +zoomIn = Zoom in +zoomOut = Zoom out +zoomLayer = Zoom to layer +moveMap = Move +digitizeObjects = Creation of pipes, ditches, dams and ringdikes +selectObject = Select tool +removeObject = Remove selected object +measureDistance = Measure line +measureArea = Measure area diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Tue Sep 13 04:49:10 2011 +0000 @@ -185,3 +185,13 @@ measurePolygon = images/measurePolygon.png step = Schritt calculationStarted = Berechnung wurde gestarted. +zoomMaxExtent = Gesamtausschnitt +zoomIn = Hereinzoomen +zoomOut = Herauszoomen +zoomLayer = Zoom auf Layer +moveMap = Verschieben +digitizeObjects = Erstellung von Rohren, Gr\u00e4ben, D\u00e4mmen und Ringdeichen +selectObject = Auswahlwerkzeug +removeObject = Ausgew\u00e4hltes Objekt l\u00f6schen +measureDistance = L\u00e4ngenmessung +measureArea = Streckenmessung diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties --- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Tue Sep 13 04:49:10 2011 +0000 @@ -180,3 +180,13 @@ measurePolygon = images/measurePolygon.png step = Step calculationStarted = Calculation started. +zoomMaxExtent = Max extent +zoomIn = Zoom in +zoomOut = Zoom out +zoomLayer = Zoom to layer +moveMap = Move +digitizeObjects = Creation of pipes, ditches, dams and ringdikes +selectObject = Select tool +removeObject = Remove selected object +measureDistance = Measure line +measureArea = Measure area diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java Tue Sep 13 04:49:10 2011 +0000 @@ -76,6 +76,7 @@ button.setSize(20); button.setShowRollOver(false); button.setSelected(false); + button.setTooltip(MSG.digitizeObjects()); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent e) { diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Tue Sep 13 04:49:10 2011 +0000 @@ -202,6 +202,8 @@ } }); + zoomToMax.setTooltip(MSG.zoomMaxExtent()); + return zoomToMax; } @@ -224,7 +226,9 @@ }; ImgButton button = createToggleButton(MSG.zoom_in(), cmd); - Map map = getMap(); + button.setTooltip(MSG.zoomIn()); + + Map map = getMap(); map.addControl(zoomBox); return button; @@ -243,6 +247,8 @@ } }); + zoomOut.setTooltip(MSG.zoomOut()); + return zoomOut; } @@ -266,6 +272,7 @@ }; final ImgButton button = createToggleButton(MSG.pan(), cmd); + button.setTooltip(MSG.moveMap()); return button; } @@ -332,6 +339,7 @@ }; ImgButton button = createToggleButton(MSG.selectFeature(), cmd); + button.setTooltip(MSG.selectObject()); return button; } @@ -361,6 +369,8 @@ } }); + remove.setTooltip(MSG.removeObject()); + return remove; } diff -r 5a299d49a989 -r 22dc88b17253 flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MeasureControl.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MeasureControl.java Mon Sep 12 15:14:45 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MeasureControl.java Tue Sep 13 04:49:10 2011 +0000 @@ -77,6 +77,7 @@ btn.setSize(20); btn.setShowRollOver(false); btn.setSelected(false); + btn.setTooltip(MSG.measureDistance()); btn.addClickHandler(new ClickHandler() { public void onClick(ClickEvent e) { if (btn.isSelected()) { @@ -118,6 +119,7 @@ btn.setSize(20); btn.setShowRollOver(false); btn.setSelected(false); + btn.setTooltip(MSG.measureArea()); btn.addClickHandler(new ClickHandler() { public void onClick(ClickEvent e) { if (btn.isSelected()) {