Ignore:
Timestamp:
2005-10-08T17:14:54+02:00 (19 years ago)
Author:
imi
Message:
  • reverted to 14, but kept the global Projection.
  • improved the preference settings for projections.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/MapFrame.java

    r15 r16  
    1414import javax.swing.JToolBar;
    1515
    16 import org.openstreetmap.josm.actions.AutoScaleAction;
    1716import org.openstreetmap.josm.actions.mapmode.AddLineSegmentAction;
    1817import org.openstreetmap.josm.actions.mapmode.AddNodeAction;
     
    2625import org.openstreetmap.josm.actions.mapmode.ZoomAction;
    2726import org.openstreetmap.josm.data.osm.DataSet;
     27import org.openstreetmap.josm.gui.dialogs.PropertiesDialog;
    2828import org.openstreetmap.josm.gui.dialogs.SelectionListDialog;
    2929
     
    4343         * The view control displayed.
    4444         */
    45         public Layer layer;
     45        public MapView mapView;
    4646        /**
    4747         * The toolbar with the action icons
     
    6161                setLayout(new BorderLayout());
    6262
    63                 add(layer = new Layer(dataSet), BorderLayout.CENTER);
     63                add(mapView = new MapView(dataSet), BorderLayout.CENTER);
    6464
    6565                // toolbar
     
    8484                // autoScale
    8585                toolBarActions.addSeparator();
    86                 final JToggleButton autoScaleButton = new IconToggleButton(this, new AutoScaleAction(layer));
     86                final JToggleButton autoScaleButton = new IconToggleButton(this, mapView.new AutoScaleAction());
    8787                toolBarActions.add(autoScaleButton);
    8888                autoScaleButton.setText(null);
    89                 autoScaleButton.setSelected(layer.isAutoScale());
    90                 layer.addPropertyChangeListener(new PropertyChangeListener(){
     89                autoScaleButton.setSelected(mapView.isAutoScale());
     90                mapView.addPropertyChangeListener(new PropertyChangeListener(){
    9191                        public void propertyChange(PropertyChangeEvent evt) {
    9292                                if (evt.getPropertyName().equals("autoScale"))
    93                                         autoScaleButton.setSelected(layer.isAutoScale());
     93                                        autoScaleButton.setSelected(mapView.isAutoScale());
    9494                        }
    9595                });
     96
     97                // properties
     98                toolBarActions.add(new IconToggleButton(this, new PropertiesDialog(this)));
    9699
    97100                // selection dialog
     
    107110
    108111                // status line below the map
    109                 statusLine = new MapStatus(layer);
     112                statusLine = new MapStatus(mapView);
    110113        }
    111114
Note: See TracChangeset for help on using the changeset viewer.