mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fac8d5b125
commit
0974c7524f
1 changed files with 52 additions and 0 deletions
|
@ -502,6 +502,38 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
pageStack.push(themetest)
|
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
|
] // end actions
|
||||||
Image {
|
Image {
|
||||||
|
@ -845,6 +877,26 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DivePlannerSetup {
|
||||||
|
id: divePlannerSetupWindow
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
DivePlannerEdit {
|
||||||
|
id: divePlannerEditWindow
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
DivePlannerView {
|
||||||
|
id: divePlannerViewWindow
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
|
DivePlannerManager {
|
||||||
|
id: divePlannerManagerWindow
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
ThemeTest {
|
ThemeTest {
|
||||||
id: themetest
|
id: themetest
|
||||||
visible: false
|
visible: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue