2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml.Models 2.15
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2021-10-12 18:26:02 +00:00
|
|
|
|
2021-11-30 15:45:36 +00:00
|
|
|
import StatusQ.Core 0.1
|
2024-03-11 14:31:28 +00:00
|
|
|
import StatusQ.Core.Utils 0.1 as SQUtils
|
2021-11-30 15:45:36 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2021-10-20 12:23:58 +00:00
|
|
|
import StatusQ.Controls 0.1
|
2022-07-14 14:40:06 +00:00
|
|
|
import StatusQ.Popups.Dialog 0.1
|
2021-10-20 12:23:58 +00:00
|
|
|
|
2022-07-14 14:40:06 +00:00
|
|
|
StatusDialog {
|
2022-07-14 16:39:16 +00:00
|
|
|
id: root
|
2021-10-12 18:26:02 +00:00
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
width: 600
|
2024-10-15 19:26:12 +00:00
|
|
|
topPadding: Theme.bigPadding
|
|
|
|
bottomPadding: Theme.bigPadding
|
2022-01-17 10:34:35 +00:00
|
|
|
closePolicy: Popup.NoAutoClose
|
2021-11-30 15:45:36 +00:00
|
|
|
|
2022-07-14 14:40:06 +00: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 14:31:28 +00:00
|
|
|
text: qsTr("Get started")
|
2022-07-14 16:39:16 +00:00
|
|
|
onClicked: root.close()
|
2022-07-14 14:40:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
contentItem: ColumnLayout {
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.padding
|
2021-06-28 11:11:54 +00:00
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: acknowledge
|
|
|
|
objectName: "acknowledgeCheckBox"
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.halfPadding
|
2024-03-11 14:31:28 +00:00
|
|
|
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 11:11:54 +00:00
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
StatusCheckBox {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
id: termsOfUse
|
|
|
|
objectName: "termsOfUseCheckBox"
|
2021-11-30 15:45:36 +00:00
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
contentItem: Row {
|
|
|
|
spacing: 4
|
|
|
|
leftPadding: termsOfUse.indicator.width + termsOfUse.spacing
|
2021-11-30 15:45:36 +00:00
|
|
|
|
2024-03-11 14:31:28 +00:00
|
|
|
StatusBaseText {
|
|
|
|
text: qsTr("I accept Status")
|
|
|
|
}
|
2022-03-04 23:31:31 +00:00
|
|
|
|
2024-03-11 14:31:28 +00: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-04 23:31:31 +00:00
|
|
|
}
|
2024-03-11 14:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
text: "&"
|
|
|
|
}
|
2022-03-04 23:31:31 +00:00
|
|
|
|
2024-03-11 14:31:28 +00: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-04 23:31:31 +00:00
|
|
|
}
|
2021-06-28 11:11:54 +00:00
|
|
|
}
|
2021-07-05 06:59:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-11 14:31:28 +00: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 11:11:54 +00:00
|
|
|
}
|