This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2007-02-23 21:37:11 +01:00
|
|
|
#ifndef _AIGOQT_H_
|
|
|
|
#define _AIGOQT_H_
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <ui_main.h>
|
|
|
|
#include <quickcam.h>
|
2007-03-14 18:02:22 +01:00
|
|
|
#include <staticcam.h>
|
2007-02-23 21:37:11 +01:00
|
|
|
#include <QTimer>
|
|
|
|
|
2007-02-23 23:28:29 +01:00
|
|
|
#include <settings.h>
|
|
|
|
|
2007-02-23 21:37:11 +01:00
|
|
|
class AigoQt : public QMainWindow, public Ui::AigoQt
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
AigoQt(QWidget *parent = NULL);
|
|
|
|
virtual ~AigoQt( void );
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonSetCorners_clicked( void );
|
2007-02-23 23:28:29 +01:00
|
|
|
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);
|
2007-02-23 21:37:11 +01:00
|
|
|
void updateImage();
|
|
|
|
|
|
|
|
private:
|
2007-03-14 18:02:22 +01:00
|
|
|
StaticCam *cam;
|
2007-02-23 21:37:11 +01:00
|
|
|
QTimer *timer;
|
|
|
|
|
2007-02-23 23:28:29 +01:00
|
|
|
Settings settings;
|
|
|
|
|
2007-03-01 14:18:20 +01:00
|
|
|
SDL_Surface *copy;
|
|
|
|
|
2007-02-23 23:28:29 +01:00
|
|
|
|
2007-02-23 21:37:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ifndef _AIGOQT_H_ */
|