44 lines
746 B
C++
44 lines
746 B
C++
#ifndef _AIGOQT_H_
|
|
#define _AIGOQT_H_
|
|
|
|
#include <QMainWindow>
|
|
#include <ui_main.h>
|
|
#include <quickcam.h>
|
|
#include <staticcam.h>
|
|
#include <QTimer>
|
|
|
|
#include <settings.h>
|
|
|
|
class AigoQt : public QMainWindow, public Ui::AigoQt
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AigoQt(QWidget *parent = NULL);
|
|
virtual ~AigoQt( void );
|
|
|
|
private slots:
|
|
void on_buttonSetCorners_clicked( void );
|
|
void on_buttonGenerateState_clicked( void );
|
|
void on_sliderWhite_valueChanged(int value);
|
|
void on_sliderBlack_valueChanged(int value);
|
|
|
|
void on_buttonDrawPoints_clicked( void );
|
|
|
|
|
|
void handleCornerClicked(int x, int y);
|
|
void updateImage();
|
|
|
|
private:
|
|
StaticCam *cam;
|
|
QTimer *timer;
|
|
|
|
Settings settings;
|
|
|
|
SDL_Surface *copy;
|
|
|
|
|
|
};
|
|
|
|
#endif /* ifndef _AIGOQT_H_ */
|