Mercurial > dive4elements > river
changeset 1469:31d0557f31a2
Fix over axis menu item, added standalone 'over axis' menu item.
flys-client/trunk@3511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 21 Dec 2011 12:18:59 +0000 |
parents | 57f9753700e2 |
children | eef55d18f424 |
files | 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/ChartThemePanel.java |
diffstat | 5 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Wed Dec 21 11:12:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java Wed Dec 21 12:18:59 2011 +0000 @@ -388,6 +388,8 @@ String chart_themepanel_area_between(); + String against_x_axis(); + String discharge(); // ERRORS
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Wed Dec 21 11:12:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties Wed Dec 21 12:18:59 2011 +0000 @@ -191,6 +191,7 @@ chart_themepanel_area_under = under ... chart_themepanel_area_over = over ... chart_themepanel_area_between = between ... +against_x_axis = Over X-Axis ele_window_title = Elevation Node ele_window_label = Elevation settings in m \u00fc. NN.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Wed Dec 21 11:12:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties Wed Dec 21 12:18:59 2011 +0000 @@ -191,6 +191,7 @@ chart_themepanel_area_under = unter ... chart_themepanel_area_over = \u00fcber ... chart_themepanel_area_between = zwischen ... +against_x_axis = \u00fcber X-Achse ele_window_title = H\u00f6henknoten setzen ele_window_label = H\u00f6henangaben in m \u00fc. NN.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Wed Dec 21 11:12:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties Wed Dec 21 12:18:59 2011 +0000 @@ -191,6 +191,7 @@ chart_themepanel_area_under = under ... chart_themepanel_area_over = over ... chart_themepanel_area_between = between ... +against_x_axis = Over X-Axis ele_window_title = Elevation Node ele_window_label = Elevation settings in m \u00fc. NN.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java Wed Dec 21 11:12:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java Wed Dec 21 12:18:59 2011 +0000 @@ -355,7 +355,7 @@ againstAxis.addClickHandler(new ClickHandler() { public void onClick(MenuItemClickEvent evt) { disable(); - createAreaArtifact(facetTheme, null, false); + createAreaArtifact(null, facetTheme, false); } }); overMenu.addItem(againstAxis); @@ -384,9 +384,18 @@ underMenuItem.setSubmenu(underMenu); betweenMenuItem.setSubmenu(betweenMenu); + areaMenu.addItem(betweenMenuItem); areaMenu.addItem(overMenuItem); areaMenu.addItem(underMenuItem); - areaMenu.addItem(betweenMenuItem); + areaMenu.addItem(createSeparator()); + MenuItem standAloneAgainstAxis = new MenuItem(MSG.getString("against_x_axis")); + standAloneAgainstAxis.addClickHandler(new ClickHandler() { + public void onClick(MenuItemClickEvent evt) { + disable(); + createAreaArtifact(null, facetTheme, false); + } + }); + areaMenu.addItem(standAloneAgainstAxis); areaMenuItem.setSubmenu(areaMenu); menu.addItem(areaMenuItem);