Fabcoin Core  0.16.2
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.5.1
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 <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/QStackedWidget>
24 #include <QtWidgets/QVBoxLayout>
25 #include <QtWidgets/QWidget>
26 #include "modaloverlay.h"
27 
28 QT_BEGIN_NAMESPACE
29 
31 {
32 public:
33  QVBoxLayout *verticalLayout;
34  QWidget *bgWidget;
35  QVBoxLayout *verticalLayoutMain;
36  QWidget *contentWidget;
37  QVBoxLayout *verticalLayout_3;
38  QStackedWidget *stackedWidget;
39  QWidget *page;
40  QVBoxLayout *verticalLayout_2;
42  QVBoxLayout *verticalLayoutIcon;
43  QPushButton *warningIcon;
45  QVBoxLayout *verticalLayoutInfoText;
46  QLabel *infoText;
47  QLabel *infoTextStrong;
49  QFormLayout *formLayout;
53  QLabel *newestBlockDate;
54  QLabel *labelSyncDone;
55  QHBoxLayout *horizontalLayoutSync;
57  QProgressBar *progressBar;
62  QWidget *page_2;
63  QVBoxLayout *verticalLayout_4;
64  QHBoxLayout *horizontalLayout_2;
65  QSpacerItem *horizontalSpacer_4;
66  QPushButton *warningIconBackup;
67  QSpacerItem *horizontalSpacer_5;
68  QLabel *labelNote;
69  QLabel *labelMessage;
70  QSpacerItem *verticalSpacer;
71  QHBoxLayout *horizontalLayout;
72  QSpacerItem *horizontalSpacer_2;
73  QPushButton *walletBackupButton;
74  QSpacerItem *horizontalSpacer_3;
77  QSpacerItem *horizontalSpacer;
78  QPushButton *closeButton;
79 
81  {
82  if (ModalOverlay->objectName().isEmpty())
83  ModalOverlay->setObjectName(QStringLiteral("ModalOverlay"));
84  ModalOverlay->resize(640, 513);
85  verticalLayout = new QVBoxLayout(ModalOverlay);
86  verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
87  verticalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
88  verticalLayout->setContentsMargins(0, 0, 0, 0);
89  bgWidget = new QWidget(ModalOverlay);
90  bgWidget->setObjectName(QStringLiteral("bgWidget"));
91  bgWidget->setStyleSheet(QStringLiteral("#bgWidget { background: rgba(0,0,0,220); }"));
92  verticalLayoutMain = new QVBoxLayout(bgWidget);
93  verticalLayoutMain->setObjectName(QStringLiteral("verticalLayoutMain"));
94  verticalLayoutMain->setContentsMargins(60, 60, 60, 60);
95  contentWidget = new QWidget(bgWidget);
96  contentWidget->setObjectName(QStringLiteral("contentWidget"));
97  contentWidget->setStyleSheet(QStringLiteral("#contentWidget { background: white; border-radius: 6px; }"));
98  verticalLayout_3 = new QVBoxLayout(contentWidget);
99  verticalLayout_3->setSpacing(0);
100  verticalLayout_3->setObjectName(QStringLiteral("verticalLayout_3"));
101  verticalLayout_3->setContentsMargins(20, 10, 20, 10);
102  stackedWidget = new QStackedWidget(contentWidget);
103  stackedWidget->setObjectName(QStringLiteral("stackedWidget"));
104  page = new QWidget();
105  page->setObjectName(QStringLiteral("page"));
106  verticalLayout_2 = new QVBoxLayout(page);
107  verticalLayout_2->setSpacing(0);
108  verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
109  verticalLayout_2->setContentsMargins(0, 0, 0, 0);
110  horizontalLayoutIconText = new QHBoxLayout();
111  horizontalLayoutIconText->setSpacing(20);
112  horizontalLayoutIconText->setObjectName(QStringLiteral("horizontalLayoutIconText"));
113  horizontalLayoutIconText->setContentsMargins(-1, 20, -1, -1);
114  verticalLayoutIcon = new QVBoxLayout();
115  verticalLayoutIcon->setObjectName(QStringLiteral("verticalLayoutIcon"));
116  warningIcon = new QPushButton(page);
117  warningIcon->setObjectName(QStringLiteral("warningIcon"));
118  warningIcon->setEnabled(false);
119  QIcon icon;
120  icon.addFile(QStringLiteral(":/icons/warning"), QSize(), QIcon::Normal, QIcon::Off);
121  icon.addFile(QStringLiteral(":/icons/warning"), QSize(), QIcon::Disabled, QIcon::Off);
122  warningIcon->setIcon(icon);
123  warningIcon->setIconSize(QSize(48, 48));
124  warningIcon->setFlat(true);
125 
126  verticalLayoutIcon->addWidget(warningIcon);
127 
128  verticalSpacerWarningIcon = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
129 
130  verticalLayoutIcon->addItem(verticalSpacerWarningIcon);
131 
132 
133  horizontalLayoutIconText->addLayout(verticalLayoutIcon);
134 
135  verticalLayoutInfoText = new QVBoxLayout();
136  verticalLayoutInfoText->setObjectName(QStringLiteral("verticalLayoutInfoText"));
137  verticalLayoutInfoText->setContentsMargins(0, 0, -1, -1);
138  infoText = new QLabel(page);
139  infoText->setObjectName(QStringLiteral("infoText"));
140  infoText->setTextFormat(Qt::RichText);
141  infoText->setWordWrap(true);
142 
143  verticalLayoutInfoText->addWidget(infoText);
144 
145  infoTextStrong = new QLabel(page);
146  infoTextStrong->setObjectName(QStringLiteral("infoTextStrong"));
147  QFont font;
148  font.setBold(true);
149  font.setWeight(75);
150  infoTextStrong->setFont(font);
151  infoTextStrong->setTextFormat(Qt::RichText);
152  infoTextStrong->setWordWrap(true);
153 
154  verticalLayoutInfoText->addWidget(infoTextStrong);
155 
156  verticalSpacerInTextSpace = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
157 
158  verticalLayoutInfoText->addItem(verticalSpacerInTextSpace);
159 
160 
161  horizontalLayoutIconText->addLayout(verticalLayoutInfoText);
162 
163  horizontalLayoutIconText->setStretch(1, 1);
164 
165  verticalLayout_2->addLayout(horizontalLayoutIconText);
166 
167  formLayout = new QFormLayout();
168  formLayout->setObjectName(QStringLiteral("formLayout"));
169  formLayout->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);
170  formLayout->setHorizontalSpacing(20);
171  formLayout->setVerticalSpacing(6);
172  formLayout->setContentsMargins(-1, 10, -1, -1);
173  labelNumberOfBlocksLeft = new QLabel(page);
174  labelNumberOfBlocksLeft->setObjectName(QStringLiteral("labelNumberOfBlocksLeft"));
175  QFont font1;
176  font1.setBold(false);
177  font1.setWeight(50);
178  labelNumberOfBlocksLeft->setFont(font1);
179 
180  formLayout->setWidget(0, QFormLayout::LabelRole, labelNumberOfBlocksLeft);
181 
182  numberOfBlocksLeft = new QLabel(page);
183  numberOfBlocksLeft->setObjectName(QStringLiteral("numberOfBlocksLeft"));
184  QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
185  sizePolicy.setHorizontalStretch(0);
186  sizePolicy.setVerticalStretch(0);
187  sizePolicy.setHeightForWidth(numberOfBlocksLeft->sizePolicy().hasHeightForWidth());
188  numberOfBlocksLeft->setSizePolicy(sizePolicy);
189 
190  formLayout->setWidget(0, QFormLayout::FieldRole, numberOfBlocksLeft);
191 
192  labelLastBlockTime = new QLabel(page);
193  labelLastBlockTime->setObjectName(QStringLiteral("labelLastBlockTime"));
194  labelLastBlockTime->setFont(font1);
195 
196  formLayout->setWidget(1, QFormLayout::LabelRole, labelLastBlockTime);
197 
198  newestBlockDate = new QLabel(page);
199  newestBlockDate->setObjectName(QStringLiteral("newestBlockDate"));
200  sizePolicy.setHeightForWidth(newestBlockDate->sizePolicy().hasHeightForWidth());
201  newestBlockDate->setSizePolicy(sizePolicy);
202 
203  formLayout->setWidget(1, QFormLayout::FieldRole, newestBlockDate);
204 
205  labelSyncDone = new QLabel(page);
206  labelSyncDone->setObjectName(QStringLiteral("labelSyncDone"));
207  labelSyncDone->setFont(font1);
208 
209  formLayout->setWidget(2, QFormLayout::LabelRole, labelSyncDone);
210 
211  horizontalLayoutSync = new QHBoxLayout();
212  horizontalLayoutSync->setObjectName(QStringLiteral("horizontalLayoutSync"));
213  percentageProgress = new QLabel(page);
214  percentageProgress->setObjectName(QStringLiteral("percentageProgress"));
215  percentageProgress->setText(QStringLiteral("~"));
216 
217  horizontalLayoutSync->addWidget(percentageProgress);
218 
219  progressBar = new QProgressBar(page);
220  progressBar->setObjectName(QStringLiteral("progressBar"));
221  progressBar->setValue(24);
222 
223  horizontalLayoutSync->addWidget(progressBar);
224 
225  horizontalLayoutSync->setStretch(1, 1);
226 
227  formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayoutSync);
228 
229  labelProgressIncrease = new QLabel(page);
230  labelProgressIncrease->setObjectName(QStringLiteral("labelProgressIncrease"));
231  labelProgressIncrease->setFont(font1);
232 
233  formLayout->setWidget(4, QFormLayout::LabelRole, labelProgressIncrease);
234 
235  progressIncreasePerH = new QLabel(page);
236  progressIncreasePerH->setObjectName(QStringLiteral("progressIncreasePerH"));
237  sizePolicy.setHeightForWidth(progressIncreasePerH->sizePolicy().hasHeightForWidth());
238  progressIncreasePerH->setSizePolicy(sizePolicy);
239 
240  formLayout->setWidget(4, QFormLayout::FieldRole, progressIncreasePerH);
241 
242  labelEstimatedTimeLeft = new QLabel(page);
243  labelEstimatedTimeLeft->setObjectName(QStringLiteral("labelEstimatedTimeLeft"));
244  labelEstimatedTimeLeft->setFont(font1);
245 
246  formLayout->setWidget(5, QFormLayout::LabelRole, labelEstimatedTimeLeft);
247 
248  expectedTimeLeft = new QLabel(page);
249  expectedTimeLeft->setObjectName(QStringLiteral("expectedTimeLeft"));
250  sizePolicy.setHeightForWidth(expectedTimeLeft->sizePolicy().hasHeightForWidth());
251  expectedTimeLeft->setSizePolicy(sizePolicy);
252 
253  formLayout->setWidget(5, QFormLayout::FieldRole, expectedTimeLeft);
254 
255 
256  verticalLayout_2->addLayout(formLayout);
257 
258  stackedWidget->addWidget(page);
259  page_2 = new QWidget();
260  page_2->setObjectName(QStringLiteral("page_2"));
261  verticalLayout_4 = new QVBoxLayout(page_2);
262  verticalLayout_4->setSpacing(15);
263  verticalLayout_4->setObjectName(QStringLiteral("verticalLayout_4"));
264  verticalLayout_4->setContentsMargins(-1, 40, -1, 40);
265  horizontalLayout_2 = new QHBoxLayout();
266  horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
267  horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
268 
269  horizontalLayout_2->addItem(horizontalSpacer_4);
270 
271  warningIconBackup = new QPushButton(page_2);
272  warningIconBackup->setObjectName(QStringLiteral("warningIconBackup"));
273  warningIconBackup->setEnabled(false);
274  QIcon icon1;
275  icon1.addFile(QStringLiteral(":/styles/app-icons/message_warning"), QSize(), QIcon::Normal, QIcon::Off);
276  icon1.addFile(QStringLiteral(":/styles/app-icons/message_warning"), QSize(), QIcon::Disabled, QIcon::Off);
277  warningIconBackup->setIcon(icon1);
278  warningIconBackup->setIconSize(QSize(120, 120));
279  warningIconBackup->setFlat(true);
280 
281  horizontalLayout_2->addWidget(warningIconBackup);
282 
283  horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
284 
285  horizontalLayout_2->addItem(horizontalSpacer_5);
286 
287 
288  verticalLayout_4->addLayout(horizontalLayout_2);
289 
290  labelNote = new QLabel(page_2);
291  labelNote->setObjectName(QStringLiteral("labelNote"));
292  labelNote->setAlignment(Qt::AlignCenter);
293 
294  verticalLayout_4->addWidget(labelNote);
295 
296  labelMessage = new QLabel(page_2);
297  labelMessage->setObjectName(QStringLiteral("labelMessage"));
298  labelMessage->setAlignment(Qt::AlignCenter);
299  labelMessage->setWordWrap(true);
300 
301  verticalLayout_4->addWidget(labelMessage);
302 
303  verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
304 
305  verticalLayout_4->addItem(verticalSpacer);
306 
307  horizontalLayout = new QHBoxLayout();
308  horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
309  horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
310 
311  horizontalLayout->addItem(horizontalSpacer_2);
312 
313  walletBackupButton = new QPushButton(page_2);
314  walletBackupButton->setObjectName(QStringLiteral("walletBackupButton"));
315 
316  horizontalLayout->addWidget(walletBackupButton);
317 
318  horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
319 
320  horizontalLayout->addItem(horizontalSpacer_3);
321 
322 
323  verticalLayout_4->addLayout(horizontalLayout);
324 
325  stackedWidget->addWidget(page_2);
326 
327  verticalLayout_3->addWidget(stackedWidget);
328 
329  verticalSpacerAfterText = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
330 
331  verticalLayout_3->addItem(verticalSpacerAfterText);
332 
333  horizontalLayoutButtons = new QHBoxLayout();
334  horizontalLayoutButtons->setObjectName(QStringLiteral("horizontalLayoutButtons"));
335  horizontalLayoutButtons->setContentsMargins(10, 10, -1, -1);
336  horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
337 
338  horizontalLayoutButtons->addItem(horizontalSpacer);
339 
340  closeButton = new QPushButton(contentWidget);
341  closeButton->setObjectName(QStringLiteral("closeButton"));
342 
343  horizontalLayoutButtons->addWidget(closeButton);
344 
345 
346  verticalLayout_3->addLayout(horizontalLayoutButtons);
347 
348  verticalLayout_3->setStretch(0, 1);
349 
350  verticalLayoutMain->addWidget(contentWidget);
351 
352 
353  verticalLayout->addWidget(bgWidget);
354 
355 
356  retranslateUi(ModalOverlay);
357 
358  stackedWidget->setCurrentIndex(0);
359 
360 
361  QMetaObject::connectSlotsByName(ModalOverlay);
362  } // setupUi
363 
365  {
366  ModalOverlay->setWindowTitle(QApplication::translate("ModalOverlay", "Form", 0));
367  warningIcon->setText(QString());
368  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 fabcoin network, as detailed below.", 0));
369  infoTextStrong->setText(QApplication::translate("ModalOverlay", "Attempting to spend fabcoins that are affected by not-yet-displayed transactions will not be accepted by the network.", 0));
370  labelNumberOfBlocksLeft->setText(QApplication::translate("ModalOverlay", "Number of blocks left", 0));
371  numberOfBlocksLeft->setText(QApplication::translate("ModalOverlay", "Unknown...", 0));
372  labelLastBlockTime->setText(QApplication::translate("ModalOverlay", "Last block time", 0));
373  newestBlockDate->setText(QApplication::translate("ModalOverlay", "Unknown...", 0));
374  labelSyncDone->setText(QApplication::translate("ModalOverlay", "Progress", 0));
375  progressBar->setFormat(QString());
376  labelProgressIncrease->setText(QApplication::translate("ModalOverlay", "Progress increase per hour", 0));
377  progressIncreasePerH->setText(QApplication::translate("ModalOverlay", "calculating...", 0));
378  labelEstimatedTimeLeft->setText(QApplication::translate("ModalOverlay", "Estimated time left until synced", 0));
379  expectedTimeLeft->setText(QApplication::translate("ModalOverlay", "calculating...", 0));
380  warningIconBackup->setText(QString());
381  labelNote->setText(QApplication::translate("ModalOverlay", "IMPORATANT NOTE!", 0));
382  labelMessage->setText(QApplication::translate("ModalOverlay", "Making a backup of your wallet helps ensure you can always maintain access to your funds. Please backup your wallet in order to avoid losing funds.", 0));
383  walletBackupButton->setText(QApplication::translate("ModalOverlay", "Wallet backup", 0));
384  closeButton->setText(QApplication::translate("ModalOverlay", "Hide", 0));
385  } // retranslateUi
386 
387 };
388 
389 namespace Ui {
390  class ModalOverlay: public Ui_ModalOverlay {};
391 } // namespace Ui
392 
393 QT_END_NAMESPACE
394 
395 #endif // UI_MODALOVERLAY_H
QLabel * percentageProgress
QSpacerItem * verticalSpacer
QSpacerItem * verticalSpacerWarningIcon
QVBoxLayout * verticalLayoutMain
QWidget * contentWidget
QPushButton * warningIcon
QLabel * labelMessage
QProgressBar * progressBar
QHBoxLayout * horizontalLayoutSync
QLabel * labelSyncDone
QVBoxLayout * verticalLayoutInfoText
QVBoxLayout * verticalLayout_3
QVBoxLayout * verticalLayout_4
void retranslateUi(ModalOverlay *ModalOverlay)
QHBoxLayout * horizontalLayoutIconText
Modal overlay to display information about the chain-sync state.
Definition: modaloverlay.h:19
QLabel * expectedTimeLeft
QHBoxLayout * horizontalLayout_2
QLabel * labelLastBlockTime
void setupUi(ModalOverlay *ModalOverlay)
QLabel * labelProgressIncrease
QLabel * progressIncreasePerH
QSpacerItem * verticalSpacerAfterText
QSpacerItem * verticalSpacerInTextSpace
QStackedWidget * stackedWidget
QPushButton * warningIconBackup
QLabel * numberOfBlocksLeft
QSpacerItem * horizontalSpacer_5
QHBoxLayout * horizontalLayoutButtons
QVBoxLayout * verticalLayoutIcon
QLabel * infoTextStrong
QSpacerItem * horizontalSpacer_2
QLabel * labelEstimatedTimeLeft
QPushButton * closeButton
QSpacerItem * horizontalSpacer_4
QVBoxLayout * verticalLayout_2
QSpacerItem * horizontalSpacer
QWidget * bgWidget
QVBoxLayout * verticalLayout
QLabel * newestBlockDate
QLabel * labelNumberOfBlocksLeft
QSpacerItem * horizontalSpacer_3
QPushButton * walletBackupButton
QHBoxLayout * horizontalLayout
QFormLayout * formLayout