aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-10-19Sort the entries in .clang-format alphabetically.Gravatar K. \"pestophagous\" Heller
No changes were made to the values of the entries. Sorting makes it easier for a clang-format n00b to compare each setting to its documentation on the http://clang.llvm.org/docs/ClangFormatStyleOptions.html web page. Signed-off-by: K. Heller <pestophagous@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Grab latest translationsGravatar Dirk Hohndel
This includes my attempts to address the issues raised by the translation checker script. It also fixes the crash with the planner on Windows which was caused by a faulty translation that replaced a '%' with a '$' in the format string. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18A perl script to check format strings in translationsGravatar Robert C. Helling
This script can be called on translations files, e.g. > scripts/checktranslation.pl translations/*ts and will report if the number of % signs in source and translation differ. It finds quite a few issues that need to be investigated. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Document the changes since 4.5Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Change plot scaling to handle FREEDIVE mode Add FREEDIVING value to ↵Gravatar Giorgio Marzano
plot_info::plot_type Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Display divetime according to dive mode and translationGravatar Giorgio Marzano
Many time stats in maintab display also seconds in short freediving Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Enable/Disable toolbar element in freedive modeGravatar Giorgio Marzano
Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Display day number in trips longer than 1 dayGravatar Giorgio Marzano
Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Adds path to executableGravatar Ash Kamel
This commit adds a path to the executable file based on the `build.sh` installation instructions. Signed-off-by: Ash Kamel <ajkamel@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Mention Shearwater NerdGravatar Robert C. Helling
alongside Petrell 2 since this seems to be the same computer internally. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18increase cloud connection timeoutGravatar Gaetan Bisson
Awesome diving location does not rhyme with small Internet latency. Signed-off-by: Gaetan Bisson <bisson@archlinux.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Use hidapi on MacGravatar Dirk Hohndel
This allows us to support the Suunto EON Steel on Mac, assuming the matching libdivecomputer version from the Subsurface-branch. If that was compiled with the hdiapi lib then hopefully the build for Subsurface should find that library as well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Print: remove the warning about editing bundled templatesGravatar Lubomir I. Ivanov
Bundled templates can no longer be edited, because copies are made in the user directory. The TemplateEdit special case warning is no longer relevant so it can be removed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-18Print: copy the bundled templates to a safe locationGravatar Lubomir I. Ivanov
This patch adds couple of helpers to retrieve the template path in the application bundle (getPrintingTemplatePathBundle()) and the template path in the user directory (getPrintingTemplatePathUser()). Once the print dialog is initiated for the first time the contents of the bundled template path are copied to the user template path using copyPath(). No overwriting of files will occur. The PrintOptions and TemplateLayout classes then only use the user path for retrieving templates. Fixes an issue where the bundled templates can be locked as read-only on OSX and Linux. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Mark dive type list for translationGravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Parse hash before adding picture to dive.Gravatar Robert C. Helling
Without this, when loading from git, the pictures are added without hashes. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Last minute translation updatesv4.5.0Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Another update of user manual html files in gitGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Add app icon to statistics windowGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Documentation: update russian translation of user manualGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14User manual tidy-upGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-14Mention recreational mode of planner in release notes.Gravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Another update of the translationsGravatar Dirk Hohndel
Mostly this is noise, updates of locations. But a few new translations are hidden in there. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Update INSTALL file for 4.5Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Update list of supported dive computersGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Update spanish translation of user manual to english 8d546bcGravatar Salvador Cuñat
[Dirk Hohndel: also update the html git version] Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Keep state of reverse geocode button in sync with GPS dataGravatar Dirk Hohndel
So if the data is removed or invalid, don't allow reverse lookup. Otherwise do. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Only allow reverse geo lookup if divesite has GPS dataGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Update user manual html files included in the sourcesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Documentation: update french translation of user-manualGravatar Guillaume GARDET
Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13This patch reverts commit 50421f1f.Gravatar Lubomir I. Ivanov
Expose subsurface_mkdir() in qthelper.h as main.cpp already includes it. Once 'default_directory' is obtained call subsurface_mkdir() on it. subsurface_mkdir() will not throw an error if the directory exists according to the QDir documentation. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Only mark the divelist changed if something actually changedGravatar Dirk Hohndel
Otherwise you could end up in a situation where the data file is always marked as changed when opened (for example if your data file references a picture that doesn't exist at that path and can't be found, either). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Make sure our default path exists (for Linux and Mac)Gravatar Dirk Hohndel
I'm not sure if this could ever turn into an issue on Windows - but on Linux and Mac this is an easy and safe thing to do and it avoids a situation where we try to save the picture hashes without having this directory. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Fix questionable build errorsGravatar Dirk Hohndel
Some Linux distributions have compiler settings that cause calls to the printf family of functions to fail if they have just one argument and that argument isn't a literal string. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13User manual: last changes before V4.5Gravatar Willem Ferguson
1) Run a spell checker through the user manual. Only three outright typos found!! 2) Correct sentence about reverse name lookup that results in dive site name reported in tags field, not in Location field. (Sergey, thank you!) Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Enable Hebrew and Romanian translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13usermanual.cpp: use default QWidget theme colors for text selectionsGravatar Lubomir I. Ivanov
The default selection text/background colors (also when seaching) are black/light-grey in QWebView, for some reason. To solve the issue we pass a stylesheet that makes use of the default palette's highlight() and highlightedText() from QWidget. Fixes #797 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Pull latest translationsGravatar Dirk Hohndel
Add two more strings for TTS/NDL cutoff display. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13User manual update: FacebookGravatar Willem Ferguson
1) Update the image relating to fb access 2) Update the text relating to fb access 3) Update text about imgae fingerprints 4) Replace 6 more images to reflect latest UI Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-13Say in infobox if NDL or TTS calculation was cut-offGravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Break out of TTS calculation for deco longer than 2hGravatar Robert C. Helling
If you have a serious deco obligation TTS is not meaningful anyhow so don't compute it for the profile. In particular not without gas changes. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Don't do a negative time step in recreational mode when beyond NDLGravatar Robert C. Helling
In recreational mode, we keep adding time at the last depth until an ascent does violate the ceiling. Then we roll back the last added time step and record the ascent. The test for the ceiling violated was before adding the time so if it alreay failed the first time we tried to unroll a time step that was never added which resulted in a small kink in the pressure graph. This patch corrects this logic by changin a while to a do {} while. Furthermore, it removes the computation of deco state during the final ascent since that is not used anywhere later. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12User manual updates: Dive site management and othersGravatar Willem Ferguson
1) Update the text on dive site management to make it cohesive. 2) Update text on recreational dive planning. 3) Replace one image for rectreational dive planning. 4) Perform several small changes to correct inaccuracies or inconsistencies pointed out by Sergey. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Latest translationsGravatar Dirk Hohndel
And one new string Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12User manual: Print dive logsGravatar Willem Ferguson
--001a11c260ce9093a70521eafe5d Content-Type: text/plain; charset=UTF-8 [PATCH] User manual: Print dive logs This patch replaces two figures in the user manual, concerning the printing of dive logs. 1) Two images are replaced. 2) The text of the user manual is changed to reflect the latest code. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> <div dir="ltr"> [PATCH] User manual: Print dive logs<br>    <br>    This patch replaces two figures in the user manual, concerning the<br>    printing of dive logs.<br>    <br>    1) Two images are replaced.<br>    <br>    2) The text of the user manual is changed to reflect the latest code.<br>    <br>    Signed-off-by: Willem Ferguson &lt;<a href="mailto:willemferguson@zoology.up.ac.za">willemferguson@zoology.up.ac.za</a>&gt;<br><br></div> From 2f0b54fe6e38014b909ed1d9c6acb797921a5158 Mon Sep 17 00:00:00 2001 From: Willem Ferguson <willemferguson@zoology.up.ac.za> Date: Mon, 12 Oct 2015 18:37:54 +0200 Subject: [PATCH] [PATCH] User manual: Print dive logs This patch replaces two figures in the user manual, concerning the printing of dive logs. 1) Two images are replaced. 2) The text of the user manual is changed to reflect the latest code. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12User manual: Preferences panels.Gravatar Willem Ferguson
Six of the images in the text describing the Preferences are replaced to reflect the latest code. One addition image is added, describing georeferencing. The text of the user manual is updated to reflect the new images. Many typos are corrected. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Documentation: update french translation of user-manualGravatar Guillaume GARDET
Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Planner: add recreational mode tooltipGravatar Rick Walsh
Recreational mode isn't self-explanatory. Add a hint for the user. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-12Fix crash on empty argumentsGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-11Latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>