Last change
on this file since 18287 was 18287, checked in by Don-vip, 3 years ago |
fix #20913 - fix handling of GPX files in sessions (patch by Bjoeni)
- revert r17659 (except for unit tests) - see #20233
- don't save GPX track and marker colors in session file anymore, but in the GPX files as extensions (like before)
- don't ask to save unmodified GPX file
- don't override global color settings when individual track doesn't have a color
- ask user to save changes to GPX file when any drawing settings or marker colors have changed (currently only happens for track colors)
- save marker color values to session even when corresponding GPX layer has already been deleted
- save alpha values for GPX marker colors
- added explanation to the "overwrite GPX file" dialog
- inform user if not all files referenced by the session file are saved yet
- allow user to save all files that are not included in the *.jos/*.joz but are only referenced in the session file
- display * next to GPX layers that need to be saved (move isDirty() logic from OsmDataLayer to AbstractModifiableLayer)
|
-
Property svn:eol-style
set to
native
|
File size:
631 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.gpx;
|
---|
3 |
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Interface containing the layer preferences.
|
---|
8 | * Implemented by GpxLayer and MarkerLayer
|
---|
9 | * @since 18287
|
---|
10 | */
|
---|
11 | public interface IGpxLayerPrefs {
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * The layer specific prefs formerly saved in the preferences, e.g. drawing options.
|
---|
15 | * NOT the track specific settings (e.g. color, width)
|
---|
16 | * @return Modifiable map
|
---|
17 | */
|
---|
18 | Map<String, String> getLayerPrefs();
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Sets the modified flag to the value.
|
---|
22 | * @param value modified flag
|
---|
23 | */
|
---|
24 | void setModified(boolean value);
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.