#include <QtGui>
-class MainWidget : public QLabel
+#include "settings.hpp"
+#include "regions.hpp"
+#include "light.hpp"
+
+
+class MainWidget : public QWidget
{
Q_OBJECT
+private:
+ RegionsTable _regions;
+ Settings _settings;
+
+ // Widgets
+ TrafficLight *_light;
+ QLabel *_label;
+
public:
- MainWidget ()
- : QLabel (tr ("Hello, World"))
- {
- setAlignment(Qt::AlignCenter);
- setAttribute(Qt::WA_TranslucentBackground);
- }
-
- QSize sizeHint() const
- {
- return 2 * QLabel::sizeHint();
- }
+ MainWidget ();
+ QSize sizeHint () const;
+
+protected:
+ void paintEvent (QPaintEvent *event);
};
#endif /* __MAINWIDGET_H__ */