forked from Public/monero-gui
Merge pull request #217
3752ec7send page: check daemon status after every refresh (Jaquee)01549a3walletManager: coding conventions (Jaquee)0ae3d67daemon console -> log + adjusted height (Jaquee)0e8cd14Wallet: add m_initialized (Jaquee)c7232e1set wallet connection status before querying sync status (Jaquee)3f8e05dWallet: Cache connection status query (Jaquee)36a6b89connect onWalletConnectionStatusChanged() (Jaquee)93a8200Transfer: new connectionStatus handling + show status msg (Jaquee)76e6ae8remove reference to old pw-dialog (Jaquee)18b7a67Wallet: add connectionStatusChanged signal (Jaquee)d9f4ab4daemonManager: wait for daemon stop on app close (Jaquee)f62bb68daemonManagerDialog: use new ConnectionStatus enum (Jaquee)dd01f59hide daemon sync progress after disconnecting wallet (Jaquee)8d19a03DaemonManager: add stateChanged() (Jaquee)760e01bdaemonManagerDialog: show processdialog when starting (Jaquee)bb881d9show processingSplash when starting/stopping daemon (Jaquee)8361ddaresolve rebase conflict (Jaquee)8dfa79eShutdown daemon and close wallet properly on app exit (Jaquee)7876957DaemonManager::closing() (Jacob Brydolf)065b060main: debug messages (Jacob Brydolf)b4eb489DaemonManager: forward command line arguments to monerod (Jacob Brydolf)752ff26forward command line arguments to DaemonManager (Jaquee)7840dabDaemonManager: console debug output (Jacob Brydolf)14a5bd5settings: added daemon console (Jacob Brydolf)b53ef00history tx details: resized popup (Jacob Brydolf)b4f29b2StandardDialog: changed default sizes (Jacob Brydolf)5855700daemonManagerDialog: added starting signal (Jacob Brydolf)3a43154DaemonManager: added console updated signals (Jacob Brydolf)3df9e44DaemonManager: windows support (Jacob Brydolf)5da9f8fstandardDialog: close window before continue (Jacob Brydolf)5a110f4replace message dialog with custom dialog (Jacob Brydolf)d465780resized standard dialog (Jacob Brydolf)482bd30settings: enable/disable daemon start/stop buttons (Jacob Brydolf)4e7de8cproper daemon shutdown on app exit (Jaquee)48471f3onDaemonStarted/stopped signals/slots (Jaquee)de635cbpw dialog: close popup before continue (Jacob Brydolf)86772beadded standardDialog component (Jacob Brydolf)ae977afsettings: add daemon manager (Jacob Brydolf)2775124small error in daemon manager dialog (Jacob Brydolf)82c39e0WalletManager: include dependencies (Jaquee)1c6884eShow daemon manager dialog if daemon isnt started (Jacob Brydolf)9fbfbc4daemonManager: embed as context property (Jaquee)4cdc258WalletManager: basic functionality (Jacob Brydolf)
This commit is contained in:
@@ -37,7 +37,6 @@ import "../components"
|
||||
import moneroComponents.Clipboard 1.0
|
||||
|
||||
Rectangle {
|
||||
|
||||
property var daemonAddress
|
||||
|
||||
color: "#F0EEEE"
|
||||
@@ -272,15 +271,94 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Label {
|
||||
id: manageDaemonLabel
|
||||
color: "#4A4949"
|
||||
text: qsTr("Manage daemon") + translationManager.emptyString
|
||||
fontSize: 16
|
||||
}
|
||||
|
||||
StandardButton {
|
||||
visible: true
|
||||
enabled: !appWindow.daemonRunning
|
||||
id: startDaemonButton
|
||||
width: 110
|
||||
text: qsTr("Start daemon") + translationManager.emptyString
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
onClicked: {
|
||||
appWindow.startDaemon()
|
||||
}
|
||||
}
|
||||
|
||||
StandardButton {
|
||||
visible: true
|
||||
enabled: appWindow.daemonRunning
|
||||
id: stopDaemonButton
|
||||
width: 110
|
||||
text: qsTr("Stop daemon") + translationManager.emptyString
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
onClicked: {
|
||||
appWindow.stopDaemon()
|
||||
}
|
||||
}
|
||||
|
||||
StandardButton {
|
||||
visible: true
|
||||
// enabled: appWindow.daemonRunning
|
||||
id: daemonConsolePopupButton
|
||||
width: 110
|
||||
text: qsTr("Show log") + translationManager.emptyString
|
||||
shadowReleasedColor: "#FF4304"
|
||||
shadowPressedColor: "#B32D00"
|
||||
releasedColor: "#FF6C3C"
|
||||
pressedColor: "#FF4304"
|
||||
onClicked: {
|
||||
daemonConsolePopup.open();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Daemon console
|
||||
StandardDialog {
|
||||
id: daemonConsolePopup
|
||||
height:500
|
||||
width:800
|
||||
cancelVisible: false
|
||||
title: qsTr("Daemon log")
|
||||
onAccepted: {
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// fires on every page load
|
||||
function onPageCompleted() {
|
||||
console.log("Settings page loaded");
|
||||
initSettings();
|
||||
}
|
||||
|
||||
// fires only once
|
||||
Component.onCompleted: {
|
||||
daemonManager.daemonConsoleUpdated.connect(onDaemonConsoleUpdated)
|
||||
}
|
||||
|
||||
function onDaemonConsoleUpdated(message){
|
||||
// Update daemon console
|
||||
daemonConsolePopup.textArea.append(message)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
import QtQuick 2.0
|
||||
import moneroComponents.PendingTransaction 1.0
|
||||
import "../components"
|
||||
import moneroComponents.Wallet 1.0
|
||||
|
||||
|
||||
Rectangle {
|
||||
@@ -331,4 +332,69 @@ Rectangle {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id:desaturate
|
||||
color:"black"
|
||||
anchors.fill: parent
|
||||
opacity: 0.1
|
||||
visible: (root.enabled)? 0 : 1;
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
x: root.width/2 - width/2
|
||||
y: root.height/2 - height/2
|
||||
height:statusText.paintedHeight + 50
|
||||
width:statusText.paintedWidth + 40
|
||||
visible: statusText.text != ""
|
||||
opacity: 0.9
|
||||
|
||||
Text {
|
||||
id: statusText
|
||||
anchors.fill:parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
//Disable password page until enabled by updateStatus
|
||||
root.enabled = false
|
||||
}
|
||||
|
||||
// fires on every page load
|
||||
function onPageCompleted() {
|
||||
console.log("transfer page loaded")
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
//TODO: Add daemon sync status
|
||||
//TODO: enable send page when we're connected and daemon is synced
|
||||
|
||||
function updateStatus() {
|
||||
console.log("updated transfer page status")
|
||||
if(typeof currentWallet === "undefined") {
|
||||
statusText.text = qsTr("Wallet is not connected to daemon.")
|
||||
return;
|
||||
}
|
||||
|
||||
switch (currentWallet.connected) {
|
||||
case Wallet.ConnectionStatus_Disconnected:
|
||||
statusText.text = qsTr("Wallet is not connected to daemon.")
|
||||
break
|
||||
case Wallet.ConnectionStatus_WrongVersion:
|
||||
statusText.text = qsTr("Connected daemon is not compatible with GUI. \n" +
|
||||
"Please upgrade or connect to another daemon")
|
||||
break
|
||||
default:
|
||||
if(!appWindow.daemonSynced){
|
||||
statusText.text = qsTr("Waiting on daemon synchronization to finish")
|
||||
} else {
|
||||
// everything OK, enable transfer page
|
||||
root.enabled = true;
|
||||
statusText.text = "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user