Circle DSH : Implement tool parameters.

This commit is contained in:
Paddle
2023-11-03 18:49:57 +01:00
committed by abdullahtahiriyo
parent c5853fae9d
commit 6e4da8cc82
2 changed files with 595 additions and 314 deletions

View File

@@ -1260,7 +1260,9 @@ CONSTRUCTION_UPDATE_ACTION(CmdSketcherCreate3PointCircle, "Sketcher_Create3Point
void CmdSketcherCreate3PointCircle::activated(int iMsg)
{
Q_UNUSED(iMsg);
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandler3PointCircle());
ActivateHandler(getActiveGuiDocument(),
new DrawSketchHandlerCircle(
ConstructionMethods::CircleEllipseConstructionMethod::ThreeRim));
}
bool CmdSketcherCreate3PointCircle::isActive()
@@ -1289,7 +1291,9 @@ void CmdSketcherCompCreateCircle::activated(int iMsg)
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerCircle());
}
else if (iMsg == 1) {
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandler3PointCircle());
ActivateHandler(getActiveGuiDocument(),
new DrawSketchHandlerCircle(
ConstructionMethods::CircleEllipseConstructionMethod::ThreeRim));
}
else {
return;