]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/arcoptions.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / arcoptions.cpp
index 0f794e7c3ce0d1272db9f8dcfdc20e75af16ff2a..bd22b5ad8ab89245e8a5ffc9ec676b1ac263bfc9 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>
 //
 
 #include "arcoptions.h"
 
-#include "rs_actiondrawarc.h"
-#include "rs_actioninterface.h"
+#include "actiondrawarc.h"
+#include "actioninterface.h"
+#include "debug.h"
 #include "settings.h"
 
 ArcOptions::ArcOptions(QToolBar * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
-       QWidget(parent, flags)
+       QWidget(parent, flags),
+       rbPos(new QRadioButton(this)),
+       rbNeg(new QRadioButton(this))
 {
        QHBoxLayout * layout = new QHBoxLayout(this);
        layout->setContentsMargins(0, 0, 0, 0);
 
-       rbPos = new QRadioButton(this);
-       rbNeg = new QRadioButton(this);
-
-       rbPos->setIcon(QIcon(":/res/qg_dirpos.xpm"));
-       rbNeg->setIcon(QIcon(":/res/qg_dirneg.xpm"));
+       rbPos->setIcon(QIcon(":/res/qg_dirpos"));
+       rbNeg->setIcon(QIcon(":/res/qg_dirneg"));
 
        layout->addWidget(rbPos);
        layout->addWidget(rbNeg);
@@ -50,11 +52,11 @@ ArcOptions::~ArcOptions()
        settings.endGroup();
 }
 
-void ArcOptions::setAction(RS_ActionInterface * a, bool update)
+void ArcOptions::setAction(ActionInterface * a, bool update)
 {
        if (a != NULL && a->rtti() == RS2::ActionDrawArc)
        {
-               action = (RS_ActionDrawArc *)a;
+               action = (ActionDrawArc *)a;
 
                bool reversed;
 
@@ -72,7 +74,7 @@ void ArcOptions::setAction(RS_ActionInterface * a, bool update)
        }
        else
        {
-               RS_DEBUG->print(RS_Debug::D_ERROR, "QG_ArcOptions::setAction: wrong action type");
+               DEBUG->print(Debug::D_ERROR, "QG_ArcOptions::setAction: wrong action type");
                action = NULL;
        }
 }