9 #ifndef UI_RECEIVECOINSDIALOG_H 10 #define UI_RECEIVECOINSDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QFrame> 19 #include <QtWidgets/QGridLayout> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QPushButton> 25 #include <QtWidgets/QSpacerItem> 26 #include <QtWidgets/QTableView> 27 #include <QtWidgets/QVBoxLayout> 66 if (ReceiveCoinsDialog->objectName().isEmpty())
67 ReceiveCoinsDialog->setObjectName(QStringLiteral(
"ReceiveCoinsDialog"));
68 ReceiveCoinsDialog->resize(776, 396);
69 verticalLayout =
new QVBoxLayout(ReceiveCoinsDialog);
70 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
71 frame2 =
new QFrame(ReceiveCoinsDialog);
72 frame2->setObjectName(QStringLiteral(
"frame2"));
73 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
74 sizePolicy.setHorizontalStretch(0);
75 sizePolicy.setVerticalStretch(0);
76 sizePolicy.setHeightForWidth(frame2->sizePolicy().hasHeightForWidth());
77 frame2->setSizePolicy(sizePolicy);
78 frame2->setFrameShape(QFrame::StyledPanel);
79 frame2->setFrameShadow(QFrame::Sunken);
80 verticalLayout_3 =
new QVBoxLayout(frame2);
81 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
82 gridLayout =
new QGridLayout();
83 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
84 label =
new QLabel(frame2);
85 label->setObjectName(QStringLiteral(
"label"));
86 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
88 gridLayout->addWidget(label, 5, 0, 1, 1);
90 label_3 =
new QLabel(frame2);
91 label_3->setObjectName(QStringLiteral(
"label_3"));
92 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
94 gridLayout->addWidget(label_3, 6, 0, 1, 1);
96 reqLabel =
new QLineEdit(frame2);
97 reqLabel->setObjectName(QStringLiteral(
"reqLabel"));
99 gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
101 label_5 =
new QLabel(frame2);
102 label_5->setObjectName(QStringLiteral(
"label_5"));
104 gridLayout->addWidget(label_5, 2, 2, 1, 1);
106 label_2 =
new QLabel(frame2);
107 label_2->setObjectName(QStringLiteral(
"label_2"));
108 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
110 gridLayout->addWidget(label_2, 4, 0, 1, 1);
112 reqMessage =
new QLineEdit(frame2);
113 reqMessage->setObjectName(QStringLiteral(
"reqMessage"));
115 gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
117 horizontalLayout =
new QHBoxLayout();
118 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
119 receiveButton =
new QPushButton(frame2);
120 receiveButton->setObjectName(QStringLiteral(
"receiveButton"));
121 receiveButton->setMinimumSize(QSize(150, 0));
123 icon.addFile(QStringLiteral(
":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
124 receiveButton->setIcon(icon);
125 receiveButton->setAutoDefault(
false);
127 horizontalLayout->addWidget(receiveButton);
129 clearButton =
new QPushButton(frame2);
130 clearButton->setObjectName(QStringLiteral(
"clearButton"));
131 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
132 sizePolicy1.setHorizontalStretch(0);
133 sizePolicy1.setVerticalStretch(0);
134 sizePolicy1.setHeightForWidth(clearButton->sizePolicy().hasHeightForWidth());
135 clearButton->setSizePolicy(sizePolicy1);
137 icon1.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
138 clearButton->setIcon(icon1);
139 clearButton->setAutoDefault(
false);
141 horizontalLayout->addWidget(clearButton);
143 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
145 horizontalLayout->addItem(horizontalSpacer);
148 gridLayout->addLayout(horizontalLayout, 7, 2, 1, 1);
150 label_7 =
new QLabel(frame2);
151 label_7->setObjectName(QStringLiteral(
"label_7"));
153 gridLayout->addWidget(label_7, 7, 0, 1, 1);
155 horizontalLayout_6 =
new QHBoxLayout();
156 horizontalLayout_6->setObjectName(QStringLiteral(
"horizontalLayout_6"));
158 reqAmount->setObjectName(QStringLiteral(
"reqAmount"));
159 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
160 sizePolicy2.setHorizontalStretch(0);
161 sizePolicy2.setVerticalStretch(0);
162 sizePolicy2.setHeightForWidth(reqAmount->sizePolicy().hasHeightForWidth());
163 reqAmount->setSizePolicy(sizePolicy2);
164 reqAmount->setMinimumSize(QSize(80, 0));
165 reqAmount->setMaximumSize(QSize(1000, 100));
167 horizontalLayout_6->addWidget(reqAmount);
169 useBech32 =
new QCheckBox(frame2);
170 useBech32->setObjectName(QStringLiteral(
"useBech32"));
171 sizePolicy2.setHeightForWidth(useBech32->sizePolicy().hasHeightForWidth());
172 useBech32->setSizePolicy(sizePolicy2);
173 useBech32->setMaximumSize(QSize(1000, 16777215));
174 useBech32->setFocusPolicy(Qt::StrongFocus);
176 horizontalLayout_6->addWidget(useBech32);
178 horizontalSpacer_3 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
180 horizontalLayout_6->addItem(horizontalSpacer_3);
183 gridLayout->addLayout(horizontalLayout_6, 5, 2, 1, 1);
186 verticalLayout_3->addLayout(gridLayout);
189 verticalLayout->addWidget(frame2);
191 verticalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
193 verticalLayout->addItem(verticalSpacer_2);
195 frame =
new QFrame(ReceiveCoinsDialog);
196 frame->setObjectName(QStringLiteral(
"frame"));
197 sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
198 frame->setSizePolicy(sizePolicy);
199 frame->setFrameShape(QFrame::StyledPanel);
200 frame->setFrameShadow(QFrame::Raised);
201 verticalLayout_2 =
new QVBoxLayout(frame);
202 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
203 label_6 =
new QLabel(frame);
204 label_6->setObjectName(QStringLiteral(
"label_6"));
208 label_6->setFont(font);
210 verticalLayout_2->addWidget(label_6);
212 recentRequestsView =
new QTableView(frame);
213 recentRequestsView->setObjectName(QStringLiteral(
"recentRequestsView"));
214 recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
215 recentRequestsView->setTabKeyNavigation(
false);
216 recentRequestsView->setSortingEnabled(
true);
218 verticalLayout_2->addWidget(recentRequestsView);
220 horizontalLayout_2 =
new QHBoxLayout();
221 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
222 showRequestButton =
new QPushButton(frame);
223 showRequestButton->setObjectName(QStringLiteral(
"showRequestButton"));
224 showRequestButton->setEnabled(
false);
226 icon2.addFile(QStringLiteral(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
227 showRequestButton->setIcon(icon2);
228 showRequestButton->setAutoDefault(
false);
230 horizontalLayout_2->addWidget(showRequestButton);
232 removeRequestButton =
new QPushButton(frame);
233 removeRequestButton->setObjectName(QStringLiteral(
"removeRequestButton"));
234 removeRequestButton->setEnabled(
false);
235 removeRequestButton->setIcon(icon1);
236 removeRequestButton->setAutoDefault(
false);
238 horizontalLayout_2->addWidget(removeRequestButton);
240 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
242 horizontalLayout_2->addItem(horizontalSpacer_2);
245 verticalLayout_2->addLayout(horizontalLayout_2);
248 verticalLayout->addWidget(frame);
250 verticalLayout->setStretch(2, 1);
251 #ifndef QT_NO_SHORTCUT 252 label->setBuddy(reqAmount);
253 label_3->setBuddy(reqMessage);
254 label_2->setBuddy(reqLabel);
255 #endif // QT_NO_SHORTCUT 256 QWidget::setTabOrder(reqLabel, reqAmount);
257 QWidget::setTabOrder(reqAmount, useBech32);
258 QWidget::setTabOrder(useBech32, reqMessage);
259 QWidget::setTabOrder(reqMessage, receiveButton);
260 QWidget::setTabOrder(receiveButton, clearButton);
261 QWidget::setTabOrder(clearButton, recentRequestsView);
262 QWidget::setTabOrder(recentRequestsView, showRequestButton);
263 QWidget::setTabOrder(showRequestButton, removeRequestButton);
267 receiveButton->setDefault(
true);
270 QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
275 #ifndef QT_NO_TOOLTIP 276 label->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.", 0));
277 #endif // QT_NO_TOOLTIP 278 label->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Amount:", 0));
279 #ifndef QT_NO_TOOLTIP 280 label_3->setToolTip(QApplication::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.", 0));
281 #endif // QT_NO_TOOLTIP 282 label_3->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Message:", 0));
283 #ifndef QT_NO_TOOLTIP 284 reqLabel->setToolTip(QApplication::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.", 0));
285 #endif // QT_NO_TOOLTIP 286 label_5->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Use this form to request payments. All fields are <b>optional</b>.", 0));
287 #ifndef QT_NO_TOOLTIP 288 label_2->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.", 0));
289 #endif // QT_NO_TOOLTIP 290 label_2->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Label:", 0));
291 #ifndef QT_NO_TOOLTIP 292 reqMessage->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional message that is attached to the payment request and may be displayed to the sender.", 0));
293 #endif // QT_NO_TOOLTIP 294 receiveButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Create new receiving address", 0));
295 #ifndef QT_NO_TOOLTIP 296 clearButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Clear all fields of the form.", 0));
297 #endif // QT_NO_TOOLTIP 298 clearButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Clear", 0));
299 label_7->setText(QString());
300 #ifndef QT_NO_TOOLTIP 301 reqAmount->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.", 0));
302 #endif // QT_NO_TOOLTIP 303 #ifndef QT_NO_TOOLTIP 304 useBech32->setToolTip(QApplication::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.", 0));
305 #endif // QT_NO_TOOLTIP 306 useBech32->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Generate native segwit (Bech32) address", 0));
307 label_6->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Requested payments history", 0));
308 #ifndef QT_NO_TOOLTIP 309 showRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Show the selected request (does the same as double clicking an entry)", 0));
310 #endif // QT_NO_TOOLTIP 311 showRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Show", 0));
312 #ifndef QT_NO_TOOLTIP 313 removeRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Remove the selected entries from the list", 0));
314 #endif // QT_NO_TOOLTIP 315 removeRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Remove", 0));
316 Q_UNUSED(ReceiveCoinsDialog);
327 #endif // UI_RECEIVECOINSDIALOG_H Widget for entering bitcoin amounts.
Dialog for requesting payment of bitcoins.
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_2
QHBoxLayout * horizontalLayout_6
QPushButton * receiveButton
BitcoinAmountField * reqAmount
void setupUi(QDialog *ReceiveCoinsDialog)
void retranslateUi(QDialog *ReceiveCoinsDialog)
QSpacerItem * horizontalSpacer
QPushButton * showRequestButton
QSpacerItem * horizontalSpacer_2
QPushButton * clearButton
QVBoxLayout * verticalLayout_3
QSpacerItem * horizontalSpacer_3
QHBoxLayout * horizontalLayout_2
QTableView * recentRequestsView
QVBoxLayout * verticalLayout_2
QPushButton * removeRequestButton
QHBoxLayout * horizontalLayout