1 #ifndef __PENTOOLBAR_H__
2 #define __PENTOOLBAR_H__
5 //#include "rs_layerlistlistener.h"
14 * A toolbar that offers all widgets for choosing a pen.
16 class QG_PenToolBar: public QToolBar//, public RS_LayerListListener
21 QG_PenToolBar(QMainWindow * parent = NULL, const char * name = NULL);
22 virtual ~QG_PenToolBar();
26 // Methods from RS_LayerListListener Interface:
27 virtual void layerActivated(RS_Layer *);
28 virtual void layerEdited(RS_Layer *);
31 void slotColorChanged(const RS_Color & color);
32 void slotWidthChanged(RS2::LineWidth w);
33 void slotLineTypeChanged(RS2::LineType w);
36 void penChanged(RS_Pen);
40 QG_ColorBox * colorBox;
41 QG_WidthBox * widthBox;
42 QG_LineTypeBox * lineTypeBox;
45 #endif // __PENTOOLBAR_H__