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
ef1b923b
Commit
ef1b923b
authored
Jun 14, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a log level slider which can change the log level
parent
e7a22af0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
9 deletions
+53
-9
debugger.qml
ethereal/assets/debugger/debugger.qml
+3
-3
wallet.qml
ethereal/assets/qml/wallet.qml
+46
-6
gui.go
ethereal/ui/gui.go
+4
-0
No files found.
ethereal/assets/debugger/debugger.qml
View file @
ef1b923b
...
...
@@ -135,7 +135,7 @@ ApplicationWindow {
}
height
:
parent
.
height
width
:
300
TableViewColumn
{
role
:
"value"
;
title
:
"
Stack
"
;
width
:
200
}
TableViewColumn
{
role
:
"value"
;
title
:
"
Temp
"
;
width
:
200
}
model
:
stackModel
}
...
...
@@ -224,8 +224,8 @@ ApplicationWindow {
}
function
setInstruction
(
num
)
{
//
asmTableView.selection.clear()
//
asmTableView.selection.select(num)
asmTableView
.
selection
.
clear
()
asmTableView
.
selection
.
select
(
num
)
}
function
setMem
(
mem
)
{
...
...
ethereal/assets/qml/wallet.qml
View file @
ef1b923b
...
...
@@ -29,6 +29,7 @@ ApplicationWindow {
}
Menu
{
title
:
"Developer"
MenuItem
{
text
:
"Debugger"
shortcut
:
"Ctrl+d"
...
...
@@ -261,7 +262,7 @@ ApplicationWindow {
id
:
addressView
width
:
parent
.
width
-
200
height
:
200
anchors.bottom
:
log
View
.
top
anchors.bottom
:
log
Layout
.
top
TableViewColumn
{
role
:
"name"
;
title
:
"name"
}
TableViewColumn
{
role
:
"address"
;
title
:
"address"
;
width
:
300
}
...
...
@@ -296,14 +297,48 @@ ApplicationWindow {
property
var
logModel
:
ListModel
{
id
:
logModel
}
TableView
{
id
:
log
View
RowLayout
{
id
:
log
Layout
width
:
parent
.
width
height
:
200
anchors.bottom
:
parent
.
bottom
TableViewColumn
{
role
:
"description"
;
title
:
"log"
}
TableView
{
id
:
logView
headerVisible
:
false
anchors
{
right
:
logLevelSlider
.
left
left
:
parent
.
left
bottom
:
parent
.
bottom
top
:
parent
.
top
}
TableViewColumn
{
role
:
"description"
;
title
:
"log"
}
model
:
logModel
model
:
logModel
}
Slider
{
id
:
logLevelSlider
value
:
2
anchors
{
right
:
parent
.
right
top
:
parent
.
top
bottom
:
parent
.
bottom
rightMargin
:
5
leftMargin
:
5
topMargin
:
5
bottomMargin
:
5
}
orientation
:
Qt
.
Vertical
maximumValue
:
3
stepSize
:
1
onValueChanged
:
{
eth
.
setLogLevel
(
value
)
}
}
}
}
...
...
@@ -651,7 +686,12 @@ ApplicationWindow {
function
addLog
(
str
)
{
if
(
str
.
len
!=
0
)
{
logModel
.
insert
(
0
,
{
description
:
str
})
if
(
logView
.
flickableItem
.
atYEnd
)
{
logModel
.
append
({
description
:
str
})
logView
.
positionViewAtRow
(
logView
.
rowCount
-
1
,
ListView
.
Contain
)
}
else
{
logModel
.
append
({
description
:
str
})
}
}
}
...
...
ethereal/ui/gui.go
View file @
ef1b923b
...
...
@@ -356,3 +356,7 @@ func (gui *Gui) ChangeClientId(id string) {
func
(
gui
*
Gui
)
ClientId
()
string
{
return
ethutil
.
Config
.
Identifier
}
func
(
gui
*
Gui
)
SetLogLevel
(
level
int
)
{
ethutil
.
Config
.
Log
.
SetLevel
(
level
)
}
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