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/QVBoxLayout>
27 #include <QtWidgets/QWidget>
65 if (ReceiveCoinsDialog->objectName().isEmpty())
66 ReceiveCoinsDialog->setObjectName(QStringLiteral(
"ReceiveCoinsDialog"));
67 ReceiveCoinsDialog->resize(776, 364);
68 verticalLayout =
new QVBoxLayout(ReceiveCoinsDialog);
69 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
70 frame2 =
new QFrame(ReceiveCoinsDialog);
71 frame2->setObjectName(QStringLiteral(
"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(QStringLiteral(
"verticalLayout_3"));
81 gridLayout =
new QGridLayout();
82 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
83 reuseAddress =
new QCheckBox(frame2);
84 reuseAddress->setObjectName(QStringLiteral(
"reuseAddress"));
86 gridLayout->addWidget(reuseAddress, 7, 2, 1, 1);
88 label_4 =
new QLabel(frame2);
89 label_4->setObjectName(QStringLiteral(
"label_4"));
91 gridLayout->addWidget(label_4, 7, 0, 1, 1);
93 label_3 =
new QLabel(frame2);
94 label_3->setObjectName(QStringLiteral(
"label_3"));
95 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
97 gridLayout->addWidget(label_3, 6, 0, 1, 1);
99 reqLabel =
new QLineEdit(frame2);
100 reqLabel->setObjectName(QStringLiteral(
"reqLabel"));
102 gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
104 reqMessage =
new QLineEdit(frame2);
105 reqMessage->setObjectName(QStringLiteral(
"reqMessage"));
107 gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
109 label_5 =
new QLabel(frame2);
110 label_5->setObjectName(QStringLiteral(
"label_5"));
112 gridLayout->addWidget(label_5, 2, 2, 1, 1);
114 label_2 =
new QLabel(frame2);
115 label_2->setObjectName(QStringLiteral(
"label_2"));
116 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
118 gridLayout->addWidget(label_2, 4, 0, 1, 1);
120 label =
new QLabel(frame2);
121 label->setObjectName(QStringLiteral(
"label"));
122 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
124 gridLayout->addWidget(label, 5, 0, 1, 1);
127 reqAmount->setObjectName(QStringLiteral(
"reqAmount"));
128 reqAmount->setMinimumSize(QSize(80, 0));
130 gridLayout->addWidget(reqAmount, 5, 2, 1, 1);
132 horizontalLayout =
new QHBoxLayout();
133 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
134 receiveButton =
new QPushButton(frame2);
135 receiveButton->setObjectName(QStringLiteral(
"receiveButton"));
136 receiveButton->setMinimumSize(QSize(150, 0));
138 icon.addFile(QStringLiteral(
":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
139 receiveButton->setIcon(icon);
141 horizontalLayout->addWidget(receiveButton);
143 clearButton =
new QPushButton(frame2);
144 clearButton->setObjectName(QStringLiteral(
"clearButton"));
145 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
146 sizePolicy1.setHorizontalStretch(0);
147 sizePolicy1.setVerticalStretch(0);
148 sizePolicy1.setHeightForWidth(clearButton->sizePolicy().hasHeightForWidth());
149 clearButton->setSizePolicy(sizePolicy1);
151 icon1.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
152 clearButton->setIcon(icon1);
153 clearButton->setAutoRepeatDelay(300);
154 clearButton->setAutoDefault(
false);
156 horizontalLayout->addWidget(clearButton);
158 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
160 horizontalLayout->addItem(horizontalSpacer);
163 gridLayout->addLayout(horizontalLayout, 8, 2, 1, 1);
165 label_7 =
new QLabel(frame2);
166 label_7->setObjectName(QStringLiteral(
"label_7"));
168 gridLayout->addWidget(label_7, 8, 0, 1, 1);
171 verticalLayout_3->addLayout(gridLayout);
174 verticalLayout->addWidget(frame2);
176 verticalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
178 verticalLayout->addItem(verticalSpacer_2);
180 frame =
new QFrame(ReceiveCoinsDialog);
181 frame->setObjectName(QStringLiteral(
"frame"));
182 sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
183 frame->setSizePolicy(sizePolicy);
184 frame->setFrameShape(QFrame::StyledPanel);
185 frame->setFrameShadow(QFrame::Raised);
186 verticalLayout_2 =
new QVBoxLayout(frame);
187 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
188 label_6 =
new QLabel(frame);
189 label_6->setObjectName(QStringLiteral(
"label_6"));
193 label_6->setFont(font);
195 verticalLayout_2->addWidget(label_6);
197 recentRequestsView =
new QTableView(frame);
198 recentRequestsView->setObjectName(QStringLiteral(
"recentRequestsView"));
199 recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
200 recentRequestsView->setTabKeyNavigation(
false);
201 recentRequestsView->setSortingEnabled(
true);
203 verticalLayout_2->addWidget(recentRequestsView);
205 horizontalLayout_2 =
new QHBoxLayout();
206 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
207 showRequestButton =
new QPushButton(frame);
208 showRequestButton->setObjectName(QStringLiteral(
"showRequestButton"));
209 showRequestButton->setEnabled(
false);
211 icon2.addFile(QStringLiteral(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
212 showRequestButton->setIcon(icon2);
214 horizontalLayout_2->addWidget(showRequestButton);
216 removeRequestButton =
new QPushButton(frame);
217 removeRequestButton->setObjectName(QStringLiteral(
"removeRequestButton"));
218 removeRequestButton->setEnabled(
false);
219 removeRequestButton->setIcon(icon1);
221 horizontalLayout_2->addWidget(removeRequestButton);
223 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
225 horizontalLayout_2->addItem(horizontalSpacer_2);
228 verticalLayout_2->addLayout(horizontalLayout_2);
231 verticalLayout->addWidget(frame);
233 verticalLayout->setStretch(2, 1);
234 #ifndef QT_NO_SHORTCUT
235 label_3->setBuddy(reqMessage);
236 label_2->setBuddy(reqLabel);
237 label->setBuddy(reqAmount);
238 #endif // QT_NO_SHORTCUT
239 QWidget::setTabOrder(reqLabel, reqAmount);
240 QWidget::setTabOrder(reqAmount, reqMessage);
241 QWidget::setTabOrder(reqMessage, reuseAddress);
242 QWidget::setTabOrder(reuseAddress, receiveButton);
243 QWidget::setTabOrder(receiveButton, clearButton);
244 QWidget::setTabOrder(clearButton, recentRequestsView);
245 QWidget::setTabOrder(recentRequestsView, showRequestButton);
246 QWidget::setTabOrder(showRequestButton, removeRequestButton);
250 QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
255 #ifndef QT_NO_TOOLTIP
256 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));
257 #endif // QT_NO_TOOLTIP
258 reuseAddress->setText(QApplication::translate(
"ReceiveCoinsDialog",
"R&euse an existing receiving address (not recommended)", 0));
259 label_4->setText(QString());
260 #ifndef QT_NO_TOOLTIP
261 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 Anoncoin network.", 0));
262 #endif // QT_NO_TOOLTIP
263 label_3->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Message:", 0));
264 #ifndef QT_NO_TOOLTIP
265 reqLabel->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.", 0));
266 #endif // QT_NO_TOOLTIP
267 #ifndef QT_NO_TOOLTIP
268 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 Anoncoin network.", 0));
269 #endif // QT_NO_TOOLTIP
270 label_5->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Use this form to request payments. All fields are <b>optional</b>.", 0));
271 #ifndef QT_NO_TOOLTIP
272 label_2->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.", 0));
273 #endif // QT_NO_TOOLTIP
274 label_2->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Label:", 0));
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 reqAmount->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.", 0));
281 #endif // QT_NO_TOOLTIP
282 receiveButton->
setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Request payment", 0));
283 #ifndef QT_NO_TOOLTIP
284 clearButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Clear all fields of the form.", 0));
285 #endif // QT_NO_TOOLTIP
286 clearButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Clear", 0));
287 label_7->setText(QString());
288 label_6->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Requested payments history", 0));
289 #ifndef QT_NO_TOOLTIP
290 showRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Show the selected request (does the same as double clicking an entry)", 0));
291 #endif // QT_NO_TOOLTIP
292 showRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Show", 0));
293 #ifndef QT_NO_TOOLTIP
294 removeRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Remove the selected entries from the list", 0));
295 #endif // QT_NO_TOOLTIP
296 removeRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Remove", 0));
297 Q_UNUSED(ReceiveCoinsDialog);
308 #endif // UI_RECEIVECOINSDIALOG_H
void setText(const QString &text)
Dialog for requesting payment of anoncoins.
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_2
QPushButton * receiveButton
QSpacerItem * horizontalSpacer
QPushButton * showRequestButton
Widget for entering anoncoin amounts.
AnoncoinAmountField * reqAmount
QSpacerItem * horizontalSpacer_2
QPushButton * clearButton
QVBoxLayout * verticalLayout_3
void retranslateUi(QWidget *ReceiveCoinsDialog)
QHBoxLayout * horizontalLayout_2
QTableView * recentRequestsView
QVBoxLayout * verticalLayout_2
void setupUi(QWidget *ReceiveCoinsDialog)
QPushButton * removeRequestButton
QHBoxLayout * horizontalLayout