aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
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>
2017-04-12Fix build against older Qt versionsGravatar Dirk Hohndel
While the new syntax is nicer and faster, this isn't supported prior to Qt 5.6 and we still support 5.5 on older OSs. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-12Add Dutch user manual HTML fileGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-12Use libdc from github nowGravatar Jan Mulder
The build script was cloning the Sursurface branch of libdivecomputer from the "old" location. Use the new github based location from now on. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12user manual: five trivial typosGravatar Jan Mulder
five trivial typos corrected Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12user manual: some more graph -> profile renamesGravatar Jan Mulder
And found some more graph -> profile strings to be renamed. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12user manual: sync command line optionsGravatar Jan Mulder
Sync the command line opions with 4.6.3 (added win32log) Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12user manual: print a dive planGravatar Jan Mulder
Removed 2nd occurrence of the fact that a dive can be printed in the planner using the print button. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12NL: incorporate user manual in buildGravatar Jan Mulder
Add the nwe NL user manual to the build process. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-12NL: first edition of usermanual translated to DutchGravatar Jan Mulder
First edition of usermanual translated to Dutch. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-04-11Fix DivingLog's O2 importGravatar Miika Turkia
Make sure the Gas setup contains O2 value when trying to import that. In latest log sample the Gas seems to contain the decompression algorithm used. And as this value was grabbed after O2, we ended up with empty O2. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Fix DivingLog importGravatar Miika Turkia
DivingLog seems to report cylinder start and end pressures in metric format, but sample readings are in imperial in case user has selected this unit. So we must convert the sample pressures in this case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Ignore empty cylinders on Cobalt importGravatar Miika Turkia
It appears that Cobalt might include additional gas mixes, and only way to determine what is used appears to be to ensure that start and end pressures are greater than 0. One would assume there to be something else available in the database, but I was not able to spot it. Fixes #297 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11QML UI: re-layout the details viewGravatar Dirk Hohndel
This is a different take that seems to deal much better with different width and font size combinations. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-10QML UI: correctly set grid column widthsGravatar Dirk Hohndel
Spending more time reading the documentation, we need to set the Layout.maximumWidth, not the width. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-07QML UI: fix iOS build scriptGravatar Dirk Hohndel
Syntax for one of the libdivecomputer configure options was wrong. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-07QML UI: enable embed code for iOSGravatar Dirk Hohndel
This should help us with better iOS apps as it allows Apple to run llvm against our code to improve performance. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-07QML UI: modify dummy.qml to bring the correct pluginsGravatar Dirk Hohndel
Our qmake based build for iOS still requires the dummy.qml to trigger inclusion of the correct plugins in the iOS app. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-06QML UI: update qmake file to include Controls.2Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-06QML UI: support extreme widescreen Android devicesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-06Move version and date around notes to save spaceGravatar Robert C. Helling
This prints this information in the header near "Subsurface" where I guess at least the version information belongs. Plus it saves a line. Signed-off-by: Robert C. Helling <helling@atdotde.de>
2017-04-06Add creation date and Subsurface version to planner outputGravatar Stefan Fuchs
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-06Aparently, remove a QXB warning.Gravatar Tomaz Canabrava
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-06Clean up some widgetsGravatar Tomaz Canabrava
Simplify logic of handling the Message that this dive is being modified. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-06Break down MainTab into smaller classesGravatar Tomaz Canabrava
Maintab is one of our most complex classes, and it's something I'm not actually proud of. But it currently works and the idea of splitting it was in my head for quite a while. This is the third or fourth tentative of splitting it, and this time I let the most complex part of it untouched, the Notes and Equipment tab are way too complex to untangle right now on my limited time. A new class 'TabBase' should be used for any new tab that we may create, and added on the MainTab (see the new lines on the MainTab constructor). Also, Extra Info, Information, Photos and Statistics where ported to this new way helping reduce the number of lines and functions on the MainTab quite a bit. Overall this is a step in the right direction for the future. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04QML UI: fix saving fields using HintsTextEditGravatar Marco Martin
The editText property is not there anymore, we need text Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04QML UI: dialog of HintsTextEdit on topGravatar Marco Martin
Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04QML UI: better handling of device pixel ratioGravatar Dirk Hohndel
In order to make sure we don't render the initial profiles with the wrong scale on devices, we need to seed the device pixel ratio with the device default and then update it once the window has been created. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04QML UI: more hacks for the magicShiftFactor hackGravatar Dirk Hohndel
Since the device pixel ratio can be a fraction we should interpolate the values. I still don't really understand why this is necessary, so this is a hack on top of a hack - but for most values I tried this does seem to give us a reasonably well placed (and well scaled) profile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04smtk-import Avoid duplicities in bookmarksGravatar Salvador Cuñat
SmartTrak's bookmarks work in the same fashion Subsurface's do. The user may set a bookmark while underwater or set it just on the divelog software. At this time we are parsing those set in the DC twice, as we get one from libdivecomputer and another from smarttrak's database. This patch just checks if we have a bookmark event downloaded by libdivecomputer which has the same time that the one parsed from the .slg file. If so, merge the names taking the one from smarttrak. Text from smarttrak is preferred because the user may have entered some interesting note there and libdivecomputer's name is just "bookmark". Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2017-04-04smtk-import Fix wreck data importGravatar Salvador Cuñat
It was assumed that every data field in a wreck table was filled or zeroed. This assumption is actually false, so this patch adds testing for the existence of strings before working with them. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2017-04-03QML UI: ensure actions are set up for Credentials pageGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-03QML UI: use a scrollable page for StartPageGravatar Marco Martin
Fixes scrolling of the cloud credentials and simplifies code Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-01mxe_build.sh - Rebuild everyth. when switching between debug and releaseGravatar Stefan Fuchs
When switching between debug and release MXE build one needs to rebuild everything. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-01Fix mxe-build script to copy correct plugin DLLs for debug and releaseGravatar Stefan Fuchs
For the plugin DDLs: Debug: Only copy *d.DLLs Release: Only copy *.DLLs Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2017-04-01Add the pressure attribute only if it existsGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-01Do not convert empty temperatureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>