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
88655439
Commit
88655439
authored
Aug 17, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy to clipboard hax
parent
e12abfd4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
0 deletions
+64
-0
chain.qml
ethereal/assets/qml/views/chain.qml
+7
-0
info.qml
ethereal/assets/qml/views/info.qml
+41
-0
wallet.qml
ethereal/assets/qml/wallet.qml
+11
-0
gui.go
ethereal/gui.go
+5
-0
No files found.
ethereal/assets/qml/views/chain.qml
View file @
88655439
...
@@ -73,6 +73,13 @@ Rectangle {
...
@@ -73,6 +73,13 @@ Rectangle {
MenuSeparator
{}
MenuSeparator
{}
MenuItem
{
text
:
"Copy"
onTriggered
:
{
copyToClipboard
(
blockModel
.
get
(
this
.
row
).
hash
)
}
}
MenuItem
{
MenuItem
{
text
:
"Dump State"
text
:
"Dump State"
onTriggered
:
{
onTriggered
:
{
...
...
ethereal/assets/qml/views/info.qml
View file @
88655439
...
@@ -57,6 +57,47 @@ Rectangle {
...
@@ -57,6 +57,47 @@ Rectangle {
TableViewColumn
{
role
:
"address"
;
title
:
"address"
;
width
:
300
}
TableViewColumn
{
role
:
"address"
;
title
:
"address"
;
width
:
300
}
model
:
addressModel
model
:
addressModel
itemDelegate
:
Item
{
Text
{
anchors
{
left
:
parent
.
left
right
:
parent
.
right
leftMargin
:
10
verticalCenter
:
parent
.
verticalCenter
}
color
:
styleData
.
textColor
elide
:
styleData
.
elideMode
text
:
styleData
.
value
font.pixelSize
:
11
MouseArea
{
acceptedButtons
:
Qt
.
LeftButton
|
Qt
.
RightButton
propagateComposedEvents
:
true
anchors.fill
:
parent
onClicked
:
{
addressView
.
selection
.
clear
()
addressView
.
selection
.
select
(
styleData
.
row
)
if
(
mouse
.
button
==
Qt
.
RightButton
)
{
contextMenu
.
row
=
styleData
.
row
;
contextMenu
.
popup
()
}
}
}
}
}
Menu
{
id
:
contextMenu
property
var
row
;
MenuItem
{
text
:
"Copy"
onTriggered
:
{
copyToClipboard
(
addressModel
.
get
(
this
.
row
).
address
)
}
}
}
}
}
property
var
logModel
:
ListModel
{
property
var
logModel
:
ListModel
{
...
...
ethereal/assets/qml/wallet.qml
View file @
88655439
...
@@ -17,6 +17,17 @@ ApplicationWindow {
...
@@ -17,6 +17,17 @@ ApplicationWindow {
title
:
"Ethereal"
title
:
"Ethereal"
TextField
{
id
:
copyElementHax
visible
:
false
}
function
copyToClipboard
(
text
)
{
copyElementHax
.
text
=
text
copyElementHax
.
selectAll
()
copyElementHax
.
copy
()
}
// Takes care of loading all default plugins
// Takes care of loading all default plugins
Component.onCompleted
:
{
Component.onCompleted
:
{
var
historyView
=
addPlugin
(
"./views/history.qml"
,
{
title
:
"History"
})
var
historyView
=
addPlugin
(
"./views/history.qml"
,
{
title
:
"History"
})
...
...
ethereal/gui.go
View file @
88655439
...
@@ -482,6 +482,11 @@ func (gui *Gui) update() {
...
@@ -482,6 +482,11 @@ func (gui *Gui) update() {
reactor
.
Subscribe
(
"peerList"
,
peerChan
)
reactor
.
Subscribe
(
"peerList"
,
peerChan
)
}
}
func
(
gui
*
Gui
)
CopyToClipboard
(
data
string
)
{
//clipboard.WriteAll("test")
fmt
.
Println
(
"COPY currently BUGGED. Here are the contents:
\n
"
,
data
)
}
func
(
gui
*
Gui
)
setPeerInfo
()
{
func
(
gui
*
Gui
)
setPeerInfo
()
{
gui
.
win
.
Root
()
.
Call
(
"setPeers"
,
fmt
.
Sprintf
(
"%d / %d"
,
gui
.
eth
.
PeerCount
(),
gui
.
eth
.
MaxPeers
))
gui
.
win
.
Root
()
.
Call
(
"setPeers"
,
fmt
.
Sprintf
(
"%d / %d"
,
gui
.
eth
.
PeerCount
(),
gui
.
eth
.
MaxPeers
))
...
...
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