aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-04-15 01:48:15 +0800
committerMaran <maran.hidskes@gmail.com>2014-04-15 01:48:15 +0800
commit28a48f1d9a751c00f6bf6be198fc30ad792abf6f (patch)
tree262468da60af1205bd2d0ce5ccf0ba9944297216 /ethereal/assets/qml
parent8a2698ad5e3d47db9175e838b0a16c3f59b6e071 (diff)
parentd092d05a31554c37f4d7594d96ce9409082b5b20 (diff)
downloadgo-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar.gz
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar.bz2
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar.lz
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar.xz
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.tar.zst
go-tangerine-28a48f1d9a751c00f6bf6be198fc30ad792abf6f.zip
Merge branch 'develop' of github.com:ethereum/go-ethereum into develop
Diffstat (limited to 'ethereal/assets/qml')
-rw-r--r--ethereal/assets/qml/wallet.qml103
1 files changed, 59 insertions, 44 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index a4d5cb642..c3ddfe4b8 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -371,7 +371,18 @@ ApplicationWindow {
width: 800
height: 600
+
+ Item {
+ id: keyHandler
+ focus: true
+ Keys.onPressed: {
+ if (event.key == Qt.Key_Space) {
+ ui.next()
+ }
+ }
+ }
SplitView {
+
anchors.fill: parent
property var asmModel: ListModel {
id: asmModel
@@ -416,59 +427,63 @@ ApplicationWindow {
}
function setAsm(asm) {
- //for(var i = 0; i < asm.length; i++) {
- asmModel.append({asm: asm})
- //}
- }
- function clearAsm() {
- asmModel.clear()
- }
+ asmModel.append({asm: asm})
+ }
- function setMem(mem) {
- memModel.append({num: mem.num, value: mem.value})
- }
- function clearMem(){
- memModel.clear()
- }
+ function setInstruction(num) {
+ asmTableView.selection.clear()
+ asmTableView.selection.select(num-1)
+ }
- function setStack(stack) {
- stackModel.append({value: stack})
- }
+ function clearAsm() {
+ asmModel.clear()
+ }
- function clearStack() {
- stackModel.clear()
- }
+ function setMem(mem) {
+ memModel.append({num: mem.num, value: mem.value})
+ }
+ function clearMem(){
+ memModel.clear()
+ }
- function loadPlugin(name) {
- console.log("Loading plugin" + name)
- mainView.addPlugin(name)
- }
+ function setStack(stack) {
+ stackModel.append({value: stack})
+ }
- function setWalletValue(value) {
- walletValueLabel.text = value
- }
+ function clearStack() {
+ stackModel.clear()
+ }
- function addTx(tx) {
- var isContract
- if (tx.contract == true){
- isContract = "Yes"
- }else{
- isContract = "No"
- }
- txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value, contract: isContract})
- }
+ function loadPlugin(name) {
+ console.log("Loading plugin" + name)
+ mainView.addPlugin(name)
+ }
- function addBlock(block) {
- blockModel.insert(0, {number: block.number, hash: block.hash})
- }
+ function setWalletValue(value) {
+ walletValueLabel.text = value
+ }
- function addLog(str) {
- if(str.len != 0) {
- logModel.append({description: str})
- }
+ function addTx(tx) {
+ var isContract
+ if (tx.contract == true){
+ isContract = "Yes"
+ }else{
+ isContract = "No"
}
+ txModel.insert(0, {hash: tx.hash, address: tx.address, value: tx.value, contract: isContract})
+ }
- function setPeers(text) {
- peerLabel.text = text
+ function addBlock(block) {
+ blockModel.insert(0, {number: block.number, hash: block.hash})
+ }
+
+ function addLog(str) {
+ if(str.len != 0) {
+ logModel.append({description: str})
}
}
+
+ function setPeers(text) {
+ peerLabel.text = text
+ }
+}