// 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 "dlgdimlinear.h"
-#include "rs_dimlinear.h"
+#include "dimlinear.h"
#include "drawing.h"
-#include "rs_math.h"
+#include "math.h"
DlgDimLinear::DlgDimLinear(QWidget * parent/*= NULL*/, Qt::WindowFlags flags/*= 0*/):
QDialog(parent, flags)
{
}
-void DlgDimLinear::setDim(RS_DimLinear & d)
+void DlgDimLinear::setDim(DimLinear & d)
{
dim = &d;
ui.wPen->setPen(dim->getPen(false), true, false, "Pen");
if (graphic)
ui.cbLayer->init(*(graphic->getLayerList()), false, false);
- RS_Layer * lay = dim->getLayer(false);
+ Layer * lay = dim->getLayer(false);
if (lay)
ui.cbLayer->setLayer(*lay);
ui.wLabel->setLabel(dim->getLabel(false));
- ui.leAngle->setText(QString("%1").arg(RS_Math::rad2deg(dim->getAngle())));
+ ui.leAngle->setText(QString("%1").arg(Math::rad2deg(dim->getAngle())));
}
void DlgDimLinear::updateDim()
{
dim->setLabel(ui.wLabel->getLabel());
- dim->setAngle(RS_Math::deg2rad(RS_Math::eval(ui.leAngle->text(), 0.0)));
+ dim->setAngle(Math::deg2rad(Math::eval(ui.leAngle->text(), 0.0)));
}