00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef PAINTER_H
00013 #define PAINTER_H
00014
00015 #include <qvariant.h>
00016 #include <qpixmap.h>
00017
00018 #include "master.h"
00019 #include "page.h"
00020
00021 class QVBoxLayout;
00022 class QHBoxLayout;
00023 class QGridLayout;
00024 class Canvas;
00025 class QComboBox;
00026 class QSpinBox;
00027 class QToolButton;
00028
00029 class Painter : public Page {
00030 Q_OBJECT
00031
00032 public:
00033 Painter( QWidget* parent = 0, const char* name = 0, Master * session = 0 );
00034 ~Painter();
00035
00036 Canvas* canvas;
00037 QToolButton* color_button;
00038 QSpinBox* size_box;
00039 QComboBox* shape_combo;
00040
00041 public slots:
00042 void slotColor();
00043 void slotWidth(int);
00044 void slotShape(int);
00045 void append(const QString &);
00046 void sendOutput(const QString&);
00047
00048 protected:
00049 QGridLayout* PainterLayout;
00050
00051 protected slots:
00052 virtual void languageChange();
00053
00054 };
00055
00056 #endif // PAINTER_H