2021-07-28 16:13:29 +07:00
import QtQuick 2.12
import QtQuick . Controls 2.12
2021-08-09 00:41:52 +07:00
import PageEnum 1.0
2021-07-28 16:13:29 +07:00
import "./"
2021-08-19 01:27:22 +03:00
import "../Controls"
import "../Config"
2021-07-28 16:13:29 +07:00
2021-09-14 00:39:07 +03:00
PageBase {
2021-07-28 16:13:29 +07:00
id: root
2021-09-14 00:39:07 +03:00
page: PageEnum . Wizard
logic: WizardLogic
2021-09-08 15:09:16 +03:00
BackButton {
2021-07-28 16:13:29 +07:00
id: back_from_setup_wizard
}
2021-09-08 21:24:09 +03:00
Caption {
2021-07-28 16:13:29 +07:00
text: qsTr ( "Setup your server to use VPN" )
}
Item {
x: 10
y: 70
width: 361
height: 561
LabelType {
horizontalAlignment: Text . AlignLeft
verticalAlignment: Text . AlignTop
text: qsTr ( "I'm living in country with high censorship level. Many of foreign web sites and VPNs blocked by my government. I want to setup reliable VPN, which is invisible for government." )
wrapMode: Text . Wrap
x: 30
y: 40
width: 321
height: 121
}
LabelType {
horizontalAlignment: Text . AlignLeft
verticalAlignment: Text . AlignTop
text: qsTr ( "I'm living in country with medium censorship level. Some web sites blocked by my government, but VPNs are not blocked at all. I want to setup flexible solution." )
wrapMode: Text . Wrap
x: 30
y: 210
width: 321
height: 121
}
LabelType {
horizontalAlignment: Text . AlignLeft
verticalAlignment: Text . AlignTop
text: qsTr ( "I just want to improve my privacy in internet." )
wrapMode: Text . Wrap
x: 30
y: 360
width: 321
height: 121
}
BlueButtonType {
anchors.horizontalCenter: parent . horizontalCenter
y: 490
width: 321
height: 40
text: qsTr ( "Next" )
onClicked: {
if ( radioButton_setup_wizard_high . checked ) {
2021-08-09 00:41:52 +07:00
UiLogic . goToPage ( PageEnum . WizardHigh ) ;
2021-07-28 16:13:29 +07:00
} else if ( radioButton_setup_wizard_medium . checked ) {
2021-08-09 00:41:52 +07:00
UiLogic . goToPage ( PageEnum . WizardMedium ) ;
2021-07-28 16:13:29 +07:00
} else if ( radioButton_setup_wizard_low . checked ) {
2021-08-09 00:41:52 +07:00
UiLogic . goToPage ( PageEnum . WizardLow ) ;
2021-07-28 16:13:29 +07:00
}
}
}
RadioButtonType {
id: radioButton_setup_wizard_high
x: 10
y: 10
width: 331
height: 25
text: qsTr ( "High censorship level" )
2021-09-08 14:23:02 +03:00
checked: WizardLogic . radioButtonHighChecked
2021-07-28 16:13:29 +07:00
onCheckedChanged: {
2021-09-08 14:23:02 +03:00
WizardLogic . radioButtonHighChecked = checked
2021-07-28 16:13:29 +07:00
}
}
RadioButtonType {
id: radioButton_setup_wizard_medium
x: 10
y: 330
width: 331
height: 25
text: qsTr ( "Low censorship level" )
2021-09-08 14:23:02 +03:00
checked: WizardLogic . radioButtonLowChecked
2021-07-28 16:13:29 +07:00
onCheckedChanged: {
2021-09-08 14:23:02 +03:00
WizardLogic . radioButtonLowChecked = checked
2021-07-28 16:13:29 +07:00
}
}
RadioButtonType {
id: radioButton_setup_wizard_low
x: 10
y: 180
width: 331
height: 25
text: qsTr ( "Medium censorship level" )
2021-09-08 14:23:02 +03:00
checked: WizardLogic . radioButtonMediumChecked
2021-07-28 16:13:29 +07:00
onCheckedChanged: {
2021-09-08 14:23:02 +03:00
WizardLogic . radioButtonMediumChecked = checked
2021-07-28 16:13:29 +07:00
}
}
}
}