diff options
author | jan Iversen <jan@casacondor.com> | 2019-11-19 17:52:20 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-03 21:30:39 -0800 |
commit | 117aa13dbe05bb38ccd0cb2dc23a631edfa5fb66 (patch) | |
tree | 772a62fcfdc6b960cb8a6b1d256c2114df4475ed /mobile-widgets/qml/Export.qml | |
parent | 093813698cf716e845e2ab3a9e6e6584206d18e8 (diff) | |
download | subsurface-117aa13dbe05bb38ccd0cb2dc23a631edfa5fb66.tar.gz |
mobile-widgets/qml: add upload dialog to export page
divelogs.de and diveShare are web uploads, which need a special
custom dialog.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml/Export.qml')
-rw-r--r-- | mobile-widgets/qml/Export.qml | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/mobile-widgets/qml/Export.qml b/mobile-widgets/qml/Export.qml index c364ad209..3121daa13 100644 --- a/mobile-widgets/qml/Export.qml +++ b/mobile-widgets/qml/Export.qml @@ -26,6 +26,50 @@ Kirigami.ScrollablePage { } } + Dialog { + id: uploadDialog + title: radioGroup.current.text + standardButtons: StandardButton.Apply | StandardButton.Cancel + + GridLayout { + rowSpacing: 10 + columnSpacing: 10 + columns: 2 + + Text { + text: qsTr("User ID") + } + TextField { + id: fieldUserID + Layout.fillWidth: true + inputMethodHints: Qt.ImhNoAutoUppercase + } + Text { + text: qsTr("Password:") + } + TextField { + id: fieldPassword + Layout.fillWidth: true + inputMethodHints: Qt.ImhSensitiveData | + Qt.ImhHiddenText | + Qt.ImhNoAutoUppercase + echoMode: TextInput.PasswordEchoOnEdit + } + ProgressBar { + indeterminate: true + } + } + + onApply: { + manager.exportToWEB(selectedExport, fieldUserID.text, fieldPassword.text, anonymize.checked) + close() + } + onRejected: { + close() + } + + } + ColumnLayout { width: parent.width spacing: 1 @@ -165,7 +209,7 @@ Kirigami.ScrollablePage { onClicked: { if (selectedExport === ExportType.EX_DIVELOGS_DE || selectedExport === ExportType.EX_DIVESHARE) { - console.log("Upload TO BE DONE, You chose: " + selectedExport) + uploadDialog.open() } else { saveAsDialog.open() } |