12 #ifndef UI_ERROROVERLAY_H
13 #define UI_ERROROVERLAY_H
15 #include <QtCore/QVariant>
16 #include <QtGui/QAction>
17 #include <QtGui/QApplication>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/QHBoxLayout>
20 #include <QtGui/QHeaderView>
21 #include <QtGui/QLabel>
22 #include <QtGui/QProgressBar>
23 #include <QtGui/QSpacerItem>
24 #include <QtGui/QStackedWidget>
25 #include <QtGui/QVBoxLayout>
26 #include <QtGui/QWidget>
27 #include "kpushbutton.h"
34 QVBoxLayout *verticalLayout;
35 QStackedWidget *stackWidget;
36 QWidget *notRunningPage;
37 QVBoxLayout *verticalLayout_5;
38 QSpacerItem *verticalSpacer;
39 QLabel *notRunningIcon;
40 QLabel *notRunningDescription;
41 QHBoxLayout *horizontalLayout_3;
42 QSpacerItem *horizontalSpacer_5;
43 QVBoxLayout *verticalLayout_2;
44 KPushButton *startButton;
45 KPushButton *quitButton;
46 QSpacerItem *horizontalSpacer_6;
47 QSpacerItem *verticalSpacer_2;
49 QVBoxLayout *verticalLayout_6;
50 QSpacerItem *verticalSpacer_5;
52 QLabel *brokenDescription;
53 QHBoxLayout *horizontalLayout_2;
54 QSpacerItem *horizontalSpacer_3;
55 QVBoxLayout *verticalLayout_4;
56 KPushButton *selfTestButton;
57 KPushButton *detailsQuitButton;
58 QSpacerItem *horizontalSpacer_4;
59 QSpacerItem *verticalSpacer_6;
60 QWidget *progressPage;
61 QVBoxLayout *verticalLayout_3;
62 QSpacerItem *verticalSpacer_3;
63 QHBoxLayout *horizontalLayout;
64 QSpacerItem *horizontalSpacer;
66 QProgressBar *progressBar;
67 QSpacerItem *horizontalSpacer_2;
68 QLabel *progressDescription;
69 QSpacerItem *verticalSpacer_4;
71 void setupUi(QWidget *ErrorOverlay)
73 if (ErrorOverlay->objectName().isEmpty())
74 ErrorOverlay->setObjectName(QString::fromUtf8(
"ErrorOverlay"));
75 ErrorOverlay->resize(400, 300);
76 verticalLayout =
new QVBoxLayout(ErrorOverlay);
77 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
78 stackWidget =
new QStackedWidget(ErrorOverlay);
79 stackWidget->setObjectName(QString::fromUtf8(
"stackWidget"));
80 notRunningPage =
new QWidget();
81 notRunningPage->setObjectName(QString::fromUtf8(
"notRunningPage"));
82 verticalLayout_5 =
new QVBoxLayout(notRunningPage);
83 verticalLayout_5->setObjectName(QString::fromUtf8(
"verticalLayout_5"));
84 verticalSpacer =
new QSpacerItem(20, 95, QSizePolicy::Minimum, QSizePolicy::Expanding);
86 verticalLayout_5->addItem(verticalSpacer);
88 notRunningIcon =
new QLabel(notRunningPage);
89 notRunningIcon->setObjectName(QString::fromUtf8(
"notRunningIcon"));
90 notRunningIcon->setAlignment(Qt::AlignCenter);
92 verticalLayout_5->addWidget(notRunningIcon);
94 notRunningDescription =
new QLabel(notRunningPage);
95 notRunningDescription->setObjectName(QString::fromUtf8(
"notRunningDescription"));
96 notRunningDescription->setAlignment(Qt::AlignCenter);
97 notRunningDescription->setWordWrap(
true);
99 verticalLayout_5->addWidget(notRunningDescription);
101 horizontalLayout_3 =
new QHBoxLayout();
102 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
103 horizontalSpacer_5 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
105 horizontalLayout_3->addItem(horizontalSpacer_5);
107 verticalLayout_2 =
new QVBoxLayout();
108 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
109 startButton =
new KPushButton(notRunningPage);
110 startButton->setObjectName(QString::fromUtf8(
"startButton"));
112 verticalLayout_2->addWidget(startButton);
114 quitButton =
new KPushButton(notRunningPage);
115 quitButton->setObjectName(QString::fromUtf8(
"quitButton"));
117 verticalLayout_2->addWidget(quitButton);
120 horizontalLayout_3->addLayout(verticalLayout_2);
122 horizontalSpacer_6 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 horizontalLayout_3->addItem(horizontalSpacer_6);
127 verticalLayout_5->addLayout(horizontalLayout_3);
129 verticalSpacer_2 =
new QSpacerItem(20, 96, QSizePolicy::Minimum, QSizePolicy::Expanding);
131 verticalLayout_5->addItem(verticalSpacer_2);
133 stackWidget->addWidget(notRunningPage);
134 brokenPage =
new QWidget();
135 brokenPage->setObjectName(QString::fromUtf8(
"brokenPage"));
136 verticalLayout_6 =
new QVBoxLayout(brokenPage);
137 verticalLayout_6->setObjectName(QString::fromUtf8(
"verticalLayout_6"));
138 verticalSpacer_5 =
new QSpacerItem(20, 95, QSizePolicy::Minimum, QSizePolicy::Expanding);
140 verticalLayout_6->addItem(verticalSpacer_5);
142 brokenIcon =
new QLabel(brokenPage);
143 brokenIcon->setObjectName(QString::fromUtf8(
"brokenIcon"));
144 brokenIcon->setAlignment(Qt::AlignCenter);
146 verticalLayout_6->addWidget(brokenIcon);
148 brokenDescription =
new QLabel(brokenPage);
149 brokenDescription->setObjectName(QString::fromUtf8(
"brokenDescription"));
150 brokenDescription->setAlignment(Qt::AlignCenter);
151 brokenDescription->setWordWrap(
true);
153 verticalLayout_6->addWidget(brokenDescription);
155 horizontalLayout_2 =
new QHBoxLayout();
156 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
157 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
159 horizontalLayout_2->addItem(horizontalSpacer_3);
161 verticalLayout_4 =
new QVBoxLayout();
162 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
163 selfTestButton =
new KPushButton(brokenPage);
164 selfTestButton->setObjectName(QString::fromUtf8(
"selfTestButton"));
165 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
166 sizePolicy.setHorizontalStretch(0);
167 sizePolicy.setVerticalStretch(0);
168 sizePolicy.setHeightForWidth(selfTestButton->sizePolicy().hasHeightForWidth());
169 selfTestButton->setSizePolicy(sizePolicy);
171 verticalLayout_4->addWidget(selfTestButton);
173 detailsQuitButton =
new KPushButton(brokenPage);
174 detailsQuitButton->setObjectName(QString::fromUtf8(
"detailsQuitButton"));
176 verticalLayout_4->addWidget(detailsQuitButton);
179 horizontalLayout_2->addLayout(verticalLayout_4);
181 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
183 horizontalLayout_2->addItem(horizontalSpacer_4);
186 verticalLayout_6->addLayout(horizontalLayout_2);
188 verticalSpacer_6 =
new QSpacerItem(20, 96, QSizePolicy::Minimum, QSizePolicy::Expanding);
190 verticalLayout_6->addItem(verticalSpacer_6);
192 stackWidget->addWidget(brokenPage);
193 progressPage =
new QWidget();
194 progressPage->setObjectName(QString::fromUtf8(
"progressPage"));
195 verticalLayout_3 =
new QVBoxLayout(progressPage);
196 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
197 verticalSpacer_3 =
new QSpacerItem(20, 113, QSizePolicy::Minimum, QSizePolicy::Expanding);
199 verticalLayout_3->addItem(verticalSpacer_3);
201 horizontalLayout =
new QHBoxLayout();
202 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
203 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
205 horizontalLayout->addItem(horizontalSpacer);
207 progressIcon =
new QLabel(progressPage);
208 progressIcon->setObjectName(QString::fromUtf8(
"progressIcon"));
209 progressIcon->setAlignment(Qt::AlignCenter);
211 horizontalLayout->addWidget(progressIcon);
213 progressBar =
new QProgressBar(progressPage);
214 progressBar->setObjectName(QString::fromUtf8(
"progressBar"));
215 progressBar->setMaximum(0);
216 progressBar->setValue(7229);
218 horizontalLayout->addWidget(progressBar);
220 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
222 horizontalLayout->addItem(horizontalSpacer_2);
225 verticalLayout_3->addLayout(horizontalLayout);
227 progressDescription =
new QLabel(progressPage);
228 progressDescription->setObjectName(QString::fromUtf8(
"progressDescription"));
229 progressDescription->setAlignment(Qt::AlignCenter);
230 progressDescription->setWordWrap(
true);
232 verticalLayout_3->addWidget(progressDescription);
234 verticalSpacer_4 =
new QSpacerItem(20, 113, QSizePolicy::Minimum, QSizePolicy::Expanding);
236 verticalLayout_3->addItem(verticalSpacer_4);
238 stackWidget->addWidget(progressPage);
240 verticalLayout->addWidget(stackWidget);
243 retranslateUi(ErrorOverlay);
245 stackWidget->setCurrentIndex(0);
248 QMetaObject::connectSlotsByName(ErrorOverlay);
251 void retranslateUi(QWidget *ErrorOverlay)
253 #ifndef UI_QT_NO_TOOLTIP
254 notRunningPage->setToolTip(tr2i18n(
"The Akonadi personal information management service is not running. This application cannot be used without it.", 0));
255 #endif // QT_NO_TOOLTIP
256 notRunningIcon->setText(QString());
257 notRunningDescription->setText(tr2i18n(
"The Akonadi personal information management service is not running. This application cannot be used without it.", 0));
258 startButton->setText(tr2i18n(
"Start",
"@action:button Start the Akonadi server"));
259 #ifndef UI_QT_NO_TOOLTIP
260 brokenPage->setToolTip(tr2i18n(
"The Akonadi personal information management framework is not operational.\n"
261 "Click on \"Details...\" to obtain detailed information on this problem.", 0));
262 #endif // QT_NO_TOOLTIP
263 brokenIcon->setText(QString());
264 brokenDescription->setText(tr2i18n(
"The Akonadi personal information management service is not operational.", 0));
265 selfTestButton->setText(tr2i18n(
"Details...", 0));
266 progressIcon->setText(QString());
267 progressDescription->setText(QString());
268 Q_UNUSED(ErrorOverlay);
274 class ErrorOverlay:
public Ui_ErrorOverlay {};
279 #endif // ERROROVERLAY_H