Bitcoin Core  0.21.1
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.9.4
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 <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>
28 #include "qt/bitcoinamountfield.h"
29 
30 QT_BEGIN_NAMESPACE
31 
33 {
34 public:
35  QVBoxLayout *verticalLayout;
36  QFrame *frame2;
37  QVBoxLayout *verticalLayout_3;
38  QGridLayout *gridLayout;
39  QLabel *label;
40  QLabel *label_3;
41  QLineEdit *reqLabel;
42  QLabel *label_5;
43  QLabel *label_2;
44  QLineEdit *reqMessage;
45  QHBoxLayout *horizontalLayout;
46  QPushButton *receiveButton;
47  QPushButton *clearButton;
48  QSpacerItem *horizontalSpacer;
49  QLabel *label_7;
50  QHBoxLayout *horizontalLayout_6;
52  QCheckBox *useBech32;
53  QSpacerItem *horizontalSpacer_3;
54  QSpacerItem *verticalSpacer_2;
55  QFrame *frame;
56  QVBoxLayout *verticalLayout_2;
57  QLabel *label_6;
58  QTableView *recentRequestsView;
59  QHBoxLayout *horizontalLayout_2;
60  QPushButton *showRequestButton;
61  QPushButton *removeRequestButton;
62  QSpacerItem *horizontalSpacer_2;
63 
64  void setupUi(QDialog *ReceiveCoinsDialog)
65  {
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);
87 
88  gridLayout->addWidget(label, 5, 0, 1, 1);
89 
90  label_3 = new QLabel(frame2);
91  label_3->setObjectName(QStringLiteral("label_3"));
92  label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
93 
94  gridLayout->addWidget(label_3, 6, 0, 1, 1);
95 
96  reqLabel = new QLineEdit(frame2);
97  reqLabel->setObjectName(QStringLiteral("reqLabel"));
98 
99  gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
100 
101  label_5 = new QLabel(frame2);
102  label_5->setObjectName(QStringLiteral("label_5"));
103 
104  gridLayout->addWidget(label_5, 2, 2, 1, 1);
105 
106  label_2 = new QLabel(frame2);
107  label_2->setObjectName(QStringLiteral("label_2"));
108  label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
109 
110  gridLayout->addWidget(label_2, 4, 0, 1, 1);
111 
112  reqMessage = new QLineEdit(frame2);
113  reqMessage->setObjectName(QStringLiteral("reqMessage"));
114 
115  gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
116 
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));
122  QIcon icon;
123  icon.addFile(QStringLiteral(":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
124  receiveButton->setIcon(icon);
125  receiveButton->setAutoDefault(false);
126 
127  horizontalLayout->addWidget(receiveButton);
128 
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);
136  QIcon icon1;
137  icon1.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
138  clearButton->setIcon(icon1);
139  clearButton->setAutoDefault(false);
140 
141  horizontalLayout->addWidget(clearButton);
142 
143  horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
144 
146 
147 
148  gridLayout->addLayout(horizontalLayout, 7, 2, 1, 1);
149 
150  label_7 = new QLabel(frame2);
151  label_7->setObjectName(QStringLiteral("label_7"));
152 
153  gridLayout->addWidget(label_7, 7, 0, 1, 1);
154 
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));
166 
167  horizontalLayout_6->addWidget(reqAmount);
168 
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);
175 
176  horizontalLayout_6->addWidget(useBech32);
177 
178  horizontalSpacer_3 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
179 
181 
182 
183  gridLayout->addLayout(horizontalLayout_6, 5, 2, 1, 1);
184 
185 
186  verticalLayout_3->addLayout(gridLayout);
187 
188 
189  verticalLayout->addWidget(frame2);
190 
191  verticalSpacer_2 = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
192 
194 
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"));
205  QFont font;
206  font.setBold(true);
207  font.setWeight(75);
208  label_6->setFont(font);
209 
210  verticalLayout_2->addWidget(label_6);
211 
212  recentRequestsView = new QTableView(frame);
213  recentRequestsView->setObjectName(QStringLiteral("recentRequestsView"));
214  recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
215  recentRequestsView->setTabKeyNavigation(false);
216  recentRequestsView->setSortingEnabled(true);
217 
219 
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);
225  QIcon icon2;
226  icon2.addFile(QStringLiteral(":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
227  showRequestButton->setIcon(icon2);
228  showRequestButton->setAutoDefault(false);
229 
231 
232  removeRequestButton = new QPushButton(frame);
233  removeRequestButton->setObjectName(QStringLiteral("removeRequestButton"));
234  removeRequestButton->setEnabled(false);
235  removeRequestButton->setIcon(icon1);
236  removeRequestButton->setAutoDefault(false);
237 
239 
240  horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
241 
243 
244 
246 
247 
248  verticalLayout->addWidget(frame);
249 
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);
264 
266 
267  receiveButton->setDefault(true);
268 
269 
270  QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
271  } // setupUi
272 
274  {
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.", Q_NULLPTR));
277 #endif // QT_NO_TOOLTIP
278  label->setText(QApplication::translate("ReceiveCoinsDialog", "&Amount:", Q_NULLPTR));
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.", Q_NULLPTR));
281 #endif // QT_NO_TOOLTIP
282  label_3->setText(QApplication::translate("ReceiveCoinsDialog", "&Message:", Q_NULLPTR));
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.", Q_NULLPTR));
285 #endif // QT_NO_TOOLTIP
286  label_5->setText(QApplication::translate("ReceiveCoinsDialog", "Use this form to request payments. All fields are <b>optional</b>.", Q_NULLPTR));
287 #ifndef QT_NO_TOOLTIP
288  label_2->setToolTip(QApplication::translate("ReceiveCoinsDialog", "An optional label to associate with the new receiving address.", Q_NULLPTR));
289 #endif // QT_NO_TOOLTIP
290  label_2->setText(QApplication::translate("ReceiveCoinsDialog", "&Label:", Q_NULLPTR));
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.", Q_NULLPTR));
293 #endif // QT_NO_TOOLTIP
294  receiveButton->setText(QApplication::translate("ReceiveCoinsDialog", "&Create new receiving address", Q_NULLPTR));
295 #ifndef QT_NO_TOOLTIP
296  clearButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Clear all fields of the form.", Q_NULLPTR));
297 #endif // QT_NO_TOOLTIP
298  clearButton->setText(QApplication::translate("ReceiveCoinsDialog", "Clear", Q_NULLPTR));
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.", Q_NULLPTR));
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.", Q_NULLPTR));
305 #endif // QT_NO_TOOLTIP
306  useBech32->setText(QApplication::translate("ReceiveCoinsDialog", "Generate native segwit (Bech32) address", Q_NULLPTR));
307  label_6->setText(QApplication::translate("ReceiveCoinsDialog", "Requested payments history", Q_NULLPTR));
308 #ifndef QT_NO_TOOLTIP
309  showRequestButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Show the selected request (does the same as double clicking an entry)", Q_NULLPTR));
310 #endif // QT_NO_TOOLTIP
311  showRequestButton->setText(QApplication::translate("ReceiveCoinsDialog", "Show", Q_NULLPTR));
312 #ifndef QT_NO_TOOLTIP
313  removeRequestButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Remove the selected entries from the list", Q_NULLPTR));
314 #endif // QT_NO_TOOLTIP
315  removeRequestButton->setText(QApplication::translate("ReceiveCoinsDialog", "Remove", Q_NULLPTR));
316  Q_UNUSED(ReceiveCoinsDialog);
317  } // retranslateUi
318 
319 };
320 
321 namespace Ui {
323 } // namespace Ui
324 
325 QT_END_NAMESPACE
326 
327 #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)