11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QDialog>
16 #include <QtGui/QDialogButtonBox>
17 #include <QtGui/QHBoxLayout>
18 #include <QtGui/QHeaderView>
19 #include <QtGui/QLabel>
20 #include <QtGui/QLineEdit>
21 #include <QtGui/QPushButton>
22 #include <QtGui/QRadioButton>
23 #include <QtGui/QSpacerItem>
24 #include <QtGui/QVBoxLayout>
53 if (Intro->objectName().isEmpty())
54 Intro->setObjectName(QString::fromUtf8(
"Intro"));
55 Intro->resize(674, 363);
56 verticalLayout =
new QVBoxLayout(Intro);
57 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
58 label_2 =
new QLabel(Intro);
59 label_2->setObjectName(QString::fromUtf8(
"label_2"));
60 label_2->setStyleSheet(QString::fromUtf8(
"QLabel { font-style:italic; }"));
61 label_2->setWordWrap(
true);
63 verticalLayout->addWidget(label_2);
65 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
67 verticalLayout->addItem(verticalSpacer_4);
69 label_4 =
new QLabel(Intro);
70 label_4->setObjectName(QString::fromUtf8(
"label_4"));
71 label_4->setWordWrap(
true);
73 verticalLayout->addWidget(label_4);
75 sizeWarningLabel =
new QLabel(Intro);
76 sizeWarningLabel->setObjectName(QString::fromUtf8(
"sizeWarningLabel"));
77 sizeWarningLabel->setWordWrap(
true);
79 verticalLayout->addWidget(sizeWarningLabel);
81 dataDirDefault =
new QRadioButton(Intro);
82 dataDirDefault->setObjectName(QString::fromUtf8(
"dataDirDefault"));
84 verticalLayout->addWidget(dataDirDefault);
86 dataDirCustom =
new QRadioButton(Intro);
87 dataDirCustom->setObjectName(QString::fromUtf8(
"dataDirCustom"));
89 verticalLayout->addWidget(dataDirCustom);
91 horizontalLayout =
new QHBoxLayout();
92 horizontalLayout->setSpacing(0);
93 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
94 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
95 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
97 horizontalLayout->addItem(horizontalSpacer);
99 verticalLayout_2 =
new QVBoxLayout();
100 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
101 verticalLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
102 horizontalLayout_2 =
new QHBoxLayout();
103 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
105 dataDirectory->setObjectName(QString::fromUtf8(
"dataDirectory"));
107 horizontalLayout_2->addWidget(dataDirectory);
109 ellipsisButton =
new QPushButton(Intro);
110 ellipsisButton->setObjectName(QString::fromUtf8(
"ellipsisButton"));
111 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
112 sizePolicy.setHorizontalStretch(0);
113 sizePolicy.setVerticalStretch(0);
114 sizePolicy.setHeightForWidth(ellipsisButton->sizePolicy().hasHeightForWidth());
115 ellipsisButton->setSizePolicy(sizePolicy);
116 ellipsisButton->setMaximumSize(QSize(30, 16777215));
117 ellipsisButton->setText(QString::fromUtf8(
"\342\200\246"));
118 ellipsisButton->setAutoDefault(
false);
120 horizontalLayout_2->addWidget(ellipsisButton);
123 verticalLayout_2->addLayout(horizontalLayout_2);
125 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
127 verticalLayout_2->addItem(verticalSpacer_3);
129 freeSpace =
new QLabel(Intro);
130 freeSpace->setObjectName(QString::fromUtf8(
"freeSpace"));
131 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
132 sizePolicy1.setHorizontalStretch(1);
133 sizePolicy1.setVerticalStretch(0);
134 sizePolicy1.setHeightForWidth(freeSpace->sizePolicy().hasHeightForWidth());
135 freeSpace->setSizePolicy(sizePolicy1);
136 freeSpace->setWordWrap(
true);
138 verticalLayout_2->addWidget(freeSpace);
140 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
142 verticalLayout_2->addItem(verticalSpacer_2);
144 errorMessage =
new QLabel(Intro);
145 errorMessage->setObjectName(QString::fromUtf8(
"errorMessage"));
146 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
147 sizePolicy2.setHorizontalStretch(0);
148 sizePolicy2.setVerticalStretch(0);
149 sizePolicy2.setHeightForWidth(errorMessage->sizePolicy().hasHeightForWidth());
150 errorMessage->setSizePolicy(sizePolicy2);
151 errorMessage->setTextFormat(Qt::RichText);
152 errorMessage->setWordWrap(
true);
154 verticalLayout_2->addWidget(errorMessage);
157 horizontalLayout->addLayout(verticalLayout_2);
160 verticalLayout->addLayout(horizontalLayout);
162 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
164 verticalLayout->addItem(verticalSpacer);
166 buttonBox =
new QDialogButtonBox(Intro);
167 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
168 buttonBox->setOrientation(Qt::Horizontal);
169 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
171 verticalLayout->addWidget(buttonBox);
175 QObject::connect(buttonBox, SIGNAL(accepted()), Intro, SLOT(accept()));
176 QObject::connect(buttonBox, SIGNAL(rejected()), Intro, SLOT(reject()));
178 QMetaObject::connectSlotsByName(Intro);
183 Intro->setWindowTitle(QApplication::translate(
"Intro",
"Welcome", 0, QApplication::UnicodeUTF8));
184 label_2->setText(QApplication::translate(
"Intro",
"Welcome to Bitcoin Core.", 0, QApplication::UnicodeUTF8));
185 label_4->setText(QApplication::translate(
"Intro",
"As this is the first time the program is launched, you can choose where Bitcoin Core will store its data.", 0, QApplication::UnicodeUTF8));
186 sizeWarningLabel->setText(QApplication::translate(
"Intro",
"Bitcoin Core will download and store a copy of the Bitcoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.", 0, QApplication::UnicodeUTF8));
187 dataDirDefault->setText(QApplication::translate(
"Intro",
"Use the default data directory", 0, QApplication::UnicodeUTF8));
188 dataDirCustom->setText(QApplication::translate(
"Intro",
"Use a custom data directory:", 0, QApplication::UnicodeUTF8));
189 freeSpace->setText(QString());
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