|
|
|
@ -115,20 +115,25 @@ ApplicationWindow { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
id: mainView |
|
|
|
|
color: "#00000000" |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.left: menu.right |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
|
|
|
|
|
property var txModel: ListModel { |
|
|
|
|
id: txModel |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
id: historyView |
|
|
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
|
|
property var title: "Transactions" |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.left: menu.right |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
TableView { |
|
|
|
|
id: txTableView |
|
|
|
|
anchors.fill: parent |
|
|
|
@ -143,10 +148,7 @@ ApplicationWindow { |
|
|
|
|
id: newTxView |
|
|
|
|
property var title: "New transaction" |
|
|
|
|
visible: false |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.left: menu.right |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.fill: parent |
|
|
|
|
color: "#00000000" |
|
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
@ -191,9 +193,7 @@ ApplicationWindow { |
|
|
|
|
id: networkView |
|
|
|
|
property var title: "Network" |
|
|
|
|
visible: false |
|
|
|
|
anchors.right: parent.right |
|
|
|
|
anchors.bottom: parent.bottom |
|
|
|
|
anchors.top: parent.top |
|
|
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
|
|
TableView { |
|
|
|
|
id: blockTable |
|
|
|
@ -205,11 +205,13 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
model: blockModel |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
onDoubleClicked: { |
|
|
|
|
popup.visible = true |
|
|
|
|
popup.block = eth.getBlock(blockModel.get(row).hash) |
|
|
|
|
popup.hashLabel.text = popup.block.hash |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
property var logModel: ListModel { |
|
|
|
@ -226,6 +228,29 @@ ApplicationWindow { |
|
|
|
|
model: logModel |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
signal addPlugin(string name) |
|
|
|
|
Component { |
|
|
|
|
id: pluginWindow |
|
|
|
|
Rectangle { |
|
|
|
|
anchors.fill: parent |
|
|
|
|
Label { |
|
|
|
|
id: pluginTitle |
|
|
|
|
anchors.centerIn: parent |
|
|
|
|
text: "Hello world" |
|
|
|
|
} |
|
|
|
|
Component.onCompleted: setView(this) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onAddPlugin: { |
|
|
|
|
var pluginWin = pluginWindow.createObject(mainView) |
|
|
|
|
console.log(pluginWin) |
|
|
|
|
pluginWin.pluginTitle.text = "Test" |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
FileDialog { |
|
|
|
@ -249,6 +274,7 @@ ApplicationWindow { |
|
|
|
|
} |
|
|
|
|
text: "Connect" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Button { |
|
|
|
|
id: importAppButton |
|
|
|
|
anchors.left: connectButton.right |
|
|
|
@ -304,6 +330,10 @@ ApplicationWindow { |
|
|
|
|
anchors.left: parent.left |
|
|
|
|
anchors.leftMargin: 10 |
|
|
|
|
placeholderText: "address:port" |
|
|
|
|
onAccepted: { |
|
|
|
|
ui.connectToPeer(addrField.text) |
|
|
|
|
addPeerWin.visible = false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Button { |
|
|
|
|
anchors.left: addrField.right |
|
|
|
@ -315,6 +345,9 @@ ApplicationWindow { |
|
|
|
|
addPeerWin.visible = false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Component.onCompleted: { |
|
|
|
|
addrField.focus = true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Window { |
|
|
|
@ -346,6 +379,11 @@ ApplicationWindow { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function loadPlugin(name) { |
|
|
|
|
console.log("Loading plugin" + name) |
|
|
|
|
mainView.addPlugin(name) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function setWalletValue(value) { |
|
|
|
|
walletValueLabel.text = value |
|
|
|
|
} |
|
|
|
|