Ignore:
Timestamp:
2013-01-28T14:06:52+01:00 (11 years ago)
Author:
bastiK
Message:

add session support for marker layers (see #4029)

The data is exported to a separate GPX file that contains one waypoint for each marker.
This is not very elegant, because most of the time, all the info is already contained in the original GPX File.
However, when dealing with audio markers, they can be synchronized, or additional markers are added
at certain playback positions. This info must be retained.
Another complication is, that two or more MarkerLayers can be merged to one.

All these problems are avoided by explicitly exporting the markers to a separate file (as done in this commit).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SessionSaveAsAction.java

    r5505 r5684  
    1414import java.util.Arrays;
    1515import java.util.Collection;
    16 import java.util.Collections;
    1716import java.util.HashMap;
    1817import java.util.HashSet;
     
    6463        SessionSaveAsDialog dlg = new SessionSaveAsDialog();
    6564        dlg.showDialog();
    66         if (dlg.getValue() != 2) return;
     65        if (dlg.getValue() != 1) return;
    6766
    6867        zipRequired = false;
     
    138137
    139138        public SessionSaveAsDialog() {
    140             super(Main.parent, tr("Save Session"), new String[] {tr("Cancel"), tr("Save As")});
     139            super(Main.parent, tr("Save Session"), new String[] {tr("Save As"), tr("Cancel")});
    141140            initialize();
    142             setButtonIcons(new String[] {"cancel", "save_as"});
    143             setDefaultButton(2);
     141            setButtonIcons(new String[] {"save_as", "cancel"});
     142            setDefaultButton(1);
    144143            setRememberWindowGeometry(getClass().getName() + ".geometry",
    145144                    WindowGeometry.centerInWindow(Main.parent, new Dimension(350, 450)));
Note: See TracChangeset for help on using the changeset viewer.