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