Bitcoin Core  0.21.0rc5
P2P Digital Currency
ui_modaloverlay.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'modaloverlay.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.15.2
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_MODALOVERLAY_H
10 #define UI_MODALOVERLAY_H
11 
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>
23 
24 QT_BEGIN_NAMESPACE
25 
27 {
28 public:
29  QVBoxLayout *verticalLayout;
30  QWidget *bgWidget;
31  QVBoxLayout *verticalLayoutMain;
32  QWidget *contentWidget;
33  QVBoxLayout *verticalLayoutSub;
35  QVBoxLayout *verticalLayoutIcon;
36  QPushButton *warningIcon;
38  QVBoxLayout *verticalLayoutInfoText;
39  QLabel *infoText;
40  QLabel *infoTextStrong;
43  QFormLayout *formLayout;
47  QLabel *newestBlockDate;
48  QLabel *labelSyncDone;
49  QHBoxLayout *horizontalLayoutSync;
51  QProgressBar *progressBar;
57  QSpacerItem *horizontalSpacer;
58  QPushButton *closeButton;
59 
60  void setupUi(QWidget *ModalOverlay)
61  {
62  if (ModalOverlay->objectName().isEmpty())
63  ModalOverlay->setObjectName(QString::fromUtf8("ModalOverlay"));
64  ModalOverlay->resize(640, 385);
65  verticalLayout = new QVBoxLayout(ModalOverlay);
66  verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
67  verticalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
68  verticalLayout->setContentsMargins(0, 0, 0, 0);
69  bgWidget = new QWidget(ModalOverlay);
70  bgWidget->setObjectName(QString::fromUtf8("bgWidget"));
71  bgWidget->setStyleSheet(QString::fromUtf8("#bgWidget { background: rgba(0,0,0,220); }"));
72  verticalLayoutMain = new QVBoxLayout(bgWidget);
73  verticalLayoutMain->setObjectName(QString::fromUtf8("verticalLayoutMain"));
74  verticalLayoutMain->setContentsMargins(60, 60, 60, 60);
75  contentWidget = new QWidget(bgWidget);
76  contentWidget->setObjectName(QString::fromUtf8("contentWidget"));
77  contentWidget->setStyleSheet(QString::fromUtf8("#contentWidget { background: rgba(255,255,255,240); border-radius: 6px; }\n"
78 "\n"
79 "QLabel { color: rgb(40,40,40); }"));
80  verticalLayoutSub = new QVBoxLayout(contentWidget);
81  verticalLayoutSub->setSpacing(0);
82  verticalLayoutSub->setObjectName(QString::fromUtf8("verticalLayoutSub"));
83  verticalLayoutSub->setContentsMargins(10, 10, 10, 10);
84  horizontalLayoutIconText = new QHBoxLayout();
85  horizontalLayoutIconText->setObjectName(QString::fromUtf8("horizontalLayoutIconText"));
86  horizontalLayoutIconText->setContentsMargins(-1, 20, -1, -1);
87  verticalLayoutIcon = new QVBoxLayout();
88  verticalLayoutIcon->setObjectName(QString::fromUtf8("verticalLayoutIcon"));
89  verticalLayoutIcon->setContentsMargins(0, -1, -1, -1);
90  warningIcon = new QPushButton(contentWidget);
91  warningIcon->setObjectName(QString::fromUtf8("warningIcon"));
92  warningIcon->setEnabled(false);
93  QIcon icon;
94  icon.addFile(QString::fromUtf8(":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
95  icon.addFile(QString::fromUtf8(":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
96  warningIcon->setIcon(icon);
97  warningIcon->setIconSize(QSize(48, 48));
98  warningIcon->setFlat(true);
99 
100  verticalLayoutIcon->addWidget(warningIcon);
101 
102  verticalSpacerWarningIcon = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
103 
105 
106 
108 
109  verticalLayoutInfoText = new QVBoxLayout();
110  verticalLayoutInfoText->setObjectName(QString::fromUtf8("verticalLayoutInfoText"));
111  verticalLayoutInfoText->setContentsMargins(0, 0, -1, -1);
112  infoText = new QLabel(contentWidget);
113  infoText->setObjectName(QString::fromUtf8("infoText"));
114  infoText->setTextFormat(Qt::RichText);
115  infoText->setWordWrap(true);
116 
117  verticalLayoutInfoText->addWidget(infoText);
118 
119  infoTextStrong = new QLabel(contentWidget);
120  infoTextStrong->setObjectName(QString::fromUtf8("infoTextStrong"));
121  QFont font;
122  font.setBold(true);
123  font.setWeight(75);
124  infoTextStrong->setFont(font);
125  infoTextStrong->setTextFormat(Qt::RichText);
126  infoTextStrong->setWordWrap(true);
127 
129 
130  verticalSpacerInTextSpace = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
131 
133 
134 
136 
137  horizontalLayoutIconText->setStretch(1, 1);
138 
140 
141  verticalSpacerAfterText = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
142 
144 
145  formLayout = new QFormLayout();
146  formLayout->setObjectName(QString::fromUtf8("formLayout"));
147  formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
148  formLayout->setHorizontalSpacing(6);
149  formLayout->setVerticalSpacing(6);
150  formLayout->setContentsMargins(-1, 10, -1, -1);
152  labelNumberOfBlocksLeft->setObjectName(QString::fromUtf8("labelNumberOfBlocksLeft"));
153  labelNumberOfBlocksLeft->setFont(font);
154 
155  formLayout->setWidget(0, QFormLayout::LabelRole, labelNumberOfBlocksLeft);
156 
157  numberOfBlocksLeft = new QLabel(contentWidget);
158  numberOfBlocksLeft->setObjectName(QString::fromUtf8("numberOfBlocksLeft"));
159 
160  formLayout->setWidget(0, QFormLayout::FieldRole, numberOfBlocksLeft);
161 
162  labelLastBlockTime = new QLabel(contentWidget);
163  labelLastBlockTime->setObjectName(QString::fromUtf8("labelLastBlockTime"));
164  labelLastBlockTime->setFont(font);
165 
166  formLayout->setWidget(1, QFormLayout::LabelRole, labelLastBlockTime);
167 
168  newestBlockDate = new QLabel(contentWidget);
169  newestBlockDate->setObjectName(QString::fromUtf8("newestBlockDate"));
170  QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
171  sizePolicy.setHorizontalStretch(0);
172  sizePolicy.setVerticalStretch(0);
173  sizePolicy.setHeightForWidth(newestBlockDate->sizePolicy().hasHeightForWidth());
174  newestBlockDate->setSizePolicy(sizePolicy);
175 
176  formLayout->setWidget(1, QFormLayout::FieldRole, newestBlockDate);
177 
178  labelSyncDone = new QLabel(contentWidget);
179  labelSyncDone->setObjectName(QString::fromUtf8("labelSyncDone"));
180  labelSyncDone->setFont(font);
181 
182  formLayout->setWidget(2, QFormLayout::LabelRole, labelSyncDone);
183 
184  horizontalLayoutSync = new QHBoxLayout();
185  horizontalLayoutSync->setObjectName(QString::fromUtf8("horizontalLayoutSync"));
186  percentageProgress = new QLabel(contentWidget);
187  percentageProgress->setObjectName(QString::fromUtf8("percentageProgress"));
188  percentageProgress->setText(QString::fromUtf8("~"));
189 
191 
192  progressBar = new QProgressBar(contentWidget);
193  progressBar->setObjectName(QString::fromUtf8("progressBar"));
194  progressBar->setValue(24);
195 
196  horizontalLayoutSync->addWidget(progressBar);
197 
198  horizontalLayoutSync->setStretch(1, 1);
199 
200  formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayoutSync);
201 
202  labelProgressIncrease = new QLabel(contentWidget);
203  labelProgressIncrease->setObjectName(QString::fromUtf8("labelProgressIncrease"));
204  labelProgressIncrease->setFont(font);
205 
206  formLayout->setWidget(4, QFormLayout::LabelRole, labelProgressIncrease);
207 
208  progressIncreasePerH = new QLabel(contentWidget);
209  progressIncreasePerH->setObjectName(QString::fromUtf8("progressIncreasePerH"));
210 
211  formLayout->setWidget(4, QFormLayout::FieldRole, progressIncreasePerH);
212 
214  labelEstimatedTimeLeft->setObjectName(QString::fromUtf8("labelEstimatedTimeLeft"));
215  labelEstimatedTimeLeft->setFont(font);
216 
217  formLayout->setWidget(5, QFormLayout::LabelRole, labelEstimatedTimeLeft);
218 
219  expectedTimeLeft = new QLabel(contentWidget);
220  expectedTimeLeft->setObjectName(QString::fromUtf8("expectedTimeLeft"));
221 
222  formLayout->setWidget(5, QFormLayout::FieldRole, expectedTimeLeft);
223 
224 
225  verticalLayoutSub->addLayout(formLayout);
226 
227  horizontalLayoutButtons = new QHBoxLayout();
228  horizontalLayoutButtons->setObjectName(QString::fromUtf8("horizontalLayoutButtons"));
229  horizontalLayoutButtons->setContentsMargins(10, 10, -1, -1);
230  horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
231 
233 
234  closeButton = new QPushButton(contentWidget);
235  closeButton->setObjectName(QString::fromUtf8("closeButton"));
236  closeButton->setFocusPolicy(Qt::StrongFocus);
237 
239 
240 
242 
243  verticalLayoutSub->setStretch(0, 1);
244 
245  verticalLayoutMain->addWidget(contentWidget);
246 
247  verticalLayoutMain->setStretch(0, 1);
248 
249  verticalLayout->addWidget(bgWidget);
250 
251 
253 
254  closeButton->setDefault(true);
255 
256 
257  QMetaObject::connectSlotsByName(ModalOverlay);
258  } // setupUi
259 
261  {
262  ModalOverlay->setWindowTitle(QCoreApplication::translate("ModalOverlay", "Form", nullptr));
263  warningIcon->setText(QString());
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));
271  progressBar->setFormat(QString());
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));
279 #endif // QT_CONFIG(shortcut)
280  } // retranslateUi
281 
282 };
283 
284 namespace Ui {
285  class ModalOverlay: public Ui_ModalOverlay {};
286 } // namespace Ui
287 
288 QT_END_NAMESPACE
289 
290 #endif // UI_MODALOVERLAY_H
Modal overlay to display information about the chain-sync state.
Definition: modaloverlay.h:21
QSpacerItem * verticalSpacerAfterText
QLabel * numberOfBlocksLeft
void setupUi(QWidget *ModalOverlay)
QHBoxLayout * horizontalLayoutButtons
QVBoxLayout * verticalLayoutInfoText
QLabel * progressIncreasePerH
QLabel * labelProgressIncrease
QVBoxLayout * verticalLayout
QWidget * bgWidget
QPushButton * warningIcon
QHBoxLayout * horizontalLayoutSync
QVBoxLayout * verticalLayoutIcon
QProgressBar * progressBar
QLabel * newestBlockDate
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
QFormLayout * formLayout
QLabel * labelSyncDone
QWidget * contentWidget
QLabel * infoTextStrong
QSpacerItem * verticalSpacerInTextSpace