#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)
{
}
-void DlgPoint::setPoint(RS_Point & p)
+void DlgPoint::setPoint(Point & p)
{
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);
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());
}