good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
ef1b923b
Commit
ef1b923b
authored
Jun 14, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Added a log level slider which can change the log level
parent
e7a22af0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ethereal/assets/debugger/debugger.qml
+3
-3
3 additions, 3 deletions
ethereal/assets/debugger/debugger.qml
ethereal/assets/qml/wallet.qml
+46
-6
46 additions, 6 deletions
ethereal/assets/qml/wallet.qml
ethereal/ui/gui.go
+4
-0
4 additions, 0 deletions
ethereal/ui/gui.go
with
53 additions
and
9 deletions
ethereal/assets/debugger/debugger.qml
+
3
−
3
View file @
ef1b923b
...
@@ -135,7 +135,7 @@ ApplicationWindow {
...
@@ -135,7 +135,7 @@ ApplicationWindow {
}
}
height
:
parent
.
height
height
:
parent
.
height
width
:
300
width
:
300
TableViewColumn
{
role
:
"
value
"
;
title
:
"
Stack
"
;
width
:
200
}
TableViewColumn
{
role
:
"
value
"
;
title
:
"
Temp
"
;
width
:
200
}
model
:
stackModel
model
:
stackModel
}
}
...
@@ -224,8 +224,8 @@ ApplicationWindow {
...
@@ -224,8 +224,8 @@ ApplicationWindow {
}
}
function
setInstruction
(
num
)
{
function
setInstruction
(
num
)
{
//
asmTableView.selection.clear()
asmTableView
.
selection
.
clear
()
//
asmTableView.selection.select(num)
asmTableView
.
selection
.
select
(
num
)
}
}
function
setMem
(
mem
)
{
function
setMem
(
mem
)
{
...
...
This diff is collapsed.
Click to expand it.
ethereal/assets/qml/wallet.qml
+
46
−
6
View file @
ef1b923b
...
@@ -29,6 +29,7 @@ ApplicationWindow {
...
@@ -29,6 +29,7 @@ ApplicationWindow {
}
}
Menu
{
Menu
{
title
:
"
Developer
"
MenuItem
{
MenuItem
{
text
:
"
Debugger
"
text
:
"
Debugger
"
shortcut
:
"
Ctrl+d
"
shortcut
:
"
Ctrl+d
"
...
@@ -261,7 +262,7 @@ ApplicationWindow {
...
@@ -261,7 +262,7 @@ ApplicationWindow {
id
:
addressView
id
:
addressView
width
:
parent
.
width
-
200
width
:
parent
.
width
-
200
height
:
200
height
:
200
anchors.bottom
:
log
View
.
top
anchors.bottom
:
log
Layout
.
top
TableViewColumn
{
role
:
"
name
"
;
title
:
"
name
"
}
TableViewColumn
{
role
:
"
name
"
;
title
:
"
name
"
}
TableViewColumn
{
role
:
"
address
"
;
title
:
"
address
"
;
width
:
300
}
TableViewColumn
{
role
:
"
address
"
;
title
:
"
address
"
;
width
:
300
}
...
@@ -296,15 +297,49 @@ ApplicationWindow {
...
@@ -296,15 +297,49 @@ ApplicationWindow {
property
var
logModel
:
ListModel
{
property
var
logModel
:
ListModel
{
id
:
logModel
id
:
logModel
}
}
TableView
{
RowLayout
{
id
:
log
View
id
:
log
Layout
width
:
parent
.
width
width
:
parent
.
width
height
:
200
height
:
200
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
TableView
{
id
:
logView
headerVisible
:
false
anchors
{
right
:
logLevelSlider
.
left
left
:
parent
.
left
bottom
:
parent
.
bottom
top
:
parent
.
top
}
TableViewColumn
{
role
:
"
description
"
;
title
:
"
log
"
}
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 {
...
@@ -651,7 +686,12 @@ ApplicationWindow {
function
addLog
(
str
)
{
function
addLog
(
str
)
{
if
(
str
.
len
!=
0
)
{
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
})
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
ethereal/ui/gui.go
+
4
−
0
View file @
ef1b923b
...
@@ -356,3 +356,7 @@ func (gui *Gui) ChangeClientId(id string) {
...
@@ -356,3 +356,7 @@ func (gui *Gui) ChangeClientId(id string) {
func
(
gui
*
Gui
)
ClientId
()
string
{
func
(
gui
*
Gui
)
ClientId
()
string
{
return
ethutil
.
Config
.
Identifier
return
ethutil
.
Config
.
Identifier
}
}
func
(
gui
*
Gui
)
SetLogLevel
(
level
int
)
{
ethutil
.
Config
.
Log
.
SetLevel
(
level
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment