# HG changeset patch # User Ingo Weinzierl # Date 1330954210 0 # Node ID 1695d66896f987dc296e86be54de14c69dea6417 # Parent caae9d686372eb4b80c33d4163cd6f1aeb1f8930 Deactivate GetFeatureInfo button if another toggle button is pressed. flys-client/trunk@4121 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r caae9d686372 -r 1695d66896f9 flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Mar 05 13:09:46 2012 +0000 +++ b/flys-client/ChangeLog Mon Mar 05 13:30:10 2012 +0000 @@ -1,3 +1,8 @@ +2012-03-05 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java: + Deactivate GetFeatureInfo button if another toggle button is pressed. + 2012-03-05 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/ui/ProjectList.java: diff -r caae9d686372 -r 1695d66896f9 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 Mar 05 13:09:46 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Mon Mar 05 13:30:10 2012 +0000 @@ -191,6 +191,13 @@ protected void activateGetFeatureInfo(boolean activate) { + if (activate) { + infoButton.select(); + } + else { + infoButton.deselect(); + } + getFeatureInfo.activate(activate); } @@ -262,11 +269,12 @@ EnableDisableCmd cmd = new EnableDisableCmd() { public void enable() { - activateZoomBox(true); activatePan(false); activateDrawFeature(false); activateSelectFeature(false); activateMeasureControl(false); + activateGetFeatureInfo(false); + activateZoomBox(true); } public void disable() { @@ -309,10 +317,11 @@ EnableDisableCmd cmd = new EnableDisableCmd() { public void enable() { activateZoomBox(false); - activatePan(true); activateDrawFeature(false); activateSelectFeature(false); activateMeasureControl(false); + activateGetFeatureInfo(false); + activatePan(true); } public void disable() {