12 #include <QtCore/QVariant>
13 #include <QtWidgets/QApplication>
14 #include <QtWidgets/QCheckBox>
15 #include <QtWidgets/QDialog>
16 #include <QtWidgets/QDialogButtonBox>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QLabel>
19 #include <QtWidgets/QLineEdit>
20 #include <QtWidgets/QPushButton>
21 #include <QtWidgets/QRadioButton>
22 #include <QtWidgets/QSpacerItem>
23 #include <QtWidgets/QVBoxLayout>
56 if (
Intro->objectName().isEmpty())
57 Intro->setObjectName(QString::fromUtf8(
"Intro"));
58 Intro->resize(674, 415);
60 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
62 welcomeLabel->setObjectName(QString::fromUtf8(
"welcomeLabel"));
63 welcomeLabel->setStyleSheet(QString::fromUtf8(
"QLabel { font-style:italic; }"));
68 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
73 storageLabel->setObjectName(QString::fromUtf8(
"storageLabel"));
85 dataDirDefault->setObjectName(QString::fromUtf8(
"dataDirDefault"));
90 dataDirCustom->setObjectName(QString::fromUtf8(
"dataDirCustom"));
98 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
108 dataDirectory->setObjectName(QString::fromUtf8(
"dataDirectory"));
113 ellipsisButton->setObjectName(QString::fromUtf8(
"ellipsisButton"));
114 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
115 sizePolicy.setHorizontalStretch(0);
116 sizePolicy.setVerticalStretch(0);
117 sizePolicy.setHeightForWidth(
ellipsisButton->sizePolicy().hasHeightForWidth());
128 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
133 freeSpace->setObjectName(QString::fromUtf8(
"freeSpace"));
134 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
135 sizePolicy1.setHorizontalStretch(1);
136 sizePolicy1.setVerticalStretch(0);
137 sizePolicy1.setHeightForWidth(
freeSpace->sizePolicy().hasHeightForWidth());
143 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
148 errorMessage->setObjectName(QString::fromUtf8(
"errorMessage"));
149 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
150 sizePolicy2.setHorizontalStretch(0);
151 sizePolicy2.setVerticalStretch(0);
152 sizePolicy2.setHeightForWidth(
errorMessage->sizePolicy().hasHeightForWidth());
172 prune->setObjectName(QString::fromUtf8(
"prune"));
188 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
193 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
194 buttonBox->setOrientation(Qt::Horizontal);
195 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
201 QObject::connect(
buttonBox, SIGNAL(accepted()),
Intro, SLOT(accept()));
202 QObject::connect(
buttonBox, SIGNAL(rejected()),
Intro, SLOT(reject()));
204 QMetaObject::connectSlotsByName(
Intro);
209 Intro->setWindowTitle(QCoreApplication::translate(
"Intro",
"Welcome",
nullptr));
210 welcomeLabel->setText(QCoreApplication::translate(
"Intro",
"Welcome to %1.",
nullptr));
211 storageLabel->setText(QCoreApplication::translate(
"Intro",
"As this is the first time the program is launched, you can choose where %1 will store its data.",
nullptr));
212 dataDirDefault->setText(QCoreApplication::translate(
"Intro",
"Use the default data directory",
nullptr));
213 dataDirCustom->setText(QCoreApplication::translate(
"Intro",
"Use a custom data directory:",
nullptr));
215 lblExplanation1->setText(QCoreApplication::translate(
"Intro",
"When you click OK, %1 will begin to download and process the full %4 block chain (%2GB) starting with the earliest transactions in %3 when %4 initially launched.",
nullptr));
216 #if QT_CONFIG(tooltip)
217 prune->setToolTip(QCoreApplication::translate(
"Intro",
"Reverting this setting requires re-downloading the entire blockchain. It is faster to download the full chain first and prune it later. Disables some advanced features.",
nullptr));
219 prune->setText(QString());
220 lblExplanation2->setText(QCoreApplication::translate(
"Intro",
"This initial synchronisation is very demanding, and may expose hardware problems with your computer that had previously gone unnoticed. Each time you run %1, it will continue downloading where it left off.",
nullptr));
221 lblExplanation3->setText(QCoreApplication::translate(
"Intro",
"If you have chosen to limit block chain storage (pruning), the historical data must still be downloaded and processed, but will be deleted afterward to keep your disk usage low.",
nullptr));
Introduction screen (pre-GUI startup).
QRadioButton * dataDirCustom
QHBoxLayout * horizontalLayout_2
QVBoxLayout * verticalLayout_2
QSpacerItem * verticalSpacer_3
QSpacerItem * verticalSpacer_2
QLineEdit * dataDirectory
QSpacerItem * verticalSpacer
QHBoxLayout * horizontalLayout
QPushButton * ellipsisButton
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *Intro)
void setupUi(QDialog *Intro)
QSpacerItem * horizontalSpacer
QVBoxLayout * verticalLayout
QRadioButton * dataDirDefault
QLabel * sizeWarningLabel
QSpacerItem * verticalSpacer_4