1 // Copyright Vladimir Prus 2004.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt
4 // or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 
7 #ifndef CANVAS_VP_2004_08_31
8 #define CANVAS_VP_2004_08_31
9 
10 #include <qmainwindow.h>
11 #include <qpen.h>
12 #include <qbrush.h>
13 
14 class Canvas : public QWidget
15 {
16     Q_OBJECT
17 public:
18     Canvas(QWidget* parent);
19 
20     virtual ~Canvas();
21 
22 public slots:
23     void change_color();
24 
25 private:
26     void redraw();
27     class QCanvas* m_canvas;
28     class QCanvasView* m_canvas_view;
29     class QPen m_pen;
30     class QBrush* m_brushes;
31     int m_current_brush;
32 };
33 
34 #endif
35 
36