aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-04-21Move extra info tab in main window to the very right side againGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-21After DC import don't do RemoveRows if there is nothing to removeGravatar Stefan Fuchs
This fixes an issue where beginRemoveRows is called with argument -1 in DiveImportedModel::setImportedDivesIndexes. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-21smtk-import: Add curly braces in nested conditionalsGravatar Salvador Cuñat
Curly braces are necessary in nested conditionals or results may not be those expected. In this case, the "else" clause applied on second "if", instead of first one. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2017-04-21smtk-import reuse pre-existent code and fix leakGravatar Salvador Cuñat
Use update_event_name() for bookmarks merge and free temp string. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2017-04-21smtk-import: Abort bookmark parsing if table doesn't openGravatar Salvador Cuñat
Do not just report the failure but abort parsing or we will get a crash Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2017-04-20Mention bot: no commentsGravatar Dirk Hohndel
I believe that even though the sample file clearly shows comments, the syntax actually doesn't allow it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-20With curly bracesGravatar Robert C. Helling
...sorry, I don't have a way to test this. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-20Identify user provided notes in plain text in replanGravatar Robert C. Helling
This is another attept at the problem if identifying a potentially user supplied text in the dive notes upon replannig a dive. It gets rid of the user visable position markers (*!* and ***) and cirumvents problems with mark-up by first converting the old notes to plan text (assuming that user only enters plain text in the notes field as we do in other places as well). Then the automatically added part is identified by locating the disclaimer in the text (if the user edited/delted the disclaimer or changed langue in between it is her problem to manually delete the old plan). Everything from the disclaimer on is deleted and replaced by the new plan. If the disclaimer is not found, the new plan is appended to the old notes. This way we make sure no information gets automatically deleted. Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-04-20Do not abort when there is no current diveGravatar Jan Mulder
Yes, currentdive can be undefined in case of of a new logbook and starting the planner right away. Do not abort on that. Reported-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-20Handle CCR setpoint when replanning a diveGravatar Jan Mulder
When replanning a dive, the setpoint information from the profile waypoints were reset to 0, resulting in a dive that has a dive mode of CCR, but only with OC legs in the profile. This is just wrong, and is corrected here. Notice that there is no averaging involved (in the reduction of a replanned real dive that has more than 100 waypoints) as is done for depth. This is just fine for setpoint data. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-20Preserve dive mode when planning a diveGravatar Jan Mulder
Data such as cilinders and used gasses are populated fromn the currently selected dive when starting the planner. It is more logical to use the dive mode (OC, CCR, pSCR) of the currently selected dive as well. This commits changes this. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-20Show % after Büllmanns GFsGravatar Jan Mulder
2 strings in the planner output showed based on "Bühlmann ZHL-16B with GFLow = " gradient factors without % after the factor. While this is fine for an abbreviated form like GF 40/80, this looks strange for a verbose sentence like the 2 corrected ones. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-20Support for new DM5 blob formatGravatar Miika Turkia
Currently we do not know what the extra data in the sampleBlob is, but the block size must be adjusted nevertheless. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-20Tell mention-bot to mention @atdotde if planner/deco files touchedGravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-04-18Update ReleaseNotesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-18FAQ: update section on Bluetooth on LinuxGravatar Rick Walsh
Setting up an RFCOMM connection has not been required for a long time. Reported-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-18More strict filter for URL handling in dive notesGravatar Stefan Fuchs
Applie a more strict filter to URL handling in dive notes: The URL needs to have: - Scheme like "http:" or "mailto:" - Host name like "www.test.de" or path like "/pathtosomewhere/" Otherwise strings like "OTU:" or "Runtime:" are treated as URL. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-18Fix a crash in the URL handling for the dive notesGravatar Stefan Fuchs
URLs in the dive notes are detected today. A tooltip is displayed and one can follow the URL by Ctrl-click. In the function fromCursorTilWhitespace there is an issue with incorrect return value of Qt (5.7?!) function cursor->movePosition(). This value is erroneous true in some condition e.g. if the cursor is inside a table at the very beginning or the very end of a table line and not moving any more. This can cause the function end up in an infinite loop. Bugfix adds an additional exit criteria for the loop if the string is not growing any more. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-18Attempt latin1 parsing on importGravatar Miika Turkia
We parse input XML using UTF-8 encoding by default. If this fails, try latin1 instead. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-18Fix a crash on exitGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-16QML UI: more fine tuning of the magic shift factorGravatar Dirk Hohndel
Now it should also work on devices with device pixel ratios of 1.3, 1.33, or 1.4. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-16QML UI: correctly update dive list after editing timestampGravatar Dirk Hohndel
Once we re-inserted the dive in the list we aren't done, quite the contrary - we now need to make sure that we handle any other changes and mark the dive list as updated. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-16QML UI: correctly parse manually edited dateGravatar Dirk Hohndel
We need to set the timeSpec after the QDateTime was parsed, otherwise it gets converted to localtime again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-16Restore FB grayed out when disconnectedGravatar Jan Mulder
See https://github.com/Subsurface-divelog/subsurface/issues/253. The original behaviour (greyed out when disconnected) is restored. Not sure where and when got lost, but this simple change fixes it. Fixes #253 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-16Handle notes from plannerGravatar Stefan Fuchs
New strategy to identify old planner output in notes when replanning a dive: Text anchors ("*!*" and "***") added for planner output For backwards compatibility: If there is no anchor but an old table delete everything. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Change protocoll for any git clone from Github to httpsGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Change git clone remote for grantlee to Github steveire/grantleeGravatar Stefan Fuchs
Change source for grantlee in build.sh to Github steveire/grantlee Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Change remotes for git clone for libdc, marble and Subsurface to GithubGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-16Last added dive planner point for correct lenght not always addedGravatar Stefan Fuchs
Don't add the last stop with addstop for correcting the lenght of the dive if planner generated points can be removed when replanning. Otherwise this will not be deleted when replanning a dive. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-15QML UI: fix broken delete from dive details pageGravatar Dirk Hohndel
Trying to close the non-existing context drawer caused the function to abort (and consequently not to delete the dive). Fixes #309 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-15QML UI: fix GPS list renderingGravatar Dirk Hohndel
There was an extra BasicListItem inside the SwipeListItem. This commit just removes 5 lines, the rest is indentation change. Fixes #312 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: reset completion fields when adding diveGravatar Dirk Hohndel
Otherwise the last value in those fields might still be shown. Also, set up the cylinder completion. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: create completion list for cylinders as wellGravatar Dirk Hohndel
We already have that for the other three fields where we offer auto completion (buddy, divemaster, suit). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: fix profile for device pixel ratio of 1.5Gravatar Dirk Hohndel
I think this is actually a typo - either way, seems to work correctly now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: better simulation of onPressed in TextFieldGravatar Dirk Hohndel
Prior to Qt Quick Components 2.1 there was no onPressed signal for a TextField; in order to be able to build against Qt 5.7 (which comes with Qt Quick Components 2.0) we need to work around the lack of this signal. This code seems to do a pretty good job at simulating it. My attempt in commit 73c66e1d7d9f ("QML UI: make run with Qt 5.7 again") didn't work so well. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: don't populate hints texts when adding diveGravatar Dirk Hohndel
If we don't have values for the HintsTextEdit fields, don't show any values. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: correctly render dive list when showing delete buttonGravatar Dirk Hohndel
This fixes the visual artifact that Willem reported. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: keep the fontMetricGravatar Dirk Hohndel
We reference it elsewhere. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: don't shrink fonts on narrow displaysGravatar Dirk Hohndel
Now that wrapping should work correctly, this isn't necessary any more. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML UI: make run with Qt 5.7 againGravatar Dirk Hohndel
onPressed needs to be relative to Keys in Qt 5.7. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14QML-UI: remove references to download from divecomputerGravatar Dirk Hohndel
This needs to be reimplemented. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-14Also translate tab headersGravatar Jan Mulder
After the restyle of the maintab code, the translation of some tab titles went missing. Corrected here. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-13QML UI: add 2cm x 2cm square to theme test pageGravatar Dirk Hohndel
This should make it easier to spot displays that are completely out of whack in their scaling. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-13Cleanup some unnecessary include statementsGravatar Jef Driesen
Some of these header files are no longer necessary, and will be removed from libdivecomputer in the near future. Signed-off-by: Jef Driesen <jef@libdivecomputer.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-13Fix building against upstream libdivecomputerGravatar Jef Driesen
The custom_serial.h header doesn't exist in upstream libdivecomputer. Signed-off-by: Jef Driesen <jef@libdivecomputer.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-13QML UI: only assign actions in a declarative wayGravatar Marco Martin
Assigning actions in an imperative way on component complete, seems to cause a crash on some devices, assign declaratively the whole list instead, hiding the gps related actions on iOS as they are not supported on that platform. Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-13Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-12QML UI: need major.minor versions, apparentlyGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-12Add Qt 5.7 and 5.8 for Darwin in build scriptGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>