status-desktop/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml

134 lines
3.8 KiB
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
2020-05-27 21:28:25 +00:00
import "../../../../imports"
import "../../../../shared"
2020-05-27 21:28:25 +00:00
Item {
property var appSettings
2020-05-27 21:28:25 +00:00
id: advancedContainer
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true
StyledText {
id: title
//% "Advanced settings"
text: qsTrId("advanced-settings")
2020-05-27 21:28:25 +00:00
anchors.left: parent.left
anchors.leftMargin: 24
anchors.top: parent.top
anchors.topMargin: 24
font.weight: Font.Bold
font.pixelSize: 20
}
2020-07-20 14:28:32 +00:00
RowLayout {
id: walletTabSettings
anchors.top: title.bottom
2020-07-20 14:28:32 +00:00
anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: 24
Component.onCompleted: {
walletBtn.enabled = true
}
StyledText {
//% "Wallet Tab"
text: qsTrId("wallet-tab")
}
Switch {
checked: walletBtn.enabled
onCheckedChanged: function(value) {
walletBtn.enabled = this.checked
}
}
StyledText {
//% "NOT RECOMMENDED - Use at your own risk"
text: qsTrId("not-recommended---use-at-your-own-risk")
}
}
RowLayout {
id: nodeTabSettings
2020-08-14 17:26:36 +00:00
anchors.top: walletTabSettings.bottom
anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: 24
StyledText {
//% "Node Management Tab"
text: qsTrId("node-management-tab")
}
Switch {
checked: nodeBtn.enabled
onCheckedChanged: function(value) {
nodeBtn.enabled = this.checked
}
}
StyledText {
//% "under development"
text: qsTrId("under-development")
}
}
2020-08-14 17:26:36 +00:00
RowLayout {
id: networkTabSettings
anchors.top: nodeTabSettings.bottom
anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: 24
StyledText {
2020-07-16 15:20:29 +00:00
//% "Enable testnet (Ropsten)\nCurrent network: %1"
text: qsTrId("enable-testnet--ropsten--ncurrent-network---1").arg(profileModel.network)
}
Switch {
checked: profileModel.network === "testnet_rpc"
onCheckedChanged: {
if (checked && profileModel.network === "testnet_rpc" || !checked && profileModel.network === "mainnet_rpc"){
return;
}
profileModel.network = checked ? "testnet_rpc" : "mainnet_rpc";
}
}
StyledText {
2020-07-16 15:20:29 +00:00
//% "Under development\nNOTE: You will be logged out and all installed\nsticker packs will be removed and will\nneed to be reinstalled. Purchased sticker\npacks will not need to be re-purchased."
text: qsTrId("under-development-nnote--you-will-be-logged-out-and-all-installed-nsticker-packs-will-be-removed-and-will-nneed-to-be-reinstalled--purchased-sticker-npacks-will-not-need-to-be-re-purchased-")
}
}
2020-08-25 09:00:03 +00:00
RowLayout {
id: uiCatalong
anchors.top: networkTabSettings.bottom
anchors.topMargin: 20
anchors.left: parent.left
anchors.leftMargin: 24
Component.onCompleted: {
uiComponentBtn.enabled = false
}
StyledText {
2020-08-26 15:52:26 +00:00
//% "UI Components"
text: qsTrId("ui-components")
2020-08-25 09:00:03 +00:00
}
Switch {
checked: uiComponentBtn.enabled
onCheckedChanged: function(value) {
uiComponentBtn.enabled = this.checked
}
}
StyledText {
2020-08-26 15:52:26 +00:00
//% "Developer setting"
text: qsTrId("developer-setting")
2020-08-25 09:00:03 +00:00
}
}
}
/*##^##
Designer {
D{i:0;height:400;width:700}
2020-05-27 21:28:25 +00:00
}
##^##*/