diff options
author | jan Iversen <jan@casacondor.com> | 2019-11-23 21:00:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-26 10:21:16 -0800 |
commit | 0974c7524fe4f2817dfe1074265e96db8fbc5cf3 (patch) | |
tree | 9c0da852c43514782fda0421c9b312c61a1553e7 /mobile-widgets | |
parent | fac8d5b125bf473425fd2f006616a9782502cd04 (diff) | |
download | subsurface-0974c7524fe4f2817dfe1074265e96db8fbc5cf3.tar.gz |
mobile-widgets/qml: add diveplanner pages to globalDrawer
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index a7262c57d..c35e2b15e 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -502,6 +502,38 @@ if you have network connectivity and want to sync your data to cloud storage."), pageStack.push(themetest) } } + Kirigami.Action { + text: qsTr("Dive planner") + + Kirigami.Action { + text: qsTr("Setup") + onTriggered: { + globalDrawer.close() + pageStack.push(divePlannerSetupWindow) + } + } + Kirigami.Action { + text: qsTr("Edit") + onTriggered: { + globalDrawer.close() + pageStack.push(divePlannerEditWindow) + } + } + Kirigami.Action { + text: qsTr("View") + onTriggered: { + globalDrawer.close() + pageStack.push(divePlannerViewWindow) + } + } + Kirigami.Action { + text: qsTr("Manager") + onTriggered: { + globalDrawer.close() + pageStack.push(divePlannerManagerWindow) + } + } + } } ] // end actions Image { @@ -845,6 +877,26 @@ if you have network connectivity and want to sync your data to cloud storage."), visible: false } + DivePlannerSetup { + id: divePlannerSetupWindow + visible: false + } + + DivePlannerEdit { + id: divePlannerEditWindow + visible: false + } + + DivePlannerView { + id: divePlannerViewWindow + visible: false + } + + DivePlannerManager { + id: divePlannerManagerWindow + visible: false + } + ThemeTest { id: themetest visible: false |