15 #include <QtCore/QVariant>
16 #include <QtGui/QAction>
17 #include <QtGui/QApplication>
18 #include <QtGui/QButtonGroup>
19 #include <QtGui/QGridLayout>
20 #include <QtGui/QHeaderView>
21 #include <QtGui/QLabel>
22 #include <QtGui/QLineEdit>
23 #include <QtGui/QSpacerItem>
24 #include <QtGui/QSpinBox>
25 #include <QtGui/QTabWidget>
26 #include <QtGui/QTableWidget>
27 #include <QtGui/QWidget>
28 #include "kurlrequester.h"
35 QGridLayout *gridLayout_6;
36 QTabWidget *tabWidget;
38 QGridLayout *gridLayout_7;
46 QGridLayout *gridLayout;
48 KUrlRequester *perlCritic;
50 KUrlRequester *pdfReader;
52 KUrlRequester *pbpPdf;
55 QSpacerItem *horizontalSpacer_2;
57 KUrlRequester *ErrorPath;
61 KUrlRequester *Prefix;
65 if (SettingsDialog->objectName().isEmpty())
66 SettingsDialog->setObjectName(QString::fromUtf8(
"SettingsDialog"));
67 SettingsDialog->setWindowModality(Qt::WindowModal);
68 SettingsDialog->setEnabled(
true);
69 SettingsDialog->resize(450, 484);
70 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
71 sizePolicy.setHorizontalStretch(0);
72 sizePolicy.setVerticalStretch(0);
73 sizePolicy.setHeightForWidth(SettingsDialog->sizePolicy().hasHeightForWidth());
74 SettingsDialog->setSizePolicy(sizePolicy);
75 gridLayout_6 =
new QGridLayout(SettingsDialog);
76 gridLayout_6->setObjectName(QString::fromUtf8(
"gridLayout_6"));
77 tabWidget =
new QTabWidget(SettingsDialog);
78 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
79 tab_3 =
new QWidget();
80 tab_3->setObjectName(QString::fromUtf8(
"tab_3"));
81 gridLayout_7 =
new QGridLayout(tab_3);
82 gridLayout_7->setObjectName(QString::fromUtf8(
"gridLayout_7"));
83 label_5 =
new QLabel(tab_3);
84 label_5->setObjectName(QString::fromUtf8(
"label_5"));
86 gridLayout_7->addWidget(label_5, 0, 0, 1, 1);
88 perl5 =
new KUrlRequester(tab_3);
89 perl5->setObjectName(QString::fromUtf8(
"perl5"));
91 gridLayout_7->addWidget(perl5, 1, 0, 1, 1);
93 label_6 =
new QLabel(tab_3);
94 label_6->setObjectName(QString::fromUtf8(
"label_6"));
96 gridLayout_7->addWidget(label_6, 2, 0, 1, 1);
98 args =
new QLineEdit(tab_3);
99 args->setObjectName(QString::fromUtf8(
"args"));
101 gridLayout_7->addWidget(args, 3, 0, 1, 1);
103 label_7 =
new QLabel(tab_3);
104 label_7->setObjectName(QString::fromUtf8(
"label_7"));
106 gridLayout_7->addWidget(label_7, 4, 0, 1, 1);
108 vars =
new QTableWidget(tab_3);
109 if (vars->columnCount() < 2)
110 vars->setColumnCount(2);
111 QTableWidgetItem *__qtablewidgetitem =
new QTableWidgetItem();
112 vars->setHorizontalHeaderItem(0, __qtablewidgetitem);
113 QTableWidgetItem *__qtablewidgetitem1 =
new QTableWidgetItem();
114 vars->setHorizontalHeaderItem(1, __qtablewidgetitem1);
115 vars->setObjectName(QString::fromUtf8(
"vars"));
116 vars->setContextMenuPolicy(Qt::CustomContextMenu);
117 vars->setAlternatingRowColors(
false);
118 vars->setSelectionMode(QAbstractItemView::SingleSelection);
119 vars->setSelectionBehavior(QAbstractItemView::SelectRows);
120 vars->horizontalHeader()->setDefaultSectionSize(150);
121 vars->horizontalHeader()->setProperty(
"showSortIndicator", QVariant(
false));
122 vars->horizontalHeader()->setStretchLastSection(
true);
123 vars->verticalHeader()->setVisible(
false);
125 gridLayout_7->addWidget(vars, 5, 0, 1, 1);
127 tabWidget->addTab(tab_3, QString());
128 critic =
new QWidget();
129 critic->setObjectName(QString::fromUtf8(
"critic"));
130 gridLayout =
new QGridLayout(critic);
131 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
132 label_2 =
new QLabel(critic);
133 label_2->setObjectName(QString::fromUtf8(
"label_2"));
135 gridLayout->addWidget(label_2, 0, 0, 1, 1);
137 perlCritic =
new KUrlRequester(critic);
138 perlCritic->setObjectName(QString::fromUtf8(
"perlCritic"));
140 gridLayout->addWidget(perlCritic, 1, 0, 1, 2);
142 label_3 =
new QLabel(critic);
143 label_3->setObjectName(QString::fromUtf8(
"label_3"));
145 gridLayout->addWidget(label_3, 2, 0, 1, 2);
147 pdfReader =
new KUrlRequester(critic);
148 pdfReader->setObjectName(QString::fromUtf8(
"pdfReader"));
149 pdfReader->setMode(KFile::ExistingOnly|KFile::File|KFile::LocalOnly);
151 gridLayout->addWidget(pdfReader, 3, 0, 1, 2);
153 label_4 =
new QLabel(critic);
154 label_4->setObjectName(QString::fromUtf8(
"label_4"));
156 gridLayout->addWidget(label_4, 4, 0, 1, 1);
158 pbpPdf =
new KUrlRequester(critic);
159 pbpPdf->setObjectName(QString::fromUtf8(
"pbpPdf"));
160 pbpPdf->setMode(KFile::ExistingOnly|KFile::File|KFile::LocalOnly);
162 gridLayout->addWidget(pbpPdf, 5, 0, 1, 2);
164 label =
new QLabel(critic);
165 label->setObjectName(QString::fromUtf8(
"label"));
167 gridLayout->addWidget(label, 6, 0, 1, 1);
169 severity =
new QSpinBox(critic);
170 severity->setObjectName(QString::fromUtf8(
"severity"));
171 severity->setMinimum(1);
172 severity->setMaximum(5);
173 severity->setValue(5);
175 gridLayout->addWidget(severity, 7, 0, 1, 1);
177 horizontalSpacer_2 =
new QSpacerItem(347, 22, QSizePolicy::Expanding, QSizePolicy::Minimum);
179 gridLayout->addItem(horizontalSpacer_2, 7, 1, 1, 1);
181 label_10 =
new QLabel(critic);
182 label_10->setObjectName(QString::fromUtf8(
"label_10"));
184 gridLayout->addWidget(label_10, 8, 0, 1, 2);
186 ErrorPath =
new KUrlRequester(critic);
187 ErrorPath->setObjectName(QString::fromUtf8(
"ErrorPath"));
188 ErrorPath->setInputMethodHints(Qt::ImhNone);
189 ErrorPath->setMode(KFile::ExistingOnly|KFile::File|KFile::LocalOnly);
191 gridLayout->addWidget(ErrorPath, 9, 0, 1, 2);
193 label_8 =
new QLabel(critic);
194 label_8->setObjectName(QString::fromUtf8(
"label_8"));
196 gridLayout->addWidget(label_8, 10, 0, 1, 2);
198 Path =
new KUrlRequester(critic);
199 Path->setObjectName(QString::fromUtf8(
"Path"));
200 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
201 sizePolicy1.setHorizontalStretch(0);
202 sizePolicy1.setVerticalStretch(0);
203 sizePolicy1.setHeightForWidth(Path->sizePolicy().hasHeightForWidth());
204 Path->setSizePolicy(sizePolicy1);
206 gridLayout->addWidget(Path, 11, 0, 1, 2);
208 label_9 =
new QLabel(critic);
209 label_9->setObjectName(QString::fromUtf8(
"label_9"));
211 gridLayout->addWidget(label_9, 12, 0, 1, 1);
213 Prefix =
new KUrlRequester(critic);
214 Prefix->setObjectName(QString::fromUtf8(
"Prefix"));
215 Prefix->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly);
217 gridLayout->addWidget(Prefix, 13, 0, 1, 2);
219 tabWidget->addTab(critic, QString());
221 gridLayout_6->addWidget(tabWidget, 0, 0, 1, 1);
224 retranslateUi(SettingsDialog);
226 tabWidget->setCurrentIndex(1);
229 QMetaObject::connectSlotsByName(SettingsDialog);
232 void retranslateUi(QWidget *SettingsDialog)
234 SettingsDialog->setWindowTitle(tr2i18n(
"Settings", 0));
235 label_5->setText(tr2i18n(
"Perl", 0));
236 #ifndef UI_QT_NO_TOOLTIP
237 perl5->setToolTip(tr2i18n(
"Path to perl \"/usr/bin/perl\"", 0));
238 #endif // QT_NO_TOOLTIP
239 label_6->setText(tr2i18n(
"Args", 0));
240 #ifndef UI_QT_NO_TOOLTIP
241 args->setToolTip(tr2i18n(
"<html><head/><body><p>Command line Arguments.</p></body></html>", 0));
242 #endif // QT_NO_TOOLTIP
243 label_7->setText(tr2i18n(
"Environment Variables", 0));
244 QTableWidgetItem *___qtablewidgetitem = vars->horizontalHeaderItem(0);
245 ___qtablewidgetitem->setText(tr2i18n(
"Variable", 0));
246 QTableWidgetItem *___qtablewidgetitem1 = vars->horizontalHeaderItem(1);
247 ___qtablewidgetitem1->setText(tr2i18n(
"Value", 0));
248 #ifndef UI_QT_NO_TOOLTIP
249 vars->setToolTip(tr2i18n(
"<html><head/><body><p>Environment Variables.</p></body></html>", 0));
250 #endif // QT_NO_TOOLTIP
251 tabWidget->setTabText(tabWidget->indexOf(tab_3), tr2i18n(
"Debugger", 0));
252 label_2->setText(tr2i18n(
"Perlcritic", 0));
253 #ifndef UI_QT_NO_TOOLTIP
254 perlCritic->setToolTip(tr2i18n(
"<html><head/><body><p>perlcritic</p></body></html>", 0));
255 #endif // QT_NO_TOOLTIP
256 #ifndef UI_QT_NO_WHATSTHIS
257 perlCritic->setWhatsThis(tr2i18n(
"<html><head/><body><p>path to perlcritic</p></body></html>", 0));
258 #endif // QT_NO_WHATSTHIS
259 label_3->setText(tr2i18n(
"Pdf Reader", 0));
260 #ifndef UI_QT_NO_TOOLTIP
261 pdfReader->setToolTip(tr2i18n(
"<html><head/><body><p>You need to choice a reader who accepts the command line option: </p><p>-p, Page to show.</p></body></html>", 0));
262 #endif // QT_NO_TOOLTIP
263 #ifndef UI_QT_NO_WHATSTHIS
264 pdfReader->setWhatsThis(tr2i18n(
"<html><head/><body><p>Pdf Reader like</p><p>/usr/bin/atril</p><p><br/></p></body></html>", 0));
265 #endif // QT_NO_WHATSTHIS
266 label_4->setText(tr2i18n(
"pbp pdf", 0));
267 #ifndef UI_QT_NO_TOOLTIP
268 pbpPdf->setToolTip(tr2i18n(
"<html><head/><body><p>Perl best Practices pdf.</p></body></html>", 0));
269 #endif // QT_NO_TOOLTIP
270 #ifndef UI_QT_NO_WHATSTHIS
271 pbpPdf->setWhatsThis(tr2i18n(
"<html><head/><body><p>Rigkt click on pbp page ...</p><p>Perl best Practices pdf</p><p><br/></p></body></html>", 0));
272 #endif // QT_NO_WHATSTHIS
273 label->setText(tr2i18n(
"Severity", 0));
274 #ifndef UI_QT_NO_TOOLTIP
275 severity->setToolTip(tr2i18n(
"<html><head/><body><p>[-12345 | --brutal | --cruel | --harsh | --stern | --gentle]</p><p><br/></p></body></html>", 0));
276 #endif // QT_NO_TOOLTIP
277 label_10->setText(tr2i18n(
"Apache error.log", 0));
278 #ifndef UI_QT_NO_TOOLTIP
279 ErrorPath->setToolTip(tr2i18n(
"<html><head/><body><p>Apache log File.</p></body></html>", 0));
280 #endif // QT_NO_TOOLTIP
281 #ifndef UI_QT_NO_WHATSTHIS
282 ErrorPath->setWhatsThis(tr2i18n(
"<html><head/><body><p>Path to error_log</p></body></html>", 0));
283 #endif // QT_NO_WHATSTHIS
284 label_8->setText(tr2i18n(
"Path to replace", 0));
285 label_9->setText(tr2i18n(
"with", 0));
286 #ifndef UI_QT_NO_TOOLTIP
287 Prefix->setToolTip(tr2i18n(
"<html><head/><body><p>Right-click on Apache Error-Log show a Pop-up to open</p><p>File with given replacement.</p></body></html>", 0));
288 #endif // QT_NO_TOOLTIP
289 #ifndef UI_QT_NO_WHATSTHIS
290 Prefix->setWhatsThis(tr2i18n(
"<html><head/><body><p>/var/www/(cgi-bin/ will be replaced with prefix //some/place/where your sourcecode stored.</p></body></html>", 0));
291 #endif // QT_NO_WHATSTHIS
292 tabWidget->setTabText(tabWidget->indexOf(critic), tr2i18n(
"Perlcritic & Apache", 0));
Definition: ui_settings.h:32
Definition: plugin_kateperlcheck.h:238
Definition: ui_settings.h:298