X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fforms%2Fdlgpoint.cpp;h=bb276ff8f5a0100ebf29f0c937accc05df32bb0b;hb=e1d1cacbb43055988d0d9db632fdf05c0bea9543;hp=47626982d79795008e3cabf0fdd4b4e480c7eb23;hpb=05a1d5fa057f4f45bc1f9903f1bdc0be2f10e3bf;p=architektonas diff --git a/src/forms/dlgpoint.cpp b/src/forms/dlgpoint.cpp index 4762698..bb276ff 100644 --- a/src/forms/dlgpoint.cpp +++ b/src/forms/dlgpoint.cpp @@ -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 // @@ -14,9 +16,9 @@ #include "dlgpoint.h" -#include "rs_point.h" +#include "point.h" #include "drawing.h" -#include "rs_math.h" +#include "math.h" DlgPoint::DlgPoint(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/): QDialog(parent, flags) @@ -28,7 +30,7 @@ DlgPoint::~DlgPoint() { } -void DlgPoint::setPoint(RS_Point & p) +void DlgPoint::setPoint(Point & p) { point = &p; @@ -38,7 +40,7 @@ void DlgPoint::setPoint(RS_Point & p) if (graphic) ui.cbLayer->init(*(graphic->getLayerList()), false, false); - RS_Layer * lay = point->getLayer(false); + Layer * lay = point->getLayer(false); if (lay) ui.cbLayer->setLayer(*lay); @@ -52,8 +54,8 @@ void DlgPoint::setPoint(RS_Point & p) void DlgPoint::updatePoint() { - point->setPos(Vector(RS_Math::eval(ui.lePosX->text()), - RS_Math::eval(ui.lePosY->text()))); + point->setPos(Vector(Math::eval(ui.lePosX->text()), + Math::eval(ui.lePosY->text()))); point->setPen(ui.wPen->getPen()); point->setLayer(ui.cbLayer->currentText()); }