3 // Originally part of QCad Community Edition by Andrew Mustun
4 // Extensively rewritten and refactored by James L. Hammons
5 // (C) 2010 Underground Software
7 // JLH = James L. Hammons <jlhamm@acm.org>
10 // --- ---------- -----------------------------------------------------------
11 // JLH 05/10/2010 Created this file. :-)
14 #include "lineoptions.h"
17 #include "rs_actiondrawline.h"
18 #include "rs_actioninterface.h"
20 LineOptions::LineOptions(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
21 QWidget(parent, flags), action(NULL)
26 LineOptions::~LineOptions()
30 void LineOptions::setAction(RS_ActionInterface * a)
32 if (a != NULL && a->rtti() == RS2::ActionDrawLine)
34 action = (RS_ActionDrawLine *)a;
38 RS_DEBUG->print(RS_Debug::D_ERROR, "QG_LineOptions::setAction: wrong action type");
43 void LineOptions::close()
49 void LineOptions::undo()