Blame | Last modification | View Log | Download | RSS feed
#ifndef MAINWINDOW_H#define MAINWINDOW_H#include "GlobalDefines.h"#define X_RES 320#define Y_RES 240class DepthMap;class ImageWidget;class DepthProcessor;class RobotControl;class OpenNI;class MainWindow : public QWidget {Q_OBJECTpublic:MainWindow(QWidget *parent = 0);~MainWindow();public slots:void updateStatusText(const QString &);void updateFrameText(const QString &);void updateFPSText(const QString &);void updateSelectionList(const QStringList &);void imageSelectionChanged(const QString &);void sensorConnected();signals:void changeDisplayImage(const int, const QString &);protected:void keyPressEvent(QKeyEvent *event);void keyReleaseEvent(QKeyEvent *event);private:ImageWidget *topLeftImage;ImageWidget *topRightImage;ImageWidget *botLeftImage;ImageWidget *botRightImage;QComboBox *topLeftSelect;QComboBox *topRightSelect;QComboBox *botLeftSelect;QComboBox *botRightSelect;OpenNI *openNIThread;DepthProcessor *openNIProcessor;RobotControl *robot;QLabel *statusLabel;QLabel *frameLabel;QLabel *fpsLabel;};#endif MAINWINDOW_H