8 #ifndef UI_RECEIVECOINSDIALOG_H
9 #define UI_RECEIVECOINSDIALOG_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QCheckBox>
16 #include <QtGui/QFrame>
17 #include <QtGui/QGridLayout>
18 #include <QtGui/QHBoxLayout>
19 #include <QtGui/QHeaderView>
20 #include <QtGui/QLabel>
21 #include <QtGui/QLineEdit>
22 #include <QtGui/QPushButton>
23 #include <QtGui/QSpacerItem>
24 #include <QtGui/QTableView>
25 #include <QtGui/QVBoxLayout>
26 #include <QtGui/QWidget>
64 if (ReceiveCoinsDialog->objectName().isEmpty())
65 ReceiveCoinsDialog->setObjectName(QString::fromUtf8(
"ReceiveCoinsDialog"));
66 ReceiveCoinsDialog->resize(776, 364);
67 verticalLayout =
new QVBoxLayout(ReceiveCoinsDialog);
68 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
69 frame2 =
new QFrame(ReceiveCoinsDialog);
70 frame2->setObjectName(QString::fromUtf8(
"frame2"));
71 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
72 sizePolicy.setHorizontalStretch(0);
73 sizePolicy.setVerticalStretch(0);
74 sizePolicy.setHeightForWidth(frame2->sizePolicy().hasHeightForWidth());
75 frame2->setSizePolicy(sizePolicy);
76 frame2->setFrameShape(QFrame::StyledPanel);
77 frame2->setFrameShadow(QFrame::Sunken);
78 verticalLayout_3 =
new QVBoxLayout(frame2);
79 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
80 gridLayout =
new QGridLayout();
81 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
82 reuseAddress =
new QCheckBox(frame2);
83 reuseAddress->setObjectName(QString::fromUtf8(
"reuseAddress"));
85 gridLayout->addWidget(reuseAddress, 7, 2, 1, 1);
87 label_4 =
new QLabel(frame2);
88 label_4->setObjectName(QString::fromUtf8(
"label_4"));
90 gridLayout->addWidget(label_4, 7, 0, 1, 1);
92 label_3 =
new QLabel(frame2);
93 label_3->setObjectName(QString::fromUtf8(
"label_3"));
94 label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
96 gridLayout->addWidget(label_3, 6, 0, 1, 1);
99 reqLabel->setObjectName(QString::fromUtf8(
"reqLabel"));
101 gridLayout->addWidget(reqLabel, 4, 2, 1, 1);
104 reqMessage->setObjectName(QString::fromUtf8(
"reqMessage"));
106 gridLayout->addWidget(reqMessage, 6, 2, 1, 1);
108 label_5 =
new QLabel(frame2);
109 label_5->setObjectName(QString::fromUtf8(
"label_5"));
111 gridLayout->addWidget(label_5, 2, 2, 1, 1);
113 label_2 =
new QLabel(frame2);
114 label_2->setObjectName(QString::fromUtf8(
"label_2"));
115 label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
117 gridLayout->addWidget(label_2, 4, 0, 1, 1);
119 label =
new QLabel(frame2);
120 label->setObjectName(QString::fromUtf8(
"label"));
121 label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
123 gridLayout->addWidget(label, 5, 0, 1, 1);
126 reqAmount->setObjectName(QString::fromUtf8(
"reqAmount"));
127 reqAmount->setMinimumSize(QSize(80, 0));
129 gridLayout->addWidget(reqAmount, 5, 2, 1, 1);
131 horizontalLayout =
new QHBoxLayout();
132 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
133 receiveButton =
new QPushButton(frame2);
134 receiveButton->setObjectName(QString::fromUtf8(
"receiveButton"));
135 receiveButton->setMinimumSize(QSize(150, 0));
137 icon.addFile(QString::fromUtf8(
":/icons/receiving_addresses"), QSize(), QIcon::Normal, QIcon::Off);
138 receiveButton->setIcon(icon);
140 horizontalLayout->addWidget(receiveButton);
142 clearButton =
new QPushButton(frame2);
143 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
144 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
145 sizePolicy1.setHorizontalStretch(0);
146 sizePolicy1.setVerticalStretch(0);
147 sizePolicy1.setHeightForWidth(clearButton->sizePolicy().hasHeightForWidth());
148 clearButton->setSizePolicy(sizePolicy1);
150 icon1.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
151 clearButton->setIcon(icon1);
152 clearButton->setAutoRepeatDelay(300);
153 clearButton->setAutoDefault(
false);
155 horizontalLayout->addWidget(clearButton);
157 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
159 horizontalLayout->addItem(horizontalSpacer);
162 gridLayout->addLayout(horizontalLayout, 8, 2, 1, 1);
164 label_7 =
new QLabel(frame2);
165 label_7->setObjectName(QString::fromUtf8(
"label_7"));
167 gridLayout->addWidget(label_7, 8, 0, 1, 1);
170 verticalLayout_3->addLayout(gridLayout);
173 verticalLayout->addWidget(frame2);
175 verticalSpacer_2 =
new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
177 verticalLayout->addItem(verticalSpacer_2);
179 frame =
new QFrame(ReceiveCoinsDialog);
180 frame->setObjectName(QString::fromUtf8(
"frame"));
181 sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
182 frame->setSizePolicy(sizePolicy);
183 frame->setFrameShape(QFrame::StyledPanel);
184 frame->setFrameShadow(QFrame::Raised);
185 verticalLayout_2 =
new QVBoxLayout(frame);
186 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
187 label_6 =
new QLabel(frame);
188 label_6->setObjectName(QString::fromUtf8(
"label_6"));
192 label_6->setFont(font);
194 verticalLayout_2->addWidget(label_6);
196 recentRequestsView =
new QTableView(frame);
197 recentRequestsView->setObjectName(QString::fromUtf8(
"recentRequestsView"));
198 recentRequestsView->setContextMenuPolicy(Qt::CustomContextMenu);
199 recentRequestsView->setTabKeyNavigation(
false);
200 recentRequestsView->setSortingEnabled(
true);
202 verticalLayout_2->addWidget(recentRequestsView);
204 horizontalLayout_2 =
new QHBoxLayout();
205 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
206 showRequestButton =
new QPushButton(frame);
207 showRequestButton->setObjectName(QString::fromUtf8(
"showRequestButton"));
208 showRequestButton->setEnabled(
false);
210 icon2.addFile(QString::fromUtf8(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
211 showRequestButton->setIcon(icon2);
213 horizontalLayout_2->addWidget(showRequestButton);
215 removeRequestButton =
new QPushButton(frame);
216 removeRequestButton->setObjectName(QString::fromUtf8(
"removeRequestButton"));
217 removeRequestButton->setEnabled(
false);
218 removeRequestButton->setIcon(icon1);
220 horizontalLayout_2->addWidget(removeRequestButton);
222 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
224 horizontalLayout_2->addItem(horizontalSpacer_2);
227 verticalLayout_2->addLayout(horizontalLayout_2);
230 verticalLayout->addWidget(frame);
232 verticalLayout->setStretch(2, 1);
233 #ifndef QT_NO_SHORTCUT
234 label_3->setBuddy(reqMessage);
235 label_2->setBuddy(reqLabel);
236 label->setBuddy(reqAmount);
237 #endif // QT_NO_SHORTCUT
238 QWidget::setTabOrder(reqLabel, reqAmount);
239 QWidget::setTabOrder(reqAmount, reqMessage);
240 QWidget::setTabOrder(reqMessage, reuseAddress);
241 QWidget::setTabOrder(reuseAddress, receiveButton);
242 QWidget::setTabOrder(receiveButton, clearButton);
243 QWidget::setTabOrder(clearButton, recentRequestsView);
244 QWidget::setTabOrder(recentRequestsView, showRequestButton);
245 QWidget::setTabOrder(showRequestButton, removeRequestButton);
249 QMetaObject::connectSlotsByName(ReceiveCoinsDialog);
254 #ifndef QT_NO_TOOLTIP
255 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, QApplication::UnicodeUTF8));
256 #endif // QT_NO_TOOLTIP
257 reuseAddress->setText(QApplication::translate(
"ReceiveCoinsDialog",
"R&euse an existing receiving address (not recommended)", 0, QApplication::UnicodeUTF8));
258 label_4->setText(QString());
259 #ifndef QT_NO_TOOLTIP
260 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.", 0, QApplication::UnicodeUTF8));
261 #endif // QT_NO_TOOLTIP
262 label_3->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Message:", 0, QApplication::UnicodeUTF8));
263 #ifndef QT_NO_TOOLTIP
264 reqLabel->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.", 0, QApplication::UnicodeUTF8));
265 #endif // QT_NO_TOOLTIP
266 #ifndef QT_NO_TOOLTIP
267 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 Bitcoin network.", 0, QApplication::UnicodeUTF8));
268 #endif // QT_NO_TOOLTIP
269 label_5->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Use this form to request payments. All fields are <b>optional</b>.", 0, QApplication::UnicodeUTF8));
270 #ifndef QT_NO_TOOLTIP
271 label_2->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional label to associate with the new receiving address.", 0, QApplication::UnicodeUTF8));
272 #endif // QT_NO_TOOLTIP
273 label_2->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Label:", 0, QApplication::UnicodeUTF8));
274 #ifndef QT_NO_TOOLTIP
275 label->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.", 0, QApplication::UnicodeUTF8));
276 #endif // QT_NO_TOOLTIP
277 label->setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Amount:", 0, QApplication::UnicodeUTF8));
278 #ifndef QT_NO_TOOLTIP
279 reqAmount->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"An optional amount to request. Leave this empty or zero to not request a specific amount.", 0, QApplication::UnicodeUTF8));
280 #endif // QT_NO_TOOLTIP
281 receiveButton->
setText(QApplication::translate(
"ReceiveCoinsDialog",
"&Request payment", 0, QApplication::UnicodeUTF8));
282 #ifndef QT_NO_TOOLTIP
283 clearButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Clear all fields of the form.", 0, QApplication::UnicodeUTF8));
284 #endif // QT_NO_TOOLTIP
285 clearButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Clear", 0, QApplication::UnicodeUTF8));
286 label_7->setText(QString());
287 label_6->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Requested payments history", 0, QApplication::UnicodeUTF8));
288 #ifndef QT_NO_TOOLTIP
289 showRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Show the selected request (does the same as double clicking an entry)", 0, QApplication::UnicodeUTF8));
290 #endif // QT_NO_TOOLTIP
291 showRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Show", 0, QApplication::UnicodeUTF8));
292 #ifndef QT_NO_TOOLTIP
293 removeRequestButton->setToolTip(QApplication::translate(
"ReceiveCoinsDialog",
"Remove the selected entries from the list", 0, QApplication::UnicodeUTF8));
294 #endif // QT_NO_TOOLTIP
295 removeRequestButton->setText(QApplication::translate(
"ReceiveCoinsDialog",
"Remove", 0, QApplication::UnicodeUTF8));
296 Q_UNUSED(ReceiveCoinsDialog);
307 #endif // UI_RECEIVECOINSDIALOG_H
Widget for entering bitcoin amounts.
Dialog for requesting payment of bitcoins.
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_2
QPushButton * receiveButton
BitcoinAmountField * reqAmount
QSpacerItem * horizontalSpacer
QPushButton * showRequestButton
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
void setText(const QString &text)
QHBoxLayout * horizontalLayout