comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 4436:9fca4d60fb7c

Reintroduce wrongly outbacked changes (rev 4418-4425).
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 07 Nov 2012 13:49:32 +0100
parents 5b8919ef601d
children dc7e41efd5ba
comparison
equal deleted inserted replaced
4435:471baa410470 4436:9fca4d60fb7c
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;
13 2
14 import com.google.gwt.core.client.GWT; 3 import com.google.gwt.core.client.GWT;
15 import com.smartgwt.client.types.Alignment; 4 import com.smartgwt.client.types.Alignment;
16 import com.smartgwt.client.types.SelectionType; 5 import com.smartgwt.client.types.SelectionType;
17 import com.smartgwt.client.util.SC; 6 import com.smartgwt.client.util.SC;
28 import de.intevation.flys.client.client.ui.Toolbar; 17 import de.intevation.flys.client.client.ui.Toolbar;
29 import de.intevation.flys.client.client.utils.EnableDisableCmd; 18 import de.intevation.flys.client.client.utils.EnableDisableCmd;
30 import de.intevation.flys.client.shared.model.Collection; 19 import de.intevation.flys.client.shared.model.Collection;
31 import de.intevation.flys.client.shared.model.ThemeList; 20 import de.intevation.flys.client.shared.model.ThemeList;
32 21
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.
35 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> 36 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
36 */ 37 */
37 public class MapToolbar 38 public class MapToolbar
38 extends Toolbar 39 extends Toolbar
39 implements MapZoomListener 40 implements MapZoomListener
58 protected ImgButton selectButton; 59 protected ImgButton selectButton;
59 protected ImgButton infoButton; 60 protected ImgButton infoButton;
60 protected ImgButton removeButton; 61 protected ImgButton removeButton;
61 protected ImgButton elevationButton; 62 protected ImgButton elevationButton;
62 protected ImgLink printMapLink; 63 protected ImgLink printMapLink;
64 protected ImgButton printMapSettings;
63 65
64 protected Label epsgLabel; 66 protected Label epsgLabel;
65 67
66 protected DrawControl drawControl; 68 protected DrawControl drawControl;
67 protected MeasureControl measureControl; 69 protected MeasureControl measureControl;
121 addWMSButton = createWMSControl(); 123 addWMSButton = createWMSControl();
122 addMember(addWMSButton); 124 addMember(addWMSButton);
123 125
124 printMapLink = createPrintMapLink(); 126 printMapLink = createPrintMapLink();
125 addMember(printMapLink); 127 addMember(printMapLink);
128
129 printMapSettings = createMapPrintSettingsControl();
130 addMember(printMapSettings);
126 } 131 }
127 132
128 addMember(zoomToMaxButton); 133 addMember(zoomToMaxButton);
129 addMember(zoomBoxButton); 134 addMember(zoomBoxButton);
130 addMember(zoomOutButton); 135 addMember(zoomOutButton);
639 }); 644 });
640 return btn; 645 return btn;
641 } 646 }
642 647
643 648
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
644 protected ImgButton createWMSControl() { 660 protected ImgButton createWMSControl() {
645 final String srs = floodMap.getRiverProjection(); 661 final String srs = floodMap.getRiverProjection();
646 662
647 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() { 663 ImgButton add = createButton(MSG.addWMS(), new ClickHandler() {
648 @Override 664 @Override

http://dive4elements.wald.intevation.org