Changeset 7 in josm for src/org/openstreetmap/josm/gui/MapFrame.java
- Timestamp:
- 2005-10-02T20:32:00+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/MapFrame.java
r4 r7 25 25 import javax.swing.event.ChangeListener; 26 26 27 import org.openstreetmap.josm.actions.mapmode.AddLineSegmentAction; 28 import org.openstreetmap.josm.actions.mapmode.AddNodeAction; 29 import org.openstreetmap.josm.actions.mapmode.AddTrackAction; 30 import org.openstreetmap.josm.actions.mapmode.CombineAction; 27 31 import org.openstreetmap.josm.actions.mapmode.DebugAction; 32 import org.openstreetmap.josm.actions.mapmode.DeleteAction; 28 33 import org.openstreetmap.josm.actions.mapmode.MapMode; 34 import org.openstreetmap.josm.actions.mapmode.MoveAction; 29 35 import org.openstreetmap.josm.actions.mapmode.SelectionAction; 30 36 import org.openstreetmap.josm.actions.mapmode.ZoomAction; … … 39 45 * @author imi 40 46 */ 41 public class MapFrame extends J Component{47 public class MapFrame extends JPanel { 42 48 43 49 /** … … 123 129 124 130 add(mapView = new MapView(dataSet), BorderLayout.CENTER); 125 131 132 // toolbar 126 133 toolBarActions.setFloatable(false); 127 134 toolBarActions.add(new IconToggleButton(this, new ZoomAction(this))); 128 135 toolBarActions.add(new IconToggleButton(this, new SelectionAction(this))); 136 toolBarActions.add(new IconToggleButton(this, new MoveAction(this))); 137 toolBarActions.add(new IconToggleButton(this, new AddNodeAction(this))); 138 toolBarActions.add(new IconToggleButton(this, new AddLineSegmentAction(this))); 139 toolBarActions.add(new IconToggleButton(this, new AddTrackAction(this))); 140 toolBarActions.add(new IconToggleButton(this, new CombineAction(this))); 141 toolBarActions.add(new IconToggleButton(this, new DeleteAction(this))); 129 142 toolBarActions.add(new IconToggleButton(this, new DebugAction(this))); 130 143 … … 159 172 public void selectMapMode(MapMode mapMode) { 160 173 if (this.mapMode != null) 161 this.mapMode.unregisterListener( mapView);174 this.mapMode.unregisterListener(); 162 175 this.mapMode = mapMode; 163 mapMode.registerListener( mapView);176 mapMode.registerListener(); 164 177 } 165 178
Note:
See TracChangeset
for help on using the changeset viewer.