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/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> 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"));
88 label_7->setFont(font);
89 label_7->setAlignment(Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft);
91 horizontalLayout->addWidget(label_7);
93 horizontalSpacer_6 =
new QSpacerItem(70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
95 horizontalLayout->addItem(horizontalSpacer_6);
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);
105 icon.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
106 clearButton->setIcon(icon);
107 clearButton->setAutoDefault(
false);
109 horizontalLayout->addWidget(clearButton);
111 horizontalSpacer_5 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
113 horizontalLayout->addItem(horizontalSpacer_5);
115 receiveButton =
new QPushButton(ReceiveCoinsDialog);
116 receiveButton->setObjectName(QStringLiteral(
"receiveButton"));
118 icon1.addFile(QStringLiteral(
":/icons/request_payment"), QSize(), QIcon::Normal, QIcon::Off);
119 receiveButton->setIcon(icon1);
121 horizontalLayout->addWidget(receiveButton);
124 verticalLayout->addLayout(horizontalLayout);
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"));
143 gridLayout->addWidget(label_2, 4, 0, 1, 1);
145 label_3 =
new QLabel(frameRequest);
146 label_3->setObjectName(QStringLiteral(
"label_3"));
148 gridLayout->addWidget(label_3, 6, 0, 1, 1);
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"));
156 horizontalLayout_3->addWidget(leAddress);
158 copyAddressButton =
new QToolButton(frameRequest);
159 copyAddressButton->setObjectName(QStringLiteral(
"copyAddressButton"));
160 copyAddressButton->setIconSize(QSize(22, 22));
162 horizontalLayout_3->addWidget(copyAddressButton);
164 refreshButton =
new QToolButton(frameRequest);
165 refreshButton->setObjectName(QStringLiteral(
"refreshButton"));
166 refreshButton->setMinimumSize(QSize(28, 30));
167 refreshButton->setMaximumSize(QSize(20, 30));
169 horizontalLayout_3->addWidget(refreshButton);
172 gridLayout->addLayout(horizontalLayout_3, 3, 2, 1, 1);
174 reqMessage =
new QLineEdit(frameRequest);
175 reqMessage->setObjectName(QStringLiteral(
"reqMessage"));
177 gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
179 label_5 =
new QLabel(frameRequest);
180 label_5->setObjectName(QStringLiteral(
"label_5"));
182 gridLayout->addWidget(label_5, 2, 2, 1, 1);
184 reuseAddress =
new QCheckBox(frameRequest);
185 reuseAddress->setObjectName(QStringLiteral(
"reuseAddress"));
187 gridLayout->addWidget(reuseAddress, 7, 2, 1, 1);
189 reqLabel =
new QLineEdit(frameRequest);
190 reqLabel->setObjectName(QStringLiteral(
"reqLabel"));
192 gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
194 label_4 =
new QLabel(frameRequest);
195 label_4->setObjectName(QStringLiteral(
"label_4"));
197 gridLayout->addWidget(label_4, 7, 0, 1, 1);
199 label =
new QLabel(frameRequest);
200 label->setObjectName(QStringLiteral(
"label"));
202 gridLayout->addWidget(label, 5, 0, 1, 1);
204 label_8 =
new QLabel(frameRequest);
205 label_8->setObjectName(QStringLiteral(
"label_8"));
207 gridLayout->addWidget(label_8, 3, 0, 1, 1);
210 reqAmount->setObjectName(QStringLiteral(
"reqAmount"));
211 reqAmount->setMinimumSize(QSize(80, 0));
213 gridLayout->addWidget(reqAmount, 5, 2, 1, 1);
215 verticalSpacer =
new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
217 gridLayout->addItem(verticalSpacer, 8, 0, 1, 3);
220 horizontalLayout_4->addLayout(gridLayout);
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);
229 horizontalLayout_4->addWidget(lblQRCode);
232 verticalLayout->addWidget(frameRequest);
234 verticalSpacer_2 =
new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
236 verticalLayout->addItem(verticalSpacer_2);
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);
245 horizontalLayout_2->addWidget(label_6);
247 horizontalSpacer_3 =
new QSpacerItem(70, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
249 horizontalLayout_2->addItem(horizontalSpacer_3);
251 showRequestButton =
new QPushButton(ReceiveCoinsDialog);
252 showRequestButton->setObjectName(QStringLiteral(
"showRequestButton"));
253 showRequestButton->setEnabled(
false);
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);
260 horizontalLayout_2->addWidget(showRequestButton);
262 horizontalSpacer_4 =
new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
264 horizontalLayout_2->addItem(horizontalSpacer_4);
266 removeRequestButton =
new QPushButton(ReceiveCoinsDialog);
267 removeRequestButton->setObjectName(QStringLiteral(
"removeRequestButton"));
268 removeRequestButton->setEnabled(
false);
269 removeRequestButton->setIcon(icon);
270 removeRequestButton->setAutoDefault(
false);
272 horizontalLayout_2->addWidget(removeRequestButton);
275 verticalLayout->addLayout(horizontalLayout_2);
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);
296 verticalLayout_2->addWidget(recentRequestsView);
299 verticalLayout->addWidget(frame);
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);
311 QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
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);
373 #endif // UI_RECEIVECOINSDIALOG_H Widget for entering fabcoin amounts.
Dialog for requesting payment of fabcoins.
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_2
QPushButton * receiveButton
FabcoinAmountField * reqAmount
QPushButton * showRequestButton
QPushButton * clearButton
QRImageWidget * lblQRCode
QSpacerItem * horizontalSpacer_3
QSpacerItem * verticalSpacer
void retranslateUi(QWidget *ReceiveCoinsDialog)
QHBoxLayout * horizontalLayout_2
QHBoxLayout * horizontalLayout_3
QHBoxLayout * horizontalLayout_4
QTableView * recentRequestsView
QSpacerItem * horizontalSpacer_4
QSpacerItem * horizontalSpacer_5
QVBoxLayout * verticalLayout_2
QSpacerItem * horizontalSpacer_6
void setupUi(QWidget *ReceiveCoinsDialog)
QPushButton * removeRequestButton
QToolButton * copyAddressButton
QHBoxLayout * horizontalLayout
QToolButton * refreshButton