]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape/MyQFrame.h
orte 0.3.2 release
[orte.git] / orte / contrib / shape / MyQFrame.h
1 /****************************************************************
2 **
3 ** Definition of MyQFrame class
4 **
5 ****************************************************************/
6
7 #ifndef MYQFRAME_H
8 #define MYQFRAME_H
9
10 #include <qframe.h>
11 #include <qrect.h>
12 #include <qpainter.h>
13 #include <qstring.h>
14
15 class MyQFrame : public QFrame
16 {
17     Q_OBJECT
18 public:
19     MyQFrame( QWidget *parent=0);
20     
21 protected:
22     void mouseMoveEvent(QMouseEvent *e);
23     void mousePressEvent(QMouseEvent *e);
24     void mouseReleaseEvent(QMouseEvent *e);
25     void paintEvent(QPaintEvent*);
26
27 public:
28     void activateObject(int object,int color, int shape);
29     void deactivateObject(int object);
30     void setPosition(int object,QRect position);
31     
32 protected:
33
34 private:
35     int objects[5];
36     int shapes[5];
37     QColor colors[5];
38     QRect positions[5];
39
40 public:
41     int mousePressed;
42     int mouseX;
43     int mouseY;
44 };
45
46 #endif // MyQFRAME_H