aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-09-22Actually create a UUID when creating a dive site during downloadGravatar Linus Torvalds
The existing code creates a deterministic ID (not exactly "unique") in order to help us avoid merge conflicts in git-storage mode. But as a side effect, if we re-download the same dive twice from a dive computer that supports GPS (right now only the Garmin Descent Mk1) we are guaranteed to create the same dive site uuid when we do this. So when we download a dive - whether we will actually *use* that dive later or not - we will be filling in the dive site information with the data we got from the dive computer. ... and in the process we will be overwriting any data that was filled in manually. The name of the dive site, but also possibly even the GPS of the dive site (maybe the user decided to edit that using the map, because while the automatically downloaded GPS data was "correct", maybe the user wanted to change it to be the actual under-water location using the satellite data, rather than the place where you started the dive or where you surfaced). In order to avoid this collision, this patch just makes the libdivecomputer download not use the dive time, but "time of download" for the dive site time, and thus effectively generate a new uuid for every download. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-22[user-manual_es] Update to english 2a47e60c8Gravatar Salvador Cuñat
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2018-09-21Update to latest libdivecomputerGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-20build-system: fix appdata creation on OBSGravatar Dirk Hohndel
Build systems that run from tar balls and not git fail to create valid .appdata.xml This solves the problem for tar balls that we create for OBS via our own make-package script. It doesn't solve the problem for Arch or Gentoo who I believe take our tar files created via git archive. One way to fix this would be to change the process by which I create those tar files, I guess. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Dive media: on import read metadata only onceGravatar Berthold Stoeger
On import of dive media, the timestamp is read from the metadata to check if the image belongs to the selected dives. The pictures are then listed in a dialog. Currently, the metadata is read twice if images are outside of a dive: once in picture_check_valid() and if it turns out that the picture is not valid again in picture_get_time() to display the proper timestamp. Even though metadata-extraction is reasonably fast, this is a bit of an embarrassment. Instead, read the timestamps only once in the constructor of the dialog and from then on only used these timestamps. Keep the timestamps in a QVector. Rename the picture_check_valid() function to picture_check_valid_time() and pass a timestamp instead of a filename. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-09-19Cleanup: make surface sample in merge_one_sample() non-staticGravatar Berthold Stoeger
The merge_one_sample() function adds a sample to the destination dive if dives are merged. For long periods between samples at surface depths, it adds a surface interval. To decrease the number of global objects, make the sample structure non-static. Of course, initialization of an on-stack structure is slower. Therefore move it into the corresponding if. Thus, the structure will be initialized only once per surface-interval. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-09-19Update ChangelogGravatar Jocke
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Mobile: always update the preferences when set_unit_system is calledGravatar Jocke
Unit_system is read from git storage but units are set from locale when the app starts. To prevent a miss-match between unit and unit_system we have to always update the preferences variable when set_unit_system is called so that the user doesn't end up with imperial units when the preferences say metric. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Mobile: git prefs overrules localeGravatar Jocke
The unit types are set from system locale when the app starts. We need to explicitly set the units to match the unit system that is saved in the git repo. Or we end up with situations where the preferences and git say "metric" but the units are "imperial". Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Mobile: set units system in "No cloud mode"Gravatar Jocke
When starting the app in "No cloud mode" we need to make sure that the units and unit_system match. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Mobile: add units selection to settings pageGravatar Jocke
Add the option for the user to set the desired unit system for Subsurface-mobile regardless of system locale Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Mobile: rename UI string for webserviceGravatar Jan Mulder
Trivial rename of a UI string. The string "Subsurface GPS data webservice" reminds me too much of the legacy webservice. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-19User manual: update bundled HTMLGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-19Update mobile versionGravatar Dirk Hohndel
Apple app store rules prevent even testing a binary with the same version as one that has been submitted for release. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-18Update to latest libdivecomputerGravatar Dirk Hohndel
This fixes the incorrect parsing of surface pressure on the Teric Fixes #1701 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-18Documentation: major update of NL user manualGravatar Jan Mulder
As the base EN user manual went forward, the NL translation was hardly updated fror almost a year. Do I took all the changes over this period and corrected the NL translation accordingly. So, its synced and up-to-date to version 4.8.2 of the software (assuming the EN version is). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-18Documentation: tiny fix in US user manualGravatar Jan Mulder
Commit a4f04589c7d did forget to delete 1 line related the Companion app. Deleted here. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-17One more translationv4.8.2Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-17Update list of supported dive computersGravatar Dirk Hohndel
And adjust ReleaseNotes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-17Update READMEGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-17Move CHANGELOG entries to ReleaseNotesGravatar Dirk Hohndel
Sort and edit them in the process. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-17Latest translations from TransifexGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-17User Manual: scale recently changed imageGravatar Jan Mulder
The MobileGpsMenu.jpg image was way to big in the generated html and pdf versions of the manual. Corrected here. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-16user manual: one more update to the latest HTMLGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-16user manual: additional updates and new imagesGravatar willemferguson
These changes complete (I hope) the updates to the user manual to reflect the use of media including video. Nine images are replaced. Some more updates in the user-manual.txt to reflect on video files and not only photographs. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-16Manual entry of export anonymizationGravatar Robert C. Helling
This should be accompanied by an updated screen shot. Signed-off-by: Robert C. Helling <helling@atdotde.de>
2018-09-16Always return status from ftdi_open when calledGravatar Anton Lundin
Using dc_serial_open as a fallback to ftdi_open is just wrong, and will never work, just mask the real error and introduce read herrings. Signed-off-by: Anton Lundin <glance@acc.umu.se>
2018-09-16Changlog update for DLF importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-09-16Desktop UI: small layout correction export dialogGravatar Jan Mulder
2 UI items where poorly aligned. Fixed here. Reported-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2018-09-16user manual: update dates and add latest HTMLGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-16User Manual: replace screendumpsGravatar Willem Ferguson
Replace a very outdated screendump related to Preferences-Network, and one for the new anonimize export option. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-16User manual: get rid of Companion app textsGravatar Jan Mulder
Tried to strip all referencews to the companion app. Including a remark of end-of-life of the GPS webservice end 2018. Also fixed a screendump from mobile, for the removed menu items of the GPS service. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-16User manual: update menu sectionGravatar Jan Mulder
Update menu section for removes menu options. And fixed a lefover edit in this area. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15user manual: some more photos -> media replacementsGravatar Berthold Stoeger
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15user manual: updates for media supportGravatar willemferguson
This updates the user manual with text on the addition of and viewing of media, including video files. 5 images are replaced Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15Update HTML versions of user manualsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15Manuals: fix asciidoc errorsGravatar Dirk Hohndel
These caused easy to miss build failures when creating HTML versions. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15build-system: don't modify a file under git controlGravatar Dirk Hohndel
Instead of editing appdata/subsurface.appdata.xml in place, switch to our usual pattern of modifying a .in file and add the resulting file to .gitignore. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: replace lring with file local functionGravatar Tomaz Canabrava
And simplify the code. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: no need for default if we test every caseGravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: use ByteArray.size() instead of strlenGravatar Tomaz Canabrava
Removes a size_t vs int warning Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: pre-calculate the test and pass it directlyGravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: allocate the vector in one goGravatar Tomaz Canabrava
The << alternative can reallocate the vector, but we know it's size, so preallocate. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: simplify if / else chainsGravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: remove allocationsGravatar Tomaz Canabrava
Simply create the string in one go. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: use nullptr in C++ filesGravatar Tomaz Canabrava
Using 0 or NULL are C idioms. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: unamed namespace instead of global or static variablesGravatar Tomaz Canabrava
Unamed namespace behaves the same way as static variables in C source. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15code cleanup: sort headers alphabeticallyGravatar Tomaz Canabrava
This was driving me nuts. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-09-15Update the dive list context menu to reflect new media interfaceGravatar willemferguson
A minor change to the UI. The wording of the two items in the dive list context menu "Load image(s) from file(s)" and "Load image from web" are updated since we now deal with both images and videos. So it becomes "Load media from file(s)".... etc. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>