]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/roundoptions.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / roundoptions.cpp
index 8c72258ec23e9f0b3c555b54a331e393ba209c0f..1084835ba7961d3e0f4eec16158d6a5ef5a75542 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 "roundoptions.h"
 
-#include "rs_actionmodifyround.h"
+#include "actionmodifyround.h"
+#include "debug.h"
 #include "settings.h"
 
 RoundOptions::RoundOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
@@ -53,11 +56,11 @@ RoundOptions::~RoundOptions()
        settings.endGroup();
 }
 
-void RoundOptions::setAction(RS_ActionInterface * a, bool update)
+void RoundOptions::setAction(ActionInterface * a, bool update)
 {
        if (a != NULL && a->rtti() == RS2::ActionModifyRound)
        {
-               action = (RS_ActionModifyRound *)a;
+               action = (ActionModifyRound *)a;
 
                QString sr;
                bool st;
@@ -80,7 +83,7 @@ void RoundOptions::setAction(RS_ActionInterface * a, bool update)
        }
        else
        {
-               RS_DEBUG->print(RS_Debug::D_ERROR, "LineParallelOptions::setAction: wrong action type");
+               DEBUG->print(Debug::D_ERROR, "LineParallelOptions::setAction: wrong action type");
                action = NULL;
        }
 }
@@ -90,7 +93,7 @@ void RoundOptions::updateData()
        if (action != NULL)
        {
                action->setTrim(cbTrim->isChecked());
-               action->setRadius(RS_Math::eval(leRadius->text()));
+               action->setRadius(Math::eval(leRadius->text()));
        }
 }