-
Notifications
You must be signed in to change notification settings - Fork 38
/
mainwindow.h
90 lines (76 loc) · 1.98 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVBoxLayout>
#include <QPushButton>
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QSettings>
#include <QSlider>
#include <QButtonGroup>
#include <QRadioButton>
#include <cameradatafeed.h>
#include <videowidget.h>
#include <controlswidget.h>
using namespace std;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
QVBoxLayout *mainLayout;
QVBoxLayout *devicePickLayout;
QHBoxLayout *colorDevicePickLayout;
QHBoxLayout *depthDevicePickLayout;
QHBoxLayout *buttonLayout;
QWidget *centerWidget;
VideoWidget *colorVid;
VideoWidget *depthVid;
VideoWidget *irVid;
CameraDataFeed *colorCamera;
CameraDataFeed *depthCamera;
ControlsWidget *controlsWidget;
QLabel *colorDeviceLabel;
QLineEdit *colorDevicePathEdit;
QLabel *depthDeviceLabel;
QLineEdit *depthDevicePathEdit;
QPushButton *startButton;
QPushButton *stopButton;
QSettings * settings;
QHBoxLayout *snapshotLayout;
QPushButton *snapshotButton;
QLabel *snapshotDirEditLabel;
QLineEdit *snapshotDirEdit;
QHBoxLayout *fifoRemoteLayout;
QLabel *fifoRemoteFilenameLabel;
QLineEdit *fifoRemoteFilenameEdit;
QHBoxLayout * maxLayout;
QLabel * maxLabel;
QSlider * maxSetting;
QHBoxLayout * minLayout;
QLabel * minLabel;
QSlider * minSetting;
QHBoxLayout * byteLayout;
QButtonGroup * byteGroup;
QRadioButton * bothButton;
QRadioButton * lowButton;
QRadioButton * highButton;
QHBoxLayout * presetLayout;
QPushButton * defaultButton;
QPushButton * accuracyButton;
QPushButton * infoButton;
QTextStream out;
QTimer *timer;
QString fifo_filename;
int fifo_fd;
signals:
void takeSnap();
public slots:
void setFifoFilename(QString);
void openFifo();
void closeFifo();
void checkFifo();
};
#endif // MAINWINDOW_H