2015-11-07 00:45:40 +00:00
|
|
|
import QtQuick 2.5
|
|
|
|
import QtQuick.Controls 1.2
|
2016-01-20 06:32:37 +00:00
|
|
|
import QtQuick.Controls.Styles 1.2
|
2015-11-07 00:45:40 +00:00
|
|
|
import QtQuick.Layouts 1.1
|
2015-11-29 16:27:20 +00:00
|
|
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
2016-01-20 06:32:37 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2016-02-11 14:59:10 +00:00
|
|
|
ColumnLayout {
|
|
|
|
id: startpage
|
|
|
|
width: subsurfaceTheme.columnWidth
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2016-02-11 14:59:10 +00:00
|
|
|
property int buttonWidth: width * 0.9
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2016-02-14 05:09:33 +00:00
|
|
|
function saveCredentials() { cloudCredentials.saveCredentials() }
|
|
|
|
|
2016-02-11 14:59:10 +00:00
|
|
|
MobileComponents.Heading {
|
2016-02-14 07:28:06 +00:00
|
|
|
Layout.margins: MobileComponents.Units.gridUnit
|
|
|
|
text: "Subsurface-mobile"
|
2016-02-11 14:59:10 +00:00
|
|
|
}
|
|
|
|
MobileComponents.Label {
|
|
|
|
id: explanationText
|
|
|
|
Layout.fillWidth: true
|
2016-02-14 07:28:06 +00:00
|
|
|
Layout.margins: MobileComponents.Units.gridUnit
|
2016-02-11 14:59:10 +00:00
|
|
|
text: "In order to use Subsurface-mobile you need to have a Subsurface cloud storage account " +
|
|
|
|
"(which can be created with the Subsurface desktop application)."
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
MobileComponents.Label {
|
|
|
|
id: messageArea
|
|
|
|
Layout.fillWidth: true
|
2016-02-14 07:28:06 +00:00
|
|
|
Layout.margins: MobileComponents.Units.gridUnit
|
2016-02-11 14:59:10 +00:00
|
|
|
text: manager.startPageText
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
CloudCredentials {
|
2016-02-14 05:09:33 +00:00
|
|
|
id: cloudCredentials
|
2016-02-11 14:59:10 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.margins: MobileComponents.Units.gridUnit
|
|
|
|
Layout.topMargin: MobileComponents.Units.gridUnit * 2
|
|
|
|
property int headingLevel: 3
|
2015-11-07 00:45:40 +00:00
|
|
|
}
|
2015-12-03 22:06:52 +00:00
|
|
|
}
|