@ -1,6 +1,6 @@
import QtQuick 2.6
import QtQuick 2.6
import QtQuick . Controls 2.15
import QtQuick . Layouts 1.0
import QtQuick . Layouts 1.0
import QtQuick . Controls 2.3
import QtQuick . Controls . Material 2.0
import QtQuick . Controls . Material 2.0
import QtQml 2.6
import QtQml 2.6
@ -36,7 +36,7 @@ ApplicationWindow
MouseArea {
MouseArea {
anchors.fill: parent
anchors.fill: parent
onClicked: {
onClicked: {
var dialog = app . messageDialog . createObject ( app , { 'message ' :
var dialog = app . messageDialog . createObject ( app , { 'text ' :
'Electrum is currently on ' + Network . networkName + ''
'Electrum is currently on ' + Network . networkName + ''
} )
} )
dialog . open ( )
dialog . open ( )
@ -115,11 +115,6 @@ ApplicationWindow
id: _newWalletWizard
id: _newWalletWizard
NewWalletWizard {
NewWalletWizard {
parent: Overlay . overlay
parent: Overlay . overlay
x: 12
y: 12
width: parent . width - 24
height: parent . height - 24
Overlay.modal: Rectangle {
Overlay.modal: Rectangle {
color: "#aa000000"
color: "#aa000000"
}
}
@ -131,11 +126,6 @@ ApplicationWindow
id: _serverConnectWizard
id: _serverConnectWizard
ServerConnectWizard {
ServerConnectWizard {
parent: Overlay . overlay
parent: Overlay . overlay
x: 12
y: 12
width: parent . width - 24
height: parent . height - 24
Overlay.modal: Rectangle {
Overlay.modal: Rectangle {
color: "#aa000000"
color: "#aa000000"
}
}
@ -150,9 +140,12 @@ ApplicationWindow
modal: true
modal: true
x: ( parent . width - width ) / 2
x: ( parent . width - width ) / 2
y: ( parent . height - height ) / 2
y: ( parent . height - height ) / 2
Overlay.modal: Rectangle {
color: "#aa000000"
}
title: "Message"
title: qsTr ( "Message")
property alias message: messageLabel . text
property alias text : messageLabel . text
Label {
Label {
id: messageLabel
id: messageLabel
text: "Lorem ipsum dolor sit amet..."
text: "Lorem ipsum dolor sit amet..."
@ -162,8 +155,8 @@ ApplicationWindow
}
}
Component.onCompleted: {
Component.onCompleted: {
/ / D a e m o n . l o a d _ w a l l e t ( )
splashTimer . start ( )
splashTimer . start ( )
if ( ! Config . autoConnectDefined ) {
if ( ! Config . autoConnectDefined ) {
var dialog = serverConnectWizard . createObject ( app )
var dialog = serverConnectWizard . createObject ( app )
/ / w i t h o u t c o m p l e t e d s e r v e r C o n n e c t W i z a r d w e c a n ' t s t a r t
/ / w i t h o u t c o m p l e t e d s e r v e r C o n n e c t W i z a r d w e c a n ' t s t a r t
@ -172,6 +165,8 @@ ApplicationWindow
Qt . callLater ( Qt . quit )
Qt . callLater ( Qt . quit )
} )
} )
dialog . open ( )
dialog . open ( )
} else {
Daemon . load_wallet ( )
}
}
}
}
@ -180,4 +175,32 @@ ApplicationWindow
app . header . visible = false
app . header . visible = false
mainStackView . clear ( )
mainStackView . clear ( )
}
}
/ * O p e n W a l l e t a s a p o p u p d i a l o g a t t e m p t
Component {
id: _openWallet
Dialog {
parent: Overlay . overlay
modal: true
x: ( parent . width - width ) / 2
y: ( parent . height - height ) / 2
Overlay.modal: Rectangle {
color: "#aa000000"
}
title: qsTr ( "OpenWallet" )
OpenWallet {
path: Daemon . path
}
}
}
* /
Connections {
target: Daemon
function onWalletRequiresPassword ( ) {
app . stack . push ( Qt . resolvedUrl ( "OpenWallet.qml" ) , { "path" : Daemon . path } )
/ / v a r d i a l o g = _ o p e n W a l l e t . c r e a t e O b j e c t ( a p p )
/ / d i a l o g . o p e n ( )
}
}
}
}