Files
amnezia-client/client/ui/qml/Pages/PageNewServer.qml
T

64 lines
1.6 KiB
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
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.NewServer
//logic: {}
2021-09-08 15:09:16 +03:00
BackButton {
id: back_from_new_server
}
2021-09-08 21:24:09 +03:00
Caption {
id: caption
2021-07-28 16:13:29 +07:00
text: qsTr("Setup your server to use VPN")
}
LabelType {
2021-09-08 21:24:09 +03:00
id: labelWizard
2021-07-28 16:13:29 +07:00
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTr("If you want easily configure your server just run Wizard")
2021-09-08 21:24:09 +03:00
width: parent.width - 80
anchors.top: caption.bottom
anchors.topMargin: 30
2021-07-28 16:13:29 +07:00
}
BlueButtonType {
2021-09-08 21:24:09 +03:00
id: pushButtonWizard
2021-07-28 16:13:29 +07:00
text: qsTr("Run Setup Wizard")
2021-09-08 21:24:09 +03:00
anchors.top: labelWizard.bottom
2021-11-17 15:01:48 +03:00
anchors.horizontalCenter: parent.horizontalCenter
2021-09-08 21:24:09 +03:00
anchors.topMargin: 10
2021-07-28 16:13:29 +07:00
onClicked: {
2021-08-09 00:41:52 +07:00
UiLogic.goToPage(PageEnum.Wizard);
2021-07-28 16:13:29 +07:00
}
}
2021-09-08 21:24:09 +03:00
LabelType {
id: labelManual
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
text: qsTr("Press configure manually to choose VPN protocols you want to install")
width: parent.width - 80
anchors.top: pushButtonWizard.bottom
anchors.topMargin: 40
}
2021-07-28 16:13:29 +07:00
BlueButtonType {
text: qsTr("Configure VPN protocols manually")
anchors.horizontalCenter: parent.horizontalCenter
2021-09-08 21:24:09 +03:00
anchors.top: labelManual.bottom
anchors.topMargin: 10
2021-07-28 16:13:29 +07:00
onClicked: {
2021-08-09 00:41:52 +07:00
UiLogic.goToPage(PageEnum.NewServerProtocols);
2021-07-28 16:13:29 +07:00
}
}
2021-09-08 21:24:09 +03:00
Logo {
2021-09-20 21:51:28 +03:00
anchors.bottom: parent.bottom
2021-07-28 16:13:29 +07:00
}
}