2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-11-03 21:04:57 +00:00
|
|
|
import QtGraphicalEffects 1.13
|
2020-05-27 21:28:25 +00:00
|
|
|
import "../../../../imports"
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../../../../shared"
|
2020-09-17 16:42:59 +00:00
|
|
|
import "../../../../shared/status"
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: advancedContainer
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-07-01 17:35:57 +00:00
|
|
|
id: title
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "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-06-18 12:03:11 +00:00
|
|
|
|
2020-07-20 14:28:32 +00:00
|
|
|
RowLayout {
|
|
|
|
id: walletTabSettings
|
2020-07-21 21:03:22 +00:00
|
|
|
anchors.top: title.bottom
|
2020-07-20 14:28:32 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-08-18 19:10:30 +00:00
|
|
|
|
2020-06-26 14:08:08 +00:00
|
|
|
StyledText {
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Wallet Tab"
|
|
|
|
text: qsTrId("wallet-tab")
|
2020-06-26 14:08:08 +00:00
|
|
|
}
|
2020-09-17 16:42:59 +00:00
|
|
|
StatusSwitch {
|
2020-09-10 15:26:45 +00:00
|
|
|
checked: appSettings.walletEnabled
|
2020-06-26 14:08:08 +00:00
|
|
|
onCheckedChanged: function(value) {
|
2020-09-15 19:47:13 +00:00
|
|
|
appSettings.walletEnabled = this.checked
|
2020-06-26 14:08:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
StyledText {
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "NOT RECOMMENDED - Use at your own risk"
|
|
|
|
text: qsTrId("not-recommended---use-at-your-own-risk")
|
2020-06-26 14:08:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-18 12:03:11 +00:00
|
|
|
RowLayout {
|
2020-09-22 15:12:48 +00:00
|
|
|
id: browserTabSettings
|
2020-08-14 17:26:36 +00:00
|
|
|
anchors.top: walletTabSettings.bottom
|
2020-06-18 12:03:11 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-09-22 15:12:48 +00:00
|
|
|
StyledText {
|
|
|
|
//% "Browser Tab"
|
|
|
|
text: qsTrId("browser-tab")
|
|
|
|
}
|
|
|
|
StatusSwitch {
|
|
|
|
checked: appSettings.browserEnabled
|
|
|
|
onCheckedChanged: function(value) {
|
|
|
|
appSettings.browserEnabled = this.checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
StyledText {
|
|
|
|
//% "experimental (web3 not supported yet)"
|
|
|
|
text: qsTrId("experimental-(web3-not-supported-yet)")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
id: nodeTabSettings
|
|
|
|
anchors.top: browserTabSettings.bottom
|
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Node Management Tab"
|
|
|
|
text: qsTrId("node-management-tab")
|
2020-06-18 12:03:11 +00:00
|
|
|
}
|
2020-09-17 16:42:59 +00:00
|
|
|
StatusSwitch {
|
2020-06-18 12:03:11 +00:00
|
|
|
checked: nodeBtn.enabled
|
|
|
|
onCheckedChanged: function(value) {
|
|
|
|
nodeBtn.enabled = this.checked
|
|
|
|
}
|
|
|
|
}
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "under development"
|
|
|
|
text: qsTrId("under-development")
|
2020-06-18 12:03:11 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-14 17:26:36 +00:00
|
|
|
|
2020-11-23 19:14:48 +00:00
|
|
|
Item {
|
2020-07-16 06:23:00 +00:00
|
|
|
id: networkTabSettings
|
2020-07-21 21:03:22 +00:00
|
|
|
anchors.top: nodeTabSettings.bottom
|
2020-07-16 06:23:00 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
2020-11-23 19:14:48 +00:00
|
|
|
width: parent.width - 20
|
|
|
|
height: networkText.height
|
|
|
|
|
2020-07-16 06:23:00 +00:00
|
|
|
StyledText {
|
2020-11-23 19:14:48 +00:00
|
|
|
id: networkText
|
|
|
|
text: qsTr("Network")
|
|
|
|
font.pixelSize: 15
|
2020-07-16 06:23:00 +00:00
|
|
|
}
|
2020-11-23 19:14:48 +00:00
|
|
|
|
2020-07-16 06:23:00 +00:00
|
|
|
StyledText {
|
2020-11-23 20:41:57 +00:00
|
|
|
text: Utils.getNetworkName(profileModel.network)
|
2020-11-23 19:14:48 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
anchors.right: caret3.left
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
}
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: caret3
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.verticalCenter: networkText.verticalCenter
|
|
|
|
source: "../../../img/caret.svg"
|
|
|
|
width: 13
|
|
|
|
height: 7
|
|
|
|
rotation: -90
|
|
|
|
}
|
|
|
|
|
|
|
|
ColorOverlay {
|
|
|
|
anchors.fill: caret3
|
|
|
|
source: caret2
|
|
|
|
color: Style.current.darkGrey
|
|
|
|
rotation: -90
|
|
|
|
}
|
|
|
|
|
|
|
|
NetworksModal {
|
|
|
|
id: networksModal
|
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: networksModal.open()
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
2020-07-16 06:23:00 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-25 09:00:03 +00:00
|
|
|
|
2020-11-03 21:04:57 +00:00
|
|
|
Item {
|
|
|
|
id: fleetSetting
|
|
|
|
anchors.top: networkTabSettings.bottom
|
2020-11-23 19:14:48 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
width: parent.width - 20
|
2020-11-03 21:04:57 +00:00
|
|
|
height: fleetText.height
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: fleetText
|
|
|
|
text: qsTr("Fleet")
|
|
|
|
font.pixelSize: 15
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
text: profileModel.fleets.fleet
|
|
|
|
font.pixelSize: 15
|
|
|
|
anchors.right: caret2.left
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
}
|
|
|
|
|
|
|
|
SVGImage {
|
|
|
|
id: caret2
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.verticalCenter: fleetText.verticalCenter
|
|
|
|
source: "../../../img/caret.svg"
|
|
|
|
width: 13
|
|
|
|
height: 7
|
|
|
|
rotation: -90
|
|
|
|
}
|
|
|
|
|
|
|
|
ColorOverlay {
|
|
|
|
anchors.fill: caret2
|
|
|
|
source: caret2
|
|
|
|
color: Style.current.darkGrey
|
|
|
|
rotation: -90
|
|
|
|
}
|
|
|
|
|
|
|
|
FleetsModal {
|
|
|
|
id: fleetModal
|
|
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: fleetModal.open()
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-25 09:00:03 +00:00
|
|
|
RowLayout {
|
2020-08-27 17:28:31 +00:00
|
|
|
id: uiCatalog
|
2020-11-03 21:04:57 +00:00
|
|
|
anchors.top: fleetSetting.bottom
|
2020-08-25 09:00:03 +00:00
|
|
|
anchors.topMargin: 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
Component.onCompleted: {
|
2020-08-28 17:48:39 +00:00
|
|
|
uiComponentBtn.enabled = false
|
2020-08-25 09:00:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "UI Components"
|
|
|
|
text: qsTrId("ui-components")
|
2020-08-25 09:00:03 +00:00
|
|
|
}
|
2020-08-27 17:28:31 +00:00
|
|
|
|
2020-09-17 16:42:59 +00:00
|
|
|
StatusSwitch {
|
2020-08-25 09:00:03 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2020-06-18 12:03:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;height:400;width:700}
|
2020-05-27 21:28:25 +00:00
|
|
|
}
|
2020-06-18 12:03:11 +00:00
|
|
|
##^##*/
|