Mod: redundant void 2
This commit is contained in:
@@ -138,7 +138,7 @@ void CmdSketcherCreateLine::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerLine() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateLine::isActive(void)
|
||||
bool CmdSketcherCreateLine::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -170,7 +170,7 @@ void CmdSketcherCreateRectangle::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerBox(DrawSketchHandlerBox::Diagonal) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateRectangle::isActive(void)
|
||||
bool CmdSketcherCreateRectangle::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -199,7 +199,7 @@ void CmdSketcherCreateRectangleCenter::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerBox(DrawSketchHandlerBox::CenterAndCorner) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateRectangleCenter::isActive(void)
|
||||
bool CmdSketcherCreateRectangleCenter::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -231,7 +231,7 @@ void CmdSketcherCreateOblong::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerOblong());
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateOblong::isActive(void)
|
||||
bool CmdSketcherCreateOblong::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -272,7 +272,7 @@ void CmdSketcherCompCreateRectangles::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action* CmdSketcherCompCreateRectangles::createAction(void)
|
||||
Gui::Action* CmdSketcherCompCreateRectangles::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -342,7 +342,7 @@ void CmdSketcherCompCreateRectangles::languageChange()
|
||||
rectangle3->setStatusTip(rectangle3->toolTip());
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateRectangles::isActive(void)
|
||||
bool CmdSketcherCompCreateRectangles::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -373,7 +373,7 @@ void CmdSketcherCreatePolyline::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerLineSet() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreatePolyline::isActive(void)
|
||||
bool CmdSketcherCreatePolyline::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -405,7 +405,7 @@ void CmdSketcherCreateArc::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerArc() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateArc::isActive(void)
|
||||
bool CmdSketcherCreateArc::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -437,7 +437,7 @@ void CmdSketcherCreate3PointArc::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandler3PointArc() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreate3PointArc::isActive(void)
|
||||
bool CmdSketcherCreate3PointArc::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -475,7 +475,7 @@ void CmdSketcherCompCreateArc::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateArc::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateArc::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -537,7 +537,7 @@ void CmdSketcherCompCreateArc::languageChange()
|
||||
arc2->setStatusTip(QApplication::translate("Sketcher_Create3PointArc","Create an arc by its end points and a point along the arc"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateArc::isActive(void)
|
||||
bool CmdSketcherCompCreateArc::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -570,7 +570,7 @@ void CmdSketcherCreateCircle::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerCircle() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateCircle::isActive(void)
|
||||
bool CmdSketcherCreateCircle::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -604,7 +604,7 @@ void CmdSketcherCreateEllipseByCenter::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerEllipse(0) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateEllipseByCenter::isActive(void)
|
||||
bool CmdSketcherCreateEllipseByCenter::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -637,7 +637,7 @@ void CmdSketcherCreateEllipseBy3Points::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerEllipse(1) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateEllipseBy3Points::isActive(void)
|
||||
bool CmdSketcherCreateEllipseBy3Points::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -666,7 +666,7 @@ void CmdSketcherCreateArcOfEllipse::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerArcOfEllipse() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateArcOfEllipse::isActive(void)
|
||||
bool CmdSketcherCreateArcOfEllipse::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -694,7 +694,7 @@ void CmdSketcherCreateArcOfHyperbola::activated(int /*iMsg*/)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerArcOfHyperbola() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateArcOfHyperbola::isActive(void)
|
||||
bool CmdSketcherCreateArcOfHyperbola::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -722,7 +722,7 @@ void CmdSketcherCreateArcOfParabola::activated(int /*iMsg*/)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerArcOfParabola() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateArcOfParabola::isActive(void)
|
||||
bool CmdSketcherCreateArcOfParabola::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -777,7 +777,7 @@ void CmdSketcherCompCreateConic::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateConic::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateConic::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -867,7 +867,7 @@ void CmdSketcherCompCreateConic::languageChange()
|
||||
arcofparabola->setStatusTip(QApplication::translate("Sketcher_CreateArcOfParabola","Create an arc of parabola by its focus, vertex, and endpoints"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateConic::isActive(void)
|
||||
bool CmdSketcherCompCreateConic::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -898,7 +898,7 @@ void CmdSketcherCreateBSpline::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerBSpline(0) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateBSpline::isActive(void)
|
||||
bool CmdSketcherCreateBSpline::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -931,7 +931,7 @@ void CmdSketcherCreatePeriodicBSpline::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerBSpline(1) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreatePeriodicBSpline::isActive(void)
|
||||
bool CmdSketcherCreatePeriodicBSpline::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -978,7 +978,7 @@ void CmdSketcherCompCreateBSpline::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateBSpline::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateBSpline::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -1042,7 +1042,7 @@ void CmdSketcherCompCreateBSpline::languageChange()
|
||||
periodicbspline->setStatusTip(QApplication::translate("Sketcher_Create_Periodic_BSpline","Create a periodic B-spline by control points"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateBSpline::isActive(void)
|
||||
bool CmdSketcherCompCreateBSpline::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1074,7 +1074,7 @@ void CmdSketcherCreate3PointCircle::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandler3PointCircle() );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreate3PointCircle::isActive(void)
|
||||
bool CmdSketcherCreate3PointCircle::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1112,7 +1112,7 @@ void CmdSketcherCompCreateCircle::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateCircle::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateCircle::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -1174,7 +1174,7 @@ void CmdSketcherCompCreateCircle::languageChange()
|
||||
arc2->setStatusTip(QApplication::translate("Sketcher_Create3PointCircle", "Create a circle by 3 rim points"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateCircle::isActive(void)
|
||||
bool CmdSketcherCompCreateCircle::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1205,7 +1205,7 @@ void CmdSketcherCreatePoint::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerPoint());
|
||||
}
|
||||
|
||||
bool CmdSketcherCreatePoint::isActive(void)
|
||||
bool CmdSketcherCreatePoint::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1234,7 +1234,7 @@ void CmdSketcherCreateFillet::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerFillet(DrawSketchHandlerFillet::SimpleFillet));
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateFillet::isActive(void)
|
||||
bool CmdSketcherCreateFillet::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1263,7 +1263,7 @@ void CmdSketcherCreatePointFillet::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerFillet(DrawSketchHandlerFillet::ConstraintPreservingFillet));
|
||||
}
|
||||
|
||||
bool CmdSketcherCreatePointFillet::isActive(void)
|
||||
bool CmdSketcherCreatePointFillet::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1309,7 +1309,7 @@ void CmdSketcherCompCreateFillets::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateFillets::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateFillets::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -1364,7 +1364,7 @@ void CmdSketcherCompCreateFillets::languageChange()
|
||||
pointFillet->setStatusTip(QApplication::translate("Sketcher_CreatePointFillet","Fillet that preserves constraints and intersection point"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateFillets::isActive(void)
|
||||
bool CmdSketcherCompCreateFillets::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1393,7 +1393,7 @@ void CmdSketcherTrimming::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerTrimming());
|
||||
}
|
||||
|
||||
bool CmdSketcherTrimming::isActive(void)
|
||||
bool CmdSketcherTrimming::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1424,7 +1424,7 @@ void CmdSketcherExtend::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerExtend());
|
||||
}
|
||||
|
||||
bool CmdSketcherExtend::isActive(void)
|
||||
bool CmdSketcherExtend::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1455,7 +1455,7 @@ void CmdSketcherSplit::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerSplitting());
|
||||
}
|
||||
|
||||
bool CmdSketcherSplit::isActive(void)
|
||||
bool CmdSketcherSplit::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1482,7 +1482,7 @@ void CmdSketcherExternal::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerExternal());
|
||||
}
|
||||
|
||||
bool CmdSketcherExternal::isActive(void)
|
||||
bool CmdSketcherExternal::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1513,7 +1513,7 @@ void CmdSketcherCarbonCopy::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerCarbonCopy());
|
||||
}
|
||||
|
||||
bool CmdSketcherCarbonCopy::isActive(void)
|
||||
bool CmdSketcherCarbonCopy::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1547,7 +1547,7 @@ void CmdSketcherCreateSlot::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerSlot());
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateSlot::isActive(void)
|
||||
bool CmdSketcherCreateSlot::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1578,7 +1578,7 @@ void CmdSketcherCreateTriangle::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(3) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateTriangle::isActive(void)
|
||||
bool CmdSketcherCreateTriangle::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1607,7 +1607,7 @@ void CmdSketcherCreateSquare::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(4) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateSquare::isActive(void)
|
||||
bool CmdSketcherCreateSquare::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1636,7 +1636,7 @@ void CmdSketcherCreatePentagon::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(5) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreatePentagon::isActive(void)
|
||||
bool CmdSketcherCreatePentagon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1666,7 +1666,7 @@ void CmdSketcherCreateHexagon::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(6) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateHexagon::isActive(void)
|
||||
bool CmdSketcherCreateHexagon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1695,7 +1695,7 @@ void CmdSketcherCreateHeptagon::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(7) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateHeptagon::isActive(void)
|
||||
bool CmdSketcherCreateHeptagon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1724,7 +1724,7 @@ void CmdSketcherCreateOctagon::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(8) );
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateOctagon::isActive(void)
|
||||
bool CmdSketcherCreateOctagon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1757,7 +1757,7 @@ void CmdSketcherCreateRegularPolygon::activated(int iMsg)
|
||||
ActivateHandler(getActiveGuiDocument(),new DrawSketchHandlerRegularPolygon(srpd.sides));
|
||||
}
|
||||
|
||||
bool CmdSketcherCreateRegularPolygon::isActive(void)
|
||||
bool CmdSketcherCreateRegularPolygon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
@@ -1813,7 +1813,7 @@ void CmdSketcherCompCreateRegularPolygon::activated(int iMsg)
|
||||
pcAction->setIcon(a[iMsg]->icon());
|
||||
}
|
||||
|
||||
Gui::Action * CmdSketcherCompCreateRegularPolygon::createAction(void)
|
||||
Gui::Action * CmdSketcherCompCreateRegularPolygon::createAction()
|
||||
{
|
||||
Gui::ActionGroup* pcAction = new Gui::ActionGroup(this, Gui::getMainWindow());
|
||||
pcAction->setDropDownMenu(true);
|
||||
@@ -1915,12 +1915,12 @@ void CmdSketcherCompCreateRegularPolygon::languageChange()
|
||||
regular->setStatusTip(QApplication::translate("Sketcher_CreateOctagon","Create a regular polygon by its center and by one corner"));
|
||||
}
|
||||
|
||||
bool CmdSketcherCompCreateRegularPolygon::isActive(void)
|
||||
bool CmdSketcherCompCreateRegularPolygon::isActive()
|
||||
{
|
||||
return isCommandActive(getActiveGuiDocument());
|
||||
}
|
||||
|
||||
void CreateSketcherCommandsCreateGeo(void)
|
||||
void CreateSketcherCommandsCreateGeo()
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user