aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-12-29tests: add gas tests for plannerSharedGravatar jan Iversen
Add cases to test gas options. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-29tests: add research values for diveplanning.Gravatar jan Iversen
This commit contains the researched values used for diveplanning, which form the basis for the test cases. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-29Update CHANGELOGGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile UI: add menu item for cloud password resetGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile UI: restructure help/support menuGravatar Dirk Hohndel
Instead of having two entries on the main menu, move them into a sub menu. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile: small whitespace cleanupGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile UI: add support and account iconsGravatar Dirk Hohndel
These were again copied from the material design icon set and will be used to differentiate the various help topics. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile UI: add back button to planner menuGravatar Dirk Hohndel
Otherwise you are stuck in there. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile UI: remove confusing gDrawer idGravatar Dirk Hohndel
The global drawer already has a name that can be referenced. This was adding confusion as now both names were used in the menu structure. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-29mobile-widgets/qml: add "forgot password" buttonGravatar jan Iversen
The user is most likely to find out, that he does not remember the password, when asked for it. Add "forgot password" button in the signin dialog (both credentials and pin dialog). Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-28mobile-widgets: correct faulty connect.Gravatar jan Iversen
1) add comment line (signal to signal) 2) correct spelling error in comment 3) correct connect Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-28planner: correct rating calculations.Gravatar jan Iversen
Test show that the ratings calculations were off by +/- 1, due to rounding errors. Found due to test cases in tests (other commits) The calculations are copied 1-1 from diveplanner.cpp, but are used slightly different in plannerShared.cpp Correct calculations, by securing the calculation is done with float precision and the rounded with lrint(). Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-28mobile-widgets/qml: correct first view of divelistGravatar jan Iversen
pageStack.initPage cannot be used as a function and causes an error Replace with showDiveList() Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-28mobile-widget/qml: avoid binding loop in GlobalDrawerGravatar jan Iversen
rightPadding seems defined in Kirigami and the default value causes a binding loop. set rightPadding directly. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27Cosmetic updates to .UI files for PreferencesGravatar willemferguson
This is a cosmetic update to remove some warning messages while building a fresh subsurface. These warnings were due to duplicate label names in the .UI files. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
2019-12-27tests: add test cases plannerShared ratingsGravatar jan Iversen
Add test cases to test ratings variables Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27tests: activate TestPlannerSharedGravatar jan Iversen
Use updated CMakeLists to activate TestPlannerShared but only for mobile builds !! This is due to the fact that commands are currently not available for mobile builds. Using the mobile library version of qt-mobile secured diveplannermodel.cpp is compiled without referencces to commands. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27tests: add framework for plannerShared testGravatar jan Iversen
Add TestPlannerShared test (cpp + h) Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27buildsystem: update tests to include more librariesGravatar jan Iversen
In order to test plannerShared (backend-shared) more libraries are needed. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27testing: prepare diveplannermodel to be used in testingGravatar jan Iversen
In order to make tests for plannerShared, some qt-models must be linked, and due to the fact that commands are currently not available for mobile (which also makes the tests) and #ifdef must be added. The test version of diveplannermodel will be specially compiled in (SUBSURFACE_TESTING set) in the tests directory. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27core/settings: make qPrefUnit accesable from QMLGravatar jan Iversen
Use string literals to communicate with QML. Instead of passing arounds enum/int value, it seems easier to pass string literals to QML and have that code respond to those Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-27core: use set_lang_locale to modify prefs.locale.lang_localeGravatar jan Iversen
Do not set prefs.locale_lang_locale directly, but do it indirectly through qPrefLanguage::set_lang_locale(), to ensure the file plist is consistent with prefs. the difference (prefs. contra plist) cause surprises when restarting mobile (and playing with language). Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-27documentation: updated text for testing.Gravatar jan Iversen
Update text to reflect how the build works now Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-27documentation: change filename to follow standardGravatar jan Iversen
change Readme.testing --> README_TESTING.md and thereby not contain a mixture of upper/lower case letters. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26documentation: coding style, existing file namesGravatar jan Iversen
Existing file names should not be changed without a reason. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26documentation: coding style cpp/h namesGravatar jan Iversen
Add rule about cpp/h names [Dirk Hohndel: small edits to the rule] Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26documentation: coding style.Gravatar jan Iversen
CodingStyle.md should not be the first file, not the adhere to the styles. Rename CodingStyle.md --> CODINGSTYLE.md to follow the standard of other documents. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26documentation: add changed login to CHANGELOG.mdGravatar jan Iversen
Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets: remove envelope of saveCredentialsGravatar jan Iversen
Remove QML saveCredentials since it only calls manager.saveCredentials Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: correct Pin pageGravatar jan Iversen
Did not switch to divelog page. call verifyCredentials() not saveCredentials when checking pin Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets: correct switch to no-cloud mode.Gravatar jan Iversen
saveCredentials() missed parameters Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: diveplannersetup graphical layoutGravatar jan Iversen
Add graphical layout to setup page Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26documentation: add line in CHANGELOG.mdGravatar jan Iversen
Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: add diveplanner pages to globalDrawerGravatar jan Iversen
Add "Dive planner" menu entry in GlobalDrawer/Developer with 4 subitems one for each diveplanner pages. Developer is chosen in order to allow interested access to pages, without raising expectations for the normal user. That allow a step-by-step implementation Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: add diveplanner pagesGravatar jan Iversen
Diveplanner consist of 3 pages: - Edit, creation of the plan - View, view the plan - Manager, list/delete/select stored diveplans With the current navigation system (pageStack) View needs to be split in multiple pages. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-26mobile-widgets/qml: add TemplateComboBoxGravatar jan Iversen
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateComboBox allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26mobile-widgets/qml: add TemplateCheckBoxGravatar jan Iversen
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateCheckBox allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26mobile-widgets/qml: add TemplateRadioButtonGravatar jan Iversen
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateRadioButton allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26mobile-widgets/qml: add TemplateSpinBoxGravatar jan Iversen
standard font-size are set in the template (but can be overwritten in the object) Using TemplateSpinBox allows central change of how spinBoxes are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26mobile-widgets/qml: add TemplateLabelGravatar jan Iversen
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateLabel allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26mobile-widgets/qml: add TemplateSectionGravatar jan Iversen
TempleSection is a clickable rectangle that contains information. It is used to - group information - hide/unhide details And are an important building block in decluttering small screen, while showing all information on bigger screens Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26plannerShared: replace notes variables to plannerSharedGravatar jan Iversen
Replace display_runtime display_duration display_transitions verbatim_plan display_variations Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26plannerShared: add notes variablesGravatar jan Iversen
Add display_runtime display_duration display_transitions verbatim_plan display_variations Get is direct from qPrefDivePlanner and set is plannerModel Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26desktop-widgets: replace variables to plannerSharedGravatar jan Iversen
Use plannerShared setter to update the variables in qPref. This will also signal the cylindermodel to calculate a new bestmix. variables: bottompo2 decopo2 bestmixend Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26desktop-widgets: replace o2narcotic from plannerModel to plannerSharedGravatar jan Iversen
Use plannerShared setter to update o2narcotic. This will also signal the cylindermodel to calculate a new bestmix. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26plannerShared: add o2narcoticGravatar jan Iversen
Add include of cylinderModel Add o2narcotic the set function is special because it first informs the plannerModel that there is a new value and then ask cylindermodel to calculate a new bestmix Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26desktop-widgets: replace variables from plannerModel to plannerSharedGravatar jan Iversen
variables bottomsac decosac problemsolvingtime sacfactor are not set in diveplanner.cpp, but instead signals a slot in plannerModel. change signals to slots in plannerShared Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26plannerShared: add variables from plannerModelGravatar jan Iversen
the variables are set through set functions in DivePlannerPointsModel, but read via getters from qPrefDivePlanner. Variables: bottomsac decosac problemsolvingtime sacfactor Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26desktop-widgets: replace var plannerModel -> plannerShared convertedGravatar jan Iversen
variables min_switch_duration are not set in diveplanner.cpp, but instead signals a slot in plannerModel. and are read from plannerShared which includes a conversion change signals to slots in plannerShared change read from prefs. to plannerShared Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-26plannerShared: add variables from plannerModel with conversionGravatar jan Iversen
the variables are set through set functions in DivePlannerPointsModel, but read via getters from qPrefDivePlanner and converted Variables: min_switch_duration Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>