2017-04-27 18:30:36 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-11-07 00:45:40 +00:00
|
|
|
import QtQuick 2.5
|
|
|
|
import QtQuick.Layouts 1.1
|
2017-03-31 14:15:14 +00:00
|
|
|
import org.kde.kirigami 2.0 as Kirigami
|
2016-01-20 06:32:37 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2017-04-03 12:08:00 +00:00
|
|
|
|
|
|
|
Kirigami.ScrollablePage {
|
2016-02-11 14:59:10 +00:00
|
|
|
id: startpage
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2016-02-14 05:09:33 +00:00
|
|
|
function saveCredentials() { cloudCredentials.saveCredentials() }
|
|
|
|
|
2017-04-03 12:08:00 +00:00
|
|
|
ColumnLayout {
|
|
|
|
Kirigami.Label {
|
|
|
|
id: explanationText
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: Kirigami.Units.gridUnit
|
|
|
|
Layout.topMargin: Kirigami.Units.gridUnit * 3
|
|
|
|
text: qsTr("To use Subsurface-mobile with Subsurface cloud storage, please enter your cloud credentials.\n") +
|
|
|
|
qsTr("If this is the first time you use Subsurface cloud storage, enter a valid email (all lower case) " +
|
|
|
|
"and a password of your choice (letters and numbers). " +
|
|
|
|
"The server will send a PIN to the email address provided that you will have to enter here.\n\n") +
|
|
|
|
qsTr("To use Subsurface-mobile only with local data on this device, tap " +
|
|
|
|
"on the no cloud icon below.")
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
Kirigami.Label {
|
|
|
|
id: messageArea
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: Kirigami.Units.gridUnit
|
|
|
|
Layout.topMargin: 0
|
|
|
|
text: manager.startPageText
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
CloudCredentials {
|
|
|
|
id: cloudCredentials
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: Kirigami.Units.gridUnit
|
|
|
|
Layout.topMargin: 0
|
|
|
|
property int headingLevel: 3
|
|
|
|
}
|
2015-11-07 00:45:40 +00:00
|
|
|
}
|
2015-12-03 22:06:52 +00:00
|
|
|
}
|