Fabcoin Core  0.16.2
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.5.1
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/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/QToolButton>
27 #include <QtWidgets/QVBoxLayout>
28 #include <QtWidgets/QWidget>
29 #include "fabcoinamountfield.h"
30 #include "receiverequestdialog.h"
31 
32 QT_BEGIN_NAMESPACE
33 
35 {
36 public:
37  QVBoxLayout *verticalLayout;
38  QHBoxLayout *horizontalLayout;
39  QLabel *label_7;
40  QSpacerItem *horizontalSpacer_6;
41  QPushButton *clearButton;
42  QSpacerItem *horizontalSpacer_5;
43  QPushButton *receiveButton;
44  QFrame *frameRequest;
45  QHBoxLayout *horizontalLayout_4;
46  QGridLayout *gridLayout;
47  QLabel *label_2;
48  QLabel *label_3;
49  QHBoxLayout *horizontalLayout_3;
50  QLineEdit *leAddress;
51  QToolButton *copyAddressButton;
52  QToolButton *refreshButton;
53  QLineEdit *reqMessage;
54  QLabel *label_5;
55  QCheckBox *reuseAddress;
56  QLineEdit *reqLabel;
57  QLabel *label_4;
58  QLabel *label;
59  QLabel *label_8;
61  QSpacerItem *verticalSpacer;
63  QSpacerItem *verticalSpacer_2;
64  QHBoxLayout *horizontalLayout_2;
65  QLabel *label_6;
66  QSpacerItem *horizontalSpacer_3;
67  QPushButton *showRequestButton;
68  QSpacerItem *horizontalSpacer_4;
69  QPushButton *removeRequestButton;
70  QFrame *frame;
71  QVBoxLayout *verticalLayout_2;
72  QTableView *recentRequestsView;
73 
74  void setupUi(QWidget *ReceiveCoinsDialog)
75  {
76  if (ReceiveCoinsDialog->objectName().isEmpty())
77  ReceiveCoinsDialog->setObjectName(QStringLiteral("ReceiveCoinsDialog"));
78  ReceiveCoinsDialog->resize(776, 488);
79  verticalLayout = new QVBoxLayout(ReceiveCoinsDialog);
80  verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
81  horizontalLayout = new QHBoxLayout();
82  horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
83  label_7 = new QLabel(ReceiveCoinsDialog);
84  label_7->setObjectName(QStringLiteral("label_7"));
85  QFont font;
86  font.setBold(true);
87  font.setWeight(75);
88  label_7->setFont(font);
89  label_7->setAlignment(Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft);
90 
91  horizontalLayout->addWidget(label_7);
92 
93  horizontalSpacer_6 = new QSpacerItem(70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
94 
95  horizontalLayout->addItem(horizontalSpacer_6);
96 
97  clearButton = new QPushButton(ReceiveCoinsDialog);
98  clearButton->setObjectName(QStringLiteral("clearButton"));
99  QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
100  sizePolicy.setHorizontalStretch(0);
101  sizePolicy.setVerticalStretch(0);
102  sizePolicy.setHeightForWidth(clearButton->sizePolicy().hasHeightForWidth());
103  clearButton->setSizePolicy(sizePolicy);
104  QIcon icon;
105  icon.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
106  clearButton->setIcon(icon);
107  clearButton->setAutoDefault(false);
108 
109  horizontalLayout->addWidget(clearButton);
110 
111  horizontalSpacer_5 = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
112 
113  horizontalLayout->addItem(horizontalSpacer_5);
114 
115  receiveButton = new QPushButton(ReceiveCoinsDialog);
116  receiveButton->setObjectName(QStringLiteral("receiveButton"));
117  QIcon icon1;
118  icon1.addFile(QStringLiteral(":/icons/request_payment"), QSize(), QIcon::Normal, QIcon::Off);
119  receiveButton->setIcon(icon1);
120 
121  horizontalLayout->addWidget(receiveButton);
122 
123 
124  verticalLayout->addLayout(horizontalLayout);
125 
126  frameRequest = new QFrame(ReceiveCoinsDialog);
127  frameRequest->setObjectName(QStringLiteral("frameRequest"));
128  QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
129  sizePolicy1.setHorizontalStretch(0);
130  sizePolicy1.setVerticalStretch(0);
131  sizePolicy1.setHeightForWidth(frameRequest->sizePolicy().hasHeightForWidth());
132  frameRequest->setSizePolicy(sizePolicy1);
133  frameRequest->setFrameShape(QFrame::StyledPanel);
134  frameRequest->setFrameShadow(QFrame::Sunken);
135  horizontalLayout_4 = new QHBoxLayout(frameRequest);
136  horizontalLayout_4->setObjectName(QStringLiteral("horizontalLayout_4"));
137  gridLayout = new QGridLayout();
138  gridLayout->setObjectName(QStringLiteral("gridLayout"));
139  gridLayout->setHorizontalSpacing(15);
140  label_2 = new QLabel(frameRequest);
141  label_2->setObjectName(QStringLiteral("label_2"));
142 
143  gridLayout->addWidget(label_2, 4, 0, 1, 1);
144 
145  label_3 = new QLabel(frameRequest);
146  label_3->setObjectName(QStringLiteral("label_3"));
147 
148  gridLayout->addWidget(label_3, 6, 0, 1, 1);
149 
150  horizontalLayout_3 = new QHBoxLayout();
151  horizontalLayout_3->setSpacing(6);
152  horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
153  leAddress = new QLineEdit(frameRequest);
154  leAddress->setObjectName(QStringLiteral("leAddress"));
155 
156  horizontalLayout_3->addWidget(leAddress);
157 
158  copyAddressButton = new QToolButton(frameRequest);
159  copyAddressButton->setObjectName(QStringLiteral("copyAddressButton"));
160  copyAddressButton->setIconSize(QSize(22, 22));
161 
162  horizontalLayout_3->addWidget(copyAddressButton);
163 
164  refreshButton = new QToolButton(frameRequest);
165  refreshButton->setObjectName(QStringLiteral("refreshButton"));
166  refreshButton->setMinimumSize(QSize(28, 30));
167  refreshButton->setMaximumSize(QSize(20, 30));
168 
169  horizontalLayout_3->addWidget(refreshButton);
170 
171 
172  gridLayout->addLayout(horizontalLayout_3, 3, 2, 1, 1);
173 
174  reqMessage = new QLineEdit(frameRequest);
175  reqMessage->setObjectName(QStringLiteral("reqMessage"));
176 
177  gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
178 
179  label_5 = new QLabel(frameRequest);
180  label_5->setObjectName(QStringLiteral("label_5"));
181 
182  gridLayout->addWidget(label_5, 2, 2, 1, 1);
183 
184  reuseAddress = new QCheckBox(frameRequest);
185  reuseAddress->setObjectName(QStringLiteral("reuseAddress"));
186 
187  gridLayout->addWidget(reuseAddress, 7, 2, 1, 1);
188 
189  reqLabel = new QLineEdit(frameRequest);
190  reqLabel->setObjectName(QStringLiteral("reqLabel"));
191 
192  gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
193 
194  label_4 = new QLabel(frameRequest);
195  label_4->setObjectName(QStringLiteral("label_4"));
196 
197  gridLayout->addWidget(label_4, 7, 0, 1, 1);
198 
199  label = new QLabel(frameRequest);
200  label->setObjectName(QStringLiteral("label"));
201 
202  gridLayout->addWidget(label, 5, 0, 1, 1);
203 
204  label_8 = new QLabel(frameRequest);
205  label_8->setObjectName(QStringLiteral("label_8"));
206 
207  gridLayout->addWidget(label_8, 3, 0, 1, 1);
208 
209  reqAmount = new FabcoinAmountField(frameRequest);
210  reqAmount->setObjectName(QStringLiteral("reqAmount"));
211  reqAmount->setMinimumSize(QSize(80, 0));
212 
213  gridLayout->addWidget(reqAmount, 5, 2, 1, 1);
214 
215  verticalSpacer = new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
216 
217  gridLayout->addItem(verticalSpacer, 8, 0, 1, 3);
218 
219 
220  horizontalLayout_4->addLayout(gridLayout);
221 
222  lblQRCode = new QRImageWidget(frameRequest);
223  lblQRCode->setObjectName(QStringLiteral("lblQRCode"));
224  lblQRCode->setMinimumSize(QSize(200, 220));
225  lblQRCode->setMaximumSize(QSize(200, 220));
226  lblQRCode->setAlignment(Qt::AlignCenter);
227  lblQRCode->setWordWrap(true);
228 
229  horizontalLayout_4->addWidget(lblQRCode);
230 
231 
232  verticalLayout->addWidget(frameRequest);
233 
234  verticalSpacer_2 = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
235 
236  verticalLayout->addItem(verticalSpacer_2);
237 
238  horizontalLayout_2 = new QHBoxLayout();
239  horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
240  label_6 = new QLabel(ReceiveCoinsDialog);
241  label_6->setObjectName(QStringLiteral("label_6"));
242  label_6->setFont(font);
243  label_6->setAlignment(Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft);
244 
245  horizontalLayout_2->addWidget(label_6);
246 
247  horizontalSpacer_3 = new QSpacerItem(70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
248 
249  horizontalLayout_2->addItem(horizontalSpacer_3);
250 
251  showRequestButton = new QPushButton(ReceiveCoinsDialog);
252  showRequestButton->setObjectName(QStringLiteral("showRequestButton"));
253  showRequestButton->setEnabled(false);
254  QIcon icon2;
255  icon2.addFile(QStringLiteral(":/icons/show"), QSize(), QIcon::Normal, QIcon::Off);
256  showRequestButton->setIcon(icon2);
257  showRequestButton->setIconSize(QSize(22, 16));
258  showRequestButton->setAutoDefault(false);
259 
260  horizontalLayout_2->addWidget(showRequestButton);
261 
262  horizontalSpacer_4 = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
263 
264  horizontalLayout_2->addItem(horizontalSpacer_4);
265 
266  removeRequestButton = new QPushButton(ReceiveCoinsDialog);
267  removeRequestButton->setObjectName(QStringLiteral("removeRequestButton"));
268  removeRequestButton->setEnabled(false);
269  removeRequestButton->setIcon(icon);
270  removeRequestButton->setAutoDefault(false);
271 
272  horizontalLayout_2->addWidget(removeRequestButton);
273 
274 
275  verticalLayout->addLayout(horizontalLayout_2);
276 
277  frame = new QFrame(ReceiveCoinsDialog);
278  frame->setObjectName(QStringLiteral("frame"));
279  QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
280  sizePolicy2.setHorizontalStretch(0);
281  sizePolicy2.setVerticalStretch(0);
282  sizePolicy2.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
283  frame->setSizePolicy(sizePolicy2);
284  frame->setFrameShape(QFrame::StyledPanel);
285  frame->setFrameShadow(QFrame::Raised);
286  verticalLayout_2 = new QVBoxLayout(frame);
287  verticalLayout_2->setSpacing(0);
288  verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
289  verticalLayout_2->setContentsMargins(0, 0, 0, 0);
290  recentRequestsView = new QTableView(frame);
291  recentRequestsView->setObjectName(QStringLiteral("recentRequestsView"));
292  recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
293  recentRequestsView->setTabKeyNavigation(false);
294  recentRequestsView->setSortingEnabled(true);
295 
296  verticalLayout_2->addWidget(recentRequestsView);
297 
298 
299  verticalLayout->addWidget(frame);
300 
301 #ifndef QT_NO_SHORTCUT
302  label_2->setBuddy(reqLabel);
303  label_3->setBuddy(reqMessage);
304  label->setBuddy(reqAmount);
305 #endif // QT_NO_SHORTCUT
306  QWidget::setTabOrder(recentRequestsView, showRequestButton);
307  QWidget::setTabOrder(showRequestButton, removeRequestButton);
308 
309  retranslateUi(ReceiveCoinsDialog);
310 
311  QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
312  } // setupUi
313 
315  {
316  label_7->setText(QApplication::translate("ReceiveCoinsDialog", "Request data", 0));
317 #ifndef QT_NO_TOOLTIP
318  clearButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Clear all fields of the form.", 0));
319 #endif // QT_NO_TOOLTIP
320  clearButton->setText(QApplication::translate("ReceiveCoinsDialog", "Clear", 0));
321  receiveButton->setText(QApplication::translate("ReceiveCoinsDialog", "&Request payment", 0));
322 #ifndef QT_NO_TOOLTIP
323  label_2->setToolTip(QApplication::translate("ReceiveCoinsDialog", "An optional label to associate with the new receiving address.", 0));
324 #endif // QT_NO_TOOLTIP
325  label_2->setText(QApplication::translate("ReceiveCoinsDialog", "&Label:", 0));
326 #ifndef QT_NO_TOOLTIP
327  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 Fabcoin network.", 0));
328 #endif // QT_NO_TOOLTIP
329  label_3->setText(QApplication::translate("ReceiveCoinsDialog", "&Message:", 0));
330  copyAddressButton->setText(QString());
331  refreshButton->setText(QString());
332 #ifndef QT_NO_TOOLTIP
333  reqMessage->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 Fabcoin network.", 0));
334 #endif // QT_NO_TOOLTIP
335  label_5->setText(QApplication::translate("ReceiveCoinsDialog", "Use this form to request payments. All fields are <b>optional</b>.", 0));
336 #ifndef QT_NO_TOOLTIP
337  reuseAddress->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.", 0));
338 #endif // QT_NO_TOOLTIP
339  reuseAddress->setText(QApplication::translate("ReceiveCoinsDialog", "R&euse an existing receiving address (not recommended)", 0));
340 #ifndef QT_NO_TOOLTIP
341  reqLabel->setToolTip(QApplication::translate("ReceiveCoinsDialog", "An optional label to associate with the new receiving address.", 0));
342 #endif // QT_NO_TOOLTIP
343  label_4->setText(QString());
344 #ifndef QT_NO_TOOLTIP
345  label->setToolTip(QApplication::translate("ReceiveCoinsDialog", "An optional amount to request. Leave this empty or zero to not request a specific amount.", 0));
346 #endif // QT_NO_TOOLTIP
347  label->setText(QApplication::translate("ReceiveCoinsDialog", "&Amount:", 0));
348  label_8->setText(QApplication::translate("ReceiveCoinsDialog", "Address:", 0));
349 #ifndef QT_NO_TOOLTIP
350  reqAmount->setToolTip(QApplication::translate("ReceiveCoinsDialog", "An optional amount to request. Leave this empty or zero to not request a specific amount.", 0));
351 #endif // QT_NO_TOOLTIP
352  lblQRCode->setText(QString());
353  label_6->setText(QApplication::translate("ReceiveCoinsDialog", "Requested payments history", 0));
354 #ifndef QT_NO_TOOLTIP
355  showRequestButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Show the selected request (does the same as double clicking an entry)", 0));
356 #endif // QT_NO_TOOLTIP
357  showRequestButton->setText(QApplication::translate("ReceiveCoinsDialog", "Show", 0));
358 #ifndef QT_NO_TOOLTIP
359  removeRequestButton->setToolTip(QApplication::translate("ReceiveCoinsDialog", "Remove the selected entries from the list", 0));
360 #endif // QT_NO_TOOLTIP
361  removeRequestButton->setText(QApplication::translate("ReceiveCoinsDialog", "Remove", 0));
362  Q_UNUSED(ReceiveCoinsDialog);
363  } // retranslateUi
364 
365 };
366 
367 namespace Ui {
369 } // namespace Ui
370 
371 QT_END_NAMESPACE
372 
373 #endif // UI_RECEIVECOINSDIALOG_H
Widget for entering fabcoin amounts.
Dialog for requesting payment of fabcoins.
FabcoinAmountField * reqAmount
void retranslateUi(QWidget *ReceiveCoinsDialog)
void setupUi(QWidget *ReceiveCoinsDialog)