12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QRadioButton> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QVBoxLayout> 57 if (Intro->objectName().isEmpty())
58 Intro->setObjectName(QStringLiteral(
"Intro"));
59 Intro->resize(674, 415);
60 verticalLayout =
new QVBoxLayout(Intro);
61 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
62 welcomeLabel =
new QLabel(Intro);
63 welcomeLabel->setObjectName(QStringLiteral(
"welcomeLabel"));
64 welcomeLabel->setStyleSheet(QStringLiteral(
"QLabel { font-style:italic; }"));
65 welcomeLabel->setWordWrap(
true);
67 verticalLayout->addWidget(welcomeLabel);
69 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
71 verticalLayout->addItem(verticalSpacer_4);
73 storageLabel =
new QLabel(Intro);
74 storageLabel->setObjectName(QStringLiteral(
"storageLabel"));
75 storageLabel->setWordWrap(
true);
77 verticalLayout->addWidget(storageLabel);
79 sizeWarningLabel =
new QLabel(Intro);
80 sizeWarningLabel->setObjectName(QStringLiteral(
"sizeWarningLabel"));
81 sizeWarningLabel->setWordWrap(
true);
83 verticalLayout->addWidget(sizeWarningLabel);
85 dataDirDefault =
new QRadioButton(Intro);
86 dataDirDefault->setObjectName(QStringLiteral(
"dataDirDefault"));
88 verticalLayout->addWidget(dataDirDefault);
90 dataDirCustom =
new QRadioButton(Intro);
91 dataDirCustom->setObjectName(QStringLiteral(
"dataDirCustom"));
93 verticalLayout->addWidget(dataDirCustom);
95 horizontalLayout =
new QHBoxLayout();
96 horizontalLayout->setSpacing(0);
97 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
98 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
99 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
101 horizontalLayout->addItem(horizontalSpacer);
103 verticalLayout_2 =
new QVBoxLayout();
104 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
105 verticalLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
106 horizontalLayout_2 =
new QHBoxLayout();
107 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
108 dataDirectory =
new QLineEdit(Intro);
109 dataDirectory->setObjectName(QStringLiteral(
"dataDirectory"));
111 horizontalLayout_2->addWidget(dataDirectory);
113 ellipsisButton =
new QPushButton(Intro);
114 ellipsisButton->setObjectName(QStringLiteral(
"ellipsisButton"));
115 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
116 sizePolicy.setHorizontalStretch(0);
117 sizePolicy.setVerticalStretch(0);
118 sizePolicy.setHeightForWidth(ellipsisButton->sizePolicy().hasHeightForWidth());
119 ellipsisButton->setSizePolicy(sizePolicy);
120 ellipsisButton->setMaximumSize(QSize(30, 16777215));
121 ellipsisButton->setText(QString::fromUtf8(
"\342\200\246"));
122 ellipsisButton->setAutoDefault(
false);
124 horizontalLayout_2->addWidget(ellipsisButton);
127 verticalLayout_2->addLayout(horizontalLayout_2);
129 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
131 verticalLayout_2->addItem(verticalSpacer_3);
133 freeSpace =
new QLabel(Intro);
134 freeSpace->setObjectName(QStringLiteral(
"freeSpace"));
135 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
136 sizePolicy1.setHorizontalStretch(1);
137 sizePolicy1.setVerticalStretch(0);
138 sizePolicy1.setHeightForWidth(freeSpace->sizePolicy().hasHeightForWidth());
139 freeSpace->setSizePolicy(sizePolicy1);
140 freeSpace->setWordWrap(
true);
142 verticalLayout_2->addWidget(freeSpace);
144 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
146 verticalLayout_2->addItem(verticalSpacer_2);
148 errorMessage =
new QLabel(Intro);
149 errorMessage->setObjectName(QStringLiteral(
"errorMessage"));
150 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
151 sizePolicy2.setHorizontalStretch(0);
152 sizePolicy2.setVerticalStretch(0);
153 sizePolicy2.setHeightForWidth(errorMessage->sizePolicy().hasHeightForWidth());
154 errorMessage->setSizePolicy(sizePolicy2);
155 errorMessage->setTextFormat(Qt::RichText);
156 errorMessage->setWordWrap(
true);
158 verticalLayout_2->addWidget(errorMessage);
161 horizontalLayout->addLayout(verticalLayout_2);
164 verticalLayout->addLayout(horizontalLayout);
166 lblExplanation1 =
new QLabel(Intro);
167 lblExplanation1->setObjectName(QStringLiteral(
"lblExplanation1"));
168 lblExplanation1->setWordWrap(
true);
170 verticalLayout->addWidget(lblExplanation1);
172 lblExplanation2 =
new QLabel(Intro);
173 lblExplanation2->setObjectName(QStringLiteral(
"lblExplanation2"));
174 lblExplanation2->setWordWrap(
true);
176 verticalLayout->addWidget(lblExplanation2);
178 lblExplanation3 =
new QLabel(Intro);
179 lblExplanation3->setObjectName(QStringLiteral(
"lblExplanation3"));
180 lblExplanation3->setWordWrap(
true);
182 verticalLayout->addWidget(lblExplanation3);
184 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
186 verticalLayout->addItem(verticalSpacer);
188 buttonBox =
new QDialogButtonBox(Intro);
189 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
190 buttonBox->setOrientation(Qt::Horizontal);
191 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
193 verticalLayout->addWidget(buttonBox);
197 QObject::connect(buttonBox, SIGNAL(accepted()), Intro, SLOT(accept()));
198 QObject::connect(buttonBox, SIGNAL(rejected()), Intro, SLOT(reject()));
200 QMetaObject::connectSlotsByName(Intro);
205 Intro->setWindowTitle(QApplication::translate(
"Intro",
"Welcome", 0));
206 welcomeLabel->setText(QApplication::translate(
"Intro",
"Welcome to %1.", 0));
207 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));
208 dataDirDefault->setText(QApplication::translate(
"Intro",
"Use the default data directory", 0));
209 dataDirCustom->setText(QApplication::translate(
"Intro",
"Use a custom data directory:", 0));
210 freeSpace->setText(QString());
211 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));
212 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));
213 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