mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: reorder the items of the global drawer
Change the order of the items in the global drawer and change the name of some of them. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
342391e0d1
commit
0eef27376a
1 changed files with 38 additions and 38 deletions
|
@ -130,30 +130,7 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("Settings")
|
text: qsTr("Dive managment")
|
||||||
Kirigami.Action {
|
|
||||||
text: qsTr("Cloud credentials")
|
|
||||||
onTriggered: {
|
|
||||||
returnTopPage()
|
|
||||||
oldStatus = manager.credentialStatus
|
|
||||||
if (diveList.numDives > 0) {
|
|
||||||
manager.startPageText = "Enter different credentials or return to dive list"
|
|
||||||
} else {
|
|
||||||
manager.startPageText = "Enter valid cloud storage credentials"
|
|
||||||
}
|
|
||||||
manager.credentialStatus = QMLManager.UNKNOWN
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Kirigami.Action {
|
|
||||||
text: qsTr("Preferences")
|
|
||||||
onTriggered: {
|
|
||||||
stackView.push(prefsWindow)
|
|
||||||
detailsWindow.endEditMode()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
Kirigami.Action {
|
|
||||||
text: qsTr("Manage dives")
|
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("Add dive manually")
|
text: qsTr("Add dive manually")
|
||||||
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD
|
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD
|
||||||
|
@ -170,6 +147,12 @@ Kirigami.ApplicationWindow {
|
||||||
stackView.push(downloadFromDc)
|
stackView.push(downloadFromDc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Apply GPS Fixes")
|
||||||
|
onTriggered: {
|
||||||
|
manager.applyGpsData();
|
||||||
|
}
|
||||||
|
}
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("Manual sync with cloud")
|
text: qsTr("Manual sync with cloud")
|
||||||
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD
|
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL || manager.credentialStatus === QMLManager.NOCLOUD
|
||||||
|
@ -205,12 +188,6 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
text: qsTr("GPS")
|
text: qsTr("GPS")
|
||||||
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
|
enabled: manager.credentialStatus === QMLManager.VALID || manager.credentialStatus === QMLManager.VALID_EMAIL
|
||||||
visible: (Qt.platform.os !== "ios")
|
visible: (Qt.platform.os !== "ios")
|
||||||
Kirigami.Action {
|
|
||||||
text: qsTr("GPS-tag dives")
|
|
||||||
onTriggered: {
|
|
||||||
manager.applyGpsData();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("Upload GPS data")
|
text: qsTr("Upload GPS data")
|
||||||
|
@ -242,6 +219,36 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("About")
|
||||||
|
onTriggered: {
|
||||||
|
stackView.push(aboutWindow)
|
||||||
|
detailsWindow.endEditMode()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Settings")
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Cloud credentials")
|
||||||
|
onTriggered: {
|
||||||
|
returnTopPage()
|
||||||
|
oldStatus = manager.credentialStatus
|
||||||
|
if (diveList.numDives > 0) {
|
||||||
|
manager.startPageText = "Enter different credentials or return to dive list"
|
||||||
|
} else {
|
||||||
|
manager.startPageText = "Enter valid cloud storage credentials"
|
||||||
|
}
|
||||||
|
manager.credentialStatus = QMLManager.UNKNOWN
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Kirigami.Action {
|
||||||
|
text: qsTr("Preferences")
|
||||||
|
onTriggered: {
|
||||||
|
stackView.push(prefsWindow)
|
||||||
|
detailsWindow.endEditMode()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("Developer")
|
text: qsTr("Developer")
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
@ -259,17 +266,10 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: qsTr("User manual")
|
text: qsTr("Help")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-user-manual/")
|
Qt.openUrlExternally("https://subsurface-divelog.org/documentation/subsurface-mobile-user-manual/")
|
||||||
}
|
}
|
||||||
},
|
|
||||||
Kirigami.Action {
|
|
||||||
text: qsTr("About")
|
|
||||||
onTriggered: {
|
|
||||||
stackView.push(aboutWindow)
|
|
||||||
detailsWindow.endEditMode()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
] // end actions
|
] // end actions
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue