Removed debug messages.
[kgcqgv.git] / mainwindow.h
blob59c021d70355ead6f858f8e41a385b155379a249
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
4 #include "defs.h"
5 #include <QTime>
6 #include <QTimer>
8 class Element;
10 class MainWindow : public CANVAS {
11 Q_OBJECT
12 #ifndef USE_KGC
13 QGraphicsScene* m_scene;
14 #endif
16 QList<Element*> m_elements;
17 QTime m_time;
18 QTimer m_timer;
19 int m_last_time;
20 QSize m_size;
21 protected:
22 void mousePressEvent(QMouseEvent*);
23 void resizeEvent(QResizeEvent*);
24 public:
25 MainWindow(QWidget* parent);
27 void addElement(const QPoint& p);
28 public Q_SLOTS:
29 void tick();
32 #endif // MAINWINDOW_H