Changes in src/org/openstreetmap/josm/gui/MapFrame.java [17:30] in josm
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/MapFrame.java
r17 r30 4 4 import java.awt.Component; 5 5 import java.awt.Container; 6 import java.awt.event.WindowAdapter;7 import java.awt.event.WindowEvent;8 6 import java.beans.PropertyChangeEvent; 9 7 import java.beans.PropertyChangeListener; 10 8 11 9 import javax.swing.AbstractButton; 10 import javax.swing.BoxLayout; 12 11 import javax.swing.ButtonGroup; 13 12 import javax.swing.JPanel; … … 19 18 import org.openstreetmap.josm.actions.mapmode.AddNodeAction; 20 19 import org.openstreetmap.josm.actions.mapmode.AddTrackAction; 21 import org.openstreetmap.josm.actions.mapmode.CombineAction;22 20 import org.openstreetmap.josm.actions.mapmode.DeleteAction; 23 21 import org.openstreetmap.josm.actions.mapmode.MapMode; … … 54 52 */ 55 53 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; 56 66 57 67 /** … … 76 86 toolBarActions.add(new IconToggleButton(this, new AddLineSegmentAction(this))); 77 87 toolBarActions.add(new IconToggleButton(this, new AddTrackAction(this))); 78 toolBarActions.add(new IconToggleButton(this, new CombineAction(this)));79 88 toolBarActions.add(new IconToggleButton(this, new DeleteAction(this))); 80 89 … … 99 108 }); 100 109 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); 103 120 104 // properties105 toolBarActions.add(new IconToggleButton(this, new PropertiesDialog(this)));106 107 // selection dialog108 SelectionListDialog selectionList = new SelectionListDialog(this);109 final IconToggleButton buttonSelection = new IconToggleButton(this, selectionList);110 selectionList.addWindowListener(new WindowAdapter(){111 @Override112 public void windowClosing(WindowEvent e) {113 buttonSelection.setSelected(false);114 }115 });116 toolBarActions.add(buttonSelection);117 121 118 122 // status line below the map
Note:
See TracChangeset
for help on using the changeset viewer.