diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-08-10 16:21:58 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-08-10 16:21:58 +0300 |
| commit | fc7a7ddf25d0a3cd7c7e6b7d07897435e1a2a43e (patch) | |
| tree | 7d04620aa091b5e73866fd3375aead7ab2d389d5 | |
| parent | 983317b4496eddf1083461b9c0ddf07261a6e9b2 (diff) | |
| download | monzero-gui-fc7a7ddf25d0a3cd7c7e6b7d07897435e1a2a43e.tar.gz monzero-gui-fc7a7ddf25d0a3cd7c7e6b7d07897435e1a2a43e.tar.xz monzero-gui-fc7a7ddf25d0a3cd7c7e6b7d07897435e1a2a43e.zip | |
BasicPanel: embedding/reusing "Transfer" page
| -rw-r--r-- | BasicPanel.qml | 91 | ||||
| -rw-r--r-- | main.qml | 4 |
2 files changed, 28 insertions, 67 deletions
diff --git a/BasicPanel.qml b/BasicPanel.qml index 3c8de955..481fe8c4 100644 --- a/BasicPanel.qml +++ b/BasicPanel.qml @@ -28,15 +28,32 @@ import QtQuick 2.0 import "components" +import "pages" Rectangle { + id: root width: 470 - height: paymentId.y + paymentId.height + 12 + // height: paymentId.y + paymentId.height + 12 + height: header.height + header.anchors.topMargin + transferBasic.height color: "#F0EEEE" + border.width: 1 border.color: "#DBDBDB" + property alias balanceText : balanceText.text; property alias unlockedBalanceText : availableBalanceText.text; + // repeating signal to the outside world + signal paymentClicked(string address, string paymentId, double amount, int mixinCount, + int priority) + + Connections { + target: transferBasic + onPaymentClicked: { + console.log("BasicPanel: paymentClicked") + root.paymentClicked(address, paymentId, amount, mixinCount, priority) + } + } + Rectangle { id: header @@ -139,76 +156,16 @@ Rectangle { color: "#DBDBDB" } } - - Row { - id: row - anchors.left: parent.left - anchors.right: parent.right + Item { anchors.top: header.bottom - anchors.margins: 12 - spacing: 12 - - LineEdit { - height: 32 - fontSize: 15 - width: parent.width - sendButton.width - row.spacing - placeholderText: qsTr("amount...") + translationManager.emptyString - } - - StandardButton { - id: sendButton - width: 60 - height: 32 - fontSize: 11 - text: qsTr("SEND") - shadowReleasedColor: "#FF4304" - shadowPressedColor: "#B32D00" - releasedColor: "#FF6C3C" - pressedColor: "#FF4304" - } - } - - LineEdit { - id: destinationLine + anchors.bottom: parent.bottom anchors.left: parent.left anchors.right: parent.right - anchors.top: row.bottom - anchors.margins: 12 - fontSize: 15 - height: 32 - placeholderText: qsTr("destination...") + translationManager.emptyString - } - - Text { - id: privacyLevelText - anchors.horizontalCenter: parent.horizontalCenter - anchors.top: destinationLine.bottom - anchors.topMargin: 12 - - font.family: "Arial" - font.pixelSize: 12 - color: "#535353" - text: qsTr("Privacy level") + translationManager.emptyString + Transfer { + id : transferBasic + anchors.fill: parent + } } - PrivacyLevelSmall { - id: privacyLevel - anchors.left: parent.left - anchors.right: parent.right - anchors.top: privacyLevelText.bottom - anchors.leftMargin: 12 - anchors.rightMargin: 12 - anchors.topMargin: 12 - } - LineEdit { - id: paymentId - anchors.left: parent.left - anchors.right: parent.right - anchors.top: privacyLevel.bottom - anchors.margins: 12 - fontSize: 15 - height: 32 - placeholderText: qsTr("payment ID (optional)...") + translationManager.emptyString - } } @@ -133,6 +133,7 @@ ApplicationWindow { } middlePanel.paymentClicked.connect(handlePayment); + basicPanel.paymentClicked.connect(handlePayment); if (typeof wizard.settings['wallet'] !== 'undefined') { @@ -397,6 +398,9 @@ ApplicationWindow { id: basicPanel x: 0 anchors.bottom: parent.bottom + anchors.top: parent.top + anchors.left: parent.left + anchors.right: parent.right visible: false } |
