mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:23:25 +00:00
mobile/qml: Integrate/activate diveshare in Export
Integrate diveshare in Export Activate diveshare radio button Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
parent
53069fe777
commit
080ddc0df2
1 changed files with 20 additions and 4 deletions
|
@ -59,6 +59,11 @@ Kirigami.ScrollablePage {
|
||||||
Qt.ImhNoAutoUppercase
|
Qt.ImhNoAutoUppercase
|
||||||
echoMode: TextInput.PasswordEchoOnEdit
|
echoMode: TextInput.PasswordEchoOnEdit
|
||||||
}
|
}
|
||||||
|
CheckBox {
|
||||||
|
id: fieldPrivate
|
||||||
|
Layout.fillWidth: true
|
||||||
|
text: qsTr("Private")
|
||||||
|
}
|
||||||
ProgressBar {
|
ProgressBar {
|
||||||
id: progress
|
id: progress
|
||||||
value: 0.0
|
value: 0.0
|
||||||
|
@ -79,10 +84,14 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
if (fieldPassword.text !== PrefCloudStorage.divelogde_pass)
|
if (fieldPassword.text !== PrefCloudStorage.divelogde_pass)
|
||||||
PrefCloudStorage.divelogde_pass = fieldPassword.text
|
PrefCloudStorage.divelogde_pass = fieldPassword.text
|
||||||
|
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
|
||||||
} else {
|
} else {
|
||||||
// TO BE IMPLEMENTED
|
if (fieldUserID.text !== PrefCloudStorage.diveshare_uid) {
|
||||||
|
PrefCloudStorage.diveshare_uid = fieldUserID.text
|
||||||
|
}
|
||||||
|
PrefCloudStorage.diveshare_private = fieldPrivate.checked
|
||||||
|
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, fieldPrivate.checked)
|
||||||
}
|
}
|
||||||
manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked)
|
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
pageStack.pop()
|
pageStack.pop()
|
||||||
|
@ -150,7 +159,6 @@ Kirigami.ScrollablePage {
|
||||||
}
|
}
|
||||||
RadioButton {
|
RadioButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: false // TEMPORARY MEASURE, until non UI related WEB service is ready
|
|
||||||
text: qsTr("Upload DiveShare")
|
text: qsTr("Upload DiveShare")
|
||||||
exclusiveGroup: radioGroup
|
exclusiveGroup: radioGroup
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -253,9 +261,17 @@ Kirigami.ScrollablePage {
|
||||||
fieldPassword.text = PrefCloudStorage.divelogde_pass
|
fieldPassword.text = PrefCloudStorage.divelogde_pass
|
||||||
anonymize.visible = false
|
anonymize.visible = false
|
||||||
statusText.text = ""
|
statusText.text = ""
|
||||||
|
fieldPrivate.visible = false
|
||||||
uploadDialog.open()
|
uploadDialog.open()
|
||||||
} else if (selectedExport === ExportType.EX_DIVESHARE) {
|
} else if (selectedExport === ExportType.EX_DIVESHARE) {
|
||||||
// TO BE IMPLEMENTED
|
textUserID.visible = true
|
||||||
|
fieldUserID.visible = true
|
||||||
|
fieldUserID.text = PrefCloudStorage.diveshare_uid
|
||||||
|
fieldPrivate.visible = true
|
||||||
|
fieldPrivate.checked = PrefCloudStorage.diveshare_private
|
||||||
|
textPassword.visible = false
|
||||||
|
fieldPassword.visible = false
|
||||||
|
uploadDialog.open()
|
||||||
} else {
|
} else {
|
||||||
saveAsDialog.open()
|
saveAsDialog.open()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue