9#ifndef UI_RECEIVECOINSDIALOG_H
10#define UI_RECEIVECOINSDIALOG_H
12#include <QtCore/QVariant>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QCheckBox>
16#include <QtWidgets/QDialog>
17#include <QtWidgets/QFrame>
18#include <QtWidgets/QGridLayout>
19#include <QtWidgets/QHBoxLayout>
20#include <QtWidgets/QHeaderView>
21#include <QtWidgets/QLabel>
22#include <QtWidgets/QLineEdit>
23#include <QtWidgets/QPushButton>
24#include <QtWidgets/QSpacerItem>
25#include <QtWidgets/QTableView>
26#include <QtWidgets/QVBoxLayout>
69 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
71 frame2->setObjectName(QString::fromUtf8(
"frame2"));
72 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
73 sizePolicy.setHorizontalStretch(0);
74 sizePolicy.setVerticalStretch(0);
75 sizePolicy.setHeightForWidth(
frame2->sizePolicy().hasHeightForWidth());
76 frame2->setSizePolicy(sizePolicy);
77 frame2->setFrameShape(QFrame::StyledPanel);
78 frame2->setFrameShadow(QFrame::Sunken);
82 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
84 label->setObjectName(QString::fromUtf8(
"label"));
85 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
90 label_3->setObjectName(QString::fromUtf8(
"label_3"));
91 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
96 reqLabel->setObjectName(QString::fromUtf8(
"reqLabel"));
101 label_5->setObjectName(QString::fromUtf8(
"label_5"));
106 label_2->setObjectName(QString::fromUtf8(
"label_2"));
107 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
112 reqMessage->setObjectName(QString::fromUtf8(
"reqMessage"));
119 receiveButton->setObjectName(QString::fromUtf8(
"receiveButton"));
122 icon.addFile(QString::fromUtf8(
":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
129 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
130 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
131 sizePolicy1.setHorizontalStretch(0);
132 sizePolicy1.setVerticalStretch(0);
133 sizePolicy1.setHeightForWidth(
clearButton->sizePolicy().hasHeightForWidth());
136 icon1.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
142 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
150 label_7->setObjectName(QString::fromUtf8(
"label_7"));
157 reqAmount->setObjectName(QString::fromUtf8(
"reqAmount"));
158 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
159 sizePolicy2.setHorizontalStretch(0);
160 sizePolicy2.setVerticalStretch(0);
161 sizePolicy2.setHeightForWidth(
reqAmount->sizePolicy().hasHeightForWidth());
164 reqAmount->setMaximumSize(QSize(1000, 100));
169 useBech32->setObjectName(QString::fromUtf8(
"useBech32"));
170 sizePolicy2.setHeightForWidth(
useBech32->sizePolicy().hasHeightForWidth());
172 useBech32->setMaximumSize(QSize(1000, 16777215));
173 useBech32->setFocusPolicy(Qt::StrongFocus);
177 horizontalSpacer_3 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
190 verticalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
195 frame->setObjectName(QString::fromUtf8(
"frame"));
196 sizePolicy.setHeightForWidth(
frame->sizePolicy().hasHeightForWidth());
197 frame->setSizePolicy(sizePolicy);
198 frame->setFrameShape(QFrame::StyledPanel);
199 frame->setFrameShadow(QFrame::Raised);
203 label_6->setObjectName(QString::fromUtf8(
"label_6"));
225 icon2.addFile(QString::fromUtf8(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
239 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
250#if QT_CONFIG(shortcut)
274#if QT_CONFIG(tooltip)
275 label->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.",
nullptr));
277 label->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"&Amount:",
nullptr));
278#if QT_CONFIG(tooltip)
279 label_3->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Bitcoin network.",
nullptr));
281 label_3->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"&Message:",
nullptr));
282#if QT_CONFIG(tooltip)
283 reqLabel->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address (used by you to identify an invoice). It is also attached to the payment request.",
nullptr));
285 label_5->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Use this form to request payments. All fields are <b>optional</b>.",
nullptr));
286#if QT_CONFIG(tooltip)
287 label_2->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.",
nullptr));
289 label_2->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"&Label:",
nullptr));
290#if QT_CONFIG(tooltip)
291 reqMessage->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional message that is attached to the payment request and may be displayed to the sender.",
nullptr));
293 receiveButton->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"&Create new receiving address",
nullptr));
294#if QT_CONFIG(tooltip)
295 clearButton->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Clear all fields of the form.",
nullptr));
297 clearButton->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Clear",
nullptr));
299#if QT_CONFIG(tooltip)
300 reqAmount->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.",
nullptr));
302#if QT_CONFIG(tooltip)
303 useBech32->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Native segwit addresses (aka Bech32 or BIP-173) reduce your transaction fees later on and offer better protection against typos, but old wallets don't support them. When unchecked, an address compatible with older wallets will be created instead.",
nullptr));
305 useBech32->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Generate native segwit (Bech32) address",
nullptr));
306 label_6->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Requested payments history",
nullptr));
307#if QT_CONFIG(tooltip)
308 showRequestButton->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Show the selected request (does the same as double clicking an entry)",
nullptr));
310 showRequestButton->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Show",
nullptr));
311#if QT_CONFIG(tooltip)
312 removeRequestButton->setToolTip(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Remove the selected entries from the list",
nullptr));
314 removeRequestButton->setText(QCoreApplication::translate(
"ReceiveCoinsDialog",
"Remove",
nullptr));
Widget for entering bitcoin amounts.
Dialog for requesting payment of bitcoins.
QSpacerItem * verticalSpacer_2
QHBoxLayout * horizontalLayout
BitcoinAmountField * reqAmount
QVBoxLayout * verticalLayout_2
void setupUi(QDialog *ReceiveCoinsDialog)
QSpacerItem * horizontalSpacer_2
QPushButton * removeRequestButton
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout_2
QPushButton * receiveButton
QPushButton * showRequestButton
QSpacerItem * horizontalSpacer_3
QTableView * recentRequestsView
QHBoxLayout * horizontalLayout_6
QPushButton * clearButton
QVBoxLayout * verticalLayout
QVBoxLayout * verticalLayout_3
void retranslateUi(QDialog *ReceiveCoinsDialog)