summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-12-28Add splash screen for android-mobileGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-28Improve group information on USB deviceGravatar Miika Turkia
As the group can be something else than dialout on some systems, mention this on user manual. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-28Git storage: be more careful when checking if this SHA is already loadedGravatar Dirk Hohndel
In commit 8c1cc4524d19 ("Don't reload identical data") I got a little carried away. Before comparing SHAs we need to make sure that a) this is a git repository at all b) we have an actual SHA before we claim to have the data loaded Reported-by: Paul-Erik Törrönen <poltsi@777-team.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27update Debian versionGravatar Stephen Hemminger
The current code base depends on qtlocation5-dev which is not in Debian 8 (Jessie). It requires Debian testing (Stretch). Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27ftdi: fix memory leak on errorGravatar Stephen Hemminger
Found by cppcheck. Minor memory leak if usb_reset fails Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27dive: paren error in set point handlingGravatar Stephen Hemminger
This probably is a serious bug, found by cppcheck. Original code had paren's in probably the wrong place! Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: try to remove two binding loopsGravatar Dirk Hohndel
Let's face it. I have no idea what I'm doing here. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: add debug output for echoModeGravatar Dirk Hohndel
For some users by default the password characters aren't hidden. Maybe the debugging output will help us understand what's going on. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: cloud credential input: use text input hintsGravatar Dirk Hohndel
We shouldn't auto-capitalize and the text should only be email address characters. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: if remote is same as local cache, don't load / process remoteGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27Don't reload identical dataGravatar Dirk Hohndel
If we already have the same SHA loaded and no changes have been made to the dive list then there is no point in loading the dives again. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27Cloud storage: check the top commit without loading divesGravatar Dirk Hohndel
This way we can check if the local cache is in sync with the remote without always triggering a load of the dives from git. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: load from cache before trying to sync with the cloud serverGravatar Dirk Hohndel
This is a simple way to deal with a "no network" situation. But this isn't ideal, yet, if there is a slow network as the dive list will be reset again once the sync from the cloud finishes. So there is some more thought needed to make this work "mostly as expected". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27Add option to not check the remote when loading from git storageGravatar Dirk Hohndel
This way we can first load from cache and then update from the network in the background. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-27QML UI: don't show "1 of n" for multiple dive computersGravatar Dirk Hohndel
This is actually not a change in the QML - it just conditionally compiles out the code when building Subsurface-mobile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26Fix UDCF import time unit in timedepthmodeGravatar Miika Turkia
The timedepthmode specifies the time in seconds when using si units, otherwise minutes. This patch implements this support. Fixes #981 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: change the way we extract input data from dive editGravatar Dirk Hohndel
Instead of doing the silly "onEditingFinished" we get the strings from the QML components at the time we commit the change. Much more logical, much more straight forward, no issues with the TextArea not having an onEditingFinished signal. This still has a few open todos: the temperatures aren't parsed, the edit screen is missing depth and duration, we can't edit the dive time (and it isn't passed in on the commit). But it's progress. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: correct text for context drawer when adding diveGravatar Dirk Hohndel
This needs to say "Save" to indicate that you are saving the data that was entered. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: get add dive closer to being usefulGravatar Dirk Hohndel
Now we at least start out with the corret date, time and number. This still isn't functional as a lot of the data aren't used and the way you save the data is completely silly, but it's another step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: set up time and dive number when adding diveGravatar Dirk Hohndel
Most likely when you manually add a dive on a device it is just about to happen or just ended, so starting out with the current time is likely a good guess. Which makes it the last dive in the dive list, so give it the next sequential number. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: don't crash when committing changes and unable to find the diveGravatar Dirk Hohndel
This mainly happens because add dive is completely broken right now, but in general it seems to be good policy not to blindly dereference this pointer... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26Two more helper functions for the QML managerGravatar Dirk Hohndel
I'm not sure this is the best way to do this - QML should be able to get to the model data directly (I hope?). But this seems to work and I need it to make Add Dive be semi-correct. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: when adding a dive, start in edit modeGravatar Dirk Hohndel
Obviously we don't want to "view" a new dive, we want to "edit" it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: show app name in the top bar as Subsurface mobileGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML UI: mark locations with GPS dataGravatar Dirk Hohndel
In the dive detail view, if a location has an associated GPS location, show the name of the location underlined so the user knows that tapping on it will open a browser window with a map picture. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML-UI: add hacky, useless way to show the GPS location of a diveGravatar Dirk Hohndel
This is of course stupid and NOT what we want to do, but one could argue it's better than nothing (well, not sure, whatever). If we have a GPS location associated with a dive and you tap on the location name when showing the dive details, it opens a static image of a satellite map with a marker for the dive site. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26Dive list model: add GPS string accessGravatar Dirk Hohndel
If the QML UI needs the GPS information, we need a way to get to it. I'm not convinced that having it as comma separated string is the best way to go, but that's what I need for the Google API so that's what I picked for now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-26QML-UI: attempt to improve profile scalingGravatar Dirk Hohndel
This still doesn't address all the issues, but appears to be a step forward. It also contains some debug output to better understand what's going on. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-25Android build: use better sed syntaxGravatar Dirk Hohndel
There is no reason to use '!' as separator and in some shell environments this can cause problems. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-24QML-UI: fix black squares on some Android devicesGravatar Dirk Hohndel
It appears that one some Android devices there is an interaction between Qt and the GL implementation that results in black squares instead of icons being shown on the screen. Disabling the GammaAdjust avoids running the shader and fixes this problem. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-24Android build: more tweakingGravatar Dirk Hohndel
Don't ever link against a shared libcrypt. One of the recent changes to make things build on the various Linux build systems apparently broke the Android build as it now adds an extra -lcrypt right after the correct static link to libcrypt.a. Instead of fiddling even more with this and re-breaking all the other builds I just hack around it here and remove any calls to a simply -lcrypt as that won't work on Android. This also passes through the remaining options on the command line to make so we can do things like VERBOSE=1 or -j12 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-24Android build: allow selecting Debug / Release buildGravatar Dirk Hohndel
And never build the tests. Makes no sense to do so when cross building for Android. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-21Cmake: don't add the BT_SUPPORT define too earlyGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: more progressGravatar Dirk Hohndel
Most of the dependencies build now. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: only build the parts of openssl that we needGravatar Dirk Hohndel
No point in creating the apps, etc. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: make it possible to compile opensslGravatar Tomaz Canabrava
It compiles but the link stage fails because of a missing -LSystem but its a baby step. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: baby stepsGravatar Dirk Hohndel
Get a couple more dependencies built. These were easy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: hack to build and install libsqlite3.aGravatar Dirk Hohndel
Building the iOS command line utility fails. But frankly, we don't need that, anyway. I cannot figure out how to tell sqlite that all I want is the library, so I'm working around that by first building the library, then pretending that sqlite3 was indeed built in order to be able to run make install. Horrible, ugly, stupid. But it seems to work. Also cleaned up the whitespace. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: make the README a bit more usefulGravatar Dirk Hohndel
Still not all that useful, though. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20iOS build: fix typo in CFLAGS argumentGravatar Dirk Hohndel
This way the gethostuuid workaround actually works. It still doesn't compile, though. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20Rework the env - variables to produce a working cross compile scriptGravatar Tomaz Canabrava
The cross compile script kind of works right now, it's missing something that I'm really not sure where or what it is. currently sqlite will not build because: error: gethostuuid is not defined in iOS This bug was already opened on sqlite bugtracker for about a year, the workaround is to pass -DDSQLITE_ENABLE_LOCKING_STYLE=0 to the compilation flags, which I did but did not work for some reason. Which is a good error - it shows us that we are actually trying to compile for iOS. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20Start the iOS cross compileGravatar Tomaz Canabrava
The build.sh and readme files are the same as the Android ones and I'll be changing them over time. The configure-for-ios.sh script is a file that manages to set everything, compilers frameworks and such, for iOS compilation. I'll probably dissecate the configure-for-ios.sh file and put it back on the build.sh, but not now. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20QML-UI: log the full version at startGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-20Remove the non-canonical Subusrface versionGravatar Dirk Hohndel
It no longer makes sense to lie about the version. If you are running a product build, then the canonical version is the same version as the plain version used to be. And in either case it makes much more sense to simply log the full version information. We used to have the differently styled versions for different OSs, but I don't think this is needed anymore. Let's hope this doesn't go down as one of these "famous last words" moments... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19Cmake: don't use wildcards when deleting debug componentsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19Trying to fix persistent build problemsGravatar Dirk Hohndel
This shouldn't hurt on any platform, but it may help on a couple of platforms where it appears we are missing libcrypto on the link line. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19Don't complain about missing GPS source unless mobileGravatar Robert C. Helling
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: allow toggling verbose mode from the UIGravatar Dirk Hohndel
Hidden in the Developer menu. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: more log message when retrieving web user idGravatar Dirk Hohndel
At least one tester cannot retrieve their web user id. This should help us collect more data and figure out why this fails. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-12-19QML-UI: actually show the right text for missing cloud credentialsGravatar Dirk Hohndel
If we have no credentials or invalid credentials, update the text on the start page accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>