8 changed files with 403 additions and 184 deletions
@ -0,0 +1,31 @@ |
|||||||
|
import QtQuick 2.6 |
||||||
|
import QtQuick.Layouts 1.0 |
||||||
|
import QtQuick.Controls 2.0 |
||||||
|
|
||||||
|
Item { |
||||||
|
height: layout.height |
||||||
|
|
||||||
|
GridLayout { |
||||||
|
id: layout |
||||||
|
|
||||||
|
columns: 3 |
||||||
|
Label { |
||||||
|
Layout.columnSpan: 3 |
||||||
|
font.pointSize: 14 |
||||||
|
text: 'Balance: ' + Daemon.currentWallet.confirmedBalance //'5.6201 mBTC' |
||||||
|
} |
||||||
|
Label { |
||||||
|
font.pointSize: 8 |
||||||
|
text: 'Confirmed: ' + Daemon.currentWallet.confirmedBalance |
||||||
|
} |
||||||
|
Label { |
||||||
|
font.pointSize: 8 |
||||||
|
text: 'Unconfirmed: ' + Daemon.currentWallet.unconfirmedBalance |
||||||
|
} |
||||||
|
Label { |
||||||
|
font.pointSize: 8 |
||||||
|
text: 'Lightning: ?' |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
@ -1,59 +1,87 @@ |
|||||||
import QtQuick 2.6 |
import QtQuick 2.6 |
||||||
import QtQuick.Controls 2.3 |
import QtQuick.Controls 2.3 |
||||||
|
import QtQuick.Layouts 1.0 |
||||||
import QtQml 2.6 |
import QtQml 2.6 |
||||||
|
|
||||||
Item { |
Item { |
||||||
id: rootItem |
id: rootItem |
||||||
|
|
||||||
property string title: 'Network' |
property string title: Daemon.walletName |
||||||
|
|
||||||
property QtObject menu: Menu { |
property QtObject menu: Menu { |
||||||
MenuItem { text: 'Wallets'; onTriggered: stack.push(Qt.resolvedUrl('Wallets.qml')) } |
MenuItem { text: 'Wallets'; onTriggered: stack.push(Qt.resolvedUrl('Wallets.qml')) } |
||||||
MenuItem { text: 'Network'; onTriggered: stack.push(Qt.resolvedUrl('NetworkStats.qml')) } |
MenuItem { text: 'Network'; onTriggered: stack.push(Qt.resolvedUrl('NetworkStats.qml')) } |
||||||
} |
} |
||||||
|
|
||||||
Column { |
ColumnLayout { |
||||||
width: parent.width |
anchors.fill: parent |
||||||
|
|
||||||
Button { |
TabBar { |
||||||
text: 'Scan QR Code' |
id: tabbar |
||||||
onClicked: app.stack.push(Qt.resolvedUrl('Scan.qml')) |
Layout.fillWidth: true |
||||||
|
currentIndex: swipeview.currentIndex |
||||||
|
TabButton { |
||||||
|
text: qsTr('Receive') |
||||||
|
} |
||||||
|
TabButton { |
||||||
|
text: qsTr('History') |
||||||
|
} |
||||||
|
TabButton { |
||||||
|
enabled: !Daemon.currentWallet.isWatchOnly |
||||||
|
text: qsTr('Send') |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
Button { |
SwipeView { |
||||||
text: 'Send' |
id: swipeview |
||||||
onClicked: app.stack.push(Qt.resolvedUrl('Send.qml')) |
|
||||||
} |
|
||||||
|
|
||||||
Button { |
Layout.fillHeight: true |
||||||
text: 'Show TX History' |
Layout.fillWidth: true |
||||||
onClicked: app.stack.push(Qt.resolvedUrl('History.qml')) |
currentIndex: tabbar.currentIndex |
||||||
} |
|
||||||
|
Item { |
||||||
|
|
||||||
|
ColumnLayout { |
||||||
|
width: parent.width |
||||||
|
y: 20 |
||||||
|
spacing: 20 |
||||||
|
|
||||||
|
Button { |
||||||
|
onClicked: stack.push(Qt.resolvedUrl('Wallets.qml')) |
||||||
|
text: 'Wallets' |
||||||
|
Layout.alignment: Qt.AlignHCenter |
||||||
|
} |
||||||
|
|
||||||
Button { |
Button { |
||||||
text: 'Create Wallet' |
text: 'Create Wallet' |
||||||
onClicked: { |
Layout.alignment: Qt.AlignHCenter |
||||||
var dialog = newWalletWizard.createObject(rootItem) |
onClicked: { |
||||||
dialog.open() |
var dialog = app.newWalletWizard.createObject(rootItem) |
||||||
|
dialog.open() |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
} |
} |
||||||
} |
|
||||||
|
|
||||||
} |
Item { |
||||||
|
History { |
||||||
|
id: history |
||||||
|
anchors.fill: parent |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
Component { |
|
||||||
id: newWalletWizard |
Item { |
||||||
NewWalletWizard { |
enabled: !Daemon.currentWallet.isWatchOnly |
||||||
parent: Overlay.overlay |
Send { |
||||||
x: 12 |
anchors.fill: parent |
||||||
y: 12 |
} |
||||||
width: parent.width - 24 |
|
||||||
height: parent.height - 24 |
|
||||||
|
|
||||||
Overlay.modal: Rectangle { |
|
||||||
color: "#aa000000" |
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
} |
} |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue