Ignore:
Timestamp:
2013-12-19T20:56:03+01:00 (10 years ago)
Author:
simon04
Message:

Add checkbox to main menu to toggle hatched background rendering of areas outside of the downloaded areas

This is useful, e.g, for mapping public transport relations when one
downloads a relation modify by id and missing stops by bbox.

File:
1 edited

Legend:

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

    r6426 r6499  
    4747import org.openstreetmap.josm.actions.FullscreenToggleAction;
    4848import org.openstreetmap.josm.actions.GpxExportAction;
     49import org.openstreetmap.josm.actions.HatchAreaOutsideDownloadAction;
    4950import org.openstreetmap.josm.actions.HelpAction;
    5051import org.openstreetmap.josm.actions.HistoryInfoAction;
     
    199200    /** View -> Wireframe View */
    200201    public final WireframeToggleAction wireFrameToggleAction = new WireframeToggleAction();
     202    public final HatchAreaOutsideDownloadAction hatchAreaOutsideDownloadAction = new HatchAreaOutsideDownloadAction();
    201203    public final JosmAction toggleGPXLines = new ToggleGPXLinesAction();
    202204    /** View -> Advanced info */
     
    643645        wireframe.setAccelerator(wireFrameToggleAction.getShortcut().getKeyStroke());
    644646        wireFrameToggleAction.addButtonModel(wireframe.getModel());
     647        final JCheckBoxMenuItem hatchAreaOutsideDownloadMenuItem = hatchAreaOutsideDownloadAction.getCheckbox();
     648        viewMenu.add(hatchAreaOutsideDownloadMenuItem);
     649        ExpertToggleAction.addVisibilitySwitcher(hatchAreaOutsideDownloadMenuItem);
    645650
    646651        viewMenu.add(new MapPaintMenu());
Note: See TracChangeset for help on using the changeset viewer.