#include "dialogfactory.h"
#include "graphicview.h"
-ActionDimension::ActionDimension(const char * name, RS_EntityContainer & container, GraphicView & graphicView):
+ActionDimension::ActionDimension(const char * name, EntityContainer & container, GraphicView & graphicView):
ActionInterface(name, container, graphicView)
{
reset();
void ActionDimension::reset()
{
- data = RS_DimensionData(Vector(false), Vector(false), RS2::VAlignMiddle,
+ data = DimensionData(Vector(false), Vector(false), RS2::VAlignMiddle,
RS2::HAlignCenter, RS2::Exact, 1.0, "", "Standard", 0.0);
diameter = false;
}
{
ActionInterface::hideOptions();
- if (RS_DIALOGFACTORY)
- RS_DIALOGFACTORY->requestOptions(this, false);
+ if (DIALOGFACTORY)
+ DIALOGFACTORY->requestOptions(this, false);
}
void ActionDimension::showOptions()
{
ActionInterface::showOptions();
- if (RS_DIALOGFACTORY)
- RS_DIALOGFACTORY->requestOptions(this, true, true);
+ if (DIALOGFACTORY)
+ DIALOGFACTORY->requestOptions(this, true, true);
}
void ActionDimension::updateMouseCursor()
void ActionDimension::updateToolBar()
{
- if (!RS_DIALOGFACTORY)
+ if (!DIALOGFACTORY)
return;
if (!isFinished())
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
else
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarDim);
+ DIALOGFACTORY->requestToolBar(RS2::ToolBarDim);
}
QString ActionDimension::getText()