2015-11-07 00:45:40 +00:00
import QtQuick 2.5
import QtQuick . Controls 1.2
import QtQuick . Layouts 1.1
2015-11-29 16:27:20 +00:00
import org . kde . plasma . mobilecomponents 0.2 as MobileComponents
2015-11-07 00:45:40 +00:00
Item {
ColumnLayout {
id: startpage
anchors.fill: parent
2015-11-29 16:27:20 +00:00
anchors.margins: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
property int buttonWidth: welcomeText . width * 0.66
2015-11-29 16:27:20 +00:00
MobileComponents . Label {
Layout.bottomMargin: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
text: "Subsurface Divelog"
font.pointSize: welcomeText . font . pointSize * 2
}
2015-11-29 16:27:20 +00:00
MobileComponents . Label {
2015-11-07 00:45:40 +00:00
id: welcomeText
Layout.fillWidth: true
2015-11-29 16:27:20 +00:00
Layout.bottomMargin: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
text: "No recorded dives found. You can download your dives to this device from the Subsurface cloud storage service, from your dive computer, or add them manually."
wrapMode: Text . WordWrap
Layout.columnSpan: 2
}
Button {
id: cloudstorageButton
2015-11-29 16:27:20 +00:00
Layout.bottomMargin: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
Layout.preferredWidth: startpage . buttonWidth
text: "Connect to CloudStorage..."
onClicked: {
2015-12-03 22:06:52 +00:00
stackView . push ( cloudCredWindow )
2015-11-07 00:45:40 +00:00
}
}
Button {
id: computerButton
Layout.preferredWidth: startpage . buttonWidth
2015-11-29 16:27:20 +00:00
Layout.bottomMargin: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
text: "Transfer from dive computer..."
onClicked: {
stackView . push ( downloadDivesWindow )
}
}
Button {
id: manualButton
Layout.preferredWidth: startpage . buttonWidth
2015-11-29 16:27:20 +00:00
Layout.bottomMargin: MobileComponents . Units . largeSpacing
2015-11-07 00:45:40 +00:00
text: "Add dive manually..."
onClicked: {
manager . addDive ( ) ;
stackView . push ( detailsWindow )
}
}
Item {
width: parent . width
Layout.fillHeight: true
}
}
2015-12-03 22:06:52 +00:00
}