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
ba3fabda
Commit
ba3fabda
authored
Jul 17, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a catch up indicator
parent
edf10ef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
wallet.qml
ethereal/assets/qml/wallet.qml
+14
-0
gui.go
ethereal/gui.go
+13
-4
No files found.
ethereal/assets/qml/wallet.qml
View file @
ba3fabda
...
...
@@ -419,6 +419,17 @@ ApplicationWindow {
}
}
ProgressBar
{
id
:
syncProgressIndicator
visible
:
false
objectName
:
"syncProgressIndicator"
y
:
3
width
:
140
indeterminate
:
true
anchors.right
:
peerLabel
.
left
anchors.rightMargin
:
5
}
Label
{
y
:
7
anchors.right
:
peerImage
.
left
...
...
@@ -443,6 +454,7 @@ ApplicationWindow {
Window
{
id
:
popup
visible
:
false
flags
:
Qt
.
CustomizeWindowHint
|
Qt
.
Tool
|
Qt
.
WindowCloseButtonHint
property
var
block
width
:
root
.
width
height
:
300
...
...
@@ -577,6 +589,7 @@ ApplicationWindow {
Window
{
id
:
addPeerWin
flags
:
Qt
.
CustomizeWindowHint
|
Qt
.
Tool
|
Qt
.
WindowCloseButtonHint
visible
:
false
minimumWidth
:
230
maximumWidth
:
230
...
...
@@ -743,6 +756,7 @@ ApplicationWindow {
// ******************************************
Window
{
id
:
peerWindow
flags
:
Qt
.
CustomizeWindowHint
|
Qt
.
Tool
|
Qt
.
WindowCloseButtonHint
height
:
200
width
:
700
Rectangle
{
...
...
ethereal/gui.go
View file @
ba3fabda
...
...
@@ -266,14 +266,18 @@ func (gui *Gui) setWalletValue(amount, unconfirmedFunds *big.Int) {
func
(
gui
*
Gui
)
update
()
{
reactor
:=
gui
.
eth
.
Reactor
()
blockChan
:=
make
(
chan
ethutil
.
React
,
1
)
txChan
:=
make
(
chan
ethutil
.
React
,
1
)
objectChan
:=
make
(
chan
ethutil
.
React
,
1
)
peerChan
:=
make
(
chan
ethutil
.
React
,
1
)
var
(
blockChan
=
make
(
chan
ethutil
.
React
,
1
)
txChan
=
make
(
chan
ethutil
.
React
,
1
)
objectChan
=
make
(
chan
ethutil
.
React
,
1
)
peerChan
=
make
(
chan
ethutil
.
React
,
1
)
chainSyncChan
=
make
(
chan
ethutil
.
React
,
1
)
)
reactor
.
Subscribe
(
"newBlock"
,
blockChan
)
reactor
.
Subscribe
(
"newTx:pre"
,
txChan
)
reactor
.
Subscribe
(
"newTx:post"
,
txChan
)
reactor
.
Subscribe
(
"chainSync"
,
chainSyncChan
)
nameReg
:=
ethpub
.
EthereumConfig
(
gui
.
eth
.
StateManager
())
.
NameReg
()
if
nameReg
!=
nil
{
...
...
@@ -287,6 +291,7 @@ func (gui *Gui) update() {
unconfirmedFunds
:=
new
(
big
.
Int
)
gui
.
win
.
Root
()
.
Call
(
"setWalletValue"
,
fmt
.
Sprintf
(
"%v"
,
ethutil
.
CurrencyToString
(
state
.
GetAccount
(
gui
.
address
())
.
Amount
)))
gui
.
win
.
Root
()
.
ObjectByName
(
"syncProgressIndicator"
)
.
Set
(
"visible"
,
!
gui
.
eth
.
IsUpToDate
())
for
{
select
{
...
...
@@ -328,6 +333,10 @@ func (gui *Gui) update() {
state
.
UpdateStateObject
(
object
)
}
case
msg
:=
<-
chainSyncChan
:
sync
:=
msg
.
Resource
.
(
bool
)
gui
.
win
.
Root
()
.
ObjectByName
(
"syncProgressIndicator"
)
.
Set
(
"visible"
,
sync
)
case
<-
objectChan
:
gui
.
loadAddressBook
()
case
<-
peerChan
:
...
...
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