9 #ifndef UI_MODALOVERLAY_H 10 #define UI_MODALOVERLAY_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QFormLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QHeaderView> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QProgressBar> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 65 ModalOverlay->setObjectName(QStringLiteral(
"ModalOverlay"));
72 bgWidget->setObjectName(QStringLiteral(
"bgWidget"));
73 bgWidget->setStyleSheet(QStringLiteral(
"#bgWidget { background: rgba(0,0,0,220); }"));
78 contentWidget->setObjectName(QStringLiteral(
"contentWidget"));
79 contentWidget->setStyleSheet(QLatin1String(
"#contentWidget { background: rgba(255,255,255,240); border-radius: 6px; }\n" 81 "QLabel { color: rgb(40,40,40); }"));
93 warningIcon->setObjectName(QStringLiteral(
"warningIcon"));
96 icon.addFile(QStringLiteral(
":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
97 icon.addFile(QStringLiteral(
":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
115 infoText->setObjectName(QStringLiteral(
"infoText"));
116 infoText->setTextFormat(Qt::RichText);
148 formLayout->setObjectName(QStringLiteral(
"formLayout"));
149 formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
152 formLayout->setContentsMargins(-1, 10, -1, -1);
172 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
173 sizePolicy.setHorizontalStretch(0);
174 sizePolicy.setVerticalStretch(0);
175 sizePolicy.setHeightForWidth(
newestBlockDate->sizePolicy().hasHeightForWidth());
181 labelSyncDone->setObjectName(QStringLiteral(
"labelSyncDone"));
195 progressBar->setObjectName(QStringLiteral(
"progressBar"));
232 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
237 closeButton->setObjectName(QStringLiteral(
"closeButton"));
264 ModalOverlay->setWindowTitle(QApplication::translate(
"ModalOverlay",
"Form", Q_NULLPTR));
266 infoText->setText(QApplication::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.", Q_NULLPTR));
267 infoTextStrong->setText(QApplication::translate(
"ModalOverlay",
"Attempting to spend bitcoins that are affected by not-yet-displayed transactions will not be accepted by the network.", Q_NULLPTR));
269 numberOfBlocksLeft->setText(QApplication::translate(
"ModalOverlay",
"Unknown...", Q_NULLPTR));
270 labelLastBlockTime->setText(QApplication::translate(
"ModalOverlay",
"Last block time", Q_NULLPTR));
271 newestBlockDate->setText(QApplication::translate(
"ModalOverlay",
"Unknown...", Q_NULLPTR));
272 labelSyncDone->setText(QApplication::translate(
"ModalOverlay",
"Progress", Q_NULLPTR));
274 labelProgressIncrease->setText(QApplication::translate(
"ModalOverlay",
"Progress increase per hour", Q_NULLPTR));
275 progressIncreasePerH->setText(QApplication::translate(
"ModalOverlay",
"calculating...", Q_NULLPTR));
276 labelEstimatedTimeLeft->setText(QApplication::translate(
"ModalOverlay",
"Estimated time left until synced", Q_NULLPTR));
277 expectedTimeLeft->setText(QApplication::translate(
"ModalOverlay",
"calculating...", Q_NULLPTR));
278 closeButton->setText(QApplication::translate(
"ModalOverlay",
"Hide", Q_NULLPTR));
279 #ifndef QT_NO_SHORTCUT 280 closeButton->setShortcut(QApplication::translate(
"ModalOverlay",
"Esc", Q_NULLPTR));
281 #endif // QT_NO_SHORTCUT 292 #endif // UI_MODALOVERLAY_H QLabel * percentageProgress
QSpacerItem * verticalSpacerWarningIcon
QVBoxLayout * verticalLayoutMain
QPushButton * warningIcon
QProgressBar * progressBar
QHBoxLayout * horizontalLayoutSync
QVBoxLayout * verticalLayoutInfoText
QHBoxLayout * horizontalLayoutIconText
Modal overlay to display information about the chain-sync state.
QLabel * expectedTimeLeft
QLabel * labelLastBlockTime
void setupUi(QWidget *ModalOverlay)
QLabel * labelProgressIncrease
QLabel * progressIncreasePerH
QSpacerItem * verticalSpacerAfterText
QSpacerItem * verticalSpacerInTextSpace
QLabel * numberOfBlocksLeft
QHBoxLayout * horizontalLayoutButtons
QVBoxLayout * verticalLayoutIcon
QLabel * labelEstimatedTimeLeft
QPushButton * closeButton
QVBoxLayout * verticalLayoutSub
QSpacerItem * horizontalSpacer
QVBoxLayout * verticalLayout
QLabel * labelNumberOfBlocksLeft
void retranslateUi(QWidget *ModalOverlay)