Changeset 8212 in josm for trunk/src/org


Ignore:
Timestamp:
2015-04-18T02:23:03+02:00 (9 years ago)
Author:
simon04
Message:

see #11147 see #11321 - Add "Download notes in current view" to file menu and notes toggle dialog

Location:
trunk/src/org/openstreetmap/josm
Files:
1 added
2 edited

Legend:

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

    r8081 r8212  
    5252import org.openstreetmap.josm.actions.DistributeAction;
    5353import org.openstreetmap.josm.actions.DownloadAction;
     54import org.openstreetmap.josm.actions.DownloadNotesInViewAction;
    5455import org.openstreetmap.josm.actions.DownloadPrimitiveAction;
    5556import org.openstreetmap.josm.actions.DownloadReferrersAction;
     
    167168    /** File / Download object... **/
    168169    public final DownloadPrimitiveAction downloadPrimitive = new DownloadPrimitiveAction();
     170    /** File / Download notes in current view **/
     171    public final DownloadNotesInViewAction downloadNotesInView = DownloadNotesInViewAction.newActionWithNoteIcon();
    169172    /** File / Search Notes... **/
    170173    public final SearchNotesDownloadAction searchNotes = new SearchNotesDownloadAction();
     
    638641        add(fileMenu, downloadPrimitive);
    639642        add(fileMenu, searchNotes);
     643        add(fileMenu, downloadNotesInView);
    640644        add(fileMenu, downloadReferrers);
    641645        add(fileMenu, update);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java

    r8115 r8212  
    3131
    3232import org.openstreetmap.josm.Main;
     33import org.openstreetmap.josm.actions.DownloadNotesInViewAction;
    3334import org.openstreetmap.josm.actions.UploadNotesAction;
    3435import org.openstreetmap.josm.actions.mapmode.AddNoteAction;
     
    7879    private final AddCommentAction addCommentAction;
    7980    private final CloseAction closeAction;
     81    private final DownloadNotesInViewAction downloadNotesInViewAction;
    8082    private final NewAction newAction;
    8183    private final ReopenAction reopenAction;
     
    9092        addCommentAction = new AddCommentAction();
    9193        closeAction = new CloseAction();
     94        downloadNotesInViewAction = DownloadNotesInViewAction.newActionWithDownloadIcon();
    9295        newAction = new NewAction();
    9396        reopenAction = new ReopenAction();
     
    132135
    133136        createLayout(pane, false, Arrays.asList(new SideButton[]{
     137                new SideButton(downloadNotesInViewAction, false),
    134138                new SideButton(newAction, false),
    135139                new SideButton(addCommentAction, false),
Note: See TracChangeset for help on using the changeset viewer.