9 #ifndef UI_SENDCOINSENTRY_H 10 #define UI_SENDCOINSENTRY_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QCheckBox> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QLineEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QToolButton> 23 #include <QtWidgets/QWidget> 53 SendCoinsEntry->setObjectName(QString::fromUtf8(
"SendCoinsEntry"));
58 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
63 payToLabel->setObjectName(QString::fromUtf8(
"payToLabel"));
64 payToLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
70 payToLayout->setObjectName(QString::fromUtf8(
"payToLayout"));
72 payTo->setObjectName(QString::fromUtf8(
"payTo"));
79 icon.addFile(QString::fromUtf8(
":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
86 pasteButton->setObjectName(QString::fromUtf8(
"pasteButton"));
88 icon1.addFile(QString::fromUtf8(
":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
95 deleteButton->setObjectName(QString::fromUtf8(
"deleteButton"));
97 icon2.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
107 labellLabel->setObjectName(QString::fromUtf8(
"labellLabel"));
108 labellLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
113 addAsLabel->setObjectName(QString::fromUtf8(
"addAsLabel"));
118 amountLabel->setObjectName(QString::fromUtf8(
"amountLabel"));
119 amountLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
126 payAmount->setObjectName(QString::fromUtf8(
"payAmount"));
145 messageLabel->setObjectName(QString::fromUtf8(
"messageLabel"));
146 messageLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
157 line->setObjectName(QString::fromUtf8(
"line"));
158 line->setFrameShape(QFrame::HLine);
159 line->setFrameShadow(QFrame::Sunken);
163 #if QT_CONFIG(shortcut) 167 #endif // QT_CONFIG(shortcut) 181 payToLabel->setText(QCoreApplication::translate(
"SendCoinsEntry",
"Pay &To:",
nullptr));
182 #if QT_CONFIG(tooltip) 183 payTo->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"The Bitcoin address to send the payment to",
nullptr));
184 #endif // QT_CONFIG(tooltip) 185 #if QT_CONFIG(tooltip) 186 addressBookButton->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"Choose previously used address",
nullptr));
187 #endif // QT_CONFIG(tooltip) 189 #if QT_CONFIG(shortcut) 190 addressBookButton->setShortcut(QCoreApplication::translate(
"SendCoinsEntry",
"Alt+A",
nullptr));
191 #endif // QT_CONFIG(shortcut) 192 #if QT_CONFIG(tooltip) 193 pasteButton->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"Paste address from clipboard",
nullptr));
194 #endif // QT_CONFIG(tooltip) 196 #if QT_CONFIG(shortcut) 197 pasteButton->setShortcut(QCoreApplication::translate(
"SendCoinsEntry",
"Alt+P",
nullptr));
198 #endif // QT_CONFIG(shortcut) 199 #if QT_CONFIG(tooltip) 200 deleteButton->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"Remove this entry",
nullptr));
201 #endif // QT_CONFIG(tooltip) 203 labellLabel->setText(QCoreApplication::translate(
"SendCoinsEntry",
"&Label:",
nullptr));
204 #if QT_CONFIG(tooltip) 205 addAsLabel->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"Enter a label for this address to add it to the list of used addresses",
nullptr));
206 #endif // QT_CONFIG(tooltip) 207 addAsLabel->setPlaceholderText(QCoreApplication::translate(
"SendCoinsEntry",
"Enter a label for this address to add it to the list of used addresses",
nullptr));
208 amountLabel->setText(QCoreApplication::translate(
"SendCoinsEntry",
"A&mount:",
nullptr));
209 #if QT_CONFIG(tooltip) 210 payAmount->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"The amount to send in the selected unit",
nullptr));
211 #endif // QT_CONFIG(tooltip) 212 #if QT_CONFIG(tooltip) 213 checkboxSubtractFeeFromAmount->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"The fee will be deducted from the amount being sent. The recipient will receive less bitcoins than you enter in the amount field. If multiple recipients are selected, the fee is split equally.",
nullptr));
214 #endif // QT_CONFIG(tooltip) 217 messageLabel->setText(QCoreApplication::translate(
"SendCoinsEntry",
"Message:",
nullptr));
218 #if QT_CONFIG(tooltip) 219 messageTextLabel->setToolTip(QCoreApplication::translate(
"SendCoinsEntry",
"A message that was attached to the bitcoin: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the Bitcoin network.",
nullptr));
220 #endif // QT_CONFIG(tooltip) 232 #endif // UI_SENDCOINSENTRY_H Widget for entering bitcoin amounts.
QHBoxLayout * payToLayout
QToolButton * deleteButton
QLabel * messageTextLabel
void setupUi(QWidget *SendCoinsEntry)
QValidatedLineEdit * payTo
Line edit that can be marked as "invalid" to show input validation feedback.
A single entry in the dialog for sending bitcoins.
QHBoxLayout * horizontalLayoutAmount
void retranslateUi(QWidget *SendCoinsEntry)
QToolButton * pasteButton
QCheckBox * checkboxSubtractFeeFromAmount
QPushButton * useAvailableBalanceButton
QToolButton * addressBookButton
BitcoinAmountField * payAmount