diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-15 23:29:10 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-15 23:29:10 +0800 |
commit | 8393dab470c40678caf36ada82e312d29c4cf5c4 (patch) | |
tree | b454c6282047ed9faa43b6e0534336b903993674 /cmd | |
parent | 7bc40aa963626383dbb6a5cb6fe10736dc1d74fa (diff) | |
download | go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar.gz go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar.bz2 go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar.lz go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar.xz go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.tar.zst go-tangerine-8393dab470c40678caf36ada82e312d29c4cf5c4.zip |
menubar back to mist main.qml
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mist/assets/qml/main.qml | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml index 9b3a1157d..bf83dc3b2 100644 --- a/cmd/mist/assets/qml/main.qml +++ b/cmd/mist/assets/qml/main.qml @@ -157,7 +157,96 @@ ApplicationWindow { } + menuBar: MenuBar { + Menu { + title: "File" + MenuItem { + text: "New tab" + shortcut: "Ctrl+t" + onTriggered: { + activeView(catalog.view, catalog.menuItem); + } + } + + MenuSeparator {} + + MenuItem { + text: "Import key" + shortcut: "Ctrl+i" + onTriggered: { + generalFileDialog.show(true, function(path) { + gui.importKey(path) + }) + } + } + + MenuItem { + text: "Export keys" + shortcut: "Ctrl+e" + onTriggered: { + generalFileDialog.show(false, function(path) { + }) + } + } + + MenuItem { + text: "Generate key" + shortcut: "Ctrl+k" + onTriggered: gui.generateKey() + } + } + Menu { + title: "Developer" + MenuItem { + text: "Import Tx" + onTriggered: { + txImportDialog.visible = true + } + } + + MenuItem { + text: "Dump state" + onTriggered: { + generalFileDialog.show(false, function(path) { + // Empty hash for latest + gui.dumpState("", path) + }) + } + } + + MenuSeparator {} + } + + Menu { + title: "Network" + MenuItem { + text: "Add Peer" + shortcut: "Ctrl+p" + onTriggered: { + addPeerWin.visible = true + } + } + MenuItem { + text: "Show Peers" + shortcut: "Ctrl+e" + onTriggered: { + peerWindow.visible = true + } + } + } + + Menu { + title: "Help" + MenuItem { + text: "About" + onTriggered: { + aboutWin.visible = true + } + } + } + + } property var blockModel: ListModel { id: blockModel |