2021-06-28 13:11:54 +02:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.14
|
2022-07-14 16:40:06 +02:00
|
|
|
import QtQml.Models 2.14
|
2021-06-28 13:11:54 +02:00
|
|
|
|
2021-09-28 18:04:06 +03:00
|
|
|
import utils 1.0
|
2021-10-12 20:26:02 +02:00
|
|
|
|
2021-11-30 16:45:36 +01:00
|
|
|
import StatusQ.Core 0.1
|
2024-03-11 15:31:28 +01:00
|
|
|
import StatusQ.Core.Utils 0.1 as SQUtils
|
2021-11-30 16:45:36 +01:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-10-20 14:23:58 +02:00
|
|
|
import StatusQ.Controls 0.1
|
2022-07-14 16:40:06 +02:00
|
|
|
import StatusQ.Popups.Dialog 0.1
|
2021-10-20 14:23:58 +02:00
|
|
|
|
2022-07-14 16:40:06 +02:00
|
|
|
StatusDialog {
|
2022-07-14 18:39:16 +02:00
|
|
|
id: root
|
2021-10-12 20:26:02 +02:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
width: 600
|
2022-10-28 12:55:22 +02:00
|
|
|
topPadding: Style.current.bigPadding
|
|
|
|
bottomPadding: Style.current.bigPadding
|
2022-01-17 11:34:35 +01:00
|
|
|
closePolicy: Popup.NoAutoClose
|
2021-11-30 16:45:36 +01:00
|
|
|
|
2022-07-14 16:40:06 +02:00
|
|
|
header: StatusDialogHeader {
|
|
|
|
headline.title: qsTr("Before you get started...")
|
|
|
|
actions.closeButton.visible: false
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: StatusDialogFooter {
|
|
|
|
rightButtons: ObjectModel {
|
|
|
|
StatusButton {
|
|
|
|
objectName: "getStartedStatusButton"
|
|
|
|
enabled: acknowledge.checked && termsOfUse.checked
|
2024-03-11 15:31:28 +01:00
|
|
|
text: qsTr("Get started")
|
2022-07-14 18:39:16 +02:00
|
|
|
onClicked: root.close()
|
2022-07-14 16:40:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
contentItem: ColumnLayout {
|
|
|
|
spacing: Style.current.padding
|
2021-06-28 13:11:54 +02:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
StatusCheckBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: acknowledge
|
|
|
|
objectName: "acknowledgeCheckBox"
|
|
|
|
spacing: Style.current.halfPadding
|
|
|
|
text: qsTr("I acknowledge that Status Desktop is in Beta and by using it I take the full responsibility for all risks concerning my data and funds.")
|
|
|
|
}
|
2021-06-28 13:11:54 +02:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
StatusCheckBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: termsOfUse
|
|
|
|
objectName: "termsOfUseCheckBox"
|
2021-11-30 16:45:36 +01:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
contentItem: Row {
|
|
|
|
spacing: 4
|
|
|
|
leftPadding: termsOfUse.indicator.width + termsOfUse.spacing
|
2021-11-30 16:45:36 +01:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
StatusBaseText {
|
|
|
|
text: qsTr("I accept Status")
|
|
|
|
}
|
2022-03-05 01:31:31 +02:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
StatusLinkText {
|
|
|
|
objectName: "termsOfUseLink"
|
|
|
|
text: qsTr("Terms of Use")
|
|
|
|
color: Theme.palette.primaryColor1
|
|
|
|
font.weight: Font.Medium
|
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
|
|
|
onClicked: {
|
|
|
|
detailsPopup.title = qsTr("Status Software Terms of Use")
|
|
|
|
detailsPopup.textFile = SQUtils.StringUtils.readTextFile(Qt.resolvedUrl("../../../../imports/assets/docs/terms-of-use.mdwn"))
|
|
|
|
detailsPopup.open()
|
2022-03-05 01:31:31 +02:00
|
|
|
}
|
2024-03-11 15:31:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
text: "&"
|
|
|
|
}
|
2022-03-05 01:31:31 +02:00
|
|
|
|
2024-03-11 15:31:28 +01:00
|
|
|
StatusLinkText {
|
|
|
|
objectName: "privacyPolicyLink"
|
|
|
|
text: qsTr("Privacy Policy")
|
|
|
|
color: Theme.palette.primaryColor1
|
|
|
|
font.weight: Font.Medium
|
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
|
|
|
onClicked: {
|
|
|
|
detailsPopup.title = qsTr("Status Software Privacy Statement")
|
|
|
|
detailsPopup.textFile = SQUtils.StringUtils.readTextFile(Qt.resolvedUrl("../../../../imports/assets/docs/privacy.mdwn"))
|
|
|
|
detailsPopup.open()
|
2022-03-05 01:31:31 +02:00
|
|
|
}
|
2021-06-28 13:11:54 +02:00
|
|
|
}
|
2021-07-05 08:59:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-11 15:31:28 +01:00
|
|
|
|
|
|
|
StatusDialog {
|
|
|
|
id: detailsPopup
|
|
|
|
|
|
|
|
property string textFile
|
|
|
|
|
|
|
|
width: 600
|
|
|
|
padding: 0
|
|
|
|
standardButtons: Dialog.Ok
|
|
|
|
anchors.centerIn: parent
|
|
|
|
visible: false
|
|
|
|
|
|
|
|
onClosed: textFile = ""
|
|
|
|
|
|
|
|
StatusScrollView {
|
|
|
|
id: scrollView
|
|
|
|
anchors.fill: parent
|
|
|
|
contentWidth: availableWidth
|
|
|
|
padding: 20
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
width: scrollView.availableWidth
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
textFormat: Text.MarkdownText
|
|
|
|
text: detailsPopup.textFile
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-28 13:11:54 +02:00
|
|
|
}
|