]> Shamusworld >> Repos - architektonas/blob - src/widgets/pentoolbar.h
Removed useless *Listener class and references.
[architektonas] / src / widgets / pentoolbar.h
1 #ifndef __PENTOOLBAR_H__
2 #define __PENTOOLBAR_H__
3
4 #include <QtGui>
5 //#include "rs_layerlistlistener.h"
6 #include "rs_pen.h"
7
8 class QG_ColorBox;
9 class QG_WidthBox;
10 class QG_LineTypeBox;
11 class RS_Layer;
12
13 /**
14  * A toolbar that offers all widgets for choosing a pen.
15  */
16 class QG_PenToolBar: public QToolBar//, public RS_LayerListListener
17 {
18         Q_OBJECT
19
20         public:
21                 QG_PenToolBar(QMainWindow * parent = NULL, const char * name = NULL);
22                 virtual ~QG_PenToolBar();
23
24                 RS_Pen getPen();
25
26                 // Methods from RS_LayerListListener Interface:
27                 virtual void layerActivated(RS_Layer *);
28                 virtual void layerEdited(RS_Layer *);
29
30         public slots:
31                 void slotColorChanged(const RS_Color & color);
32                 void slotWidthChanged(RS2::LineWidth w);
33                 void slotLineTypeChanged(RS2::LineType w);
34
35         signals:
36                 void penChanged(RS_Pen);
37
38         private:
39                 RS_Pen currentPen;
40                 QG_ColorBox * colorBox;
41                 QG_WidthBox * widthBox;
42                 QG_LineTypeBox * lineTypeBox;
43 };
44
45 #endif  // __PENTOOLBAR_H__