X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Factiondimension.cpp;h=86bae2c2baad9809bbf4edf71eacb666ca909d00;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=2de208563c6ee42d46eb4c8c99fd41e4bb6c0901;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/actions/actiondimension.cpp b/src/actions/actiondimension.cpp index 2de2085..86bae2c 100644 --- a/src/actions/actiondimension.cpp +++ b/src/actions/actiondimension.cpp @@ -19,7 +19,7 @@ #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(); @@ -31,7 +31,7 @@ ActionDimension::~ActionDimension() 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; } @@ -45,16 +45,16 @@ void ActionDimension::hideOptions() { 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() @@ -64,13 +64,13 @@ 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()