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);
62 verticalLayout =
new QVBoxLayout(Intro);
63 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
64 welcomeLabel =
new QLabel(Intro);
65 welcomeLabel->setObjectName(QStringLiteral(
"welcomeLabel"));
66 welcomeLabel->setStyleSheet(QStringLiteral(
"QLabel { font-style:italic; }"));
67 welcomeLabel->setWordWrap(
true);
69 verticalLayout->addWidget(welcomeLabel);
71 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
73 verticalLayout->addItem(verticalSpacer_4);
75 storageLabel =
new QLabel(Intro);
76 storageLabel->setObjectName(QStringLiteral(
"storageLabel"));
77 storageLabel->setWordWrap(
true);
79 verticalLayout->addWidget(storageLabel);
81 sizeWarningLabel =
new QLabel(Intro);
82 sizeWarningLabel->setObjectName(QStringLiteral(
"sizeWarningLabel"));
83 sizeWarningLabel->setWordWrap(
true);
85 verticalLayout->addWidget(sizeWarningLabel);
87 dataDirDefault =
new QRadioButton(Intro);
88 dataDirDefault->setObjectName(QStringLiteral(
"dataDirDefault"));
90 verticalLayout->addWidget(dataDirDefault);
92 dataDirCustom =
new QRadioButton(Intro);
93 dataDirCustom->setObjectName(QStringLiteral(
"dataDirCustom"));
95 verticalLayout->addWidget(dataDirCustom);
97 horizontalLayout =
new QHBoxLayout();
98 horizontalLayout->setSpacing(0);
99 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
100 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
101 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
103 horizontalLayout->addItem(horizontalSpacer);
105 verticalLayout_2 =
new QVBoxLayout();
106 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
107 verticalLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
108 horizontalLayout_2 =
new QHBoxLayout();
109 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
110 dataDirectory =
new QLineEdit(Intro);
111 dataDirectory->setObjectName(QStringLiteral(
"dataDirectory"));
113 horizontalLayout_2->addWidget(dataDirectory);
115 ellipsisButton =
new QPushButton(Intro);
116 ellipsisButton->setObjectName(QStringLiteral(
"ellipsisButton"));
117 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
118 sizePolicy.setHorizontalStretch(0);
119 sizePolicy.setVerticalStretch(0);
120 sizePolicy.setHeightForWidth(ellipsisButton->sizePolicy().hasHeightForWidth());
121 ellipsisButton->setSizePolicy(sizePolicy);
122 ellipsisButton->setMaximumSize(QSize(30, 16777215));
123 ellipsisButton->setText(QString::fromUtf8(
"\342\200\246"));
124 ellipsisButton->setAutoDefault(
false);
126 horizontalLayout_2->addWidget(ellipsisButton);
129 verticalLayout_2->addLayout(horizontalLayout_2);
131 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
133 verticalLayout_2->addItem(verticalSpacer_3);
135 freeSpace =
new QLabel(Intro);
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());
141 freeSpace->setSizePolicy(sizePolicy1);
142 freeSpace->setWordWrap(
true);
144 verticalLayout_2->addWidget(freeSpace);
146 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
148 verticalLayout_2->addItem(verticalSpacer_2);
150 errorMessage =
new QLabel(Intro);
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());
156 errorMessage->setSizePolicy(sizePolicy2);
157 errorMessage->setTextFormat(Qt::RichText);
158 errorMessage->setWordWrap(
true);
160 verticalLayout_2->addWidget(errorMessage);
163 horizontalLayout->addLayout(verticalLayout_2);
166 verticalLayout->addLayout(horizontalLayout);
168 lblExplanation1 =
new QLabel(Intro);
169 lblExplanation1->setObjectName(QStringLiteral(
"lblExplanation1"));
170 lblExplanation1->setWordWrap(
true);
172 verticalLayout->addWidget(lblExplanation1);
174 prune =
new QCheckBox(Intro);
175 prune->setObjectName(QStringLiteral(
"prune"));
177 verticalLayout->addWidget(prune);
179 lblExplanation2 =
new QLabel(Intro);
180 lblExplanation2->setObjectName(QStringLiteral(
"lblExplanation2"));
181 lblExplanation2->setWordWrap(
true);
183 verticalLayout->addWidget(lblExplanation2);
185 lblExplanation3 =
new QLabel(Intro);
186 lblExplanation3->setObjectName(QStringLiteral(
"lblExplanation3"));
187 lblExplanation3->setWordWrap(
true);
189 verticalLayout->addWidget(lblExplanation3);
191 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
193 verticalLayout->addItem(verticalSpacer);
195 buttonBox =
new QDialogButtonBox(Intro);
196 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
197 buttonBox->setOrientation(Qt::Horizontal);
198 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
200 verticalLayout->addWidget(buttonBox);
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", 0));
213 welcomeLabel->setText(QApplication::translate(
"Intro",
"Welcome to %1.", 0));
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.", 0));
215 dataDirDefault->setText(QApplication::translate(
"Intro",
"Use the default data directory", 0));
216 dataDirCustom->setText(QApplication::translate(
"Intro",
"Use a custom data directory:", 0));
217 freeSpace->setText(QString());
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.", 0));
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.", 0));
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.", 0));
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.", 0));
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