summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-11-16windows.c: enable verbose level 1 for desktop usageGravatar Lubomir I. Ivanov
If the user has not started Subsurface from a terminal make sure that verbosity is enabled (verbose = 1), so that the log files are populated with information useful for debugging. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-16github: improve the issue templateGravatar Lubomir I. Ivanov
1) Add new description types: - 'Code cleanup' - 'Build system change' 2) Add a 'Release note' section: The idea with this is that if you make a change which is worthy of a release note in ReleaseNotes.txt, it would be best to outline it here but also in the .txt. This basically means that the PR should also touch ReleaseNotes.txt with an extra patch. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-16During DC import reset cns, ndl, other values inbetween divesGravatar Stefan Fuchs
Reset cns and heartbeat to 0 Reset ndl and bearing to -1 Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-16For surface samples init ndl and compass bearing from prev sampleGravatar Stefan Fuchs
This avoids printing useless info to the XML file. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-16libdivecomputer.c init sticky values for samples for current sampleGravatar Stefan Fuchs
When filling samples with values during DC import fill sticky values like CNS, NDL, stoptime,... immediately into current sample. Otherwise we will not fill the sticky values into the last sample created. Add two new sticky values: heartbeat and bearing Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-15cmake: make sure to only handle objcopy from MXEGravatar Lubomir I. Ivanov
The native Windows build does not use the MXE tools and call such as `i686-w64-mingw32.shared-objcopy` can fail. Attempt to first find if the program exists using `find_program()` and only then call it. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-15MXE: move the objcopy calls to cmakelists.txtGravatar Lubomir I. Ivanov
The objcopy calls to strip the debug symbols out of subsurface.exe need to happen before the installer is created (staged). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-14Travis: test more variations of the buildGravatar Dirk Hohndel
On Linux we want to test both desktop and mobile, and both the full feature set as well as a build without BT and without WebKit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: use the correct version in release announcementGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: update the release message to mention MacGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: add Mac buildGravatar Dirk Hohndel
This adds a -skip-googlemaps option to the build script since for some reason trying to build the googlemaps plugin in the Travis mac environment causes an error with a missing stack-protector-strong feature. The build relies on a custom build Qt and a cached homebrew environment. And the result is of course not a DMG with a signed app but a zip file with an unsigned app - so it's a bit harder to consume. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: set better release messageGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14Travis: make AppImages follow our naming patternGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-13New fixup function fixup_dc_ndlGravatar Stefan Fuchs
Fixup the NDL value to '-1' at the very beginning of a dive. Some dive computer report a NDL of 0 at the very beginning of a dive and then only some 10 seconds later they report the correct value like 240 min for the first time. Translate this 0 at the beginning of a dive into our internal '-1' for no info available. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-13Init every struct sample with default valuesGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-13Display values in info box only if value is interestingGravatar Stefan Fuchs
Type duration_t changed from uint to int. Default value of '-1' introduced for some of the values in struct sample: NDL used -1 as default. Bearing uses -1 as default (no bearing set). Display pXX, EAD, END, density, MOD only if values are larger than 0. In profile don't display data from two first and two last plot_data entries in info box. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-13Make Bluetooth naming consistentGravatar Berthold Stoeger
Currently, on Linux, after selecting a Bluetooth device the name of the device is shown. On reopening the download dialog, on the other hand, the address is shown. In the device selection dialog both are shown. This patch changes the download dialog such that both, name and address, are shown. The bulk of the patch introduces the name of the device in the preferences and DCDeviceData. It has to be noted that DCDeviceData is an encapsulation of the libdivecomputer device_data_t. Nevertheless, the new Bluetooth-name field is, at the moment, not passed through to libdivecomputer. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-13mobile: icon size in profileGravatar Jan Mulder
Size the event item icons in the profile a little bigger. Obviously, how big is big enhough is upto personal taste, but on Github a screendump is added to show the new size. Fixes: #310 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-11-13Better error message on BLE connection timeoutGravatar Berthold Stoeger
On BLE connection timeout a weird error-message was shown, because the controller was still in connecting state and no error string was set. Therefore, handle the timeout case with a special case label. Moreover, remove three unnecessary calls to disconnectFromDevice(), which is called in the destructor of the controller anyway (verified by looking at Qt source). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-13MXE: reword echo text about uploadingGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-13MXE: experiment with creating a RelWithDebInfo buildGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-13Remove option to apply GFlow at maxdepth in documentationGravatar Stefan Fuchs
Option was removed some time ago: 5b080beddef3e08b86eb53448e737b4867a50c1a Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-13Start release notes for 4.7.5 and add GFlow/high limits changeGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-13Planner and profile limit minimum GFlow to 10 and minimum GFhigh to 40Gravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-11-12Trivial: Replace a QSharedPointer by a QScopedPointerGravatar Berthold Stoeger
Since the QSharedPointer is never passed or copied, reference counting is certainly not needed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-12Typo: modp02 -> modpO2Gravatar Berthold Stoeger
Fixes two function names, where O2 was written as 02. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-11Travis: also build an MXE/Windows installerGravatar Dirk Hohndel
In the process, simplify our dependency a bit by no longer building against libssh2 (we don't support ssh based authentication for git on Windows) and libcurl (since it's proxy implementation doesn't appear to actually work on Windows, anyway). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Get ready for 4.7.4v4.7.4Gravatar Dirk Hohndel
Since 4.7.3 was missing the translations. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Update latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Getting ready for 4.7.3v4.7.3Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Travis: don't do a redundant upload to transfer.shGravatar Dirk Hohndel
uploadtool already takes care of that. Reported-by: Simon Peter <probono@puredarwin.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Fix memory leak in download-from-dive-computer widgetGravatar Berthold Stoeger
Instead of (re)allocating the vendor and product models, use the setStringList method on sub objects. Even though only a theoretical problem, the model objects are moved in front of the ui object, so that the widgets referencing the models are destroyed first. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-11Travis AppImage: don't delete the copyright infoGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-11Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis: make sure git describe can workGravatar Dirk Hohndel
Travis only fetches the last 50 commits - which means that git describe will usually fail and our version numbers would end up being wrong. So let's fetch the whole repo and the tags as well to make sure that git describe works as expected by our tools. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis AppImage: remove more files that aren't neededGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis: stop wget verbose output from flooding logGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis: avoid duplicated buildsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis: remove linuxdeployqt workaroundGravatar Simon Peter
Do not move around .so* files in order for linuxdeployqt to pick them up. Signed-off-by: Simon Peter <probono@puredarwin.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Travis: find googlemaps plugin at the new spotGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-10Initialize Facebook page only when dialog is shownGravatar Berthold Stoeger
Quick hack to avoid Facebook access on every program start. Move the initialization of the login page from the FacebookConnectWidget constructor to the show event handler. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2017-11-10preferences: support a pre-defined list of time formatsGravatar Lubomir I. Ivanov
Add a combo-box that holds a list of pre-defined time formats in the Language preferences. The user is still allowed to enter a custom time format. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-10preferences: re-use a tr() string in _language.cppGravatar Lubomir I. Ivanov
Also, tell "in date format" instead of "in time format" for dates. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-10preferences: support a pre-defined list of date formatsGravatar Lubomir I. Ivanov
Add a combo-box in place of the single line text field and support some pre-defined date formats, such as: MM/dd/yyyy Each long format has a corresponding short variant stored in the QMap dateFormatShortMap and it's updated automatically once the user selects a combo box item for the long format. The regex for dates is slighly modified: [^dMy/\\s:;\\.,\\-] The user is still allowed to enter custom long / short date foramats. Fixes #276 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-10Fix warningGravatar Jan Mulder
Commit 97712559192ca82d introduces a compiler warning due to mismatched pointer types. Fixed here. Reported-by: Stefan Fuchs <sfuchs@gmx.de> Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-11-09Travis: add missing dependencyGravatar Dirk Hohndel
This is a fairly big hammer to get the missing dependencies installed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-09Travis: work around the way build.sh looks for private headersGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-09Travis: use our own Qt binaries for AppImage buildGravatar Dirk Hohndel
This is no longer based on the upstream Qt binaries but completely on binaries built by ourselves, trying to remove some of the features that we don't need and trying to avoid some of the issues with certain libraries (like different OpenSSL dependencies). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-09Travis: don't use relative directoriesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-09Travis: move deployment into scriptGravatar Dirk Hohndel
And no longer use the Travis deploy mechanism - uploadtool does it all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>