Mercurial > dive4elements > river
changeset 2545:f25a3eb9785d
Issue 671.
Added tooltips to chart toolbar buttons.
flys-client/trunk@4503 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 24 May 2012 13:22:15 +0000 |
parents | 04bd9f1611a1 |
children | 2618d5de9ce4 cada6ed863f1 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java |
diffstat | 6 files changed, 81 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/ChangeLog Thu May 24 13:22:15 2012 +0000 @@ -1,3 +1,16 @@ +2012-05-24 Raimund Renkert <raimund.renkert@intevation.de> + + Issue 671. + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java: + Added tooltips to toolbar buttons. + + * 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_en.properties, + src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties: + Added i18n strings for tooltips. + 2012-05-24 Raimund Renkert <raimund.renkert@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Thu May 24 13:22:15 2012 +0000 @@ -334,6 +334,27 @@ String kmchart(); + String addPointsTooltip(); + + String downloadPNGTooltip(); + + String downloadPDFTooltip(); + + String downloadSVGTooltip(); + + String downloadCSVTooltip(); + + String zoomToMaxExtentTooltip(); + + String zoomOutTooltip(); + + String historyBackTooltip(); + + String panControlTooltip(); + + String zoomboxTooltip(); + + String chartPropertiesTooltip(); // Elevation window String ele_window_title();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Thu May 24 13:22:15 2012 +0000 @@ -121,6 +121,18 @@ missingInput = You need to enter a value. too_many_values = Only one value allowed +addPointsTooltip = Add manual points +downloadPNGTooltip = Download chart as PNG +downloadPDFTooltip = Download chart as PDF +downloadSVGTooltip = Download chart as SVG +downloadCSVTooltip = Download data as CSV +zoomToMaxExtentTooltip = Zoom to max extent +zoomOutTooltip = Zoom out +historyBackTooltip = Previous zoom +panControlTooltip = Pan +zoomboxTooltip = Zoombox +chartPropertiesTooltip = Chartproperties + description = Description from = From to = To
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Thu May 24 13:22:15 2012 +0000 @@ -174,6 +174,18 @@ pan = images/hand.png askThemeRemove = Sind Sie sicher, dass sie die gew\u00e4hlten / das gew\u00e4lte Thema l\u00f6eschen wollen? +addPointsTooltip = Manuelle Punkte hinzuf\u00fcgen +downloadPNGTooltip = Diagramm als PNG herunterladen +downloadPDFTooltip = Diagramm als PDF herunterladen +downloadSVGTooltip = Diagramm als SVG herunterladen +downloadCSVTooltip = Daten als CSV herunterladen +zoomToMaxExtentTooltip = Auf maximale Ausdehnung zoomen +zoomOutTooltip = Herauszoomen +historyBackTooltip = Voriger Zoom +panControlTooltip = Verschieben +zoomboxTooltip = Ausschnitt vergr\u00f6\u00dfern +chartPropertiesTooltip = Diagrammeigenschaften + discharge_curve = Abflusskurven an Pegeln computed_discharge_curve = Abflusskurve computed_discharge_curves = Abflusskurven
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Thu May 24 13:22:15 2012 +0000 @@ -122,6 +122,18 @@ missingInput = You need to enter a value. too_many_values = Only one value allowed +addPointsTooltip = Add manual points +downloadPNGTooltip = Download chart as PNG +downloadPDFTooltip = Download chart as PDF +downloadSVGTooltip = Download chart as SVG +downloadCSVTooltip = Download data as CSV +zoomToMaxExtentTooltip = Zoom to max extent +zoomOutTooltip = Zoom out +historyBackTooltip = Previous zoom +panControlTooltip = Pan +zoomboxTooltip = Zoombox +chartPropertiesTooltip = Chartproperties + description = Description from = From to = To
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Thu May 24 11:16:01 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Thu May 24 13:22:15 2012 +0000 @@ -79,6 +79,7 @@ openPointWindow(); } }); + addPoints.setTooltip(MSG.addPointsTooltip()); datacage.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { @@ -94,24 +95,28 @@ chartTab.getExportUrl(-1, -1, "png"), 20, 20); + downloadPNG.setTooltip(MSG.downloadPNGTooltip()); downloadPDF = new ImgLink( baseUrl + MSG.downloadPDF(), chartTab.getExportUrl(1280, 1024, "pdf"), 20, 20); + downloadPDF.setTooltip(MSG.downloadPDFTooltip()); downloadSVG = new ImgLink( baseUrl + MSG.downloadSVG(), chartTab.getExportUrl(1280, 1024, "svg"), 20, 20); + downloadSVG.setTooltip(MSG.downloadSVGTooltip()); downloadCSV = new ImgLink( baseUrl + MSG.downloadCSV(), chartTab.getExportUrl(-1, -1, "csv"), 20, 20); + downloadCSV.setTooltip(MSG.downloadCSVTooltip()); zoomToMaxExtent.setSrc(baseUrl + MSG.zoom_all()); adjustImageButton(zoomToMaxExtent); @@ -120,6 +125,7 @@ getChartOutputTab().resetRanges(); } }); + zoomToMaxExtent.setTooltip(MSG.zoomToMaxExtentTooltip()); zoomOut.setSrc(baseUrl + MSG.zoom_out()); adjustImageButton(zoomOut); @@ -128,6 +134,7 @@ getChartOutputTab().zoomOut(10); } }); + zoomOut.setTooltip(MSG.zoomOutTooltip()); historyBack.setSrc(baseUrl + MSG.zoom_back()); adjustImageButton(historyBack); @@ -136,6 +143,7 @@ getChartOutputTab().zoomOut(); } }); + historyBack.setTooltip(MSG.historyBackTooltip()); zoombox.addZoomHandler(chartTab); zoombox.addZoomHandler(this); @@ -144,6 +152,7 @@ panControl.deselect(); } }); + zoombox.setTooltip(MSG.zoomboxTooltip()); panControl.addPanHandler(chartTab); panControl.addClickHandler(new ClickHandler() { @@ -151,6 +160,7 @@ zoombox.deselect(); } }); + panControl.setTooltip(MSG.panControlTooltip()); chartProperties.setSrc(baseUrl + MSG.properties_ico()); adjustImageButton(chartProperties); @@ -159,7 +169,7 @@ openPropertiesEditor(); } }); - + chartProperties.setTooltip(MSG.chartPropertiesTooltip()); initLayout(); addResizedHandler(new ResizedHandler() {