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
fc8bd722
Commit
fc8bd722
authored
Jul 10, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
685aebc7
c2bca593
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
wallet.qml
ethereal/assets/qml/wallet.qml
+6
-6
webapp.qml
ethereal/assets/qml/webapp.qml
+1
-1
flags.go
ethereal/flags.go
+2
-2
qml_container.go
ethereal/qml_container.go
+9
-1
No files found.
ethereal/assets/qml/wallet.qml
View file @
fc8bd722
...
...
@@ -100,7 +100,7 @@ ApplicationWindow {
anchors.right
:
parent
.
right
height
:
200
Image
{
source
:
ui
.
assetPath
(
"tx.png"
)
source
:
"../tx.png"
anchors.horizontalCenter
:
parent
.
horizontalCenter
MouseArea
{
anchors.fill
:
parent
...
...
@@ -110,7 +110,7 @@ ApplicationWindow {
}
}
Image
{
source
:
ui
.
assetPath
(
"new.png"
)
source
:
"../new.png"
anchors.horizontalCenter
:
parent
.
horizontalCenter
MouseArea
{
anchors.fill
:
parent
...
...
@@ -120,7 +120,7 @@ ApplicationWindow {
}
}
Image
{
source
:
ui
.
assetPath
(
"net.png"
)
source
:
"../net.png"
anchors.horizontalCenter
:
parent
.
horizontalCenter
MouseArea
{
anchors.fill
:
parent
...
...
@@ -131,7 +131,7 @@ ApplicationWindow {
}
Image
{
source
:
ui
.
assetPath
(
"heart.png"
)
source
:
"../heart.png"
anchors.horizontalCenter
:
parent
.
horizontalCenter
MouseArea
{
anchors.fill
:
parent
...
...
@@ -436,7 +436,7 @@ ApplicationWindow {
onDoubleClicked
:
peerWindow
.
visible
=
true
anchors.fill
:
parent
}
source
:
ui
.
assetPath
(
"network.png"
)
source
:
"../network.png"
}
}
...
...
@@ -624,7 +624,7 @@ ApplicationWindow {
width
:
150
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
source
:
ui
.
assetPath
(
"facet.png"
)
source
:
"../facet.png"
x
:
10
y
:
10
}
...
...
ethereal/assets/qml/webapp.qml
View file @
fc8bd722
...
...
@@ -38,7 +38,7 @@ ApplicationWindow {
experimental.preferences.javascriptEnabled
:
true
experimental.preferences.navigatorQtObjectEnabled
:
true
experimental.preferences.developerExtrasEnabled
:
true
experimental.userScripts
:
[
ui
.
assetPath
(
"ext/pre.js"
),
ui
.
assetPath
(
"ext/big.js"
),
ui
.
assetPath
(
"ext/string.js"
),
ui
.
assetPath
(
"ext/ethereum.js"
)
]
experimental.userScripts
:
[
"../ext/pre.js"
,
"../ext/big.js"
,
"../ext/string.js"
,
"../ext/ethereum.js"
]
experimental.onMessageReceived
:
{
console
.
log
(
"[onMessageReceived]: "
,
message
.
data
)
// TODO move to messaging.js
...
...
ethereal/flags.go
View file @
fc8bd722
...
...
@@ -52,8 +52,8 @@ func defaultAssetPath() string {
assetPath
=
filepath
.
Join
(
exedir
,
"../Resources"
)
case
"linux"
:
assetPath
=
"/usr/share/ethereal"
case
"window"
:
fallthrough
case
"window
s
"
:
assetPath
=
"./assets"
default
:
assetPath
=
"."
}
...
...
ethereal/qml_container.go
View file @
fc8bd722
...
...
@@ -5,6 +5,7 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
"runtime"
)
type
QmlApplication
struct
{
...
...
@@ -20,7 +21,14 @@ func NewQmlApplication(path string, lib *UiLib) *QmlApplication {
}
func
(
app
*
QmlApplication
)
Create
()
error
{
component
,
err
:=
app
.
engine
.
LoadFile
(
app
.
path
)
path
:=
string
(
app
.
path
)
// For some reason for windows we get /c:/path/to/something, windows doesn't like the first slash but is fine with the others so we are removing it
if
string
(
app
.
path
[
0
])
==
"/"
&&
runtime
.
GOOS
==
"windows"
{
path
=
app
.
path
[
1
:
]
}
component
,
err
:=
app
.
engine
.
LoadFile
(
path
)
if
err
!=
nil
{
logger
.
Warnln
(
err
)
}
...
...
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