Rev Author Line No. Line
178 kaklik 1 #ifndef __MANDOWINDOW_HH
2 #define __MANDOWINDOW_HH
3  
4 #include <QtGui/QWidget>
5 #include <boost/numeric/ublas/vector.hpp>
6 #include "image_v4linput.h"
7 #include "pointerRecognition.hh"
8 #include "ui_mandoWindow.hh"
9 #include <X11/Xlib.h>
10 #ifdef None
11 #undef None
12 #endif
13  
14 class MandoWizard;
15  
16 class MandoWindow: public QWidget
17 {
18 Q_OBJECT
19 public:
20 typedef mimas::image_input< mimas::rgba< unsigned char > > Video;
21 typedef boost::shared_ptr< Video > VideoPtr;
22 typedef boost::numeric::ublas::vector< double > Vector;
23 MandoWindow( QWidget *parent = 0, Qt::WFlags = 0 );
24 protected slots:
25 void about();
26 void configure();
27 void activate(bool);
28 void startDrag();
29 void stopDrag();
30 void click();
31 void mouseMove(int,int);
32 protected:
33 mimas::image< mimas::rgba< unsigned char > > grabColourFrame(void)
34 throw (mimas ::mimasexception);
35 virtual void timerEvent( QTimerEvent *e );
36 Ui::MandoWindow ui;
37 MandoWizard *mandoWizard;
38 int timer;
39 PointerRecognitionPtr pointerRecognition;
40 VideoPtr input;
41 };
42  
43 #endif