// 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>
//
void ActionDimension::reset()
{
data = RS_DimensionData(Vector(false), Vector(false), RS2::VAlignMiddle,
- RS2::HAlignCenter, RS2::Exact, 1.0, "", "Standard", 0.0);
+ RS2::HAlignCenter, RS2::Exact, 1.0, "", "Standard", 0.0);
diameter = false;
}
{
ActionInterface::hideOptions();
- if (RS_DIALOGFACTORY != NULL)
+ if (RS_DIALOGFACTORY)
RS_DIALOGFACTORY->requestOptions(this, false);
}
{
ActionInterface::showOptions();
- if (RS_DIALOGFACTORY != NULL)
+ if (RS_DIALOGFACTORY)
RS_DIALOGFACTORY->requestOptions(this, true, true);
}
void ActionDimension::updateToolBar()
{
- if (RS_DIALOGFACTORY != NULL)
- {
- if (!isFinished())
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
- else
- RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarDim);
- }
+ if (!RS_DIALOGFACTORY)
+ return;
+
+ if (!isFinished())
+ RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarSnap);
+ else
+ RS_DIALOGFACTORY->requestToolBar(RS2::ToolBarDim);
}
QString ActionDimension::getText()
/*static*/ bool ActionDimension::isDimensionAction(RS2::ActionType type)
{
return (type == RS2::ActionDimAligned
- || type == RS2::ActionDimLinear
- || type == RS2::ActionDimAngular
- || type == RS2::ActionDimDiametric
- || type == RS2::ActionDimRadial);
+ || type == RS2::ActionDimLinear
+ || type == RS2::ActionDimAngular
+ || type == RS2::ActionDimDiametric
+ || type == RS2::ActionDimRadial);
}
-