-
Notifications
You must be signed in to change notification settings - Fork 5
/
eventmatrix.h
56 lines (48 loc) · 1.08 KB
/
eventmatrix.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
56
#ifndef EVENTMATRIX_H
#define EVENTMATRIX_H
#include <QVector>
#include <qrect.h>
struct Event
{
//public:
QString Name;
QString Params;
// int index;
};
struct EventTile
{
private:
QVector<int> Events;
public:
EventTile();
void toggleEvent(int eventNum);
bool isEmpty();
int getEventAt(int index);
bool contains(int eventNum);
int getCount();
};
class EventMatrix
{
private:
QVector< QVector<EventTile * > > Matrix;
QVector<Event *> Events;
public:
EventMatrix(int SizeX, int SizeY);
EventMatrix();
~EventMatrix();
void setMatrixSize(int x, int y);
EventTile* getNumsAt(int x, int y);
void toggleNumAt(int x, int y, int Num);
void toggleRectArea(QRect area, int EventNum);
//void toggleRectArea(QRect area, EventTile * Ev);
int getSizeX();
int getSizeY();
QString getAllNamesAt(int x, int y);
void createNewEvent(QString Name, QString Params);
void deleteEvent(int index);
Event* getEvent(int index);
int getCount();
void clear();
// void clearAll();
};
#endif // EVENTMATRIX _H