aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-07-09Latest translationsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build iOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: build macOS against Qt 5.11.1Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: install from Homebrew instead of using a cacheGravatar Dirk Hohndel
Clearly something has changed here. When I first tried to use Homebrew on Travis the update would take often so long that the build would time out. Now it is nice and fast. So instead of wasting time with the cache let's just use Homebrew directly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09Travis: update to macOS 10.11 based imageGravatar Dirk Hohndel
Qt 5.11 requires macOS 10.11. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build.sh: provide usage message and exit on unknown argGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09build-system: allow selection of Debug or Release buildGravatar Dirk Hohndel
So far we did a rather odd mix by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-09user-manual: Update Spanish translation to f3db29846Gravatar Salvador Cuñat
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2018-07-09user-manual: Update Spanish translation to English 220905422Gravatar Salvador Cuñat
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
2018-07-09Update CHANGELOG.mdGravatar Berthold Stoeger
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-09Dive pictures: differentiate between IO-error and unknown formatGravatar Berthold Stoeger
Show different images for IO-error and unknow file format. Use file-extensions to recognize video files if we couldn't parse them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-09Dive pictures: Import unknown-type iconGravatar Berthold Stoeger
Import an "unknown-type" icon from the KDE breeze theme, which is licensed under the LGPL. This icon will be shown for file for which we couldn't determine whether this is a picture or a video. Source: https://github.com/KDE/breeze-icons Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-08Install subsurface.appdata.xmlGravatar Alexander Wilms
This is required to make Subsurface show up in Gnome Software & KDE Discover Signed-off-by: Alexander Wilms <f.alexander.wilms@gmail.com>
2018-07-08CHANGELOG.md: fix bad markdown formattingGravatar Lubomir I. Ivanov
The # and <> characters introduced formatting issues, for those who wanted to view our changelog in the Github repository. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-07-08Dive pictures: detach ProfileWidget2 from DivePictureModelGravatar Berthold Stoeger
As long as ProfileWidget2 and DivePictureModel showed the same set of pictures and any change would lead to a full recalculation of the set, it made sense to let ProfileWidget2 use DivePictureModel's data. Recently, keeping the two lists in sync become more and more of a burden. Therefore, disconnect ProfileWidget2 and DivePictureModel. This will lead to some code-duplication and perhaps a temporary drop in UI-performance, but in the end the code is distinctly simpler and also more flexible. Thus, for example the DivePhotoTab could be changed to support headings without having to touch ProfileWidget2 at all. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-08Dive pictures: Recognize video filesGravatar Berthold Stoeger
When generating thumbnails, test for video files. If it is, use a dummy-thumbnail. Write only the type (video), but no image to the thumbnail cache, for forward-compatibility. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-08Dive pictures: Import video iconGravatar Berthold Stoeger
Import a video icon from the KDE breeze theme, which is licensed under the LGPL. This icon will be used as a dummy-placeholder for video files. Source: https://github.com/KDE/breeze-icons Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-07-07CHANGELOG.md: update with the recent save-git fixGravatar Lubomir I. Ivanov
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-07-07save-git: allocate user_info members on the heapGravatar Lubomir I. Ivanov
subsurface_user_info() only works on Linux (linux.c), but it doesn't allocate values on the heap. Solve this ownership problem by always allocating .name and .email on the heap in subsurface_user_info() and freeing in the caller. If subsurface_user_info() did not modify any of the values from NULL, use default ones, but allocate them on the heap too. Ref #1346 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-07-07build-system/macOS: don't get libgit2 from pkgconfig when building it ourselvesGravatar Dirk Hohndel
Doing that confuses the build setup and as a result the library isn't found at runtime without some fixups. Fixes #1469 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: fix up the id of libssh2 as wellGravatar Dirk Hohndel
For some reason we only tried to fix libgit2 but not the libssh2 that it depend on. Weird. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07build-system/macOS: correctly test if we need to adjust the id of libgit2Gravatar Dirk Hohndel
The existing test was backwards and never worked. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-07core: update qPrefDisplay.cpp to use all qPref macros.Gravatar jan Iversen
change qPrefDisplay.cpp to use qPref_private macros, for each variable. The macros used depend on how standard the variable is handled. Remark: this commit is production code, but qPrefDisplay is NOT integrated into SettingsObjectWrapper and thus not active in the live system Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: add macros to handle get/set/loadsync functionsGravatar jan Iversen
Add macros to handle get/set/loadsync function set functions in qPref These macros are only convinience functions to write less for all those variables who are traited standardized. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: add macros to handle setter functionsGravatar jan Iversen
Add macros to handle full function set functions in qPref Remark: the function name is fixed to be "set_<name>" where name is identical to the variable in struct preferences This is not our standard naming, but is consistent with struct preferences (that also use different name schemes). Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: add macros to replace getter functionsGravatar jan Iversen
Add macros to handle full getter functions Remark: it is assumed the name of getter function is identical to the name in struct preferences. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: qPref private add macros to replace disk* functionsGravatar jan Iversen
Use a private QSettings variable, instead of declaring it each time Add macros to handle full disk* functions Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: copy Display from SettingsObjectWrapper to qPref as its own classGravatar jan Iversen
copy Display from SettingsObjectWrapper to qPref as its own class file. Update Display to use a common load/sync scheme. Update set/get functions to follow common name scheme: - get function have same name as in struct preferences - set function have set_<name in struct preferences> - signal function have <name in struct preferences>_changed one class one .h/.cpp is the C++ idiom. Having load/sync of each variable in 1 functions (in contrast to the distributed way SettingsObjectWrapper handles it) secures the same storage name is used. Having the set/get/load/sync functions grouped together makes it easier to get an overview. REMARK: this commit are made to show the use of the low level LOADSYNC macros, which will be used for special cases. This class is NOT linked into the live system. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07core: pref.h rename showDeveloper to show_developerGravatar jan Iversen
change to use same name pattern as other variables. Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-07git storage: avoid warning about "Unmatched action 'hash'"Gravatar Dirk Hohndel
In commit f3ef38ca0d ("Dive pictures: remove hashes") we removed picture hashes, but removing them from the git parser causes an ugly red warning when opening an existing cloud storage repo. With this patch we just silently ignore the hash. Fixes #1473 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06core: don't crash on merge of non-existing dive siteGravatar Dirk Hohndel
While we shouldn't have a dive that references a dive site that doesn't exist, if we do, we shouldn't crash. And a dive site that doesn't exist is most definitely 'empty'. Reported-by: Benjamin Fogel <nystire@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06build-system/macOS: remove outdated message about errorsGravatar Dirk Hohndel
This hasn't been true for a long time. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06build-system/macOS: update the signing scriptGravatar Dirk Hohndel
This really isn't useful for anyone but me as I create official binaries. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06build-system/macOS: copy one more library when building against Qt5.11Gravatar Dirk Hohndel
I don't quite understand why this one is missing, but otherwise the map doesn't work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06build-system/macOS: update make-package.sh to use macOS 10.11 as base versionGravatar Dirk Hohndel
Qt 5.11 no longer supports macOS 10.10. Also use the new long path to identify the SDK. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06build-system/macOS: try both possitble locations for googlemapsGravatar Dirk Hohndel
And don't show an error for the one where it isn't. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-06ssrf: remove LIBRARY_PATH from makefileGravatar jan Iversen
build.sh (line 468,469) uses LIBRARY_PATH, but make can do without. Removed LIBRARY_PATH Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-06ssrf: add "make check" to central makefileGravatar jan Iversen
extend ssrf/makefile with "make check" option. This is just a convinience function, to not need to "cd build" first Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-06tests: make testpreferences.h loadable independent of testdiveGravatar jan Iversen
set #ifdef TESTPREFERENCES in testpreferences.h so it can be loaded with other header files Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-05mobile-widgets: solve cloudstatus register problemGravatar jan Iversen
Use Q_ENUM instad of Q_ENUMS (which is depreciated) since it does the meta registration for all Qt platforms. Q_ENUM require the enum to be defined in the class and cannot refer to a global class, therefore copied enum to class. This commit is made to get the release to work, with minimal changes, this class will be moved to qPref and the double definition solved Signed-off-by: Jan Iversen <jani@apache.org>
2018-07-04ShellcheckGravatar Joakim Bygdell
Code cleanup using shellcheck. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-04Update INSTALL fileGravatar Jocke
Update the install file to reflect the new build process. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-04Update android build env.Gravatar Joakim Bygdell
Update the scripts used to build subsurface-mobile for andriod to use the variables file. Removed checks for obsolete Qt versions. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-04Add build variables fileGravatar Joakim Bygdell
This adds a file that contains the variables used in the android-build-wrapper and build scripts. This gives a single location for setting which versions of Qt, NDK and SDK we use when building the mobile app on linux. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
2018-07-04Latest translationsGravatar Dirk Hohndel
Because of the code cleanup in commit 57c01f7a66 ("Translations: unify gettextFromC::tr() and QObject::tr()") a lot of text has moved to new context. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03Update translation source stringsGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03Update CHANGELOG.mdGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03Bump Subsurface-mobile versionGravatar Dirk Hohndel
Otherwise the Apple app store doesn't let me upload new test binaries. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03iOS: find translations againGravatar Dirk Hohndel
commit ec0511e824 ("ios: concentrate build dirs") moved the translations around without updating the way they are accessed, causing our release 2.1.0 on iOS to not be localized. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2018-07-03macOS: we don't need to bundle QtDBusGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>