-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwindow.h
42 lines (30 loc) · 983 Bytes
/
window.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
#ifndef WINDOW_H
#define WINDOW_H
/****************** Includes ********************/
#include <QWidget>
#include <QCamera>
#include <QCameraViewfinder>
#include <QLabel>
#include <QLayout>
#include "keyReceiver.h"
/******************** Class *********************/
class window : public QWidget
{
Q_OBJECT
public:
explicit window(QWidget *parent = nullptr); // Constructor
private:
QCamera *camLeft_p; // Left eye camera
QCamera *camRight_p; // Right eye camera
QCameraViewfinder *viewLeft_p; // Left eye widget
QCameraViewfinder *viewRight_p; // Right eye widget
QHBoxLayout *layout_p; // Window layout
QRect *screenRes_p; // Screen resolution (2nd screen)
keyReceiver *key_p; // Keyboard event receiver
QLabel *errLabel_p; // Label for error message
signals:
public slots:
void switchLeftRight( void );
void stopFullScreen( void );
};
#endif // WINDOW_H