2014-07-07 17:08:30 +00:00
|
|
|
import QtQuick 2.0
|
2014-07-10 22:18:36 +00:00
|
|
|
import "../components"
|
2014-07-07 17:08:30 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2014-07-10 22:18:36 +00:00
|
|
|
color: "#F0EEEE"
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: amountLabel
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
2014-07-16 14:48:17 +00:00
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 17
|
2014-07-10 22:18:36 +00:00
|
|
|
text: qsTr("Amount")
|
2014-07-11 14:19:13 +00:00
|
|
|
fontSize: 14
|
2014-07-10 22:18:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: transactionPriority
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 17
|
2014-07-11 14:19:13 +00:00
|
|
|
fontSize: 14
|
2014-07-10 22:18:36 +00:00
|
|
|
x: (parent.width - 17) / 2 + 17
|
|
|
|
text: qsTr("Transaction prority")
|
|
|
|
}
|
|
|
|
|
|
|
|
Row {
|
|
|
|
anchors.top: amountLabel.bottom
|
2014-07-11 14:19:13 +00:00
|
|
|
anchors.topMargin: 5
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 7
|
|
|
|
width: (parent.width - 17) / 2 + 10
|
2014-07-10 22:18:36 +00:00
|
|
|
Item {
|
|
|
|
width: 37
|
|
|
|
height: 37
|
|
|
|
|
|
|
|
Image {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
source: "../images/moneroIcon.png"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LineEdit {
|
|
|
|
placeholderText: qsTr("Amount...")
|
|
|
|
width: parent.width - 37 - 17
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-16 16:04:34 +00:00
|
|
|
ListModel {
|
|
|
|
id: priorityModel
|
|
|
|
ListElement { column1: "LOW"; column2: "( fee: 0.0002 )" }
|
|
|
|
ListElement { column1: "MEDIUM"; column2: "( fee: 0.0004 )" }
|
|
|
|
ListElement { column1: "HIGH"; column2: "( fee: 0.0008 )" }
|
|
|
|
}
|
|
|
|
|
2014-07-10 22:18:36 +00:00
|
|
|
StandardDropdown {
|
2014-07-11 14:19:13 +00:00
|
|
|
id: priorityDropdown
|
2014-07-10 22:18:36 +00:00
|
|
|
anchors.top: transactionPriority.bottom
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 17
|
2014-07-11 14:19:13 +00:00
|
|
|
anchors.topMargin: 5
|
2014-07-10 22:18:36 +00:00
|
|
|
anchors.left: transactionPriority.left
|
|
|
|
shadowReleasedColor: "#FF4304"
|
|
|
|
shadowPressedColor: "#B32D00"
|
|
|
|
releasedColor: "#FF6C3C"
|
|
|
|
pressedColor: "#FF4304"
|
2014-07-16 16:04:34 +00:00
|
|
|
dataModel: priorityModel
|
2014-07-10 22:18:36 +00:00
|
|
|
z: 1
|
|
|
|
}
|
2014-07-11 14:19:13 +00:00
|
|
|
|
|
|
|
Label {
|
|
|
|
id: privacyLabel
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: priorityDropdown.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 30
|
|
|
|
fontSize: 14
|
|
|
|
text: qsTr("Privacy Level")
|
|
|
|
}
|
|
|
|
|
|
|
|
PrivacyLevel {
|
|
|
|
id: privacyLevelItem
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: privacyLabel.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: addressLabel
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: privacyLevelItem.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 30
|
|
|
|
fontSize: 14
|
|
|
|
textFormat: Text.RichText
|
|
|
|
text: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>\
|
|
|
|
Address <font size='2'> ( Type in or select from </font> <a href='#'>Address</a><font size='2'> book )</font>")
|
|
|
|
|
2014-07-13 12:27:50 +00:00
|
|
|
onLinkActivated: appWindow.showPageRequest("AddressBook")
|
2014-07-11 14:19:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
LineEdit {
|
|
|
|
id: addressLine
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: addressLabel.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
id: paymentLabel
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: addressLine.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 17
|
|
|
|
fontSize: 14
|
|
|
|
text: qsTr("Payment ID <font size='2'>( Optional )</font>")
|
|
|
|
}
|
|
|
|
|
2014-07-15 14:03:39 +00:00
|
|
|
LineEdit {
|
|
|
|
id: paymentLine
|
2014-07-11 14:19:13 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: paymentLabel.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 5
|
2014-07-15 14:03:39 +00:00
|
|
|
}
|
2014-07-11 14:19:13 +00:00
|
|
|
|
2014-07-16 14:48:17 +00:00
|
|
|
Label {
|
|
|
|
id: descriptionLabel
|
2014-07-15 14:03:39 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: paymentLine.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 17
|
2014-07-16 14:48:17 +00:00
|
|
|
fontSize: 14
|
2014-07-22 15:15:52 +00:00
|
|
|
text: qsTr("Description <font size='2'>( An optional description that will be saved to the local address book if entered )</font>")
|
2014-07-16 14:48:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
LineEdit {
|
|
|
|
id: descriptionLine
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: descriptionLabel.bottom
|
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.rightMargin: 17
|
|
|
|
anchors.topMargin: 5
|
|
|
|
}
|
|
|
|
|
2014-07-22 15:15:52 +00:00
|
|
|
StandardButton {
|
|
|
|
id: sendButton
|
2014-07-16 14:48:17 +00:00
|
|
|
anchors.left: parent.left
|
2014-07-22 15:15:52 +00:00
|
|
|
anchors.top: descriptionLine.bottom
|
2014-07-16 14:48:17 +00:00
|
|
|
anchors.leftMargin: 17
|
|
|
|
anchors.topMargin: 17
|
2014-07-22 15:15:52 +00:00
|
|
|
width: 60
|
|
|
|
text: qsTr("SEND")
|
|
|
|
shadowReleasedColor: "#FF4304"
|
|
|
|
shadowPressedColor: "#B32D00"
|
|
|
|
releasedColor: "#FF6C3C"
|
|
|
|
pressedColor: "#FF4304"
|
2014-07-11 14:19:13 +00:00
|
|
|
}
|
2014-07-07 17:08:30 +00:00
|
|
|
}
|