]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/linebisectoroptions.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / linebisectoroptions.cpp
index ac7a8dba88dbc3d968c4d2c09536269bdf5cf2e1..6d09a7fe8af92fc2690fee9eee4cb57fcbbc9a8e 100644 (file)
@@ -3,7 +3,9 @@
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // Extensively rewritten and refactored by James L. Hammons
-// (C) 2010 Underground Software
+// Portions copyright (C) 2001-2003 RibbonSoft
+// Copyright (C) 2010 Underground Software
+// See the README and GPLv2 files for licensing and warranty information
 //
 // JLH = James L. Hammons <jlhamm@acm.org>
 //
@@ -14,7 +16,8 @@
 
 #include "linebisectoroptions.h"
 
-#include "rs_actiondrawlinebisector.h"
+#include "actiondrawlinebisector.h"
+#include "debug.h"
 #include "settings.h"
 
 LineBisectorOptions::LineBisectorOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
@@ -51,11 +54,11 @@ LineBisectorOptions::~LineBisectorOptions()
        settings.endGroup();
 }
 
-void LineBisectorOptions::setAction(RS_ActionInterface * a, bool update)
+void LineBisectorOptions::setAction(ActionInterface * a, bool update)
 {
        if (a != NULL && a->rtti() == RS2::ActionDrawLineBisector)
        {
-               action = (RS_ActionDrawLineBisector *)a;
+               action = (ActionDrawLineBisector *)a;
 
                QString sl;
                QString sn;
@@ -78,7 +81,7 @@ void LineBisectorOptions::setAction(RS_ActionInterface * a, bool update)
        }
        else
        {
-               RS_DEBUG->print(RS_Debug::D_ERROR, "LineBisectorOptions::setAction: wrong action type");
+               DEBUG->print(Debug::D_ERROR, "LineBisectorOptions::setAction: wrong action type");
                action = NULL;
        }
 }
@@ -86,7 +89,7 @@ void LineBisectorOptions::setAction(RS_ActionInterface * a, bool update)
 void LineBisectorOptions::updateLength(const QString & l)
 {
        if (action != NULL)
-               action->setLength(RS_Math::eval(l));
+               action->setLength(Math::eval(l));
 }
 
 void LineBisectorOptions::updateNumber(int n)