mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
1ecd5065a0
This allows Subsurface to obtain the coordinates of a dive directly from a GPS track. It parses a GPX file (GPX V1.0 or V1.1) from a GPS to locate the trackpoint immediatedly after the start of a dive. There is an additional "Use GPS file" button in the Edit Dive Site panel that is selected from the Notes tab. Image: This allows one to select a GPX file, bringing up the Import GPS dialog. There is extensive provision for cross-checking that the dive track synchronises with the dive start and end. If the Save button in the dialog is pressed the dive coordinates are copied into the Dive Coordinates text box in the Edit Dive Site panel. The map moves to indicate the location of the dive site. The bulk of the work is done in importgps.cpp. The code is pretty intergrated: I tried to break it up in smaller commits but that was not feasible. The code includes responses to the comments by @neolit123 and @bstoeger. The C-based file input was replaced with Qt-based code using QChar, QString and QFile. [Dirk Hohndel: fixed several small issues in the .ui file, removed various headers includes that weren't needed and fixed printing of minutes as zero padded] Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org> |
||
---|---|---|
.. | ||
subsurface | ||
3x3.png | ||
advanced.png | ||
Air_change.png | ||
Air_changeICD.png | ||
average.png | ||
average.svg | ||
bluewarning.png | ||
camera.svg | ||
CCR.png | ||
clock.png | ||
defaults.png | ||
duringPhoto.png | ||
ead.png | ||
edit-circled.svg | ||
edit-undo.svg | ||
Emblem-earth.svg | ||
expand.png | ||
flag.png | ||
gas.png | ||
gaschange.png | ||
gaschangeICD.png | ||
geocode.svg | ||
georeference.png | ||
go-top.svg | ||
graph.png | ||
he.png | ||
heatmap.png | ||
icon-ceiling-alltissues.png | ||
icon-HR.png | ||
inAndOutPhoto.png | ||
info-icon.png | ||
info-icon.svg | ||
iTunesArtwork.png | ||
iTunesArtwork@2x.png | ||
language.png | ||
limit.png | ||
maximum.png | ||
maximum.svg | ||
minimum.png | ||
minimum.svg | ||
mod.png | ||
moreinfo.png | ||
n2.png | ||
network.png | ||
Nx_change.png | ||
Nx_changeICD.png | ||
o2.png | ||
OC.png | ||
ostc2n.png | ||
ostc3.png | ||
ostc4.png | ||
outsidePhoto.png | ||
Oxy_change.png | ||
Oxy_changeICD.png | ||
pc.png | ||
petrel.png | ||
pictures.png | ||
plus.png | ||
poster.png | ||
pref_cloud.png | ||
pref_dc.png | ||
pref_display.png | ||
pref_equipment.png | ||
pref_log.png | ||
pref_media.png | ||
pref_reset.png | ||
pref_tech.png | ||
process-stop.svg | ||
resultgreen.png | ||
resultred.png | ||
resultyellow.png | ||
ruler.png | ||
ruler.svg | ||
satellite.svg | ||
scale.png | ||
scale.svg | ||
ss.png | ||
star.svg | ||
subsurface-icon.png | ||
subsurface-icon.svg | ||
subsurface-mobile-icon.png | ||
subsurface-mobile-icon.svg | ||
subsurface-mobile-splash.9.png | ||
suunto_vyper.png | ||
tissue.png | ||
tissues.png | ||
Tmx_change.png | ||
Tmx_changeICD.png | ||
trash-forbidden.png | ||
trash.png | ||
units.png | ||
unknown.svg | ||
video.svg | ||
video_overlay.svg | ||
violation-icon.png | ||
violation-icon.svg | ||
warning-icon.png | ||
warning-icon.svg | ||
warning.png |