9#ifndef UI_MODALOVERLAY_H
10#define UI_MODALOVERLAY_H
12#include <QtCore/QVariant>
14#include <QtWidgets/QApplication>
15#include <QtWidgets/QFormLayout>
16#include <QtWidgets/QHBoxLayout>
17#include <QtWidgets/QLabel>
18#include <QtWidgets/QPushButton>
19#include <QtWidgets/QSpacerItem>
20#include <QtWidgets/QVBoxLayout>
21#include <QtWidgets/QWidget>
61 ModalOverlay->setObjectName(QString::fromUtf8(
"ModalOverlay"));
64 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
68 bgWidget->setObjectName(QString::fromUtf8(
"bgWidget"));
69 bgWidget->setStyleSheet(QString::fromUtf8(
"#bgWidget { background: rgba(0,0,0,220); }"));
74 contentWidget->setObjectName(QString::fromUtf8(
"contentWidget"));
75 contentWidget->setStyleSheet(QString::fromUtf8(
"#contentWidget { background: rgba(255,255,255,240); border-radius: 6px; }\n"
77"QLabel { color: rgb(40,40,40); }"));
89 warningIcon->setObjectName(QString::fromUtf8(
"warningIcon"));
92 icon.addFile(QString::fromUtf8(
":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
93 icon.addFile(QString::fromUtf8(
":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
111 infoText->setObjectName(QString::fromUtf8(
"infoText"));
112 infoText->setTextFormat(Qt::RichText);
118 infoTextStrong->setObjectName(QString::fromUtf8(
"infoTextStrong"));
144 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
145 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
148 formLayout->setContentsMargins(-1, 10, -1, -1);
168 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
169 sizePolicy.setHorizontalStretch(0);
170 sizePolicy.setVerticalStretch(0);
171 sizePolicy.setHeightForWidth(
newestBlockDate->sizePolicy().hasHeightForWidth());
177 labelSyncDone->setObjectName(QString::fromUtf8(
"labelSyncDone"));
222 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
227 closeButton->setObjectName(QString::fromUtf8(
"closeButton"));
254 ModalOverlay->setWindowTitle(QCoreApplication::translate(
"ModalOverlay",
"Form",
nullptr));
256 infoText->setText(QCoreApplication::translate(
"ModalOverlay",
"Recent transactions may not yet be visible, and therefore your wallet's balance might be incorrect. This information will be correct once your wallet has finished synchronizing with the bitcoin network, as detailed below.",
nullptr));
257 infoTextStrong->setText(QCoreApplication::translate(
"ModalOverlay",
"Attempting to spend bitcoins that are affected by not-yet-displayed transactions will not be accepted by the network.",
nullptr));
258 labelNumberOfBlocksLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Number of blocks left",
nullptr));
259 numberOfBlocksLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Unknown\342\200\246",
nullptr));
260 labelLastBlockTime->setText(QCoreApplication::translate(
"ModalOverlay",
"Last block time",
nullptr));
261 newestBlockDate->setText(QCoreApplication::translate(
"ModalOverlay",
"Unknown\342\200\246",
nullptr));
262 labelSyncDone->setText(QCoreApplication::translate(
"ModalOverlay",
"Progress",
nullptr));
263 labelProgressIncrease->setText(QCoreApplication::translate(
"ModalOverlay",
"Progress increase per hour",
nullptr));
264 progressIncreasePerH->setText(QCoreApplication::translate(
"ModalOverlay",
"calculating\342\200\246",
nullptr));
265 labelEstimatedTimeLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Estimated time left until synced",
nullptr));
266 expectedTimeLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"calculating\342\200\246",
nullptr));
267 closeButton->setText(QCoreApplication::translate(
"ModalOverlay",
"Hide",
nullptr));
268#if QT_CONFIG(shortcut)
269 closeButton->setShortcut(QCoreApplication::translate(
"ModalOverlay",
"Esc",
nullptr));
Modal overlay to display information about the chain-sync state.
QSpacerItem * verticalSpacerAfterText
QLabel * numberOfBlocksLeft
void setupUi(QWidget *ModalOverlay)
QHBoxLayout * horizontalLayoutButtons
QVBoxLayout * verticalLayoutInfoText
QLabel * progressIncreasePerH
QLabel * labelProgressIncrease
QVBoxLayout * verticalLayout
QPushButton * warningIcon
QHBoxLayout * horizontalLayoutSync
QVBoxLayout * verticalLayoutIcon
void retranslateUi(QWidget *ModalOverlay)
QVBoxLayout * verticalLayoutSub
QSpacerItem * horizontalSpacer
QLabel * percentageProgress
QSpacerItem * verticalSpacerWarningIcon
QVBoxLayout * verticalLayoutMain
QLabel * labelLastBlockTime
QPushButton * closeButton
QLabel * labelEstimatedTimeLeft
QLabel * expectedTimeLeft
QLabel * labelNumberOfBlocksLeft
QHBoxLayout * horizontalLayoutIconText
QSpacerItem * verticalSpacerInTextSpace