Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
97004f7e
Commit
97004f7e
authored
Jul 25, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip export
parent
82a84dca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
wallet.qml
ethereal/assets/qml/wallet.qml
+32
-2
gui.go
ethereal/gui.go
+3
-0
No files found.
ethereal/assets/qml/wallet.qml
View file @
97004f7e
...
...
@@ -26,6 +26,22 @@ ApplicationWindow {
shortcut
:
"Ctrl+o"
onTriggered
:
openAppDialog
.
open
()
}
MenuSeparator
{}
MenuItem
{
text
:
"Import key"
shortcut
:
"Ctrl+i"
onTriggered
:
importDialog
.
open
()
}
MenuItem
{
text
:
"Export keys"
shortcut
:
"Ctrl+e"
onTriggered
:
exportDialog
.
open
()
}
//MenuSeparator {}
}
Menu
{
...
...
@@ -375,9 +391,7 @@ ApplicationWindow {
//ui.open(openAppDialog.fileUrl.toString())
//ui.openHtml(Qt.resolvedUrl(ui.assetPath("test.html")))
var
path
=
openAppDialog
.
fileUrl
.
toString
()
console
.
log
(
path
)
var
ext
=
path
.
split
(
'.'
).
pop
()
console
.
log
(
ext
)
if
(
ext
==
"html"
||
ext
==
"htm"
)
{
ui
.
openHtml
(
path
)
}
else
if
(
ext
==
"qml"
){
...
...
@@ -386,6 +400,22 @@ ApplicationWindow {
}
}
FileDialog
{
id
:
exportDialog
title
:
"Export keys"
onAccepted
:
{
}
}
FileDialog
{
id
:
importDialog
title
:
"Import key"
onAccepted
:
{
var
path
=
this
.
fileUrl
.
toString
()
ui
.
importKey
(
path
)
}
}
statusBar
:
StatusBar
{
height
:
30
RowLayout
{
...
...
ethereal/gui.go
View file @
97004f7e
...
...
@@ -155,6 +155,9 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
return
win
,
nil
}
func
(
gui
*
Gui
)
ImportKey
(
filePath
string
)
{
}
func
(
gui
*
Gui
)
showKeyImport
(
context
*
qml
.
Context
)
(
*
qml
.
Window
,
error
)
{
context
.
SetVar
(
"lib"
,
gui
)
component
,
err
:=
gui
.
engine
.
LoadFile
(
gui
.
uiLib
.
AssetPath
(
"qml/first_run.qml"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment