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/QListView>
22 #include <QtWidgets/QSpacerItem>
23 #include <QtWidgets/QVBoxLayout>
24 #include <QtWidgets/QWidget>
72 if (OverviewPage->objectName().isEmpty())
73 OverviewPage->setObjectName(QStringLiteral(
"OverviewPage"));
74 OverviewPage->resize(596, 342);
75 topLayout =
new QVBoxLayout(OverviewPage);
76 topLayout->setObjectName(QStringLiteral(
"topLayout"));
77 labelAlerts =
new QLabel(OverviewPage);
78 labelAlerts->setObjectName(QStringLiteral(
"labelAlerts"));
79 labelAlerts->setVisible(
false);
80 labelAlerts->setStyleSheet(QStringLiteral(
"background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop:0 #F0D0A0, stop:1 #F8D488); color:#000000;"));
81 labelAlerts->setWordWrap(
true);
82 labelAlerts->setMargin(3);
84 topLayout->addWidget(labelAlerts);
86 horizontalLayout =
new QHBoxLayout();
87 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
88 verticalLayout_2 =
new QVBoxLayout();
89 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
90 frame =
new QFrame(OverviewPage);
91 frame->setObjectName(QStringLiteral(
"frame"));
92 frame->setFrameShape(QFrame::StyledPanel);
93 frame->setFrameShadow(QFrame::Raised);
94 verticalLayout_4 =
new QVBoxLayout(frame);
95 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
96 horizontalLayout_4 =
new QHBoxLayout();
97 horizontalLayout_4->setObjectName(QStringLiteral(
"horizontalLayout_4"));
98 label_5 =
new QLabel(frame);
99 label_5->setObjectName(QStringLiteral(
"label_5"));
103 label_5->setFont(font);
105 horizontalLayout_4->addWidget(label_5);
107 labelWalletStatus =
new QLabel(frame);
108 labelWalletStatus->setObjectName(QStringLiteral(
"labelWalletStatus"));
109 labelWalletStatus->setCursor(QCursor(Qt::WhatsThisCursor));
110 labelWalletStatus->setStyleSheet(QStringLiteral(
"QLabel { color: red; }"));
111 labelWalletStatus->setText(QStringLiteral(
"(out of sync)"));
112 labelWalletStatus->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
114 horizontalLayout_4->addWidget(labelWalletStatus);
116 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
118 horizontalLayout_4->addItem(horizontalSpacer_3);
121 verticalLayout_4->addLayout(horizontalLayout_4);
123 gridLayout =
new QGridLayout();
124 gridLayout->setSpacing(12);
125 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
126 labelWatchPending =
new QLabel(frame);
127 labelWatchPending->setObjectName(QStringLiteral(
"labelWatchPending"));
128 labelWatchPending->setFont(font);
129 labelWatchPending->setCursor(QCursor(Qt::IBeamCursor));
130 labelWatchPending->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
131 labelWatchPending->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
132 labelWatchPending->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
134 gridLayout->addWidget(labelWatchPending, 2, 2, 1, 1);
136 labelUnconfirmed =
new QLabel(frame);
137 labelUnconfirmed->setObjectName(QStringLiteral(
"labelUnconfirmed"));
138 labelUnconfirmed->setFont(font);
139 labelUnconfirmed->setCursor(QCursor(Qt::IBeamCursor));
140 labelUnconfirmed->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
141 labelUnconfirmed->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
142 labelUnconfirmed->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
144 gridLayout->addWidget(labelUnconfirmed, 2, 1, 1, 1);
146 labelWatchImmature =
new QLabel(frame);
147 labelWatchImmature->setObjectName(QStringLiteral(
"labelWatchImmature"));
148 labelWatchImmature->setFont(font);
149 labelWatchImmature->setCursor(QCursor(Qt::IBeamCursor));
150 labelWatchImmature->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
151 labelWatchImmature->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
152 labelWatchImmature->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
154 gridLayout->addWidget(labelWatchImmature, 3, 2, 1, 1);
156 line =
new QFrame(frame);
157 line->setObjectName(QStringLiteral(
"line"));
158 line->setFrameShape(QFrame::HLine);
159 line->setFrameShadow(QFrame::Sunken);
161 gridLayout->addWidget(line, 4, 0, 1, 2);
163 lineWatchBalance =
new QFrame(frame);
164 lineWatchBalance->setObjectName(QStringLiteral(
"lineWatchBalance"));
165 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
166 sizePolicy.setHorizontalStretch(0);
167 sizePolicy.setVerticalStretch(0);
168 sizePolicy.setHeightForWidth(lineWatchBalance->sizePolicy().hasHeightForWidth());
169 lineWatchBalance->setSizePolicy(sizePolicy);
170 lineWatchBalance->setMinimumSize(QSize(140, 0));
171 lineWatchBalance->setFrameShape(QFrame::HLine);
172 lineWatchBalance->setFrameShadow(QFrame::Sunken);
174 gridLayout->addWidget(lineWatchBalance, 4, 2, 1, 1);
176 labelTotalText =
new QLabel(frame);
177 labelTotalText->setObjectName(QStringLiteral(
"labelTotalText"));
179 gridLayout->addWidget(labelTotalText, 5, 0, 1, 1);
181 labelImmature =
new QLabel(frame);
182 labelImmature->setObjectName(QStringLiteral(
"labelImmature"));
183 labelImmature->setFont(font);
184 labelImmature->setCursor(QCursor(Qt::IBeamCursor));
185 labelImmature->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
186 labelImmature->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
187 labelImmature->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
189 gridLayout->addWidget(labelImmature, 3, 1, 1, 1);
191 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
193 gridLayout->addItem(horizontalSpacer_2, 2, 3, 1, 1);
195 labelImmatureText =
new QLabel(frame);
196 labelImmatureText->setObjectName(QStringLiteral(
"labelImmatureText"));
198 gridLayout->addWidget(labelImmatureText, 3, 0, 1, 1);
200 labelTotal =
new QLabel(frame);
201 labelTotal->setObjectName(QStringLiteral(
"labelTotal"));
202 labelTotal->setFont(font);
203 labelTotal->setCursor(QCursor(Qt::IBeamCursor));
204 labelTotal->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
205 labelTotal->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
206 labelTotal->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
208 gridLayout->addWidget(labelTotal, 5, 1, 1, 1);
210 labelWatchTotal =
new QLabel(frame);
211 labelWatchTotal->setObjectName(QStringLiteral(
"labelWatchTotal"));
212 labelWatchTotal->setFont(font);
213 labelWatchTotal->setCursor(QCursor(Qt::IBeamCursor));
214 labelWatchTotal->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
215 labelWatchTotal->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
216 labelWatchTotal->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
218 gridLayout->addWidget(labelWatchTotal, 5, 2, 1, 1);
220 labelWatchonly =
new QLabel(frame);
221 labelWatchonly->setObjectName(QStringLiteral(
"labelWatchonly"));
222 labelWatchonly->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
224 gridLayout->addWidget(labelWatchonly, 0, 2, 1, 1);
226 labelBalanceText =
new QLabel(frame);
227 labelBalanceText->setObjectName(QStringLiteral(
"labelBalanceText"));
229 gridLayout->addWidget(labelBalanceText, 1, 0, 1, 1);
231 labelBalance =
new QLabel(frame);
232 labelBalance->setObjectName(QStringLiteral(
"labelBalance"));
233 labelBalance->setFont(font);
234 labelBalance->setCursor(QCursor(Qt::IBeamCursor));
235 labelBalance->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
236 labelBalance->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
237 labelBalance->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
239 gridLayout->addWidget(labelBalance, 1, 1, 1, 1);
241 labelWatchAvailable =
new QLabel(frame);
242 labelWatchAvailable->setObjectName(QStringLiteral(
"labelWatchAvailable"));
243 labelWatchAvailable->setFont(font);
244 labelWatchAvailable->setCursor(QCursor(Qt::IBeamCursor));
245 labelWatchAvailable->setText(QString::fromUtf8(
"0.000\342\200\211000\342\200\21100 ANC"));
246 labelWatchAvailable->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
247 labelWatchAvailable->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
249 gridLayout->addWidget(labelWatchAvailable, 1, 2, 1, 1);
251 labelPendingText =
new QLabel(frame);
252 labelPendingText->setObjectName(QStringLiteral(
"labelPendingText"));
254 gridLayout->addWidget(labelPendingText, 2, 0, 1, 1);
256 labelSpendable =
new QLabel(frame);
257 labelSpendable->setObjectName(QStringLiteral(
"labelSpendable"));
258 labelSpendable->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
260 gridLayout->addWidget(labelSpendable, 0, 1, 1, 1);
263 verticalLayout_4->addLayout(gridLayout);
266 verticalLayout_2->addWidget(frame);
268 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
270 verticalLayout_2->addItem(verticalSpacer);
273 horizontalLayout->addLayout(verticalLayout_2);
275 verticalLayout_3 =
new QVBoxLayout();
276 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
277 frame_2 =
new QFrame(OverviewPage);
278 frame_2->setObjectName(QStringLiteral(
"frame_2"));
279 frame_2->setFrameShape(QFrame::StyledPanel);
280 frame_2->setFrameShadow(QFrame::Raised);
281 verticalLayout =
new QVBoxLayout(frame_2);
282 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
283 horizontalLayout_2 =
new QHBoxLayout();
284 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
285 label_4 =
new QLabel(frame_2);
286 label_4->setObjectName(QStringLiteral(
"label_4"));
287 label_4->setFont(font);
289 horizontalLayout_2->addWidget(label_4);
291 labelTransactionsStatus =
new QLabel(frame_2);
292 labelTransactionsStatus->setObjectName(QStringLiteral(
"labelTransactionsStatus"));
293 labelTransactionsStatus->setCursor(QCursor(Qt::WhatsThisCursor));
294 labelTransactionsStatus->setStyleSheet(QStringLiteral(
"QLabel { color: red; }"));
295 labelTransactionsStatus->setText(QStringLiteral(
"(out of sync)"));
296 labelTransactionsStatus->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
298 horizontalLayout_2->addWidget(labelTransactionsStatus);
300 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
302 horizontalLayout_2->addItem(horizontalSpacer);
305 verticalLayout->addLayout(horizontalLayout_2);
307 listTransactions =
new QListView(frame_2);
308 listTransactions->setObjectName(QStringLiteral(
"listTransactions"));
309 listTransactions->setStyleSheet(QStringLiteral(
"QListView { background: transparent; }"));
310 listTransactions->setFrameShape(QFrame::NoFrame);
311 listTransactions->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
312 listTransactions->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
313 listTransactions->setSelectionMode(QAbstractItemView::NoSelection);
315 verticalLayout->addWidget(listTransactions);
318 verticalLayout_3->addWidget(frame_2);
320 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
322 verticalLayout_3->addItem(verticalSpacer_2);
325 horizontalLayout->addLayout(verticalLayout_3);
327 horizontalLayout->setStretch(0, 1);
328 horizontalLayout->setStretch(1, 1);
330 topLayout->addLayout(horizontalLayout);
335 QMetaObject::connectSlotsByName(OverviewPage);
340 OverviewPage->setWindowTitle(QApplication::translate(
"OverviewPage",
"Form", 0));
341 label_5->setText(QApplication::translate(
"OverviewPage",
"Balances", 0));
342 #ifndef QT_NO_TOOLTIP
343 labelWalletStatus->setToolTip(QApplication::translate(
"OverviewPage",
"The displayed information may be out of date. Your wallet automatically synchronizes with the Anoncoin network after a connection is established, but this process has not completed yet.", 0));
344 #endif // QT_NO_TOOLTIP
345 #ifndef QT_NO_TOOLTIP
346 labelWatchPending->setToolTip(QApplication::translate(
"OverviewPage",
"Unconfirmed transactions to watch-only addresses", 0));
347 #endif // QT_NO_TOOLTIP
348 #ifndef QT_NO_TOOLTIP
349 labelUnconfirmed->setToolTip(QApplication::translate(
"OverviewPage",
"Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance", 0));
350 #endif // QT_NO_TOOLTIP
351 #ifndef QT_NO_TOOLTIP
352 labelWatchImmature->setToolTip(QApplication::translate(
"OverviewPage",
"Mined balance in watch-only addresses that has not yet matured", 0));
353 #endif // QT_NO_TOOLTIP
354 labelTotalText->setText(QApplication::translate(
"OverviewPage",
"Total:", 0));
355 #ifndef QT_NO_TOOLTIP
356 labelImmature->setToolTip(QApplication::translate(
"OverviewPage",
"Mined balance that has not yet matured", 0));
357 #endif // QT_NO_TOOLTIP
358 labelImmatureText->setText(QApplication::translate(
"OverviewPage",
"Immature:", 0));
359 #ifndef QT_NO_TOOLTIP
360 labelTotal->setToolTip(QApplication::translate(
"OverviewPage",
"Your current total balance", 0));
361 #endif // QT_NO_TOOLTIP
362 #ifndef QT_NO_TOOLTIP
363 labelWatchTotal->setToolTip(QApplication::translate(
"OverviewPage",
"Current total balance in watch-only addresses", 0));
364 #endif // QT_NO_TOOLTIP
365 labelWatchonly->setText(QApplication::translate(
"OverviewPage",
"Watch-only:", 0));
366 labelBalanceText->setText(QApplication::translate(
"OverviewPage",
"Available:", 0));
367 #ifndef QT_NO_TOOLTIP
368 labelBalance->setToolTip(QApplication::translate(
"OverviewPage",
"Your current spendable balance", 0));
369 #endif // QT_NO_TOOLTIP
370 #ifndef QT_NO_TOOLTIP
371 labelWatchAvailable->setToolTip(QApplication::translate(
"OverviewPage",
"Your current balance in watch-only addresses", 0));
372 #endif // QT_NO_TOOLTIP
373 labelPendingText->setText(QApplication::translate(
"OverviewPage",
"Pending:", 0));
374 labelSpendable->setText(QApplication::translate(
"OverviewPage",
"Spendable:", 0));
375 label_4->setText(QApplication::translate(
"OverviewPage",
"Recent transactions", 0));
376 #ifndef QT_NO_TOOLTIP
377 labelTransactionsStatus->setToolTip(QApplication::translate(
"OverviewPage",
"The displayed information may be out of date. Your wallet automatically synchronizes with the Anoncoin network after a connection is established, but this process has not completed yet.", 0));
378 #endif // QT_NO_TOOLTIP
389 #endif // UI_OVERVIEWPAGE_H
QVBoxLayout * verticalLayout_4
QLabel * labelUnconfirmed
QLabel * labelTransactionsStatus
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 * labelWalletStatus
QLabel * labelWatchAvailable
QHBoxLayout * horizontalLayout_2
QLabel * labelWatchImmature
QListView * listTransactions
QSpacerItem * horizontalSpacer
QSpacerItem * horizontalSpacer_2
Overview ("home") page widget.
void setupUi(QWidget *OverviewPage)