9 #ifndef UI_MAINWINDOW_H 10 #define UI_MAINWINDOW_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QMainWindow> 22 #include <QtWidgets/QMenuBar> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QRadioButton> 25 #include <QtWidgets/QSlider> 26 #include <QtWidgets/QSpinBox> 27 #include <QtWidgets/QStatusBar> 28 #include <QtWidgets/QTableView> 29 #include <QtWidgets/QToolBar> 30 #include <QtWidgets/QVBoxLayout> 31 #include <QtWidgets/QWidget> 32 #include "cvvideocapture.h" 39 QWidget *centralWidget;
40 QGridLayout *gridLayout_3;
43 QGridLayout *gridLayout_2;
44 QGridLayout *gridLayout;
45 QPushButton *pushButton_3;
48 QHBoxLayout *horizontalLayout;
52 QGroupBox *groupBox_2;
53 QVBoxLayout *verticalLayout_2;
54 QSlider *minDistSlider;
55 QSlider *param1Slider;
56 QSlider *param2Slider;
57 QPushButton *pushButton_2;
58 QSlider *circleThicknessSlider;
62 QPushButton *pushButton;
76 QVBoxLayout *verticalLayout;
77 QRadioButton *radioButton;
78 QRadioButton *radioButton_2;
79 QRadioButton *radioButton_3;
80 QRadioButton *radioButton_4;
82 QPushButton *pushButton_6;
83 QPushButton *pushButton_5;
85 QVBoxLayout *verticalLayout_3;
86 QTableView *tableView;
87 QPushButton *pushButton_4;
90 QToolBar *mainToolBar;
91 QStatusBar *statusBar;
95 if (MainWindow->objectName().isEmpty())
96 MainWindow->setObjectName(QStringLiteral(
"MainWindow"));
97 MainWindow->resize(730, 471);
98 centralWidget =
new QWidget(MainWindow);
99 centralWidget->setObjectName(QStringLiteral(
"centralWidget"));
100 gridLayout_3 =
new QGridLayout(centralWidget);
101 gridLayout_3->setSpacing(6);
102 gridLayout_3->setContentsMargins(11, 11, 11, 11);
103 gridLayout_3->setObjectName(QStringLiteral(
"gridLayout_3"));
104 label_3 =
new QLabel(centralWidget);
105 label_3->setObjectName(QStringLiteral(
"label_3"));
107 gridLayout_3->addWidget(label_3, 0, 0, 1, 1);
109 label_2 =
new QLabel(centralWidget);
110 label_2->setObjectName(QStringLiteral(
"label_2"));
112 gridLayout_3->addWidget(label_2, 0, 1, 1, 1);
114 gridLayout_2 =
new QGridLayout();
115 gridLayout_2->setSpacing(6);
116 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
117 gridLayout =
new QGridLayout();
118 gridLayout->setSpacing(6);
119 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
120 pushButton_3 =
new QPushButton(centralWidget);
121 pushButton_3->setObjectName(QStringLiteral(
"pushButton_3"));
123 gridLayout->addWidget(pushButton_3, 2, 5, 1, 1);
125 vMaxSlider =
new QSlider(centralWidget);
126 vMaxSlider->setObjectName(QStringLiteral(
"vMaxSlider"));
127 vMaxSlider->setMaximum(255);
128 vMaxSlider->setOrientation(Qt::Horizontal);
130 gridLayout->addWidget(vMaxSlider, 3, 4, 1, 1);
132 sMinSlider =
new QSlider(centralWidget);
133 sMinSlider->setObjectName(QStringLiteral(
"sMinSlider"));
134 sMinSlider->setMaximum(255);
135 sMinSlider->setOrientation(Qt::Horizontal);
137 gridLayout->addWidget(sMinSlider, 2, 2, 1, 1);
139 horizontalLayout =
new QHBoxLayout();
140 horizontalLayout->setSpacing(6);
141 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
142 radiusLabel =
new QLabel(centralWidget);
143 radiusLabel->setObjectName(QStringLiteral(
"radiusLabel"));
145 horizontalLayout->addWidget(radiusLabel);
147 yLabelCenter =
new QLabel(centralWidget);
148 yLabelCenter->setObjectName(QStringLiteral(
"yLabelCenter"));
150 horizontalLayout->addWidget(yLabelCenter);
152 xCenterLabel =
new QLabel(centralWidget);
153 xCenterLabel->setObjectName(QStringLiteral(
"xCenterLabel"));
155 horizontalLayout->addWidget(xCenterLabel);
158 gridLayout->addLayout(horizontalLayout, 3, 5, 1, 1);
160 groupBox_2 =
new QGroupBox(centralWidget);
161 groupBox_2->setObjectName(QStringLiteral(
"groupBox_2"));
162 verticalLayout_2 =
new QVBoxLayout(groupBox_2);
163 verticalLayout_2->setSpacing(6);
164 verticalLayout_2->setContentsMargins(11, 11, 11, 11);
165 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
166 minDistSlider =
new QSlider(groupBox_2);
167 minDistSlider->setObjectName(QStringLiteral(
"minDistSlider"));
168 minDistSlider->setMinimum(5);
169 minDistSlider->setOrientation(Qt::Horizontal);
171 verticalLayout_2->addWidget(minDistSlider);
173 param1Slider =
new QSlider(groupBox_2);
174 param1Slider->setObjectName(QStringLiteral(
"param1Slider"));
175 param1Slider->setMinimum(5);
176 param1Slider->setOrientation(Qt::Horizontal);
178 verticalLayout_2->addWidget(param1Slider);
180 param2Slider =
new QSlider(groupBox_2);
181 param2Slider->setObjectName(QStringLiteral(
"param2Slider"));
182 param2Slider->setMinimum(5);
183 param2Slider->setOrientation(Qt::Horizontal);
185 verticalLayout_2->addWidget(param2Slider);
188 gridLayout->addWidget(groupBox_2, 4, 5, 1, 1);
190 pushButton_2 =
new QPushButton(centralWidget);
191 pushButton_2->setObjectName(QStringLiteral(
"pushButton_2"));
193 gridLayout->addWidget(pushButton_2, 4, 4, 1, 1);
195 circleThicknessSlider =
new QSlider(centralWidget);
196 circleThicknessSlider->setObjectName(QStringLiteral(
"circleThicknessSlider"));
197 circleThicknessSlider->setOrientation(Qt::Horizontal);
199 gridLayout->addWidget(circleThicknessSlider, 1, 5, 1, 1);
201 vMinSlider =
new QSlider(centralWidget);
202 vMinSlider->setObjectName(QStringLiteral(
"vMinSlider"));
203 vMinSlider->setMaximum(255);
204 vMinSlider->setOrientation(Qt::Horizontal);
206 gridLayout->addWidget(vMinSlider, 3, 2, 1, 1);
208 sMaxSlider =
new QSlider(centralWidget);
209 sMaxSlider->setObjectName(QStringLiteral(
"sMaxSlider"));
210 sMaxSlider->setMaximum(255);
211 sMaxSlider->setOrientation(Qt::Horizontal);
213 gridLayout->addWidget(sMaxSlider, 2, 4, 1, 1);
215 hMinSlider =
new QSlider(centralWidget);
216 hMinSlider->setObjectName(QStringLiteral(
"hMinSlider"));
217 hMinSlider->setMaximum(180);
218 hMinSlider->setOrientation(Qt::Horizontal);
220 gridLayout->addWidget(hMinSlider, 1, 2, 1, 1);
222 pushButton =
new QPushButton(centralWidget);
223 pushButton->setObjectName(QStringLiteral(
"pushButton"));
225 gridLayout->addWidget(pushButton, 4, 2, 1, 1);
227 hMaxSlider =
new QSlider(centralWidget);
228 hMaxSlider->setObjectName(QStringLiteral(
"hMaxSlider"));
229 hMaxSlider->setMaximum(180);
230 hMaxSlider->setOrientation(Qt::Horizontal);
232 gridLayout->addWidget(hMaxSlider, 1, 4, 1, 1);
234 label_4 =
new QLabel(centralWidget);
235 label_4->setObjectName(QStringLiteral(
"label_4"));
237 gridLayout->addWidget(label_4, 1, 0, 1, 1);
239 label_6 =
new QLabel(centralWidget);
240 label_6->setObjectName(QStringLiteral(
"label_6"));
242 gridLayout->addWidget(label_6, 3, 0, 1, 1);
244 label_7 =
new QLabel(centralWidget);
245 label_7->setObjectName(QStringLiteral(
"label_7"));
246 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
247 sizePolicy.setHorizontalStretch(0);
248 sizePolicy.setVerticalStretch(0);
249 sizePolicy.setHeightForWidth(label_7->sizePolicy().hasHeightForWidth());
250 label_7->setSizePolicy(sizePolicy);
251 label_7->setAlignment(Qt::AlignCenter);
253 gridLayout->addWidget(label_7, 0, 2, 1, 1);
255 label_5 =
new QLabel(centralWidget);
256 label_5->setObjectName(QStringLiteral(
"label_5"));
258 gridLayout->addWidget(label_5, 2, 0, 1, 1);
260 label_8 =
new QLabel(centralWidget);
261 label_8->setObjectName(QStringLiteral(
"label_8"));
262 sizePolicy.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
263 label_8->setSizePolicy(sizePolicy);
264 label_8->setAlignment(Qt::AlignCenter);
266 gridLayout->addWidget(label_8, 0, 4, 1, 1);
268 spinBox_3 =
new QSpinBox(centralWidget);
269 spinBox_3->setObjectName(QStringLiteral(
"spinBox_3"));
271 gridLayout->addWidget(spinBox_3, 2, 1, 1, 1);
273 spinBox_4 =
new QSpinBox(centralWidget);
274 spinBox_4->setObjectName(QStringLiteral(
"spinBox_4"));
276 gridLayout->addWidget(spinBox_4, 3, 1, 1, 1);
278 spinBox_2 =
new QSpinBox(centralWidget);
279 spinBox_2->setObjectName(QStringLiteral(
"spinBox_2"));
281 gridLayout->addWidget(spinBox_2, 1, 1, 1, 1);
283 spinBox_5 =
new QSpinBox(centralWidget);
284 spinBox_5->setObjectName(QStringLiteral(
"spinBox_5"));
286 gridLayout->addWidget(spinBox_5, 1, 3, 1, 1);
288 spinBox_6 =
new QSpinBox(centralWidget);
289 spinBox_6->setObjectName(QStringLiteral(
"spinBox_6"));
291 gridLayout->addWidget(spinBox_6, 2, 3, 1, 1);
293 spinBox_7 =
new QSpinBox(centralWidget);
294 spinBox_7->setObjectName(QStringLiteral(
"spinBox_7"));
296 gridLayout->addWidget(spinBox_7, 3, 3, 1, 1);
299 gridLayout_2->addLayout(gridLayout, 0, 1, 1, 1);
301 groupBox =
new QGroupBox(centralWidget);
302 groupBox->setObjectName(QStringLiteral(
"groupBox"));
303 QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding);
304 sizePolicy1.setHorizontalStretch(0);
305 sizePolicy1.setVerticalStretch(0);
306 sizePolicy1.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
307 groupBox->setSizePolicy(sizePolicy1);
308 verticalLayout =
new QVBoxLayout(groupBox);
309 verticalLayout->setSpacing(6);
310 verticalLayout->setContentsMargins(11, 11, 11, 11);
311 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
312 radioButton =
new QRadioButton(groupBox);
313 radioButton->setObjectName(QStringLiteral(
"radioButton"));
315 verticalLayout->addWidget(radioButton);
317 radioButton_2 =
new QRadioButton(groupBox);
318 radioButton_2->setObjectName(QStringLiteral(
"radioButton_2"));
320 verticalLayout->addWidget(radioButton_2);
322 radioButton_3 =
new QRadioButton(groupBox);
323 radioButton_3->setObjectName(QStringLiteral(
"radioButton_3"));
325 verticalLayout->addWidget(radioButton_3);
327 radioButton_4 =
new QRadioButton(groupBox);
328 radioButton_4->setObjectName(QStringLiteral(
"radioButton_4"));
330 verticalLayout->addWidget(radioButton_4);
332 dilSlider =
new QSlider(groupBox);
333 dilSlider->setObjectName(QStringLiteral(
"dilSlider"));
334 dilSlider->setOrientation(Qt::Horizontal);
336 verticalLayout->addWidget(dilSlider);
338 pushButton_6 =
new QPushButton(groupBox);
339 pushButton_6->setObjectName(QStringLiteral(
"pushButton_6"));
341 verticalLayout->addWidget(pushButton_6);
343 pushButton_5 =
new QPushButton(groupBox);
344 pushButton_5->setObjectName(QStringLiteral(
"pushButton_5"));
346 verticalLayout->addWidget(pushButton_5);
348 spinBox =
new QSpinBox(groupBox);
349 spinBox->setObjectName(QStringLiteral(
"spinBox"));
351 verticalLayout->addWidget(spinBox);
354 gridLayout_2->addWidget(groupBox, 0, 0, 1, 1);
357 gridLayout_3->addLayout(gridLayout_2, 1, 0, 1, 2);
359 verticalLayout_3 =
new QVBoxLayout();
360 verticalLayout_3->setSpacing(6);
361 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
362 tableView =
new QTableView(centralWidget);
363 tableView->setObjectName(QStringLiteral(
"tableView"));
365 verticalLayout_3->addWidget(tableView);
367 pushButton_4 =
new QPushButton(centralWidget);
368 pushButton_4->setObjectName(QStringLiteral(
"pushButton_4"));
370 verticalLayout_3->addWidget(pushButton_4);
373 gridLayout_3->addLayout(verticalLayout_3, 1, 2, 1, 1);
376 cVVideoCapture->setObjectName(QStringLiteral(
"cVVideoCapture"));
378 gridLayout_3->addWidget(cVVideoCapture, 0, 2, 1, 1);
380 MainWindow->setCentralWidget(centralWidget);
381 menuBar =
new QMenuBar(MainWindow);
382 menuBar->setObjectName(QStringLiteral(
"menuBar"));
383 menuBar->setGeometry(QRect(0, 0, 730, 21));
384 MainWindow->setMenuBar(menuBar);
385 mainToolBar =
new QToolBar(MainWindow);
386 mainToolBar->setObjectName(QStringLiteral(
"mainToolBar"));
387 MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar);
388 statusBar =
new QStatusBar(MainWindow);
389 statusBar->setObjectName(QStringLiteral(
"statusBar"));
390 MainWindow->setStatusBar(statusBar);
392 retranslateUi(MainWindow);
393 QObject::connect(hMaxSlider, SIGNAL(valueChanged(
int)), spinBox_5, SLOT(setValue(
int)));
394 QObject::connect(sMaxSlider, SIGNAL(valueChanged(
int)), spinBox_6, SLOT(setValue(
int)));
395 QObject::connect(vMaxSlider, SIGNAL(valueChanged(
int)), spinBox_7, SLOT(setValue(
int)));
396 QObject::connect(hMinSlider, SIGNAL(valueChanged(
int)), spinBox_2, SLOT(setValue(
int)));
397 QObject::connect(sMinSlider, SIGNAL(valueChanged(
int)), spinBox_3, SLOT(setValue(
int)));
398 QObject::connect(vMinSlider, SIGNAL(valueChanged(
int)), spinBox_4, SLOT(setValue(
int)));
399 QObject::connect(spinBox_2, SIGNAL(valueChanged(
int)), hMinSlider, SLOT(setValue(
int)));
400 QObject::connect(spinBox_3, SIGNAL(valueChanged(
int)), sMinSlider, SLOT(setValue(
int)));
401 QObject::connect(spinBox_4, SIGNAL(valueChanged(
int)), vMinSlider, SLOT(setValue(
int)));
402 QObject::connect(spinBox_5, SIGNAL(valueChanged(
int)), hMaxSlider, SLOT(setValue(
int)));
403 QObject::connect(spinBox_6, SIGNAL(valueChanged(
int)), sMaxSlider, SLOT(setValue(
int)));
404 QObject::connect(spinBox_7, SIGNAL(valueChanged(
int)), vMaxSlider, SLOT(setValue(
int)));
406 QMetaObject::connectSlotsByName(MainWindow);
409 void retranslateUi(QMainWindow *MainWindow)
411 MainWindow->setWindowTitle(QApplication::translate(
"MainWindow",
"MainWindow", Q_NULLPTR));
412 label_3->setText(QApplication::translate(
"MainWindow",
"TextLabel", Q_NULLPTR));
413 label_2->setText(QApplication::translate(
"MainWindow",
"TextLabel", Q_NULLPTR));
414 pushButton_3->setText(QApplication::translate(
"MainWindow",
"Circle Color", Q_NULLPTR));
415 radiusLabel->setText(QApplication::translate(
"MainWindow",
"TextLabel", Q_NULLPTR));
416 yLabelCenter->setText(QApplication::translate(
"MainWindow",
"TextLabel", Q_NULLPTR));
417 xCenterLabel->setText(QApplication::translate(
"MainWindow",
"TextLabel", Q_NULLPTR));
418 groupBox_2->setTitle(QApplication::translate(
"MainWindow",
"Circles", Q_NULLPTR));
419 pushButton_2->setText(QApplication::translate(
"MainWindow",
"Max Color", Q_NULLPTR));
420 pushButton->setText(QApplication::translate(
"MainWindow",
"Min Color", Q_NULLPTR));
421 label_4->setText(QApplication::translate(
"MainWindow",
"H", Q_NULLPTR));
422 label_6->setText(QApplication::translate(
"MainWindow",
"V", Q_NULLPTR));
423 label_7->setText(QApplication::translate(
"MainWindow",
"Min", Q_NULLPTR));
424 label_5->setText(QApplication::translate(
"MainWindow",
"S", Q_NULLPTR));
425 label_8->setText(QApplication::translate(
"MainWindow",
"Max", Q_NULLPTR));
426 groupBox->setTitle(QApplication::translate(
"MainWindow",
"Elide", Q_NULLPTR));
427 radioButton->setText(QApplication::translate(
"MainWindow",
"RadioButton", Q_NULLPTR));
428 radioButton_2->setText(QApplication::translate(
"MainWindow",
"RadioButton", Q_NULLPTR));
429 radioButton_3->setText(QApplication::translate(
"MainWindow",
"RadioButton", Q_NULLPTR));
430 radioButton_4->setText(QApplication::translate(
"MainWindow",
"RadioButton", Q_NULLPTR));
431 pushButton_6->setText(QApplication::translate(
"MainWindow",
"Change Plugin Path", Q_NULLPTR));
432 pushButton_5->setText(QApplication::translate(
"MainWindow",
"Show Dock Area", Q_NULLPTR));
433 pushButton_4->setText(QApplication::translate(
"MainWindow",
"Set Port", Q_NULLPTR));
444 #endif // UI_MAINWINDOW_H