1 #ifndef __EDITORWIDGET_H__
2 #define __EDITORWIDGET_H__
12 Point(int xx = 0, int yy = 0) { x = xx; y = yy; }
18 uint8_t board[BOARDSIZE][BOARDSIZE];
20 Point corner; // Corner dimensions on screen
21 Point cursor; // Cursor location
22 // This stuff will go into the save file, but we don't need it here...
23 // Point size; // Actual dimensions of the level
24 // Point boardCorner; // Where on the gird the UL corner of the level is
27 class EditorWidget: public QWidget
32 EditorWidget(QWidget * parent = 0);
36 QSize sizeHint() const;
37 void paintEvent(QPaintEvent * event);
38 void mousePressEvent(QMouseEvent * event);
39 void mouseMoveEvent(QMouseEvent * event);
40 void mouseReleaseEvent(QMouseEvent * event);
41 void mouseDoubleClickEvent(QMouseEvent * event);
42 void keyPressEvent(QKeyEvent * event);
43 void keyReleaseEvent(QKeyEvent * event);
44 void resizeEvent(QResizeEvent * event);
47 // void UpdateScore(int);
48 // void GameWasWon(void);
51 void CreateBackground(void);
52 void ClearLevel(void);
55 void SetNameOnCurrentLevel(const char *);
57 void GetSizeAndCorner(Level *, Point &, Point &);
58 void ResizeGrid(void);
62 std::vector<Level> levelStorage;
63 uint32_t currentLevel;
66 // Level currentLevel;
71 #endif // __EDITORWIDGET_H__