aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
AgeCommit message (Collapse)Author
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-27mobile-widgets/qml: remove console messagesGravatar jan Iversen
Remove console.log messagees used to test the split of startpage/divelist. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-24mobile UI/login: fix PIN entry pageGravatar Dirk Hohndel
In commit a4d299e01e ("mobile-widgets/qml: use showPin/oldStatus consistently") one instance of rootItem.showPin wasn't replaced with prefs.showPin and as a result we had a very strange password entry line in the middle of the PIN entry screen. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: move startpage to mainGravatar jan Iversen
StartPage does not belong in divelist. Remove startPage from diveList and anchor in main. Make needed functional changes. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: remove startpage dependency in divelistGravatar jan Iversen
DiveList should not depend on StartPage, so remove references to startPage. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: make divelist a proper object in mainGravatar jan Iversen
Instanciate DiveList like all the other pages. Move DiveList properties set in main to DiveList.qml Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: clean startPage/setupActions from DivelistGravatar jan Iversen
setupActions() in StartPage contained a mixture of StartPage actions and DiveList actions. Split setupActions to be pure. However currently StartPage is embedded inside DiveList so the action onVisibleChanged must be simulated. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: move onCompleted actions to mainGravatar jan Iversen
manager.finishSetup() have nothing to do with startpage/divelist, but belong in main (seeing main as responsible for setup and window layout). Move onCompleted functionality to main. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: remove cloudPassword from QMLPrefsGravatar jan Iversen
cloudPassword is no longer used as a temporary variable Remove cloudPassword from QMLPrefs. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: replace use of cloudPasswordGravatar jan Iversen
Replace prefs.cloudPassword with PrefCloudStorage.cloud_storage_password in QML Replace QMLPrefs.....cloudPassword with PrefCloudStorage::cloud_storage_password in C++ Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: remove cloudUserName from QMLPrefsGravatar jan Iversen
cloudUserName is no longer used as a temporary variable. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: replace use of cloudUserNameGravatar jan Iversen
Replace prefs.cloudUserName with PrefCloudStorage.cloud_storage_email in QML Replace QMLPrefs.....cloudUserName with PrefCloudStorage::cloud_storage_email in C++ Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24mobile UI/login: do not revert to old credentials.Gravatar jan Iversen
If the user asked to change credentials it is equivalent to a signout, so no need to store old credentials. This simplification allows removal of the temporary credentials in qmlPrefs. this commits secures the user is locked in the login page, until one of 3 things happen: - enter verified credentials (divelist is loaded from cloud) - select no-cloud mode (divelist is loaded from local) - enter new credentials, PIN page shows, enter PIN or cancel (back to enter credentials). This is consistent even if the program is restarted. Old version had a non consistent way: A user enters new credentials, sees the PIN screen, but does not receive the email immediately, so works with other applications (causing the mobile app to close) Having received the email with the PiN, the user starts mobile again, BUT does not see the PIN screen, instead the old credentials are used. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-25mobile-widgets: make saveCredentials() an atomGravatar jan Iversen
Call saveCredentials with username/password to avoid first setting the two and then calling. Change saveCredentials() to use newUser, newPassword. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-25mobile-widgets/qml: clean whitespace in main.qmlGravatar jan Iversen
Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-25Preferences UI: add dive log tabGravatar willemferguson
This adds a tab for dive log - related preferences. A suitable test programs is still required. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2019-12-24build-system: move exportfuncs to backend-sharedGravatar jan Iversen
WARNING: multi directory commit, needed to secure it builds. move the core/exportfuncs.* to backend-shared. update backend-shared/CMakeLists.txt to generate backend-shared lib update CMakeLists.txt to include backend-shared lib in link process. update ios project to reflect new directory Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-24mobile-widgets/qml: use showPin/oldStatus consistentlyGravatar jan Iversen
Remove aliases for showPin/oldStatus and reference prefs.showPin/oldStatus directly. showPin/oldStatus are "temporary" variables, that are not saved in settings, so they easily be replaced Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-24new mobile login: remove non existing function from CloudCredentialsGravatar jan Iversen
the function manager.accessingCloud is not defined in QMLManager.h Remove manager.accessingCloud. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-24new mobile login: remove saveCredentials() from StartPage.qmlGravatar jan Iversen
The local qml function saveCredentials() in StartPage are not used. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-24mobile-widgets/qml: disable global drawer in startpageGravatar jan Iversen
Do not show global drawer when user is doing login. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-24mobile-widgets: limit use of QSettings in qmlmanagerGravatar jan Iversen
Replace QSettings for userName/Password/credentials with proper qPrefCloudStorage calls Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-24build-system: Add CMakeLists.txt to mobile-widgetsGravatar jan Iversen
In order to make the central CMakeLists cleaner and more consistent add a CMakeLists.txt to mobile-widgets, like in other root directories. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-24mobile-widgets/qml: remove use of eval()Gravatar jan Iversen
eval() cannot be used in combination with the Qt5 qml compiler, replace eval() with switch statements. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-18mobile-widget: use qPref variableGravatar jan Iversen
change prefs.cloudUserName to PrefCloudStage.cloud_storage_email. This is slightly more effective (direct instead of indirect), and reduces the use of prefs. This is part of limiting the use of prefs. (which is a precessor to qPref) to the login process, and ultimately remove it. Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-18mobile-widget: correct set of default_cylinderGravatar jan Iversen
set_default_cylinder is accepted, because it is defined in Qt Meta system, however the call is never carried out, because the Q_INVOKE macro is missing Change PrefGeneral.set_default_cylinder(...) which is a function call to PrefGeneral.default_cylinder = ... which is a builtin assignment Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-13core: remove LOG_STP from mobileGravatar jan Iversen
LOG_STP is on longer providing the data needed, since a lot of the startup is indirectly in QML, furthermore using the xcode project and running profiler gives much more detailed information Signed-off-by: Jan Iversen <jani@apache.org>
2019-12-12mobile/qml: Integrate/activate diveshare in ExportGravatar jan Iversen
Integrate diveshare in Export Activate diveshare radio button Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-12mobile-widgets: activate uploadDiveShare in qmlmanagerGravatar jan Iversen
Remove "TO BE IMPLEMENTED" and add call doUpload Connect signal to signal in QMLManager to avoid registring the upload class. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-12mobile/qml: Clear status field in ExportGravatar jan Iversen
When opening the saveAsDialog a second time, it contains the last status from first time. Clear statusText before calling saveAsDialog Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-12mobile/qml: make close dialog in Connect workGravatar jan Iversen
When using Connect, the context is switched, so close() might or might not work. Change unqualified close() to qualified uploadDialog.close() Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-12mobile/qml: remove empty lineGravatar jan Iversen
Remove empty line that does not make sense. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile/qml: close upload dialog if successGravatar jan Iversen
Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile/qml: handle upload signalsGravatar jan Iversen
Add uploadFinish and uploadProgress to Export page Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile-widgets: make upload signals available to QMLGravatar jan Iversen
Connect signal to signal in QMLManager to avoid registring the upload class. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile/qml: close export page after uploadGravatar jan Iversen
pop from pagestack. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile/qml: add pref suppport for userid in ExportGravatar jan Iversen
Handle reading/writing of userid/password settings in the saveAsDialog and set field to visible when needed. Activate divelogsde radio button Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile-widgets: activate uploadDiveLogsDE in qmlmanagerGravatar jan Iversen
Remove "TO BE IMPLEMENTED" and add call doUpload Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile/qml: correct typo in Export.qmlGravatar jan Iversen
Correct default value for export type. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-11mobile-widgets/qml: add divelogsde stylesheet to resourcesGravatar jan Iversen
Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-05mobile/qml: activate dive_site export in UIGravatar jan Iversen
Dive_site export is now implemented in Exportfuncs, so allow users to select it. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-05mobile-widgets/qml: close Export page after export (or cancel)Gravatar jan Iversen
Remove page from pageStack, which removes the page from user view. Signed-off-by: Jan Iversen <jan@casacondor.com>
2019-12-04Selection: move selection functions from divelist.c to selection.cGravatar Berthold Stoeger
Since we now have a selection.c translation unit, put the selection- related functions there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>