#include <QtGui>
+#include "traffic.hpp"
#include "settings.hpp"
#include "regions.hpp"
#include "light.hpp"
{
Q_OBJECT
private:
+ Traffic _traffic;
RegionsTable _regions;
Settings _settings;
QSize sizeHint () const;
protected:
- void paintEvent(QPaintEvent *event)
- {
- QPainter p(this);
- p.setBrush(QColor(0, 0, 0, 128));
- p.setPen(Qt::NoPen);
- p.drawRoundedRect(rect(), 10, 10);
- p.end();
-
- QWidget::paintEvent(event);
- }
+ void paintEvent (QPaintEvent *event);
+ void timerEvent (QTimerEvent *event);
+
+protected slots:
+ void trafficUpdated ();
};
#endif /* __MAINWIDGET_H__ */