Subversion Repositories Code-Repo

Rev

Rev 289 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
287 Kevin 1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
 
4
#include "GlobalDefines.h"
5
 
6
class DepthMap;
7
class ImageWidget;
8
class DepthProcessor;
9
class RobotControl;
10
class OpenNI;
11
 
12
class MainWindow : public QWidget {
13
	Q_OBJECT
14
 
15
public:
16
	MainWindow(QWidget *parent = 0);
17
	~MainWindow();
18
 
19
public slots:
20
	void updateStatusText(const QString &);
21
	void updateFrameText(const QString &);
22
	void updateFPSText(const QString &);
23
	void updateSelectionList(const QStringList &);
24
	void imageSelectionChanged(const QString &);
25
	void sensorConnected();
26
 
27
signals:
28
	void changeDisplayImage(const int, const QString &);
29
 
30
protected:
31
	void keyPressEvent(QKeyEvent *event);
32
	void keyReleaseEvent(QKeyEvent *event);
33
 
34
private:
35
	ImageWidget *topLeftImage;
36
	ImageWidget *topRightImage;
37
	ImageWidget *botLeftImage;
38
	ImageWidget *botRightImage;
39
 
40
	QComboBox *topLeftSelect;
41
	QComboBox *topRightSelect;
42
	QComboBox *botLeftSelect;
43
	QComboBox *botRightSelect;
44
 
45
	OpenNI *openNIThread;
46
	DepthProcessor *openNIProcessor;
47
 
48
	RobotControl *robot;
49
 
50
	QLabel *statusLabel;
51
	QLabel *frameLabel;
52
	QLabel *fpsLabel;
53
};
54
 
55
#endif MAINWINDOW_H