]> Shamusworld >> Repos - architektonas/blobdiff - src/forms/dlgcircle.cpp
Initial phase of adding polyline functionality. DOES NOT COMPILE.
[architektonas] / src / forms / dlgcircle.cpp
index 396ffae03efb7c6ab0fc2adb5b4a061d33aeab98..f332890c3731d12c194d5266634ad0ee1c5e9293 100644 (file)
@@ -16,9 +16,9 @@
 
 #include "dlgcircle.h"
 
-#include "rs_circle.h"
+#include "circle.h"
 #include "drawing.h"
-#include "rs_math.h"
+#include "math.h"
 
 DlgCircle::DlgCircle(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
        QDialog(parent, flags)
@@ -30,7 +30,7 @@ DlgCircle::~DlgCircle()
 {
 }
 
-void DlgCircle::setCircle(RS_Circle & c)
+void DlgCircle::setCircle(Circle & c)
 {
        circle = &c;
        //pen = circle->getPen();
@@ -40,7 +40,7 @@ void DlgCircle::setCircle(RS_Circle & c)
        if (graphic != NULL)
                ui.cbLayer->init(*(graphic->getLayerList()), false, false);
 
-       RS_Layer * lay = circle->getLayer(false);
+       Layer * lay = circle->getLayer(false);
 
        if (lay != NULL)
                ui.cbLayer->setLayer(*lay);
@@ -56,9 +56,9 @@ void DlgCircle::setCircle(RS_Circle & c)
 
 void DlgCircle::updateCircle()
 {
-       circle->setCenter(Vector(RS_Math::eval(ui.leCenterX->text()),
-               RS_Math::eval(ui.leCenterY->text())));
-       circle->setRadius(RS_Math::eval(ui.leRadius->text()));
+       circle->setCenter(Vector(Math::eval(ui.leCenterX->text()),
+               Math::eval(ui.leCenterY->text())));
+       circle->setRadius(Math::eval(ui.leRadius->text()));
        circle->setPen(ui.wPen->getPen());
        circle->setLayer(ui.cbLayer->currentText());
        circle->calculateBorders();