-
Notifications
You must be signed in to change notification settings - Fork 0
/
tabclass.h
55 lines (47 loc) · 1.56 KB
/
tabclass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef TABCLASS_H
#define TABCLASS_H
#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QHBoxLayout>
#include <QDebug>
#include <QKeyEvent>
#include <QMessageBox>
#include "makegrid.h"
#include "makeselected.h"
#include "drawcrosses.h"
class TabClass : public QWidget
{
Q_OBJECT
public:
explicit TabClass(QWidget *parent = 0);
~TabClass();
MakeSelected *mSelected;
QGraphicsScene * mScene ; ///< the scene will contain the graphics item 'StateBox'
// DrawCrosses *mScene;
// enum Choice { Nothing, MakeCross, MakeCorn, MakeCrossed,
// MakeMiddle, MakeM, MakeBrick ,SelectMode};
// explicit TabClass(QWidget *parent = 0, int w=200, int h=150, int delta=10);
// void init(int,int,int);
// DrawingPlace *drawplace;
// QGraphicsView* view;
/* void keyPressEvent(QKeyEvent* e)
{
QMessageBox* box = new QMessageBox();
box->setWindowTitle(QString("Hello"));
box->setText(QString("You Pressed: ")+ e->text());
box->show();
};*/
signals:
public slots:
private:
//DrawingPlace *drawplace;
QHBoxLayout *mLayout;
// QGraphicsScene * mScene ; ///< the scene will contain the graphics item 'StateBox'
QGraphicsView * mView; ///< the graphics view will contain and display the scene.
// StateBox * stateBox; ///< this is my custom QGraphicsItem
MakeGrid * mGrid; ///< this is my custom QGraphicsItem
virtual void keyPressEvent(QKeyEvent *event);
virtual void keyReleaseEvent(QKeyEvent *event);
};
#endif // TABCLASS_H