2022-02-11 09:44:49 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import QtGraphicalEffects 1.13
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.popups 1.0
|
|
|
|
import shared.status 1.0
|
|
|
|
|
|
|
|
import "../stores"
|
|
|
|
import "../controls"
|
|
|
|
import "../popups"
|
|
|
|
import "../panels"
|
|
|
|
import "./wallet"
|
|
|
|
|
|
|
|
ScrollView {
|
|
|
|
id: root
|
|
|
|
|
2022-03-02 12:54:58 +00:00
|
|
|
anchors.fill: parent
|
2022-02-11 09:44:49 +00:00
|
|
|
contentHeight: advancedContainer.height + 100
|
|
|
|
clip: true
|
|
|
|
|
|
|
|
property WalletStore walletStore
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: advancedContainer
|
2022-03-02 12:54:58 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
|
|
|
|
2022-02-11 09:44:49 +00:00
|
|
|
StackLayout {
|
|
|
|
id: stackContainer
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
currentIndex: 0
|
|
|
|
|
|
|
|
MainView {
|
|
|
|
walletStore: root.walletStore
|
2022-03-02 12:54:58 +00:00
|
|
|
anchors.topMargin: 64
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.leftMargin: 64
|
|
|
|
anchors.left: parent.left
|
|
|
|
width: 560
|
|
|
|
|
2022-02-11 09:44:49 +00:00
|
|
|
onGoToNetworksView: {
|
|
|
|
stackContainer.currentIndex = 1
|
|
|
|
}
|
2022-03-07 09:33:38 +00:00
|
|
|
|
|
|
|
onGoToAccountView: {
|
|
|
|
root.walletStore.switchAccountByAddress(address)
|
|
|
|
stackContainer.currentIndex = 2
|
|
|
|
}
|
2022-02-11 09:44:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
NetworksView {
|
|
|
|
walletStore: root.walletStore
|
|
|
|
anchors.fill: parent
|
|
|
|
onGoBack: {
|
|
|
|
stackContainer.currentIndex = 0
|
|
|
|
}
|
|
|
|
}
|
2022-03-07 09:33:38 +00:00
|
|
|
|
|
|
|
AccountView {
|
|
|
|
id: accountView
|
|
|
|
walletStore: root.walletStore
|
|
|
|
anchors.fill: parent
|
|
|
|
onGoBack: {
|
|
|
|
stackContainer.currentIndex = 0
|
|
|
|
}
|
|
|
|
}
|
2022-02-11 09:44:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|