9 #ifndef UI_MODALOVERLAY_H
10 #define UI_MODALOVERLAY_H
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QFormLayout>
16 #include <QtWidgets/QHBoxLayout>
17 #include <QtWidgets/QLabel>
18 #include <QtWidgets/QProgressBar>
19 #include <QtWidgets/QPushButton>
20 #include <QtWidgets/QSpacerItem>
21 #include <QtWidgets/QVBoxLayout>
22 #include <QtWidgets/QWidget>
63 ModalOverlay->setObjectName(QString::fromUtf8(
"ModalOverlay"));
66 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
70 bgWidget->setObjectName(QString::fromUtf8(
"bgWidget"));
71 bgWidget->setStyleSheet(QString::fromUtf8(
"#bgWidget { background: rgba(0,0,0,220); }"));
76 contentWidget->setObjectName(QString::fromUtf8(
"contentWidget"));
77 contentWidget->setStyleSheet(QString::fromUtf8(
"#contentWidget { background: rgba(255,255,255,240); border-radius: 6px; }\n"
79 "QLabel { color: rgb(40,40,40); }"));
91 warningIcon->setObjectName(QString::fromUtf8(
"warningIcon"));
94 icon.addFile(QString::fromUtf8(
":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
95 icon.addFile(QString::fromUtf8(
":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
113 infoText->setObjectName(QString::fromUtf8(
"infoText"));
114 infoText->setTextFormat(Qt::RichText);
120 infoTextStrong->setObjectName(QString::fromUtf8(
"infoTextStrong"));
146 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
147 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
150 formLayout->setContentsMargins(-1, 10, -1, -1);
170 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
171 sizePolicy.setHorizontalStretch(0);
172 sizePolicy.setVerticalStretch(0);
173 sizePolicy.setHeightForWidth(
newestBlockDate->sizePolicy().hasHeightForWidth());
179 labelSyncDone->setObjectName(QString::fromUtf8(
"labelSyncDone"));
193 progressBar->setObjectName(QString::fromUtf8(
"progressBar"));
230 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
235 closeButton->setObjectName(QString::fromUtf8(
"closeButton"));
262 ModalOverlay->setWindowTitle(QCoreApplication::translate(
"ModalOverlay",
"Form",
nullptr));
264 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));
265 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));
266 labelNumberOfBlocksLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Number of blocks left",
nullptr));
267 numberOfBlocksLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Unknown...",
nullptr));
268 labelLastBlockTime->setText(QCoreApplication::translate(
"ModalOverlay",
"Last block time",
nullptr));
269 newestBlockDate->setText(QCoreApplication::translate(
"ModalOverlay",
"Unknown...",
nullptr));
270 labelSyncDone->setText(QCoreApplication::translate(
"ModalOverlay",
"Progress",
nullptr));
272 labelProgressIncrease->setText(QCoreApplication::translate(
"ModalOverlay",
"Progress increase per hour",
nullptr));
273 progressIncreasePerH->setText(QCoreApplication::translate(
"ModalOverlay",
"calculating...",
nullptr));
274 labelEstimatedTimeLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"Estimated time left until synced",
nullptr));
275 expectedTimeLeft->setText(QCoreApplication::translate(
"ModalOverlay",
"calculating...",
nullptr));
276 closeButton->setText(QCoreApplication::translate(
"ModalOverlay",
"Hide",
nullptr));
277 #if QT_CONFIG(shortcut)
278 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
QProgressBar * progressBar
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