File: SettingsForExport.java

package info (click to toggle)
gpsprune 26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: java: 52,154; sh: 25; makefile: 21; python: 15
file content (74 lines) | stat: -rw-r--r-- 2,602 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package tim.prune.save;

/**
 * Settings for controlling what gets exported,
 * for example by the Gpx export functions
 */
public class SettingsForExport
{
	private boolean _exportTrackPoints = true;
	private boolean _exportWaypoints   = true;
	private boolean _exportJustSelection = false;
	private boolean _exportTimestamps  = true;
	private boolean _exportMissingAltitudes = false;
	private boolean _exportPhotoPoints = true;
	private boolean _exportAudioPoints = true;
	private boolean _copyDescriptionsToComments = false;

	/** Set to export track points or not */
	public void setExportTrackPoints(boolean inExport) {
		_exportTrackPoints = inExport;
	}

	/** Set to export waypoints or not */
	public void setExportWaypoints(boolean inExport) {
		_exportWaypoints = inExport;
	}

	/** Set to export just the selection or everything */
	public void setExportJustSelection(boolean inExport) {
		_exportJustSelection = inExport;
	}

	/** Set to export timestamps or not */
	public void setExportTimestamps(boolean inExport) {
		_exportTimestamps = inExport;
	}

	/** Set to export missing altitudes as zero or not */
	public void setExportMissingAltitudesAsZero(boolean inExport) {
		_exportMissingAltitudes = inExport;
	}

	/** Set to export photo points or not */
	public void setExportPhotoPoints(boolean inExport) {
		_exportPhotoPoints = inExport;
	}

	/** Set to export audio points or not */
	public void setExportAudiopoints(boolean inExport) {
		_exportAudioPoints = inExport;
	}

	/** Set to copy descriptions to comments */
	public void setCopyDescriptionsToComments(boolean inCopy) {
		_copyDescriptionsToComments = inCopy;
	}

	/** @return true to export track points */
	public boolean getExportTrackPoints() {return _exportTrackPoints;}
	/** @return true to export waypoints */
	public boolean getExportWaypoints() {return _exportWaypoints;}
	/** @return true to export just the selection */
	public boolean getExportJustSelection() {return _exportJustSelection;}
	/** @return true to export timestamps */
	public boolean getExportTimestamps() {return _exportTimestamps;}
	/** @return true to export zeroes for missing altitudes */
	public boolean getExportMissingAltitudesAsZero() {return _exportMissingAltitudes;}
	/** @return true to export photo points */
	public boolean getExportPhotoPoints() {return _exportPhotoPoints;}
	/** @return true to export audio points */
	public boolean getExportAudioPoints() {return _exportAudioPoints;}
	/** @return true to copy descriptions to comments */
	public boolean getCopyDescriptionsToComments() {return _copyDescriptionsToComments;}
}