Ignore:
Timestamp:
2006-07-01T00:56:23+02:00 (18 years ago)
Author:
imi
Message:
  • fixed unicode compatibility
  • added Layer menu which mirrors the layer list context menu
  • added "convert to data layer" for all gps layers
  • removed raw gpx import and 0.2 osm-file import
  • removed dependency to JDOM
File:
1 edited

Legend:

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

    r102 r103  
    3636import javax.swing.JOptionPane;
    3737import javax.swing.JPanel;
    38 import javax.swing.JPopupMenu;
    3938import javax.swing.JScrollPane;
     39import javax.swing.JSeparator;
    4040import javax.swing.JTextField;
    4141import javax.swing.JToggleButton;
     
    5151import org.openstreetmap.josm.gui.MapView;
    5252import org.openstreetmap.josm.gui.PleaseWaitRunnable;
     53import org.openstreetmap.josm.gui.dialogs.LayerList;
    5354import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
    5455import org.openstreetmap.josm.gui.layer.RawGpsLayer.GpsPoint;
     
    314315        }
    315316
    316         @Override public void addMenuEntries(JPopupMenu menu) {
     317        @Override public Component[] getMenuEntries() {
    317318                JMenuItem sync = new JMenuItem("Sync clock", ImageProvider.get("clock"));
    318319                sync.addActionListener(new ActionListener(){
     
    338339                        }
    339340                });
    340                 menu.add(sync);
    341 
    342                 menu.addSeparator();
    343                 menu.add(new LayerListPopup.InfoAction(this));
     341                return new Component[]{
     342                                new JMenuItem(new LayerList.ShowHideLayerAction(this)),
     343                                new JMenuItem(new LayerList.DeleteLayerAction(this)),
     344                                new JSeparator(),
     345                                sync,
     346                                new JSeparator(),
     347                                new JMenuItem(new LayerListPopup.InfoAction(this))};
    344348        }
    345349
Note: See TracChangeset for help on using the changeset viewer.