/**
* Constructor.
*/
-QG_PenToolBar::QG_PenToolBar(QMainWindow * parent/*= NULL*/, const char * name/*= NULL*/):
+PenToolBar::PenToolBar(QMainWindow * parent/*= NULL*/, const char * name/*= NULL*/):
QToolBar(parent),
- colorBox(new QG_ColorBox(true, false, this, "colorbox")),
- widthBox(new QG_WidthBox(true, false, this, "widthbox")),
- lineTypeBox(new QG_LineTypeBox(true, false, this, "lineTypebox"))
+ colorBox(new ColorBox(true, false, this, "colorbox")),
+ widthBox(new WidthBox(true, false, this, "widthbox")),
+ lineTypeBox(new LineTypeBox(true, false, this, "lineTypebox"))
{
setWindowTitle(name);
/**
* Destructor
*/
-QG_PenToolBar::~QG_PenToolBar()
+PenToolBar::~PenToolBar()
{
delete colorBox;
delete widthBox;
delete lineTypeBox;
}
-RS_Pen QG_PenToolBar::getPen()
+RS_Pen PenToolBar::getPen()
{
return currentPen;
}
* Called by the layer list if this object was added as a listener
* to a layer list.
*/
-void QG_PenToolBar::layerActivated(RS_Layer * l)
+void PenToolBar::layerActivated(RS_Layer * l)
{
- //printf("QG_PenToolBar::layerActivated\n");
+ //printf("PenToolBar::layerActivated\n");
if (l == NULL)
return;
* Called by the layer list (if this object was previously
* added as a listener to a layer list).
*/
-void QG_PenToolBar::layerEdited(RS_Layer *)
+void PenToolBar::layerEdited(RS_Layer *)
{
}
/**
* Called when the color was changed by the user.
*/
-void QG_PenToolBar::slotColorChanged(const RS_Color & color)
+void PenToolBar::slotColorChanged(const RS_Color & color)
{
currentPen.setColor(color);
//printf(" color changed\n");
/**
* Called when the width was changed by the user.
*/
-void QG_PenToolBar::slotWidthChanged(RS2::LineWidth w)
+void PenToolBar::slotWidthChanged(RS2::LineWidth w)
{
currentPen.setWidth(w);
//printf(" width changed\n");
/**
* Called when the linetype was changed by the user.
*/
-void QG_PenToolBar::slotLineTypeChanged(RS2::LineType w)
+void PenToolBar::slotLineTypeChanged(RS2::LineType w)
{
currentPen.setLineType(w);
//printf(" line type changed\n");