3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 05/10/2010 Created this file. :-)
15 #include "lineoptions.h"
18 #include "rs_actiondrawline.h"
19 #include "rs_actioninterface.h"
21 LineOptions::LineOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
22 QWidget(parent, flags), action(NULL)
26 // We need to add the widget (this thing) to the toolbar passed in. Otherwise,
27 // nothing will show up on the screen. :-)
29 parent->addWidget(this);
32 LineOptions::~LineOptions()
36 void LineOptions::setAction(RS_ActionInterface * a)
38 if (a != NULL && a->rtti() == RS2::ActionDrawLine)
40 action = (RS_ActionDrawLine *)a;
44 RS_DEBUG->print(RS_Debug::D_ERROR, "QG_LineOptions::setAction: wrong action type");
49 void LineOptions::close()
55 void LineOptions::undo()