Ellipse DSH : Implement tool parameters.

This commit is contained in:
Paddle
2023-11-03 18:49:11 +01:00
committed by abdullahtahiriyo
parent 314449cef9
commit ccbe4c1c49
2 changed files with 888 additions and 809 deletions

View File

@@ -630,7 +630,7 @@ CONSTRUCTION_UPDATE_ACTION(CmdSketcherCreateEllipseByCenter, "Sketcher_CreateEll
void CmdSketcherCreateEllipseByCenter::activated(int iMsg)
{
Q_UNUSED(iMsg);
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse(0));
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse());
}
bool CmdSketcherCreateEllipseByCenter::isActive()
@@ -663,7 +663,9 @@ CONSTRUCTION_UPDATE_ACTION(CmdSketcherCreateEllipseBy3Points, "Sketcher_CreateEl
void CmdSketcherCreateEllipseBy3Points::activated(int iMsg)
{
Q_UNUSED(iMsg);
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse(1));
ActivateHandler(getActiveGuiDocument(),
new DrawSketchHandlerEllipse(
ConstructionMethods::CircleEllipseConstructionMethod::ThreeRim));
}
bool CmdSketcherCreateEllipseBy3Points::isActive()
@@ -782,10 +784,12 @@ CmdSketcherCompCreateConic::CmdSketcherCompCreateConic()
void CmdSketcherCompCreateConic::activated(int iMsg)
{
if (iMsg == 0) {
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse(iMsg));
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse());
}
else if (iMsg == 1) {
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerEllipse(iMsg));
ActivateHandler(getActiveGuiDocument(),
new DrawSketchHandlerEllipse(
ConstructionMethods::CircleEllipseConstructionMethod::ThreeRim));
}
else if (iMsg == 2) {
ActivateHandler(getActiveGuiDocument(), new DrawSketchHandlerArcOfEllipse());

File diff suppressed because it is too large Load Diff