areaDetector  3-5-0
EPICS areaDetector framework
ui_ffmpegViewer.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'ffmpegViewer.ui'
3 **
4 ** Created: Mon Jun 22 18:04:07 2015
5 ** by: Qt User Interface Compiler version 4.8.4
6 **
7 ** WARNING! All changes made in this file will be lost when recompiling UI file!
8 ********************************************************************************/
9 
10 #ifndef UI_FFMPEGVIEWER_H
11 #define UI_FFMPEGVIEWER_H
12 
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>
27 #include "SSpinBox.h"
28 #include "ffmpegWidget.h"
29 
30 QT_BEGIN_NAMESPACE
31 
33 {
34 public:
35  QWidget *centralWidget;
36  QGridLayout *gridLayout_3;
37  ffmpegWidget *video;
38  QDockWidget *imageDock;
40  QGridLayout *gridLayout;
41  QLabel *resetLbl;
42  QPushButton *resetBtn;
43  QLabel *zoomLbl;
44  QSpinBox *zoomSpin;
45  QLabel *xoffLbl;
47  QLabel *yoffLbl;
49  QLabel *fcolLbl;
50  QComboBox *fcolCombo;
51  QLabel *fpsLbl;
52  QLineEdit *fpsNumber;
53  QLabel *widthLbl;
54  QLineEdit *widthNumber;
55  QLabel *heightLbl;
56  QLineEdit *heightNumber;
57  QDockWidget *gridDock;
59  QGridLayout *gridLayout_2;
60  QLabel *gridLbl;
61  QPushButton *gridBtn;
62  QLabel *gridxLbl;
64  QLabel *gridyLbl;
66  QLabel *gridcolLbl;
67  QPushButton *gridcolBtn;
68  QLabel *gridsLbl;
70 
71  void setupUi(QMainWindow *ffmpegViewer)
72  {
73  if (ffmpegViewer->objectName().isEmpty())
74  ffmpegViewer->setObjectName(QString::fromUtf8("ffmpegViewer"));
75  ffmpegViewer->resize(994, 537);
76  centralWidget = new QWidget(ffmpegViewer);
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());
82  centralWidget->setSizePolicy(sizePolicy);
83  gridLayout_3 = new QGridLayout(centralWidget);
84  gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
85  video = new ffmpegWidget(centralWidget);
86  video->setObjectName(QString::fromUtf8("video"));
87 
88  gridLayout_3->addWidget(video, 0, 0, 1, 1);
89 
90  ffmpegViewer->setCentralWidget(centralWidget);
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());
97  imageDock->setSizePolicy(sizePolicy1);
98  imageDock->setFloating(false);
99  imageDock->setFeatures(QDockWidget::AllDockWidgetFeatures);
100  dockWidgetContents_2 = new QWidget();
101  dockWidgetContents_2->setObjectName(QString::fromUtf8("dockWidgetContents_2"));
102  gridLayout = new QGridLayout(dockWidgetContents_2);
103  gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
104  resetLbl = new QLabel(dockWidgetContents_2);
105  resetLbl->setObjectName(QString::fromUtf8("resetLbl"));
106 
107  gridLayout->addWidget(resetLbl, 0, 0, 1, 1);
108 
109  resetBtn = new QPushButton(dockWidgetContents_2);
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);
116  resetBtn->setCheckable(false);
117 
118  gridLayout->addWidget(resetBtn, 0, 1, 1, 1);
119 
120  zoomLbl = new QLabel(dockWidgetContents_2);
121  zoomLbl->setObjectName(QString::fromUtf8("zoomLbl"));
122 
123  gridLayout->addWidget(zoomLbl, 1, 0, 1, 1);
124 
125  zoomSpin = new QSpinBox(dockWidgetContents_2);
126  zoomSpin->setObjectName(QString::fromUtf8("zoomSpin"));
127 
128  gridLayout->addWidget(zoomSpin, 1, 1, 1, 1);
129 
130  xoffLbl = new QLabel(dockWidgetContents_2);
131  xoffLbl->setObjectName(QString::fromUtf8("xoffLbl"));
132 
133  gridLayout->addWidget(xoffLbl, 2, 0, 1, 1);
134 
136  xoffSpin->setObjectName(QString::fromUtf8("xoffSpin"));
137  xoffSpin->setMaximum(0);
138 
139  gridLayout->addWidget(xoffSpin, 2, 1, 1, 1);
140 
141  yoffLbl = new QLabel(dockWidgetContents_2);
142  yoffLbl->setObjectName(QString::fromUtf8("yoffLbl"));
143 
144  gridLayout->addWidget(yoffLbl, 3, 0, 1, 1);
145 
147  yoffSpin->setObjectName(QString::fromUtf8("yoffSpin"));
148  yoffSpin->setMaximum(0);
149 
150  gridLayout->addWidget(yoffSpin, 3, 1, 1, 1);
151 
152  fcolLbl = new QLabel(dockWidgetContents_2);
153  fcolLbl->setObjectName(QString::fromUtf8("fcolLbl"));
154 
155  gridLayout->addWidget(fcolLbl, 4, 0, 1, 1);
156 
157  fcolCombo = new QComboBox(dockWidgetContents_2);
158  fcolCombo->setObjectName(QString::fromUtf8("fcolCombo"));
159 
160  gridLayout->addWidget(fcolCombo, 4, 1, 1, 1);
161 
162  fpsLbl = new QLabel(dockWidgetContents_2);
163  fpsLbl->setObjectName(QString::fromUtf8("fpsLbl"));
164 
165  gridLayout->addWidget(fpsLbl, 5, 0, 1, 1);
166 
167  fpsNumber = new QLineEdit(dockWidgetContents_2);
168  fpsNumber->setObjectName(QString::fromUtf8("fpsNumber"));
169  fpsNumber->setReadOnly(true);
170 
171  gridLayout->addWidget(fpsNumber, 5, 1, 1, 1);
172 
173  widthLbl = new QLabel(dockWidgetContents_2);
174  widthLbl->setObjectName(QString::fromUtf8("widthLbl"));
175 
176  gridLayout->addWidget(widthLbl, 6, 0, 1, 1);
177 
178  widthNumber = new QLineEdit(dockWidgetContents_2);
179  widthNumber->setObjectName(QString::fromUtf8("widthNumber"));
180  widthNumber->setReadOnly(true);
181 
182  gridLayout->addWidget(widthNumber, 6, 1, 1, 1);
183 
184  heightLbl = new QLabel(dockWidgetContents_2);
185  heightLbl->setObjectName(QString::fromUtf8("heightLbl"));
186 
187  gridLayout->addWidget(heightLbl, 7, 0, 1, 1);
188 
189  heightNumber = new QLineEdit(dockWidgetContents_2);
190  heightNumber->setObjectName(QString::fromUtf8("heightNumber"));
191  heightNumber->setReadOnly(true);
192 
193  gridLayout->addWidget(heightNumber, 7, 1, 1, 1);
194 
195  imageDock->setWidget(dockWidgetContents_2);
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);
202  dockWidgetContents = new QWidget();
203  dockWidgetContents->setObjectName(QString::fromUtf8("dockWidgetContents"));
204  gridLayout_2 = new QGridLayout(dockWidgetContents);
205  gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
206  gridLbl = new QLabel(dockWidgetContents);
207  gridLbl->setObjectName(QString::fromUtf8("gridLbl"));
208 
209  gridLayout_2->addWidget(gridLbl, 0, 0, 1, 1);
210 
211  gridBtn = new QPushButton(dockWidgetContents);
212  gridBtn->setObjectName(QString::fromUtf8("gridBtn"));
213  gridBtn->setCheckable(true);
214 
215  gridLayout_2->addWidget(gridBtn, 0, 1, 1, 1);
216 
217  gridxLbl = new QLabel(dockWidgetContents);
218  gridxLbl->setObjectName(QString::fromUtf8("gridxLbl"));
219 
220  gridLayout_2->addWidget(gridxLbl, 1, 0, 1, 1);
221 
223  gridxSpin->setObjectName(QString::fromUtf8("gridxSpin"));
224  gridxSpin->setMaximum(10000);
225 
226  gridLayout_2->addWidget(gridxSpin, 1, 1, 1, 1);
227 
228  gridyLbl = new QLabel(dockWidgetContents);
229  gridyLbl->setObjectName(QString::fromUtf8("gridyLbl"));
230 
231  gridLayout_2->addWidget(gridyLbl, 2, 0, 1, 1);
232 
234  gridySpin->setObjectName(QString::fromUtf8("gridySpin"));
235  gridySpin->setMaximum(10000);
236 
237  gridLayout_2->addWidget(gridySpin, 2, 1, 1, 1);
238 
239  gridcolLbl = new QLabel(dockWidgetContents);
240  gridcolLbl->setObjectName(QString::fromUtf8("gridcolLbl"));
241 
242  gridLayout_2->addWidget(gridcolLbl, 3, 0, 1, 1);
243 
244  gridcolBtn = new QPushButton(dockWidgetContents);
245  gridcolBtn->setObjectName(QString::fromUtf8("gridcolBtn"));
246 
247  gridLayout_2->addWidget(gridcolBtn, 3, 1, 1, 1);
248 
249  gridsLbl = new QLabel(dockWidgetContents);
250  gridsLbl->setObjectName(QString::fromUtf8("gridsLbl"));
251 
252  gridLayout_2->addWidget(gridsLbl, 4, 0, 1, 1);
253 
255  gridsSpin->setObjectName(QString::fromUtf8("gridsSpin"));
256  gridsSpin->setMinimum(10);
257  gridsSpin->setMaximum(2000);
258 
259  gridLayout_2->addWidget(gridsSpin, 4, 1, 1, 1);
260 
261  gridDock->setWidget(dockWidgetContents);
262  ffmpegViewer->addDockWidget(static_cast<Qt::DockWidgetArea>(2), gridDock);
263 
264  retranslateUi(ffmpegViewer);
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)));
289 
290  QMetaObject::connectSlotsByName(ffmpegViewer);
291  } // setupUi
292 
293  void retranslateUi(QMainWindow *ffmpegViewer)
294  {
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));
303  fcolCombo->clear();
304  fcolCombo->insertItems(0, QStringList()
305  << QApplication::translate("ffmpegViewer", "None", 0, QApplication::UnicodeUTF8)
306  << QApplication::translate("ffmpegViewer", "Rainbow", 0, QApplication::UnicodeUTF8)
307  << QApplication::translate("ffmpegViewer", "Iron", 0, QApplication::UnicodeUTF8)
308  );
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));
320  } // retranslateUi
321 
322 };
323 
324 namespace Ui {
325  class ffmpegViewer: public Ui_ffmpegViewer {};
326 } // namespace Ui
327 
328 QT_END_NAMESPACE
329 
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
Definition: SSpinBox.h:6
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