10 #ifndef UI_FFMPEGVIEWER_H 11 #define UI_FFMPEGVIEWER_H 13 #include <QtCore/QVariant> 14 #include <QtGui/QAction> 15 #include <QtGui/QApplication> 16 #include <QtGui/QButtonGroup> 17 #include <QtGui/QComboBox> 18 #include <QtGui/QDockWidget> 19 #include <QtGui/QGridLayout> 20 #include <QtGui/QHeaderView> 21 #include <QtGui/QLabel> 22 #include <QtGui/QLineEdit> 23 #include <QtGui/QMainWindow> 24 #include <QtGui/QPushButton> 25 #include <QtGui/QSpinBox> 26 #include <QtGui/QWidget> 28 #include "ffmpegWidget.h" 73 if (ffmpegViewer->objectName().isEmpty())
74 ffmpegViewer->setObjectName(QString::fromUtf8(
"ffmpegViewer"));
75 ffmpegViewer->resize(994, 537);
77 centralWidget->setObjectName(QString::fromUtf8(
"centralWidget"));
78 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
79 sizePolicy.setHorizontalStretch(0);
80 sizePolicy.setVerticalStretch(0);
81 sizePolicy.setHeightForWidth(
centralWidget->sizePolicy().hasHeightForWidth());
84 gridLayout_3->setObjectName(QString::fromUtf8(
"gridLayout_3"));
86 video->setObjectName(QString::fromUtf8(
"video"));
91 imageDock =
new QDockWidget(ffmpegViewer);
92 imageDock->setObjectName(QString::fromUtf8(
"imageDock"));
93 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
94 sizePolicy1.setHorizontalStretch(0);
95 sizePolicy1.setVerticalStretch(0);
96 sizePolicy1.setHeightForWidth(
imageDock->sizePolicy().hasHeightForWidth());
99 imageDock->setFeatures(QDockWidget::AllDockWidgetFeatures);
103 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
105 resetLbl->setObjectName(QString::fromUtf8(
"resetLbl"));
110 resetBtn->setObjectName(QString::fromUtf8(
"resetBtn"));
111 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
112 sizePolicy2.setHorizontalStretch(0);
113 sizePolicy2.setVerticalStretch(0);
114 sizePolicy2.setHeightForWidth(
resetBtn->sizePolicy().hasHeightForWidth());
115 resetBtn->setSizePolicy(sizePolicy2);
121 zoomLbl->setObjectName(QString::fromUtf8(
"zoomLbl"));
126 zoomSpin->setObjectName(QString::fromUtf8(
"zoomSpin"));
131 xoffLbl->setObjectName(QString::fromUtf8(
"xoffLbl"));
136 xoffSpin->setObjectName(QString::fromUtf8(
"xoffSpin"));
142 yoffLbl->setObjectName(QString::fromUtf8(
"yoffLbl"));
147 yoffSpin->setObjectName(QString::fromUtf8(
"yoffSpin"));
153 fcolLbl->setObjectName(QString::fromUtf8(
"fcolLbl"));
158 fcolCombo->setObjectName(QString::fromUtf8(
"fcolCombo"));
163 fpsLbl->setObjectName(QString::fromUtf8(
"fpsLbl"));
168 fpsNumber->setObjectName(QString::fromUtf8(
"fpsNumber"));
174 widthLbl->setObjectName(QString::fromUtf8(
"widthLbl"));
179 widthNumber->setObjectName(QString::fromUtf8(
"widthNumber"));
185 heightLbl->setObjectName(QString::fromUtf8(
"heightLbl"));
190 heightNumber->setObjectName(QString::fromUtf8(
"heightNumber"));
196 ffmpegViewer->addDockWidget(static_cast<Qt::DockWidgetArea>(2),
imageDock);
197 gridDock =
new QDockWidget(ffmpegViewer);
198 gridDock->setObjectName(QString::fromUtf8(
"gridDock"));
199 sizePolicy1.setHeightForWidth(
gridDock->sizePolicy().hasHeightForWidth());
200 gridDock->setSizePolicy(sizePolicy1);
201 gridDock->setFeatures(QDockWidget::AllDockWidgetFeatures);
205 gridLayout_2->setObjectName(QString::fromUtf8(
"gridLayout_2"));
207 gridLbl->setObjectName(QString::fromUtf8(
"gridLbl"));
212 gridBtn->setObjectName(QString::fromUtf8(
"gridBtn"));
218 gridxLbl->setObjectName(QString::fromUtf8(
"gridxLbl"));
223 gridxSpin->setObjectName(QString::fromUtf8(
"gridxSpin"));
229 gridyLbl->setObjectName(QString::fromUtf8(
"gridyLbl"));
234 gridySpin->setObjectName(QString::fromUtf8(
"gridySpin"));
240 gridcolLbl->setObjectName(QString::fromUtf8(
"gridcolLbl"));
245 gridcolBtn->setObjectName(QString::fromUtf8(
"gridcolBtn"));
250 gridsLbl->setObjectName(QString::fromUtf8(
"gridsLbl"));
255 gridsSpin->setObjectName(QString::fromUtf8(
"gridsSpin"));
262 ffmpegViewer->addDockWidget(static_cast<Qt::DockWidgetArea>(2),
gridDock);
265 QObject::connect(
video, SIGNAL(gridChanged(
bool)),
gridBtn, SLOT(setChecked(
bool)));
266 QObject::connect(
video, SIGNAL(gxChanged(
int)),
gridxSpin, SLOT(setValue(
int)));
267 QObject::connect(
video, SIGNAL(gyChanged(
int)),
gridySpin, SLOT(setValue(
int)));
268 QObject::connect(
video, SIGNAL(zoomChanged(
int)),
zoomSpin, SLOT(setValue(
int)));
269 QObject::connect(
video, SIGNAL(xChanged(
int)),
xoffSpin, SLOT(setValue(
int)));
270 QObject::connect(
video, SIGNAL(yChanged(
int)),
yoffSpin, SLOT(setValue(
int)));
271 QObject::connect(
video, SIGNAL(maxGxChanged(
int)),
gridxSpin, SLOT(setMaximumSlot(
int)));
272 QObject::connect(
video, SIGNAL(maxGyChanged(
int)),
gridySpin, SLOT(setMaximumSlot(
int)));
273 QObject::connect(
video, SIGNAL(maxXChanged(
int)),
xoffSpin, SLOT(setMaximumSlot(
int)));
274 QObject::connect(
video, SIGNAL(maxYChanged(
int)),
yoffSpin, SLOT(setMaximumSlot(
int)));
275 QObject::connect(
video, SIGNAL(fpsChanged(QString)),
fpsNumber, SLOT(setText(QString)));
276 QObject::connect(
video, SIGNAL(visWChanged(QString)),
widthNumber, SLOT(setText(QString)));
277 QObject::connect(
video, SIGNAL(visHChanged(QString)),
heightNumber, SLOT(setText(QString)));
278 QObject::connect(
zoomSpin, SIGNAL(valueChanged(
int)),
video, SLOT(setZoom(
int)));
279 QObject::connect(
xoffSpin, SIGNAL(valueChanged(
int)),
video, SLOT(setX(
int)));
280 QObject::connect(
yoffSpin, SIGNAL(valueChanged(
int)),
video, SLOT(setY(
int)));
281 QObject::connect(
fcolCombo, SIGNAL(activated(
int)),
video, SLOT(setFcol(
int)));
282 QObject::connect(
gridBtn, SIGNAL(toggled(
bool)),
video, SLOT(setGrid(
bool)));
283 QObject::connect(
gridxSpin, SIGNAL(valueChanged(
int)),
video, SLOT(setGx(
int)));
284 QObject::connect(
gridySpin, SIGNAL(valueChanged(
int)),
video, SLOT(setGy(
int)));
285 QObject::connect(
gridcolBtn, SIGNAL(clicked()),
video, SLOT(setGcol()));
286 QObject::connect(
resetBtn, SIGNAL(clicked()),
video, SLOT(setReset()));
287 QObject::connect(
video, SIGNAL(gsChanged(
int)),
gridsSpin, SLOT(setValue(
int)));
288 QObject::connect(
gridsSpin, SIGNAL(valueChanged(
int)),
video, SLOT(setGs(
int)));
290 QMetaObject::connectSlotsByName(ffmpegViewer);
295 ffmpegViewer->setWindowTitle(QApplication::translate(
"ffmpegViewer",
"MainWindow", 0, QApplication::UnicodeUTF8));
296 imageDock->setWindowTitle(QApplication::translate(
"ffmpegViewer",
"Image", 0, QApplication::UnicodeUTF8));
297 resetLbl->setText(QApplication::translate(
"ffmpegViewer",
"Connection", 0, QApplication::UnicodeUTF8));
298 resetBtn->setText(QApplication::translate(
"ffmpegViewer",
"Reset", 0, QApplication::UnicodeUTF8));
299 zoomLbl->setText(QApplication::translate(
"ffmpegViewer",
"Zoom", 0, QApplication::UnicodeUTF8));
300 xoffLbl->setText(QApplication::translate(
"ffmpegViewer",
"X Offset", 0, QApplication::UnicodeUTF8));
301 yoffLbl->setText(QApplication::translate(
"ffmpegViewer",
"Y Offset", 0, QApplication::UnicodeUTF8));
302 fcolLbl->setText(QApplication::translate(
"ffmpegViewer",
"False Colour Map", 0, QApplication::UnicodeUTF8));
305 << QApplication::translate(
"ffmpegViewer",
"None", 0, QApplication::UnicodeUTF8)
306 << QApplication::translate(
"ffmpegViewer",
"Rainbow", 0, QApplication::UnicodeUTF8)
307 << QApplication::translate(
"ffmpegViewer",
"Iron", 0, QApplication::UnicodeUTF8)
309 fpsLbl->setText(QApplication::translate(
"ffmpegViewer",
"Frames / s", 0, QApplication::UnicodeUTF8));
310 widthLbl->setText(QApplication::translate(
"ffmpegViewer",
"Displayed Width", 0, QApplication::UnicodeUTF8));
311 heightLbl->setText(QApplication::translate(
"ffmpegViewer",
"Displayed Height", 0, QApplication::UnicodeUTF8));
312 gridDock->setWindowTitle(QApplication::translate(
"ffmpegViewer",
"Grid", 0, QApplication::UnicodeUTF8));
313 gridLbl->setText(QApplication::translate(
"ffmpegViewer",
"Display Grid", 0, QApplication::UnicodeUTF8));
314 gridBtn->setText(QApplication::translate(
"ffmpegViewer",
"Grid", 0, QApplication::UnicodeUTF8));
315 gridxLbl->setText(QApplication::translate(
"ffmpegViewer",
"Grid X Position", 0, QApplication::UnicodeUTF8));
316 gridyLbl->setText(QApplication::translate(
"ffmpegViewer",
"Grid Y Position", 0, QApplication::UnicodeUTF8));
317 gridcolLbl->setText(QApplication::translate(
"ffmpegViewer",
"Grid Colour", 0, QApplication::UnicodeUTF8));
318 gridcolBtn->setText(QApplication::translate(
"ffmpegViewer",
"Set Grid Colour", 0, QApplication::UnicodeUTF8));
319 gridsLbl->setText(QApplication::translate(
"ffmpegViewer",
"Grid Spacing", 0, QApplication::UnicodeUTF8));
330 #endif // UI_FFMPEGVIEWER_H QLabel * widthLbl
Definition: ui_ffmpegViewer.h:53
SSpinBox * gridySpin
Definition: ui_ffmpegViewer.h:65
QGridLayout * gridLayout
Definition: ui_ffmpegViewer.h:40
Definition: ui_ffmpegViewer.h:324
void retranslateUi(QMainWindow *ffmpegViewer)
Definition: ui_ffmpegViewer.h:293
ffmpegWidget * video
Definition: ui_ffmpegViewer.h:37
QGridLayout * gridLayout_3
Definition: ui_ffmpegViewer.h:36
QDockWidget * gridDock
Definition: ui_ffmpegViewer.h:57
QPushButton * gridcolBtn
Definition: ui_ffmpegViewer.h:67
QGridLayout * gridLayout_2
Definition: ui_ffmpegViewer.h:59
QDockWidget * imageDock
Definition: ui_ffmpegViewer.h:38
QWidget * centralWidget
Definition: ui_ffmpegViewer.h:35
QSpinBox * zoomSpin
Definition: ui_ffmpegViewer.h:44
Definition: ui_ffmpegViewer.h:325
QLabel * gridxLbl
Definition: ui_ffmpegViewer.h:62
void setupUi(QMainWindow *ffmpegViewer)
Definition: ui_ffmpegViewer.h:71
QLineEdit * heightNumber
Definition: ui_ffmpegViewer.h:56
QLabel * fcolLbl
Definition: ui_ffmpegViewer.h:49
QLineEdit * widthNumber
Definition: ui_ffmpegViewer.h:54
QLineEdit * fpsNumber
Definition: ui_ffmpegViewer.h:52
QLabel * gridcolLbl
Definition: ui_ffmpegViewer.h:66
QLabel * heightLbl
Definition: ui_ffmpegViewer.h:55
QLabel * zoomLbl
Definition: ui_ffmpegViewer.h:43
QPushButton * resetBtn
Definition: ui_ffmpegViewer.h:42
QLabel * resetLbl
Definition: ui_ffmpegViewer.h:41
QLabel * gridyLbl
Definition: ui_ffmpegViewer.h:64
QLabel * fpsLbl
Definition: ui_ffmpegViewer.h:51
QLabel * xoffLbl
Definition: ui_ffmpegViewer.h:45
QLabel * yoffLbl
Definition: ui_ffmpegViewer.h:47
QLabel * gridLbl
Definition: ui_ffmpegViewer.h:60
QComboBox * fcolCombo
Definition: ui_ffmpegViewer.h:50
QLabel * gridsLbl
Definition: ui_ffmpegViewer.h:68
SSpinBox * gridxSpin
Definition: ui_ffmpegViewer.h:63
QPushButton * gridBtn
Definition: ui_ffmpegViewer.h:61
SSpinBox * yoffSpin
Definition: ui_ffmpegViewer.h:48
QWidget * dockWidgetContents
Definition: ui_ffmpegViewer.h:58
Definition: ui_ffmpegViewer.h:32
QWidget * dockWidgetContents_2
Definition: ui_ffmpegViewer.h:39
SSpinBox * xoffSpin
Definition: ui_ffmpegViewer.h:46
SSpinBox * gridsSpin
Definition: ui_ffmpegViewer.h:69