2021-01-04 21:23:20 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-06 09:16:39 +00:00
|
|
|
import "../../../../shared"
|
2021-10-14 11:33:34 +00:00
|
|
|
import "../../../../shared/popups"
|
2021-10-06 09:16:39 +00:00
|
|
|
import "../../../../shared/status"
|
2021-01-04 21:23:20 +00:00
|
|
|
|
2021-10-06 09:16:39 +00:00
|
|
|
// TODO: replace with StatusModal
|
2021-01-04 21:23:20 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Ethereum explorer"
|
|
|
|
title: qsTrId("ethereum-explorer")
|
2021-01-04 21:23:20 +00:00
|
|
|
|
|
|
|
onClosed: {
|
|
|
|
destroy()
|
|
|
|
}
|
|
|
|
|
|
|
|
Column {
|
2021-03-19 10:25:29 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
|
|
|
|
spacing: 0
|
2021-01-04 21:23:20 +00:00
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: searchEnginGroup
|
|
|
|
}
|
|
|
|
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "None"
|
|
|
|
text: qsTrId("none")
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerNone
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2021-01-04 21:23:20 +00:00
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerNone
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2021-01-04 21:23:20 +00:00
|
|
|
text: "etherscan.io"
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEtherscan
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2021-01-04 21:23:20 +00:00
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEtherscan
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2021-01-04 21:23:20 +00:00
|
|
|
text: "ethplorer.io"
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEthplorer
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2021-01-04 21:23:20 +00:00
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEthplorer
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2021-01-04 21:23:20 +00:00
|
|
|
text: "blockchair.com"
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerBlockchair
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2021-01-04 21:23:20 +00:00
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerBlockchair
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|