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 Fallback to loading theme icons from resources 2014-06-28 06:29:20 -07:00
3x3.png New icons 2014-03-13 16:14:51 -07:00
advanced.png Strip the incorrect ICC profiles from png files 2013-12-29 06:24:42 -08:00
Air_change.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
Air_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
average.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
average.svg Added a new widget 'MinMaxAvgWidget' 2013-06-04 18:51:27 -03:00
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 New icons 2014-03-13 16:14:51 -07:00
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 New icons 2014-03-13 16:14:51 -07:00
edit-circled.svg Dive site rewrite: change add icon to edit 2015-06-26 18:50:22 -07:00
edit-undo.svg Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
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 Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
flag.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
gas.png New icons 2014-03-13 16:14:51 -07:00
gaschange.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
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 Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
graph.png Preference icons from Material Design Icon pack 2017-02-19 15:30:07 -08:00
he.png New icons 2014-03-13 16:14:51 -07:00
heatmap.png Add icon for heat-map 2016-09-27 21:32:50 -07:00
icon-ceiling-alltissues.png Reorganise buttons in profile panel 2014-03-04 07:54:52 -08:00
icon-HR.png Fix libpng warning about unrecognized profile 2014-07-16 09:26:11 -07:00
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 New icons 2014-03-13 16:14:51 -07:00
maximum.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
maximum.svg Added a new widget 'MinMaxAvgWidget' 2013-06-04 18:51:27 -03:00
minimum.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
minimum.svg Added a new widget 'MinMaxAvgWidget' 2013-06-04 18:51:27 -03:00
mod.png New icons 2014-03-13 16:14:51 -07:00
moreinfo.png New icons 2014-03-13 16:14:51 -07:00
n2.png New icons 2014-03-13 16:14:51 -07:00
network.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
Nx_change.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
Nx_changeICD.png Show ICD in gaschange icons 2018-01-21 15:24:46 +01:00
o2.png New icons 2014-03-13 16:14:51 -07:00
OC.png Provide icons for bailout events on the dive profile. 2018-05-14 23:47:00 +03:00
ostc2n.png Add a icon to the OSTC, Mk.2/2N config line 2014-10-27 14:36:13 -07:00
ostc3.png Change Dive Computer Configuration dialog 2014-08-13 10:48:15 -07:00
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 Fix libpng warning about unrecognized profile 2014-07-16 09:26:11 -07:00
petrel.png Tissue saturation plot a la Sherwater Pretel 2014-09-19 21:46:30 -07:00
pictures.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
plus.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
poster.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
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 Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
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 Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
ruler.svg Added a toolbar to the profile 2013-09-27 18:45:04 +02:00
satellite.svg Move the icons to the icons folder 2015-10-30 10:36:48 -07:00
scale.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
scale.svg Added a toolbar to the profile 2013-09-27 18:45:04 +02:00
ss.png New icons 2014-03-13 16:14:51 -07:00
star.svg Added support for a preliminary Preferences Dialog 2013-05-24 15:19:48 -03:00
subsurface-icon.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
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 Add a icon for the Suunto Vyper Family config page 2014-10-20 18:12:16 -07:00
tissue.png Add button to toggle deco info in info box 2019-02-05 14:18:14 +01:00
tissues.png Changed tissue icon on profile graph. 2014-10-30 10:54:36 -07:00
Tmx_change.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
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 Paint the middle of the trashbin white. 2014-08-07 13:14:49 -07:00
units.png Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00
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 Run convert -strip against all .png files 2014-07-16 09:30:43 -07:00