]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/dlgspline.cpp
Initial phase of adding polyline functionality. DOES NOT COMPILE.
[architektonas] / src / forms / dlgspline.cpp
index 0437cc43e7b72ee46b3dea93a4c0ba1d4997cf12..7624a225997f3a7a1baf8691cafe4be4af051831 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>
 //
@@ -15,7 +17,7 @@
 #include "dlgspline.h"
 
 #include "drawing.h"
-#include "rs_spline.h"
+#include "spline.h"
 
 DlgSpline::DlgSpline(QWidget * parent/*= 0*/, Qt::WindowFlags flags/*= 0*/):
        QDialog(parent, flags)
@@ -27,13 +29,13 @@ DlgSpline::~DlgSpline()
 {
 }
 
-void DlgSpline::setSpline(RS_Spline & e)
+void DlgSpline::setSpline(Spline & e)
 {
        spline = &e;
        //pen = spline->getPen();
        ui.wPen->setPen(spline->getPen(false), true, false, "Pen");
        Drawing * graphic = spline->getGraphic();
-       RS_Layer * lay = spline->getLayer(false);
+       Layer * lay = spline->getLayer(false);
 
        if (graphic)
                ui.cbLayer->init(*(graphic->getLayerList()), false, false);
@@ -51,7 +53,7 @@ void DlgSpline::setSpline(RS_Spline & e)
 
 void DlgSpline::updateSpline()
 {
-       spline->setDegree(RS_Math::round(RS_Math::eval(ui.cbDegree->currentText())));
+       spline->setDegree(Math::round(Math::eval(ui.cbDegree->currentText())));
        spline->setClosed(ui.cbClosed->isChecked());
        spline->setPen(ui.wPen->getPen());
        spline->setLayer(ui.cbLayer->currentText());