Changeset 6097 in josm


Ignore:
Timestamp:
2013-08-01T18:34:17+02:00 (11 years ago)
Author:
akks
Message:

see #6355: move Rectified Image and plugin imagery layers to Imagery/More... submenu
(last part of menu rework)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r5807 r6097  
    8282    private Map_Rectifier_WMSmenuAction rectaction = new Map_Rectifier_WMSmenuAction();
    8383
    84     public ImageryMenu() {
     84    public ImageryMenu(JMenu subMenu) {
    8585        super(tr("Imagery"));
    8686        setupMenuScroller();
     
    101101            }
    102102        });
     103        MainMenu.add(subMenu, rectaction);
    103104    }
    104105   
     
    163164
    164165        addDynamicSeparator();
    165         addDynamic(rectaction);
     166        addDynamic(Main.main.menu.imagerySubMenu);
    166167    }
    167168
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r6088 r6097  
    232232    public final JMenu selectionMenu = addMenu(marktr("Selection"), KeyEvent.VK_N, 6, ht("/Menu/Selection"));
    233233    public final JMenu presetsMenu = addMenu(marktr("Presets"), KeyEvent.VK_P, 7, ht("/Menu/Presets"));
     234    /**
     235     * submenu in Imagery menu that contains plugin-managed additional imagery layers
     236     * @since 6097
     237     */
     238    public final JMenu imagerySubMenu = new JMenu(tr("More..."));
    234239    public final ImageryMenu imageryMenu =
    235         (ImageryMenu)addMenu(new ImageryMenu(), marktr("Imagery"), KeyEvent.VK_I, 8, ht("/Menu/Imagery"));
     240        (ImageryMenu)addMenu(new ImageryMenu(imagerySubMenu), marktr("Imagery"), KeyEvent.VK_I, 8, ht("/Menu/Imagery"));
    236241     /**
    237242     * gpsMenu contains all plugin actions that are related
Note: See TracChangeset for help on using the changeset viewer.