Ignore:
File:
1 edited

Legend:

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

    r17 r30  
    44import java.awt.Component;
    55import java.awt.Container;
    6 import java.awt.event.WindowAdapter;
    7 import java.awt.event.WindowEvent;
    86import java.beans.PropertyChangeEvent;
    97import java.beans.PropertyChangeListener;
    108
    119import javax.swing.AbstractButton;
     10import javax.swing.BoxLayout;
    1211import javax.swing.ButtonGroup;
    1312import javax.swing.JPanel;
     
    1918import org.openstreetmap.josm.actions.mapmode.AddNodeAction;
    2019import org.openstreetmap.josm.actions.mapmode.AddTrackAction;
    21 import org.openstreetmap.josm.actions.mapmode.CombineAction;
    2220import org.openstreetmap.josm.actions.mapmode.DeleteAction;
    2321import org.openstreetmap.josm.actions.mapmode.MapMode;
     
    5452         */
    5553        public MapStatus statusLine;
     54        /**
     55         * The action to open the layer list
     56         */
     57        private LayerList layerList;
     58        /**
     59         * Action to open the properties panel for the selected objects
     60         */
     61        private PropertiesDialog propertiesDialog;
     62        /**
     63         * Action to open a list of all selected objects
     64         */
     65        private SelectionListDialog selectionListDialog;
    5666
    5767        /**
     
    7686                toolBarActions.add(new IconToggleButton(this, new AddLineSegmentAction(this)));
    7787                toolBarActions.add(new IconToggleButton(this, new AddTrackAction(this)));
    78                 toolBarActions.add(new IconToggleButton(this, new CombineAction(this)));
    7988                toolBarActions.add(new IconToggleButton(this, new DeleteAction(this)));
    8089
     
    99108                });
    100109
    101                 // layer list
    102                 toolBarActions.add(new IconToggleButton(this, new LayerList(this)));
     110                JPanel toggleDialogs = new JPanel();
     111                add(toggleDialogs, BorderLayout.EAST);
     112
     113                toggleDialogs.setLayout(new BoxLayout(toggleDialogs, BoxLayout.Y_AXIS));
     114                toolBarActions.add(new IconToggleButton(this, layerList = new LayerList(this)));
     115                toggleDialogs.add(layerList);
     116                toolBarActions.add(new IconToggleButton(this, propertiesDialog = new PropertiesDialog(this)));
     117                toggleDialogs.add(propertiesDialog);
     118                toolBarActions.add(new IconToggleButton(this, selectionListDialog = new SelectionListDialog(this)));
     119                toggleDialogs.add(selectionListDialog);
    103120               
    104                 // properties
    105                 toolBarActions.add(new IconToggleButton(this, new PropertiesDialog(this)));
    106 
    107                 // selection dialog
    108                 SelectionListDialog selectionList = new SelectionListDialog(this);
    109                 final IconToggleButton buttonSelection = new IconToggleButton(this, selectionList);
    110                 selectionList.addWindowListener(new WindowAdapter(){
    111                         @Override
    112                         public void windowClosing(WindowEvent e) {
    113                                 buttonSelection.setSelected(false);
    114                         }
    115                 });
    116                 toolBarActions.add(buttonSelection);
    117121
    118122                // status line below the map
Note: See TracChangeset for help on using the changeset viewer.