12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QRadioButton> 25 #include <QtWidgets/QSpacerItem> 26 #include <QtWidgets/QVBoxLayout> 59 if (
Intro->objectName().isEmpty())
60 Intro->setObjectName(QStringLiteral(
"Intro"));
61 Intro->resize(674, 415);
65 welcomeLabel->setObjectName(QStringLiteral(
"welcomeLabel"));
66 welcomeLabel->setStyleSheet(QStringLiteral(
"QLabel { font-style:italic; }"));
71 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
76 storageLabel->setObjectName(QStringLiteral(
"storageLabel"));
93 dataDirCustom->setObjectName(QStringLiteral(
"dataDirCustom"));
101 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
111 dataDirectory->setObjectName(QStringLiteral(
"dataDirectory"));
117 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
118 sizePolicy.setHorizontalStretch(0);
119 sizePolicy.setVerticalStretch(0);
120 sizePolicy.setHeightForWidth(
ellipsisButton->sizePolicy().hasHeightForWidth());
131 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
136 freeSpace->setObjectName(QStringLiteral(
"freeSpace"));
137 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
138 sizePolicy1.setHorizontalStretch(1);
139 sizePolicy1.setVerticalStretch(0);
140 sizePolicy1.setHeightForWidth(
freeSpace->sizePolicy().hasHeightForWidth());
146 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
151 errorMessage->setObjectName(QStringLiteral(
"errorMessage"));
152 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
153 sizePolicy2.setHorizontalStretch(0);
154 sizePolicy2.setVerticalStretch(0);
155 sizePolicy2.setHeightForWidth(
errorMessage->sizePolicy().hasHeightForWidth());
175 prune->setObjectName(QStringLiteral(
"prune"));
191 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
196 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
197 buttonBox->setOrientation(Qt::Horizontal);
198 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
204 QObject::connect(
buttonBox, SIGNAL(accepted()),
Intro, SLOT(accept()));
205 QObject::connect(
buttonBox, SIGNAL(rejected()),
Intro, SLOT(reject()));
207 QMetaObject::connectSlotsByName(
Intro);
212 Intro->setWindowTitle(QApplication::translate(
"Intro",
"Welcome", Q_NULLPTR));
213 welcomeLabel->setText(QApplication::translate(
"Intro",
"Welcome to %1.", Q_NULLPTR));
214 storageLabel->setText(QApplication::translate(
"Intro",
"As this is the first time the program is launched, you can choose where %1 will store its data.", Q_NULLPTR));
215 dataDirDefault->setText(QApplication::translate(
"Intro",
"Use the default data directory", Q_NULLPTR));
216 dataDirCustom->setText(QApplication::translate(
"Intro",
"Use a custom data directory:", Q_NULLPTR));
218 lblExplanation1->setText(QApplication::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.", Q_NULLPTR));
219 #ifndef QT_NO_TOOLTIP 220 prune->setToolTip(QApplication::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.", Q_NULLPTR));
221 #endif // QT_NO_TOOLTIP 222 prune->setText(QString());
223 lblExplanation2->setText(QApplication::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.", Q_NULLPTR));
224 lblExplanation3->setText(QApplication::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.", Q_NULLPTR));
QSpacerItem * verticalSpacer
QRadioButton * dataDirDefault
QVBoxLayout * verticalLayout
void setupUi(QDialog *Intro)
QRadioButton * dataDirCustom
QHBoxLayout * horizontalLayout
void retranslateUi(QDialog *Intro)
QDialogButtonBox * buttonBox
QLineEdit * dataDirectory
QSpacerItem * horizontalSpacer
QVBoxLayout * verticalLayout_2
QLabel * sizeWarningLabel
QSpacerItem * verticalSpacer_4
QSpacerItem * verticalSpacer_3
QSpacerItem * verticalSpacer_2
QHBoxLayout * horizontalLayout_2
Introduction screen (pre-GUI startup).
QPushButton * ellipsisButton