]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/Widget.h
Add layers for OE
[eurobot/public.git] / src / robomon / Widget.h
1 /*
2  * Widget.h                             08/03/29
3  *
4  * A widget template.
5  *
6  * Copyright: (c) 2008 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11
12 #ifndef WIDGET_H
13 #define WIDGET_H
14
15 #include <QWidget>
16 #include "Painter.h"
17
18 #define RENDER_HINT_ALIASING    false
19
20 class QPaintEvent;
21
22 class Widget : public QWidget
23 {
24         Q_OBJECT
25
26 public:
27         Widget(Painter *painter, QWidget *parent);
28         void setAliasing(bool state);
29
30 public slots:
31         void animate();
32
33 protected:
34         void paintEvent(QPaintEvent *event);
35
36 private:
37         Painter *painter;
38         bool aliasing;
39 };
40
41 #endif