9 #ifndef UI_OVERVIEWPAGE_H 10 #define UI_OVERVIEWPAGE_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QFrame> 17 #include <QtWidgets/QGridLayout> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 73 if (OverviewPage->objectName().isEmpty())
74 OverviewPage->setObjectName(QStringLiteral(
"OverviewPage"));
75 OverviewPage->resize(798, 318);
76 topLayout =
new QVBoxLayout(OverviewPage);
77 topLayout->setObjectName(QStringLiteral(
"topLayout"));
78 labelAlerts =
new QLabel(OverviewPage);
79 labelAlerts->setObjectName(QStringLiteral(
"labelAlerts"));
80 labelAlerts->setVisible(
false);
81 labelAlerts->setStyleSheet(QStringLiteral(
"QLabel { background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop:0 #F0D0A0, stop:1 #F8D488); color:#000000; }"));
82 labelAlerts->setWordWrap(
true);
83 labelAlerts->setMargin(3);
84 labelAlerts->setTextInteractionFlags(Qt::TextSelectableByMouse);
86 topLayout->addWidget(labelAlerts);
88 horizontalLayout =
new QHBoxLayout();
89 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
90 verticalLayout_2 =
new QVBoxLayout();
91 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
92 frame =
new QFrame(OverviewPage);
93 frame->setObjectName(QStringLiteral(
"frame"));
94 frame->setFrameShape(QFrame::StyledPanel);
95 frame->setFrameShadow(QFrame::Raised);
96 verticalLayout_4 =
new QVBoxLayout(frame);
97 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
98 horizontalLayout_4 =
new QHBoxLayout();
99 horizontalLayout_4->setObjectName(QStringLiteral(
"horizontalLayout_4"));
100 label_5 =
new QLabel(frame);
101 label_5->setObjectName(QStringLiteral(
"label_5"));
105 label_5->setFont(font);
107 horizontalLayout_4->addWidget(label_5);
109 labelWalletStatus =
new QPushButton(frame);
110 labelWalletStatus->setObjectName(QStringLiteral(
"labelWalletStatus"));
111 labelWalletStatus->setEnabled(
true);
112 labelWalletStatus->setMaximumSize(QSize(30, 16777215));
114 icon.addFile(QStringLiteral(
":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
115 icon.addFile(QStringLiteral(
":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
116 labelWalletStatus->setIcon(icon);
117 labelWalletStatus->setIconSize(QSize(24, 24));
118 labelWalletStatus->setFlat(
true);
120 horizontalLayout_4->addWidget(labelWalletStatus);
122 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 horizontalLayout_4->addItem(horizontalSpacer_3);
127 verticalLayout_4->addLayout(horizontalLayout_4);
129 gridLayout =
new QGridLayout();
130 gridLayout->setSpacing(12);
131 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
132 labelWatchPending =
new QLabel(frame);
133 labelWatchPending->setObjectName(QStringLiteral(
"labelWatchPending"));
135 font1.setFamily(QStringLiteral(
"Monospace"));
138 labelWatchPending->setFont(font1);
139 labelWatchPending->setCursor(QCursor(Qt::IBeamCursor));
140 labelWatchPending->setText(QStringLiteral(
"0.00000000 BTC"));
141 labelWatchPending->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
142 labelWatchPending->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
144 gridLayout->addWidget(labelWatchPending, 2, 2, 1, 1);
146 labelUnconfirmed =
new QLabel(frame);
147 labelUnconfirmed->setObjectName(QStringLiteral(
"labelUnconfirmed"));
148 labelUnconfirmed->setFont(font1);
149 labelUnconfirmed->setCursor(QCursor(Qt::IBeamCursor));
150 labelUnconfirmed->setText(QStringLiteral(
"0.00000000 BTC"));
151 labelUnconfirmed->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
152 labelUnconfirmed->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
154 gridLayout->addWidget(labelUnconfirmed, 2, 1, 1, 1);
156 labelWatchImmature =
new QLabel(frame);
157 labelWatchImmature->setObjectName(QStringLiteral(
"labelWatchImmature"));
158 labelWatchImmature->setFont(font1);
159 labelWatchImmature->setCursor(QCursor(Qt::IBeamCursor));
160 labelWatchImmature->setText(QStringLiteral(
"0.00000000 BTC"));
161 labelWatchImmature->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
162 labelWatchImmature->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
164 gridLayout->addWidget(labelWatchImmature, 3, 2, 1, 1);
166 line =
new QFrame(frame);
167 line->setObjectName(QStringLiteral(
"line"));
168 line->setFrameShape(QFrame::HLine);
169 line->setFrameShadow(QFrame::Sunken);
171 gridLayout->addWidget(line, 4, 0, 1, 2);
173 lineWatchBalance =
new QFrame(frame);
174 lineWatchBalance->setObjectName(QStringLiteral(
"lineWatchBalance"));
175 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
176 sizePolicy.setHorizontalStretch(0);
177 sizePolicy.setVerticalStretch(0);
178 sizePolicy.setHeightForWidth(lineWatchBalance->sizePolicy().hasHeightForWidth());
179 lineWatchBalance->setSizePolicy(sizePolicy);
180 lineWatchBalance->setMinimumSize(QSize(140, 0));
181 lineWatchBalance->setFrameShape(QFrame::HLine);
182 lineWatchBalance->setFrameShadow(QFrame::Sunken);
184 gridLayout->addWidget(lineWatchBalance, 4, 2, 1, 1);
186 labelTotalText =
new QLabel(frame);
187 labelTotalText->setObjectName(QStringLiteral(
"labelTotalText"));
189 gridLayout->addWidget(labelTotalText, 5, 0, 1, 1);
191 labelImmature =
new QLabel(frame);
192 labelImmature->setObjectName(QStringLiteral(
"labelImmature"));
193 labelImmature->setFont(font1);
194 labelImmature->setCursor(QCursor(Qt::IBeamCursor));
195 labelImmature->setText(QStringLiteral(
"0.00000000 BTC"));
196 labelImmature->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
197 labelImmature->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
199 gridLayout->addWidget(labelImmature, 3, 1, 1, 1);
201 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
203 gridLayout->addItem(horizontalSpacer_2, 2, 3, 1, 1);
205 labelImmatureText =
new QLabel(frame);
206 labelImmatureText->setObjectName(QStringLiteral(
"labelImmatureText"));
208 gridLayout->addWidget(labelImmatureText, 3, 0, 1, 1);
210 labelTotal =
new QLabel(frame);
211 labelTotal->setObjectName(QStringLiteral(
"labelTotal"));
212 labelTotal->setFont(font1);
213 labelTotal->setCursor(QCursor(Qt::IBeamCursor));
214 labelTotal->setText(QStringLiteral(
"21 000 000.00000000 BTC"));
215 labelTotal->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
216 labelTotal->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
218 gridLayout->addWidget(labelTotal, 5, 1, 1, 1);
220 labelWatchTotal =
new QLabel(frame);
221 labelWatchTotal->setObjectName(QStringLiteral(
"labelWatchTotal"));
222 labelWatchTotal->setFont(font1);
223 labelWatchTotal->setCursor(QCursor(Qt::IBeamCursor));
224 labelWatchTotal->setText(QStringLiteral(
"21 000 000.00000000 BTC"));
225 labelWatchTotal->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
226 labelWatchTotal->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
228 gridLayout->addWidget(labelWatchTotal, 5, 2, 1, 1);
230 labelWatchonly =
new QLabel(frame);
231 labelWatchonly->setObjectName(QStringLiteral(
"labelWatchonly"));
232 labelWatchonly->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
234 gridLayout->addWidget(labelWatchonly, 0, 2, 1, 1);
236 labelBalanceText =
new QLabel(frame);
237 labelBalanceText->setObjectName(QStringLiteral(
"labelBalanceText"));
239 gridLayout->addWidget(labelBalanceText, 1, 0, 1, 1);
241 labelBalance =
new QLabel(frame);
242 labelBalance->setObjectName(QStringLiteral(
"labelBalance"));
243 labelBalance->setFont(font1);
244 labelBalance->setCursor(QCursor(Qt::IBeamCursor));
245 labelBalance->setText(QStringLiteral(
"21 000 000.00000000 BTC"));
246 labelBalance->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
247 labelBalance->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
249 gridLayout->addWidget(labelBalance, 1, 1, 1, 1);
251 labelWatchAvailable =
new QLabel(frame);
252 labelWatchAvailable->setObjectName(QStringLiteral(
"labelWatchAvailable"));
253 labelWatchAvailable->setFont(font1);
254 labelWatchAvailable->setCursor(QCursor(Qt::IBeamCursor));
255 labelWatchAvailable->setText(QStringLiteral(
"21 000 000.00000000 BTC"));
256 labelWatchAvailable->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
257 labelWatchAvailable->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
259 gridLayout->addWidget(labelWatchAvailable, 1, 2, 1, 1);
261 labelPendingText =
new QLabel(frame);
262 labelPendingText->setObjectName(QStringLiteral(
"labelPendingText"));
264 gridLayout->addWidget(labelPendingText, 2, 0, 1, 1);
266 labelSpendable =
new QLabel(frame);
267 labelSpendable->setObjectName(QStringLiteral(
"labelSpendable"));
268 labelSpendable->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
270 gridLayout->addWidget(labelSpendable, 0, 1, 1, 1);
273 verticalLayout_4->addLayout(gridLayout);
276 verticalLayout_2->addWidget(frame);
278 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
280 verticalLayout_2->addItem(verticalSpacer);
283 horizontalLayout->addLayout(verticalLayout_2);
285 verticalLayout_3 =
new QVBoxLayout();
286 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
287 frame_2 =
new QFrame(OverviewPage);
288 frame_2->setObjectName(QStringLiteral(
"frame_2"));
289 frame_2->setFrameShape(QFrame::StyledPanel);
290 frame_2->setFrameShadow(QFrame::Raised);
291 verticalLayout =
new QVBoxLayout(frame_2);
292 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
293 horizontalLayout_2 =
new QHBoxLayout();
294 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
295 label_4 =
new QLabel(frame_2);
296 label_4->setObjectName(QStringLiteral(
"label_4"));
297 label_4->setFont(font);
299 horizontalLayout_2->addWidget(label_4);
301 labelTransactionsStatus =
new QPushButton(frame_2);
302 labelTransactionsStatus->setObjectName(QStringLiteral(
"labelTransactionsStatus"));
303 labelTransactionsStatus->setEnabled(
true);
304 labelTransactionsStatus->setMaximumSize(QSize(30, 16777215));
305 labelTransactionsStatus->setIcon(icon);
306 labelTransactionsStatus->setIconSize(QSize(24, 24));
307 labelTransactionsStatus->setFlat(
true);
309 horizontalLayout_2->addWidget(labelTransactionsStatus);
311 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
313 horizontalLayout_2->addItem(horizontalSpacer);
316 verticalLayout->addLayout(horizontalLayout_2);
319 listTransactions->setObjectName(QStringLiteral(
"listTransactions"));
320 listTransactions->setStyleSheet(QStringLiteral(
"QListView { background: transparent; }"));
321 listTransactions->setFrameShape(QFrame::NoFrame);
322 listTransactions->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
323 listTransactions->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
324 listTransactions->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
325 listTransactions->setSelectionMode(QAbstractItemView::NoSelection);
326 listTransactions->setUniformItemSizes(
true);
328 verticalLayout->addWidget(listTransactions);
331 verticalLayout_3->addWidget(frame_2);
333 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
335 verticalLayout_3->addItem(verticalSpacer_2);
338 horizontalLayout->addLayout(verticalLayout_3);
340 horizontalLayout->setStretch(0, 1);
341 horizontalLayout->setStretch(1, 1);
343 topLayout->addLayout(horizontalLayout);
348 QMetaObject::connectSlotsByName(OverviewPage);
353 OverviewPage->setWindowTitle(QApplication::translate(
"OverviewPage",
"Form", 0));
354 label_5->setText(QApplication::translate(
"OverviewPage",
"Balances", 0));
355 #ifndef QT_NO_TOOLTIP 356 labelWalletStatus->setToolTip(QApplication::translate(
"OverviewPage",
"The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.", 0));
357 #endif // QT_NO_TOOLTIP 358 labelWalletStatus->setText(QString());
359 #ifndef QT_NO_TOOLTIP 360 labelWatchPending->setToolTip(QApplication::translate(
"OverviewPage",
"Unconfirmed transactions to watch-only addresses", 0));
361 #endif // QT_NO_TOOLTIP 362 #ifndef QT_NO_TOOLTIP 363 labelUnconfirmed->setToolTip(QApplication::translate(
"OverviewPage",
"Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance", 0));
364 #endif // QT_NO_TOOLTIP 365 #ifndef QT_NO_TOOLTIP 366 labelWatchImmature->setToolTip(QApplication::translate(
"OverviewPage",
"Mined balance in watch-only addresses that has not yet matured", 0));
367 #endif // QT_NO_TOOLTIP 368 labelTotalText->setText(QApplication::translate(
"OverviewPage",
"Total:", 0));
369 #ifndef QT_NO_TOOLTIP 370 labelImmature->setToolTip(QApplication::translate(
"OverviewPage",
"Mined balance that has not yet matured", 0));
371 #endif // QT_NO_TOOLTIP 372 labelImmatureText->setText(QApplication::translate(
"OverviewPage",
"Immature:", 0));
373 #ifndef QT_NO_TOOLTIP 374 labelTotal->setToolTip(QApplication::translate(
"OverviewPage",
"Your current total balance", 0));
375 #endif // QT_NO_TOOLTIP 376 #ifndef QT_NO_TOOLTIP 377 labelWatchTotal->setToolTip(QApplication::translate(
"OverviewPage",
"Current total balance in watch-only addresses", 0));
378 #endif // QT_NO_TOOLTIP 379 labelWatchonly->setText(QApplication::translate(
"OverviewPage",
"Watch-only:", 0));
380 labelBalanceText->setText(QApplication::translate(
"OverviewPage",
"Available:", 0));
381 #ifndef QT_NO_TOOLTIP 382 labelBalance->setToolTip(QApplication::translate(
"OverviewPage",
"Your current spendable balance", 0));
383 #endif // QT_NO_TOOLTIP 384 #ifndef QT_NO_TOOLTIP 385 labelWatchAvailable->setToolTip(QApplication::translate(
"OverviewPage",
"Your current balance in watch-only addresses", 0));
386 #endif // QT_NO_TOOLTIP 387 labelPendingText->setText(QApplication::translate(
"OverviewPage",
"Pending:", 0));
388 labelSpendable->setText(QApplication::translate(
"OverviewPage",
"Spendable:", 0));
389 label_4->setText(QApplication::translate(
"OverviewPage",
"Recent transactions", 0));
390 #ifndef QT_NO_TOOLTIP 391 labelTransactionsStatus->setToolTip(QApplication::translate(
"OverviewPage",
"The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.", 0));
392 #endif // QT_NO_TOOLTIP 393 labelTransactionsStatus->setText(QString());
404 #endif // UI_OVERVIEWPAGE_H
QVBoxLayout * verticalLayout_4
QLabel * labelUnconfirmed
TransactionOverviewWidget * listTransactions
QSpacerItem * verticalSpacer_2
QFrame * lineWatchBalance
void retranslateUi(QWidget *OverviewPage)
QVBoxLayout * verticalLayout_3
QHBoxLayout * horizontalLayout
QSpacerItem * horizontalSpacer_3
QVBoxLayout * verticalLayout_2
QLabel * labelBalanceText
QLabel * labelWatchPending
QHBoxLayout * horizontalLayout_4
QSpacerItem * verticalSpacer
QVBoxLayout * verticalLayout
QLabel * labelImmatureText
QLabel * labelPendingText
QLabel * labelWatchAvailable
QHBoxLayout * horizontalLayout_2
QLabel * labelWatchImmature
QPushButton * labelWalletStatus
QSpacerItem * horizontalSpacer
QSpacerItem * horizontalSpacer_2
Overview ("home") page widget.
void setupUi(QWidget *OverviewPage)
QPushButton * labelTransactionsStatus