subsurface/icons
Willem Ferguson 1ecd5065a0 Desktop: Import dive coordinates directly from GPS
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>
2020-01-24 09:51:02 -08:00
..
subsurface
3x3.png
advanced.png
Air_change.png
Air_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
average.png
average.svg
bluewarning.png desktop UI: create the UI components for editing the salinity. 2020-01-06 07:00:34 +09:00
camera.svg Dive pictures: Import camera icon 2018-05-13 13:52:35 -07:00
CCR.png Provide icons for bailout events on the dive profile. 2018-05-14 23:47:00 +03:00
clock.png
defaults.png Preference icons from Material Design Icon pack 2017-02-19 15:30:07 -08:00
duringPhoto.png Provide phots summary on dive list (Part 2) 2016-11-24 09:58:46 +09:00
ead.png
edit-circled.svg Dive site rewrite: change add icon to edit 2015-06-26 18:50:22 -07:00
edit-undo.svg
Emblem-earth.svg Show icon in dive list to mark dives that have GPS data 2015-06-29 10:44:17 -07:00
expand.png
flag.png
gas.png
gaschange.png
gaschangeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
geocode.svg Notes pane: add geo code button 2015-07-02 06:50:50 -07:00
georeference.png Preference icons from Material Design Icon pack 2017-02-19 15:30:07 -08:00
go-top.svg
graph.png Preference icons from Material Design Icon pack 2017-02-19 15:30:07 -08:00
he.png
heatmap.png Add icon for heat-map 2016-09-27 21:32:50 -07:00
icon-ceiling-alltissues.png
icon-HR.png
inAndOutPhoto.png Provide phots summary on dive list (Part 2) 2016-11-24 09:58:46 +09:00
info-icon.png Show different icons based on event severity 2016-07-24 09:53:24 +09:00
info-icon.svg Show different icons based on event severity 2016-07-24 09:53:24 +09:00
iTunesArtwork.png iOS build: update icons 2017-11-29 14:56:39 -08:00
iTunesArtwork@2x.png iOS build: update icons 2017-11-29 14:56:39 -08:00
language.png Add/update preference screen icons 2017-02-19 15:30:07 -08:00
limit.png
maximum.png
maximum.svg
minimum.png
minimum.svg
mod.png
moreinfo.png
n2.png
network.png
Nx_change.png
Nx_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
o2.png
OC.png Provide icons for bailout events on the dive profile. 2018-05-14 23:47:00 +03:00
ostc2n.png
ostc3.png
ostc4.png Build a gui for configure OSTC 4 2017-05-04 10:50:15 -07:00
outsidePhoto.png Provide phots summary on dive list (Part 2) 2016-11-24 09:58:46 +09:00
Oxy_change.png Add a icon for gaschange to Oxy with all green tank shoulder color 2017-10-18 06:47:44 -04:00
Oxy_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
pc.png
petrel.png
pictures.png
plus.png
poster.png
pref_cloud.png Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
pref_dc.png Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
pref_display.png Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
pref_equipment.png Preferences UI: create new equipment tab 2019-12-25 02:57:42 +09:00
pref_log.png Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
pref_media.png Preferences UI: add dive log tab 2019-12-25 02:57:42 +09:00
pref_reset.png Preferences UI: add reset tab 2019-12-25 02:57:42 +09:00
pref_tech.png Preferences UI: split network preferences 2019-12-25 02:57:42 +09:00
process-stop.svg
resultgreen.png Desktop: Import dive coordinates directly from GPS 2020-01-24 09:51:02 -08:00
resultred.png Desktop: Import dive coordinates directly from GPS 2020-01-24 09:51:02 -08:00
resultyellow.png Desktop: Import dive coordinates directly from GPS 2020-01-24 09:51:02 -08:00
ruler.png
ruler.svg
satellite.svg Move the icons to the icons folder 2015-10-30 10:36:48 -07:00
scale.png
scale.svg
ss.png
star.svg
subsurface-icon.png
subsurface-icon.svg Move the icons to the icons folder 2015-10-30 10:36:48 -07:00
subsurface-mobile-icon.png Use mobile icon for subsurface-mobile 2015-07-09 20:47:16 -07:00
subsurface-mobile-icon.svg Move the icons to the icons folder 2015-10-30 10:36:48 -07:00
subsurface-mobile-splash.9.png Add splash screen for android-mobile 2015-12-28 14:03:48 -08:00
suunto_vyper.png
tissue.png Add button to toggle deco info in info box 2019-02-05 14:18:14 +01:00
tissues.png
Tmx_change.png
Tmx_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
trash-forbidden.png Planner: show new icon to indicate that last point can't be deleted 2015-09-17 15:27:49 -07:00
trash.png
units.png
unknown.svg Dive pictures: Import unknown-type icon 2018-07-09 09:12:58 -07:00
video.svg Dive pictures: Import video icon 2018-07-08 07:41:15 -07:00
video_overlay.svg Dive media: Extract thumbnails from videos with ffmpeg 2018-07-28 15:31:25 -07:00
violation-icon.png Show different icons based on event severity 2016-07-24 09:53:24 +09:00
violation-icon.svg Show different icons based on event severity 2016-07-24 09:53:24 +09:00
warning-icon.png Show different icons based on event severity 2016-07-24 09:53:24 +09:00
warning-icon.svg Show different icons based on event severity 2016-07-24 09:53:24 +09:00
warning.png