aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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>
2015-10-11android.cpp: update path retriaval schemeGravatar Lubomir I. Ivanov
Android was skipped as a OS target when the recent path retriaval modifications in <os>.c were made. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-11profilewidget2: fix line width when printing on OSX and LinuxGravatar Lubomir I. Ivanov
On OSX and Linux only, the cosmetic width of the QPen on profile axes does not work and is weirdly dependent on the fact if a printer is installed or not. Possible Qt bugs at hand. The same is not present on Win32. To solve the issues we add setPrintMode() in DiveCartesianAxis and call it for all instances of the class in ProfileWidget2. This patch also moves gridPen() as a private member function of PartialGasPressureAxis as it now needs to access member variables. Fixes #943 Reported-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-11profilewidget2: add resetZoom()Gravatar Lubomir I. Ivanov
resetZoom() is now a new method that is called both when 'printMode' is updated or when the dive is re-plotted. Fixes a bug where zooming in on the profile and then printing the dive has the profile at the wrong zoom level (makes the profile look smaller). Reported-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-11Use ~/.subsurface as default directory on LinuxGravatar Gaetan Bisson
This is more discreet than ~/subsurface (the previous default) and follows a well-established tradition. Signed-off-by: Gaetan Bisson <bisson@archlinux.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09Remove UTF BOM from user manual filesGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09User manual spelling fixes and tidy-upGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09Documentation: update russian translation of user manual to english b74809bGravatar Sergey Starosek
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: Layout improvements in app list and details headerGravatar Sebastian Kügler
- fix spacing and sizing in TopBar - use an anchor layout for the delegate and split out labels and values: this allows more uniform alignment - add the subsurface mobile icon to the first page - various visual touch-ups to taste Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: gridUnit is now dpi-correctedGravatar Sebastian Kügler
Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: improve list paintingGravatar Sebastian Kügler
- section headers get underline with a thick line - items are separated by spacing and a thin grey line at the bottom - spacing on both sides, aligning with header Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: be less chattyGravatar Sebastian Kügler
Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: add more properties to Units and ThemeGravatar Sebastian Kügler
- colors for accentuation (background and text) - text color to paint on highlights - units.spacing (derived from gridUnit, so it's dpi-corrected) - port main.qml, especially the application header to this theming and sizing Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09QML-UI: basics for theming and hi-dpi supportGravatar Sebastian Kügler
- Theme: For theming, we're just defining some colors centrally for now - Units: This object provides dpi-corrected sizing in the form of gridUnit. The idea is to base gridUnit on the rendered font size, so the ui scales with text size. As this interpolates font size and dpi, the sizing is rather responsive. These are the basics, now we can kill lots of hardcoded pixel values. Signed-off-by: Sebastian Kügler <sebas@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09Fix main window size, position, and stateGravatar glerch
Now size, position and state should be preserved correctly. Signed-off-by: glerch <guido.lerch@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09Make the mac bundle be a high resolution appGravatar Dirk Hohndel
This way it no longer gets started in the ugly low resolution emulation mode. What a difference. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-09Do not show lack of coordinates as having same gps informationGravatar Tomaz Canabrava
The filter that takes care to show the dive sites that have the same gps information should not take into account dives that have no gps information. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Ignore geolookups without valueGravatar Miika Turkia
It seems that geolookups might return null for some values. This will result in corrupted XML as show_utf8 does not terminate the current tag if t->value is empty. So let's just skip the geo data that is missing the value. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Fix a crash when editing manually added diveGravatar Miika Turkia
I have manually added dives from an ancient version of Subsurface. Trying to edit these caused Subsurface to crash due to comparison of string of dc.model that did not exist (to a static string). And further down the execution path we were crashing as there were no samples associated with the dive. See #941 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Fix font issue on Windows 10 in the weight widgetGravatar Lubomir I. Ivanov
Column headers were drawin in a smaller font. This fixes it for no apparent reason. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Deal with weird transifex issue involving leading spaceGravatar Dirk Hohndel
Apparently transifex drops the leading space in the translation string and then at runtime the string no longer matches. So let's just code this differently. This of course creates a new string but that new string should be the string that transifex already asks people to translate... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-08Refresh the screen even if started with no valid filesGravatar Dirk Hohndel
If no command line argument is given and no default file is set we didn't call refreshDisplay() and so the information widget stayed enabled even though no dive was shown which looked really weird and was inconsistent with what we showed when the user closed an already open file. This makes the behavior more consistent. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>