Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 4433:5b8919ef601d
Backed out changeset e8a4d2fd25cc
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 07 Nov 2012 12:23:41 +0100 |
parents | 6e01499bfbdf |
children | 9fca4d60fb7c |
comparison
equal
deleted
inserted
replaced
4432:e8a4d2fd25cc | 4433:5b8919ef601d |
---|---|
1 package de.intevation.flys.client.client.ui.map; | 1 package de.intevation.flys.client.client.ui.map; |
2 | |
3 import org.gwtopenmaps.openlayers.client.Bounds; | |
4 import org.gwtopenmaps.openlayers.client.Map; | |
5 import org.gwtopenmaps.openlayers.client.control.DragPan; | |
6 import org.gwtopenmaps.openlayers.client.control.SelectFeature; | |
7 import org.gwtopenmaps.openlayers.client.control.SelectFeatureOptions; | |
8 import org.gwtopenmaps.openlayers.client.control.ZoomBox; | |
9 import org.gwtopenmaps.openlayers.client.event.MapZoomListener; | |
10 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; | |
11 import org.gwtopenmaps.openlayers.client.layer.Vector; | |
12 import org.gwtopenmaps.openlayers.client.util.Attributes; | |
2 | 13 |
3 import com.google.gwt.core.client.GWT; | 14 import com.google.gwt.core.client.GWT; |
4 import com.smartgwt.client.types.Alignment; | 15 import com.smartgwt.client.types.Alignment; |
5 import com.smartgwt.client.types.SelectionType; | 16 import com.smartgwt.client.types.SelectionType; |
6 import com.smartgwt.client.util.SC; | 17 import com.smartgwt.client.util.SC; |
17 import de.intevation.flys.client.client.ui.Toolbar; | 28 import de.intevation.flys.client.client.ui.Toolbar; |
18 import de.intevation.flys.client.client.utils.EnableDisableCmd; | 29 import de.intevation.flys.client.client.utils.EnableDisableCmd; |
19 import de.intevation.flys.client.shared.model.Collection; | 30 import de.intevation.flys.client.shared.model.Collection; |
20 import de.intevation.flys.client.shared.model.ThemeList; | 31 import de.intevation.flys.client.shared.model.ThemeList; |
21 | 32 |
22 import org.gwtopenmaps.openlayers.client.Bounds; | |
23 import org.gwtopenmaps.openlayers.client.Map; | |
24 import org.gwtopenmaps.openlayers.client.control.DragPan; | |
25 import org.gwtopenmaps.openlayers.client.control.SelectFeature; | |
26 import org.gwtopenmaps.openlayers.client.control.SelectFeatureOptions; | |
27 import org.gwtopenmaps.openlayers.client.control.ZoomBox; | |
28 import org.gwtopenmaps.openlayers.client.event.MapZoomListener; | |
29 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; | |
30 import org.gwtopenmaps.openlayers.client.layer.Vector; | |
31 import org.gwtopenmaps.openlayers.client.util.Attributes; | |
32 | |
33 | 33 |
34 /** | 34 /** |
35 * Toolbar for the Map views. | |
36 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 35 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
37 */ | 36 */ |
38 public class MapToolbar | 37 public class MapToolbar |
39 extends Toolbar | 38 extends Toolbar |
40 implements MapZoomListener | 39 implements MapZoomListener |
59 protected ImgButton selectButton; | 58 protected ImgButton selectButton; |
60 protected ImgButton infoButton; | 59 protected ImgButton infoButton; |
61 protected ImgButton removeButton; | 60 protected ImgButton removeButton; |
62 protected ImgButton elevationButton; | 61 protected ImgButton elevationButton; |
63 protected ImgLink printMapLink; | 62 protected ImgLink printMapLink; |
64 protected ImgButton printMapSettings; | |
65 | 63 |
66 protected Label epsgLabel; | 64 protected Label epsgLabel; |
67 | 65 |
68 protected DrawControl drawControl; | 66 protected DrawControl drawControl; |
69 protected MeasureControl measureControl; | 67 protected MeasureControl measureControl; |
123 addWMSButton = createWMSControl(); | 121 addWMSButton = createWMSControl(); |
124 addMember(addWMSButton); | 122 addMember(addWMSButton); |
125 | 123 |
126 printMapLink = createPrintMapLink(); | 124 printMapLink = createPrintMapLink(); |
127 addMember(printMapLink); | 125 addMember(printMapLink); |
128 | |
129 printMapSettings = createMapPrintSettingsControl(); | |
130 addMember(printMapSettings); | |
131 } | 126 } |
132 | 127 |
133 addMember(zoomToMaxButton); | 128 addMember(zoomToMaxButton); |
134 addMember(zoomBoxButton); | 129 addMember(zoomBoxButton); |
135 addMember(zoomOutButton); | 130 addMember(zoomOutButton); |
644 }); | 639 }); |
645 return btn; | 640 return btn; |
646 } | 641 } |
647 | 642 |
648 | 643 |
649 protected ImgButton createMapPrintSettingsControl() { | |
650 ImgButton btn = createButton(MSG.printMapSettings(), new ClickHandler() { | |
651 @Override | |
652 public void onClick(ClickEvent event) { | |
653 | |
654 } | |
655 }); | |
656 return btn; | |
657 } | |
658 | |
659 | |
660 protected ImgButton createWMSControl() { | 644 protected ImgButton createWMSControl() { |
661 final String srs = floodMap.getRiverProjection(); | 645 final String srs = floodMap.getRiverProjection(); |
662 | 646 |
663 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() { | 647 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() { |
664 @Override | 648 @Override |