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>
54 if (Intro->objectName().isEmpty())
55 Intro->setObjectName(QStringLiteral(
"Intro"));
56 Intro->resize(674, 363);
57 verticalLayout =
new QVBoxLayout(Intro);
58 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
59 label_2 =
new QLabel(Intro);
60 label_2->setObjectName(QStringLiteral(
"label_2"));
61 label_2->setStyleSheet(QStringLiteral(
"QLabel { font-style:italic; }"));
62 label_2->setWordWrap(
true);
64 verticalLayout->addWidget(label_2);
66 verticalSpacer_4 =
new QSpacerItem(20, 15, QSizePolicy::Minimum, QSizePolicy::Minimum);
68 verticalLayout->addItem(verticalSpacer_4);
70 label_4 =
new QLabel(Intro);
71 label_4->setObjectName(QStringLiteral(
"label_4"));
72 label_4->setWordWrap(
true);
74 verticalLayout->addWidget(label_4);
76 sizeWarningLabel =
new QLabel(Intro);
77 sizeWarningLabel->setObjectName(QStringLiteral(
"sizeWarningLabel"));
78 sizeWarningLabel->setWordWrap(
true);
80 verticalLayout->addWidget(sizeWarningLabel);
82 dataDirDefault =
new QRadioButton(Intro);
83 dataDirDefault->setObjectName(QStringLiteral(
"dataDirDefault"));
85 verticalLayout->addWidget(dataDirDefault);
87 dataDirCustom =
new QRadioButton(Intro);
88 dataDirCustom->setObjectName(QStringLiteral(
"dataDirCustom"));
90 verticalLayout->addWidget(dataDirCustom);
92 horizontalLayout =
new QHBoxLayout();
93 horizontalLayout->setSpacing(0);
94 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
95 horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
96 horizontalSpacer =
new QSpacerItem(60, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
98 horizontalLayout->addItem(horizontalSpacer);
100 verticalLayout_2 =
new QVBoxLayout();
101 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
102 verticalLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
103 horizontalLayout_2 =
new QHBoxLayout();
104 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
105 dataDirectory =
new QLineEdit(Intro);
106 dataDirectory->setObjectName(QStringLiteral(
"dataDirectory"));
108 horizontalLayout_2->addWidget(dataDirectory);
110 ellipsisButton =
new QPushButton(Intro);
111 ellipsisButton->setObjectName(QStringLiteral(
"ellipsisButton"));
112 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
113 sizePolicy.setHorizontalStretch(0);
114 sizePolicy.setVerticalStretch(0);
115 sizePolicy.setHeightForWidth(ellipsisButton->sizePolicy().hasHeightForWidth());
116 ellipsisButton->setSizePolicy(sizePolicy);
117 ellipsisButton->setMaximumSize(QSize(30, 16777215));
118 ellipsisButton->setText(QString::fromUtf8(
"\342\200\246"));
119 ellipsisButton->setAutoDefault(
false);
121 horizontalLayout_2->addWidget(ellipsisButton);
124 verticalLayout_2->addLayout(horizontalLayout_2);
126 verticalSpacer_3 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
128 verticalLayout_2->addItem(verticalSpacer_3);
130 freeSpace =
new QLabel(Intro);
131 freeSpace->setObjectName(QStringLiteral(
"freeSpace"));
132 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
133 sizePolicy1.setHorizontalStretch(1);
134 sizePolicy1.setVerticalStretch(0);
135 sizePolicy1.setHeightForWidth(freeSpace->sizePolicy().hasHeightForWidth());
136 freeSpace->setSizePolicy(sizePolicy1);
137 freeSpace->setWordWrap(
true);
139 verticalLayout_2->addWidget(freeSpace);
141 verticalSpacer_2 =
new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Fixed);
143 verticalLayout_2->addItem(verticalSpacer_2);
145 errorMessage =
new QLabel(Intro);
146 errorMessage->setObjectName(QStringLiteral(
"errorMessage"));
147 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Expanding);
148 sizePolicy2.setHorizontalStretch(0);
149 sizePolicy2.setVerticalStretch(0);
150 sizePolicy2.setHeightForWidth(errorMessage->sizePolicy().hasHeightForWidth());
151 errorMessage->setSizePolicy(sizePolicy2);
152 errorMessage->setTextFormat(Qt::RichText);
153 errorMessage->setWordWrap(
true);
155 verticalLayout_2->addWidget(errorMessage);
158 horizontalLayout->addLayout(verticalLayout_2);
161 verticalLayout->addLayout(horizontalLayout);
163 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
165 verticalLayout->addItem(verticalSpacer);
167 buttonBox =
new QDialogButtonBox(Intro);
168 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
169 buttonBox->setOrientation(Qt::Horizontal);
170 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
172 verticalLayout->addWidget(buttonBox);
176 QObject::connect(buttonBox, SIGNAL(accepted()), Intro, SLOT(accept()));
177 QObject::connect(buttonBox, SIGNAL(rejected()), Intro, SLOT(reject()));
179 QMetaObject::connectSlotsByName(Intro);
184 Intro->setWindowTitle(QApplication::translate(
"Intro",
"Welcome", 0));
185 label_2->setText(QApplication::translate(
"Intro",
"Welcome to Anoncoin Core.", 0));
186 label_4->setText(QApplication::translate(
"Intro",
"As this is the first time the program is launched, you can choose where Anoncoin Core will store its data.", 0));
187 sizeWarningLabel->setText(QApplication::translate(
"Intro",
"Anoncoin Core will download and store a copy of the Anoncoin 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));
188 dataDirDefault->setText(QApplication::translate(
"Intro",
"Use the default data directory", 0));
189 dataDirCustom->setText(QApplication::translate(
"Intro",
"Use a custom data directory:", 0));
190 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