mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 14:40:28 +00:00
7a94360a6d
This makes the cloud credential entry page much simpler, separate page. It also removes the two colums and uses the label of the check box instead of having a separate label item. The preferences page of course also gets simpler by doing this. Here I kept the two columns, though. Finally the code for the old context menu was removed - not sure why this was still here. Next I need to fix the savePreferences() call to do the right thing in each case. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
61 lines
1.6 KiB
QML
61 lines
1.6 KiB
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.2
|
|
import QtQuick.Layouts 1.1
|
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
|
|
|
Item {
|
|
ColumnLayout {
|
|
id: startpage
|
|
anchors.fill: parent
|
|
anchors.margins: MobileComponents.Units.largeSpacing
|
|
|
|
property int buttonWidth: welcomeText.width * 0.66
|
|
|
|
MobileComponents.Label {
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
|
text: "Subsurface Divelog"
|
|
font.pointSize: welcomeText.font.pointSize * 2
|
|
}
|
|
|
|
MobileComponents.Label {
|
|
id: welcomeText
|
|
Layout.fillWidth: true
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
|
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
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
|
Layout.preferredWidth: startpage.buttonWidth
|
|
text: "Connect to CloudStorage..."
|
|
onClicked: {
|
|
stackView.push(cloudCredWindow)
|
|
}
|
|
}
|
|
Button {
|
|
id: computerButton
|
|
Layout.preferredWidth: startpage.buttonWidth
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
|
text: "Transfer from dive computer..."
|
|
onClicked: {
|
|
stackView.push(downloadDivesWindow)
|
|
}
|
|
}
|
|
Button {
|
|
id: manualButton
|
|
Layout.preferredWidth: startpage.buttonWidth
|
|
Layout.bottomMargin: MobileComponents.Units.largeSpacing
|
|
text: "Add dive manually..."
|
|
onClicked: {
|
|
manager.addDive();
|
|
stackView.push(detailsWindow)
|
|
}
|
|
}
|
|
Item {
|
|
width: parent.width
|
|
Layout.fillHeight: true
|
|
}
|
|
}
|
|
}
|