// 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 "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)
{
}
-void DlgCircle::setCircle(RS_Circle & c)
+void DlgCircle::setCircle(Circle & c)
{
circle = &c;
//pen = circle->getPen();
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);
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();