Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 1406:6c8a29abbe30
Added an initial control that allows (when it is finished) adding map layers from external WMS.
flys-client/trunk@3291 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 18 Nov 2011 15:18:29 +0000 |
parents | 09566522e899 |
children | 659a488243da |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Fri Nov 18 13:47:07 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Fri Nov 18 15:18:29 2011 +0000 @@ -40,6 +40,7 @@ protected Button datacageButton; + protected ImgButton addWMSButton; protected ImgButton zoomToMaxButton; protected ImgButton zoomBoxButton; protected ImgButton zoomOutButton; @@ -95,6 +96,9 @@ if (mapTab != null) { datacageButton = createDatacageControl(); addMember(datacageButton); + + addWMSButton = createWMSControl(); + addMember(addWMSButton); } addMember(zoomToMaxButton); @@ -515,5 +519,19 @@ return button; } + + + protected ImgButton createWMSControl() { + ImgButton add = createButton(MSG.addWMS(), new ClickHandler() { + public void onClick(ClickEvent event) { + // TODO + new ExternalWMSWindow().start(); + } + }); + + add.setTooltip(MSG.addWMSTooltip()); + + return add; + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :