aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-07-16QML UI: show the connection choices in Download UIGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-16Add the connections that we find to the modelGravatar Dirk Hohndel
So far this only deals with BT addresses. We also need to add other connections that we detect. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-16Add ConnectionListModelGravatar Dirk Hohndel
We'll use that to do a better job of showing the connection used when talking to a dive computer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15build.sh: don't fail if we can't find libusb or hidapiGravatar Dirk Hohndel
Also remove a left behind debug printout. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: correctly deal with no printingGravatar Dirk Hohndel
Including working around a weird hack to install the Grantlee plugins. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: move Qt detection to outside levelGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: newer Qt comes without WebKitGravatar Dirk Hohndel
Allow turning it on for those who have it, but by default build without it on Mac. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: deal with libdivecomputer and pkg-configGravatar Dirk Hohndel
libdivecomputer asks pkg-config for the include paths for libusb-1.0 and hidapi, but then uses #include <libusb-1.0/libusb.h> and <hidapi/hidapi.h> which fails as those directories are part of the include path. So we manually add include paths without that last directory as well as a work around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Mac build: deal with SDK location and availabilityGravatar Dirk Hohndel
I really want to build against 10.10 so as many people as possible can use the binaries I create, but regular users might not have the older SDKs installed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15QML UI: style the GPS fixes pageGravatar Joakim Bygdell
Add styling to the GPS fixes page. The background color of the swipe list objects is wrong and also the icon overlay. This is a Kirigami issue. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: add material theme controlsGravatar Joakim Bygdell
In order for the theme styilng to work we need the materials definitions. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15Fix compile errorsGravatar Dirk Hohndel
This was fixed in my local tree but I forgot to amend the commit before pushing it out. Oops. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-15Fix typoGravatar Joakim Bygdell
Simple typo. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: add Kirkigami theme variablesGravatar Joakim Bygdell
The built in theme in Kirigami has special variables for sertain objects, this sets the correct color for each object to match our themes. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: define the material accent colors for each themeGravatar Joakim Bygdell
THe editable textboxes rely on the material theme to set the correct colors. This sets the appropriate colors for each theme. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: style the overlay drawerGravatar Joakim Bygdell
This adds separate colors for the overlay drawer background for light and dark themes. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: style the GPS services checkboxGravatar Joakim Bygdell
This adds style to the GPS services checkbox so that it matches the theme. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15QML UI: style the DC download dialogGravatar Joakim Bygdell
This sets the checkboxes in the dive computer download dialog to match the rest of the theme. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-15Fix CSV export for imperial start and end pressureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15Reflect import of subsurfaceCSV with having units in headersGravatar Miika Turkia
2017-07-15CSV export: show units on headerGravatar Miika Turkia
Let's show the units in CSV header so the actual fields have only the values. This should be easier to parse with some other programs. Fixes #472 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15CSV export: show units on headerGravatar Miika Turkia
Let's show the units in CSV header so the actual fields have only the values. This should be easier to parse with some other programs. Fixes #472 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15Correct BT detect for OSTC SportGravatar Jan Mulder
Apparently, OSTC Sport has a BT name like OSTCs<space><serial>. Small code addition to detect this properly. As long as we do not have an improved way of detection. Notice that most of the HWs use the same BT hardware, so simple detection on offered services will not work. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-07-14QML UI: enforce rules for cloud credentialsGravatar Dirk Hohndel
Email addresses are checked for a someone useful pattern, passwords are letters, numbers, and +-_. only. Reject anything else. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-14QML UI: Hide map it text if no coordinates existsGravatar Joakim Bygdell
This hides the text for the map it button if ther are no coordinates for a dive. Needed as for the dark theme the map it text was still visible. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-14QML UI: Change the pink colorGravatar Joakim Bygdell
This changes the pink primary color to match the tone of the blue primary color. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-14QML UI: Add right handle iconGravatar Joakim Bygdell
This adds the right handle icon that is needed for the swipe list items not to report an error when activated. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-14QML UI: Don't use black for dark themeGravatar Joakim Bygdell
This sets the background color to the recommended hue for dark themes. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2017-07-12Fix slot handling in Photos tabGravatar Dirk Hohndel
This clearly has never been tested, never worked. Oh well. Fixes #478 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-12QML UI: only offer BT checkbox if BT is availableGravatar Dirk Hohndel
Right now we need to restart Subsurface-mobile in order to detect Bluetooth devices - so simply turning on BT after Subsurface-mobile was started is not sufficient. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-12QML UI: make BT state available to QMLGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-12BT support: track if Bluetooth is availableGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-11Latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-11Merge branch 'hw-o-ble-2' of https://github.com/janmulder/subsurfaceGravatar Dirk Hohndel
Doing a manual merge from the command line in order to retain Jan's SHAs so that the commit message makes sense... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-11Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-11Trivial code cleanupGravatar Jan Mulder
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-07-11French documentation translationGravatar Philippe Massart
Mostly documentation about manually added dive. Signet-off-by: Philippe Massart <philippe@philmassart.net>
2017-07-11French translation (more to come)Gravatar Philippe Massart
2017-07-11OSTC over BLE: read a long as neededGravatar Jan Mulder
See also b409e9fc91d87bbd5 and 709c1df2af4b87. The OSTC parser cannot handle reads of single 20 byte BLE packages in serial mode. Instead of doing a deeper down agressive read, we can read on the serial level more subtile. As the parser is requesting a specific number of bytes, we just read that number of bytes and return them. As the 20 byte BLE packets do (obviously) not align with the reading requirement of the libdc parser, a little housekeeing needs to be done in between individual reads. CAVEAT 1: In contradiction to 709c1df2af4b87, this is supposed to work for all parsers that properly specify the needed bytes to fetch. CAVEAT 2: All above tested on Linux Desktop with bluez stack. Subsurface mobile is step 2. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-07-11BLE read: remove aggressive readGravatar Jan Mulder
Commit 709c1df2af4b87 introduced a hard blocking read for BLE devices. This did break BLE reads from multiple DCs, and (in hindsight) was not a correct implementation. It would require, for example, dynamic read buffers as especially profile data grows with dive time, and in addition, and more importantly, also the OSTC libdc parser cannot process the entire profile of a dive at once (but likes to receive it in 1K blocks). So, basically, it introduced issues, and did not solve the OSTC read. This commit reverts this hard blocking read (and as such will break OSTC BLE reads). But it enables removal of the special cases for the EON Steel and G2. A next commit will solve OSTC BLE reads. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-07-11OSTC over BLE: take care of creditsGravatar Jan Mulder
Handle credits. Do not just ask for maximum credits all the time as this will stop the download. Also do not let the credits go back to 0 (while this might work, this is not tested). Getting back the 0 credits stops the download, and even when it can be restarted, it is less efficient (and not needed). Notice also that it takes some time before a grant request is honoured. During testing I saw reception of up to 25 packets between request and grant. So a lower bound for the request of 32 packets seems resonable. One aspect the Telit/Stollmann TIO puzzeled me. Sections 4.1 and 4.2 both talk about credits, but my hyphothesis is that there are two credits counters in play. One for traffic either way. This commit only deals with credits granted by Subsurface to the OSTC to send data. Credits granted by the OSTC to allow Subsurface to send new commands is NOT part of this commit, and is seemingly not needed in our scenario. As we only send new commands to the OSTC when a previous one is finished (per HW's interface spec), the OSTC does not run out of credits to receive commands. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-07-09Whitespace changeGravatar Dirk Hohndel
No code change at all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: make Preferences page scrollableGravatar Dirk Hohndel
This commit only has the actual changes, the next commit will clean up the white space in order to make it more obvious what was done. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: correctly wrap devinfo messageGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: actually write libdc logfileGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: add preference for libdivecomputer logGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: add variable for libdc logfileGravatar Dirk Hohndel
It seemed cleanest and easiest to have this in the QMLManager and not in the DCDownload object. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09QML UI: fix typo in color valuesGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09Android: write appLog to fileGravatar Dirk Hohndel
The trick is to pick a path that is accessible from other applications. In theory QStandardPaths::GenericDataLocation should provide that. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-07-09Tell user if we reached a dive that was already thereGravatar Dirk Hohndel
This way it's more obvious why no dives were downloaded. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>