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
|
|
|
|
|
|
|
Item {
|
|
|
|
ColumnLayout {
|
|
|
|
id: startpage
|
|
|
|
anchors.fill: parent
|
2015-12-08 01:08:37 +00:00
|
|
|
anchors.margins: MobileComponents.Units.gridUnit / 2
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2016-01-20 06:32:37 +00:00
|
|
|
property int buttonWidth: width * 0.9
|
2015-11-07 00:45:40 +00:00
|
|
|
|
2015-12-04 00:19:11 +00:00
|
|
|
MobileComponents.Heading {
|
2015-11-29 16:27:20 +00:00
|
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
2015-11-07 00:45:40 +00:00
|
|
|
text: "Subsurface Divelog"
|
|
|
|
}
|
|
|
|
|
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-12-15 07:00:19 +00:00
|
|
|
text: manager.startPageText
|
2015-11-07 00:45:40 +00:00
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
}
|
2016-01-20 11:47:58 +00:00
|
|
|
SubsurfaceButton {
|
2015-11-07 00:45:40 +00:00
|
|
|
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
|
2016-01-20 06:32:37 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2015-11-07 00:45:40 +00:00
|
|
|
text: "Connect to CloudStorage..."
|
|
|
|
onClicked: {
|
2015-12-03 22:06:52 +00:00
|
|
|
stackView.push(cloudCredWindow)
|
2015-11-07 00:45:40 +00:00
|
|
|
}
|
|
|
|
}
|
2016-02-07 18:09:06 +00:00
|
|
|
/*
|
2016-01-20 11:47:58 +00:00
|
|
|
SubsurfaceButton {
|
2015-11-07 00:45:40 +00:00
|
|
|
id: computerButton
|
|
|
|
Layout.preferredWidth: startpage.buttonWidth
|
2015-11-29 16:27:20 +00:00
|
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
2016-01-20 06:32:37 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2015-11-07 00:45:40 +00:00
|
|
|
text: "Transfer from dive computer..."
|
|
|
|
onClicked: {
|
|
|
|
stackView.push(downloadDivesWindow)
|
|
|
|
}
|
|
|
|
}
|
2016-02-07 18:09:06 +00:00
|
|
|
*/
|
2016-01-20 11:47:58 +00:00
|
|
|
SubsurfaceButton {
|
2015-11-07 00:45:40 +00:00
|
|
|
id: manualButton
|
|
|
|
Layout.preferredWidth: startpage.buttonWidth
|
2015-11-29 16:27:20 +00:00
|
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
2016-01-20 06:32:37 +00:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
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
|
|
|
}
|