2021-04-05 11:37:41 +00:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.0
|
|
|
|
import QtQuick.Layouts 1.2
|
|
|
|
import QtGraphicalEffects 1.0
|
|
|
|
import QtQuick.Window 2.0
|
|
|
|
import QtQuick.Controls.Styles 1.4
|
|
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
|
|
|
|
import "."
|
|
|
|
import "common"
|
|
|
|
import "wallet"
|
|
|
|
import "wallet/send"
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: 1600
|
|
|
|
height: 800
|
|
|
|
color: "transparent"
|
|
|
|
|
|
|
|
property WalletDashBoardPage walletDashboardPage: WalletDashBoardPage {
|
|
|
|
stackView: walletView
|
|
|
|
visible: false
|
|
|
|
}
|
|
|
|
|
|
|
|
property SendPage sendPage: SendPage {
|
|
|
|
stackView: walletView
|
|
|
|
visible: false
|
|
|
|
}
|
|
|
|
|
|
|
|
property ReceivePage receivePage: ReceivePage {
|
|
|
|
stackView: walletView
|
|
|
|
visible: false
|
|
|
|
}
|
|
|
|
|
|
|
|
StackView {
|
|
|
|
id: walletView
|
|
|
|
anchors.fill: parent
|
2021-04-09 16:00:12 +00:00
|
|
|
initialItem: walletDashboardPage
|
2021-04-05 11:37:41 +00:00
|
|
|
|
|
|
|
pushEnter: Transition {
|
|
|
|
PropertyAnimation {
|
|
|
|
property: "x"
|
|
|
|
from: walletView.width
|
|
|
|
to: 0
|
|
|
|
duration: 300
|
|
|
|
easing.type: Easing.OutCubic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pushExit: Transition {
|
|
|
|
PropertyAnimation {
|
|
|
|
property: "x"
|
|
|
|
from: 0
|
|
|
|
to: -walletView.width
|
|
|
|
duration: 300
|
|
|
|
easing.type: Easing.OutCubic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
popEnter: Transition {
|
|
|
|
PropertyAnimation {
|
|
|
|
property: "x"
|
|
|
|
from: -walletView.width
|
|
|
|
to: 0
|
|
|
|
duration: 300
|
|
|
|
easing.type: Easing.OutCubic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
popExit: Transition {
|
|
|
|
PropertyAnimation {
|
|
|
|
property: "x"
|
|
|
|
from: 0
|
|
|
|
to: walletView.width
|
|
|
|
duration: 300
|
|
|
|
easing.type: Easing.OutCubic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function onPageCompleted() {
|
|
|
|
walletDashboardPage.onPageCompleted();
|
|
|
|
}
|
|
|
|
}
|