settings.beginGroup("Draw");
if (!action->hasFixedAngle())
- settings.setValue("LineAngleAngle", RS_Math::rad2deg(action->getAngle()));
+ settings.setValue("LineAngleAngle", Math::rad2deg(action->getAngle()));
settings.setValue("LineAngleLength", action->getLength());
settings.setValue("LineAngleSnapPoint", action->getSnapPoint());
// settings from action:
if (update)
{
- sa = QString("%1").arg(RS_Math::rad2deg(action->getAngle()));
+ sa = QString("%1").arg(Math::rad2deg(action->getAngle()));
sl = QString("%1").arg(action->getLength());
sp = action->getSnapPoint();
}
}
else
{
- RS_DEBUG->print(RS_Debug::D_ERROR, "LineAngleOptions::setAction: wrong action type");
+ DEBUG->print(Debug::D_ERROR, "LineAngleOptions::setAction: wrong action type");
this->action = NULL;
}
}
void LineAngleOptions::updateAngle(const QString & a)
{
if (action && !action->hasFixedAngle())
- action->setAngle(RS_Math::deg2rad(RS_Math::eval(a)));
+ action->setAngle(Math::deg2rad(Math::eval(a)));
}
void LineAngleOptions::updateLength(const QString & l)
{
if (action)
- action->setLength(RS_Math::eval(l));
+ action->setLength(Math::eval(l));
}
void LineAngleOptions::updateSnapPoint(int sp)