-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
61 lines (42 loc) · 1.16 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
// windows
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "videopanel.h"
// Qt
#include <QtWidgets\QMainWindow>
#include <QtGui\QCloseEvent>
#include <QtWidgets\QMessageBox>
#include <QtNetwork\QHostInfo>
#include <QCameraInfo>
// opencv -- for webcams and such
#include "opencv2/opencv.hpp"
// pointgrey -- for interfacing with pointgrey cameras
// LSL
#include "../../LSL/liblsl/include/lsl_cpp.h"
// STL
#include <string>
#include <vector>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
// close event: used to disable closing while linked
void closeEvent(QCloseEvent *ev);
void newVideo(void);
private:
Ui::MainWindow *ui; // window pointer
QList<QCameraInfo> cameraInfos;
std::vector<boost::shared_ptr<VideoPanel>> videoPanels; // need this and videopanel.h or new VideoPanel goes out of scope and closes?
bool has_camera_;
};
extern MainWindow *theWindow;
#endif // MAINWINDOW_H