Bitcoin Core  0.21.0rc5
P2P Digital Currency
ui_receivecoinsdialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'receivecoinsdialog.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.15.2
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_RECEIVECOINSDIALOG_H
10 #define UI_RECEIVECOINSDIALOG_H
11 
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
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>
27 #include "qt/bitcoinamountfield.h"
28 
29 QT_BEGIN_NAMESPACE
30 
32 {
33 public:
34  QVBoxLayout *verticalLayout;
35  QFrame *frame2;
36  QVBoxLayout *verticalLayout_3;
37  QGridLayout *gridLayout;
38  QLabel *label;
39  QLabel *label_3;
40  QLineEdit *reqLabel;
41  QLabel *label_5;
42  QLabel *label_2;
43  QLineEdit *reqMessage;
44  QHBoxLayout *horizontalLayout;
45  QPushButton *receiveButton;
46  QPushButton *clearButton;
47  QSpacerItem *horizontalSpacer;
48  QLabel *label_7;
49  QHBoxLayout *horizontalLayout_6;
51  QCheckBox *useBech32;
52  QSpacerItem *horizontalSpacer_3;
53  QSpacerItem *verticalSpacer_2;
54  QFrame *frame;
55  QVBoxLayout *verticalLayout_2;
56  QLabel *label_6;
57  QTableView *recentRequestsView;
58  QHBoxLayout *horizontalLayout_2;
59  QPushButton *showRequestButton;
60  QPushButton *removeRequestButton;
61  QSpacerItem *horizontalSpacer_2;
62 
63  void setupUi(QDialog *ReceiveCoinsDialog)
64  {
65  if (ReceiveCoinsDialog->objectName().isEmpty())
66  ReceiveCoinsDialog->setObjectName(QString::fromUtf8("ReceiveCoinsDialog"));
67  ReceiveCoinsDialog->resize(776, 396);
68  verticalLayout = new QVBoxLayout(ReceiveCoinsDialog);
69  verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
70  frame2 = new QFrame(ReceiveCoinsDialog);
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);
79  verticalLayout_3 = new QVBoxLayout(frame2);
80  verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
81  gridLayout = new QGridLayout();
82  gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
83  label = new QLabel(frame2);
84  label->setObjectName(QString::fromUtf8("label"));
85  label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
86 
87  gridLayout->addWidget(label, 5, 0, 1, 1);
88 
89  label_3 = new QLabel(frame2);
90  label_3->setObjectName(QString::fromUtf8("label_3"));
91  label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
92 
93  gridLayout->addWidget(label_3, 6, 0, 1, 1);
94 
95  reqLabel = new QLineEdit(frame2);
96  reqLabel->setObjectName(QString::fromUtf8("reqLabel"));
97 
98  gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
99 
100  label_5 = new QLabel(frame2);
101  label_5->setObjectName(QString::fromUtf8("label_5"));
102 
103  gridLayout->addWidget(label_5, 2, 2, 1, 1);
104 
105  label_2 = new QLabel(frame2);
106  label_2->setObjectName(QString::fromUtf8("label_2"));
107  label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
108 
109  gridLayout->addWidget(label_2, 4, 0, 1, 1);
110 
111  reqMessage = new QLineEdit(frame2);
112  reqMessage->setObjectName(QString::fromUtf8("reqMessage"));
113 
114  gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
115 
116  horizontalLayout = new QHBoxLayout();
117  horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
118  receiveButton = new QPushButton(frame2);
119  receiveButton->setObjectName(QString::fromUtf8("receiveButton"));
120  receiveButton->setMinimumSize(QSize(150, 0));
121  QIcon icon;
122  icon.addFile(QString::fromUtf8(":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
123  receiveButton->setIcon(icon);
124  receiveButton->setAutoDefault(false);
125 
126  horizontalLayout->addWidget(receiveButton);
127 
128  clearButton = new QPushButton(frame2);
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());
134  clearButton->setSizePolicy(sizePolicy1);
135  QIcon icon1;
136  icon1.addFile(QString::fromUtf8(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
137  clearButton->setIcon(icon1);
138  clearButton->setAutoDefault(false);
139 
140  horizontalLayout->addWidget(clearButton);
141 
142  horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
143 
145 
146 
147  gridLayout->addLayout(horizontalLayout, 7, 2, 1, 1);
148 
149  label_7 = new QLabel(frame2);
150  label_7->setObjectName(QString::fromUtf8("label_7"));
151 
152  gridLayout->addWidget(label_7, 7, 0, 1, 1);
153 
154  horizontalLayout_6 = new QHBoxLayout();
155  horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
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());
162  reqAmount->setSizePolicy(sizePolicy2);
163  reqAmount->setMinimumSize(QSize(80, 0));
164  reqAmount->setMaximumSize(QSize(1000, 100));
165 
166  horizontalLayout_6->addWidget(reqAmount);
167 
168  useBech32 = new QCheckBox(frame2);
169  useBech32->setObjectName(QString::fromUtf8("useBech32"));
170  sizePolicy2.setHeightForWidth(useBech32->sizePolicy().hasHeightForWidth());
171  useBech32->setSizePolicy(sizePolicy2);
172  useBech32->setMaximumSize(QSize(1000, 16777215));
173  useBech32->setFocusPolicy(Qt::StrongFocus);
174 
175  horizontalLayout_6->addWidget(useBech32);
176 
177  horizontalSpacer_3 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
178 
180 
181 
182  gridLayout->addLayout(horizontalLayout_6, 5, 2, 1, 1);
183 
184 
185  verticalLayout_3->addLayout(gridLayout);
186 
187 
188  verticalLayout->addWidget(frame2);
189 
190  verticalSpacer_2 = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
191 
193 
194  frame = new QFrame(ReceiveCoinsDialog);
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);
200  verticalLayout_2 = new QVBoxLayout(frame);
201  verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
202  label_6 = new QLabel(frame);
203  label_6->setObjectName(QString::fromUtf8("label_6"));
204  QFont font;
205  font.setBold(true);
206  font.setWeight(75);
207  label_6->setFont(font);
208 
209  verticalLayout_2->addWidget(label_6);
210 
211  recentRequestsView = new QTableView(frame);
212  recentRequestsView->setObjectName(QString::fromUtf8("recentRequestsView"));
213  recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
214  recentRequestsView->setTabKeyNavigation(false);
215  recentRequestsView->setSortingEnabled(true);
216 
218 
219  horizontalLayout_2 = new QHBoxLayout();
220  horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
221  showRequestButton = new QPushButton(frame);
222  showRequestButton->setObjectName(QString::fromUtf8("showRequestButton"));
223  showRequestButton->setEnabled(false);
224  QIcon icon2;
225  icon2.addFile(QString::fromUtf8(":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
226  showRequestButton->setIcon(icon2);
227  showRequestButton->setAutoDefault(false);
228 
230 
231  removeRequestButton = new QPushButton(frame);
232  removeRequestButton->setObjectName(QString::fromUtf8("removeRequestButton"));
233  removeRequestButton->setEnabled(false);
234  removeRequestButton->setIcon(icon1);
235  removeRequestButton->setAutoDefault(false);
236 
238 
239  horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
240 
242 
243 
245 
246 
247  verticalLayout->addWidget(frame);
248 
249  verticalLayout->setStretch(2, 1);
250 #if QT_CONFIG(shortcut)
251  label->setBuddy(reqAmount);
252  label_3->setBuddy(reqMessage);
253  label_2->setBuddy(reqLabel);
254 #endif // QT_CONFIG(shortcut)
255  QWidget::setTabOrder(reqLabel, reqAmount);
256  QWidget::setTabOrder(reqAmount, useBech32);
257  QWidget::setTabOrder(useBech32, reqMessage);
258  QWidget::setTabOrder(reqMessage, receiveButton);
259  QWidget::setTabOrder(receiveButton, clearButton);
260  QWidget::setTabOrder(clearButton, recentRequestsView);
261  QWidget::setTabOrder(recentRequestsView, showRequestButton);
262  QWidget::setTabOrder(showRequestButton, removeRequestButton);
263 
265 
266  receiveButton->setDefault(true);
267 
268 
269  QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
270  } // setupUi
271 
273  {
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));
276 #endif // QT_CONFIG(tooltip)
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));
280 #endif // QT_CONFIG(tooltip)
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));
284 #endif // QT_CONFIG(tooltip)
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));
288 #endif // QT_CONFIG(tooltip)
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));
292 #endif // QT_CONFIG(tooltip)
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));
296 #endif // QT_CONFIG(tooltip)
297  clearButton->setText(QCoreApplication::translate("ReceiveCoinsDialog", "Clear", nullptr));
298  label_7->setText(QString());
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));
301 #endif // QT_CONFIG(tooltip)
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));
304 #endif // QT_CONFIG(tooltip)
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));
309 #endif // QT_CONFIG(tooltip)
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));
313 #endif // QT_CONFIG(tooltip)
314  removeRequestButton->setText(QCoreApplication::translate("ReceiveCoinsDialog", "Remove", nullptr));
315  (void)ReceiveCoinsDialog;
316  } // retranslateUi
317 
318 };
319 
320 namespace Ui {
322 } // namespace Ui
323 
324 QT_END_NAMESPACE
325 
326 #endif // UI_RECEIVECOINSDIALOG_H
Widget for entering bitcoin amounts.
Dialog for requesting payment of bitcoins.
BitcoinAmountField * reqAmount
void setupUi(QDialog *ReceiveCoinsDialog)
void retranslateUi(QDialog *ReceiveCoinsDialog)