do not use doCommand without using format string, add overloaded method of runCommand

This commit is contained in:
wmayer
2016-09-15 18:53:37 +02:00
parent 1efd9a4b4f
commit f44df3cdf0
17 changed files with 60 additions and 47 deletions

View File

@@ -171,7 +171,7 @@ void CmdApproxPlane::activated(int iMsg)
<< "Base.Rotation(" << q0 << "," << q1 << "," << q2 << "," << q3 << "))" << std::endl;
openCommand("Fit plane");
doCommand(Gui::Command::Doc, str.str().c_str());
runCommand(Gui::Command::Doc, str.str().c_str());
commitCommand();
updateActive();
}
@@ -251,7 +251,7 @@ void CmdViewTriangulation::activated(int iMsg)
.arg(document)
.arg(object)
;
doCommand(Doc, command.toLatin1());
runCommand(Doc, command.toLatin1());
}
commitCommand();

View File

@@ -165,7 +165,7 @@ bool FitBSplineSurfaceWidget::accept()
Gui::WaitCursor wc;
Gui::Command::addModule(Gui::Command::App, "ReverseEngineering");
Gui::Command::openCommand("Fit B-Spline");
Gui::Command::doCommand(Gui::Command::Doc, command.toLatin1());
Gui::Command::runCommand(Gui::Command::Doc, command.toLatin1());
Gui::Command::commitCommand();
Gui::Command::updateActive();
}

View File

@@ -99,7 +99,7 @@ bool PoissonWidget::accept()
Gui::WaitCursor wc;
Gui::Command::addModule(Gui::Command::App, "ReverseEngineering");
Gui::Command::openCommand("Poisson reconstruction");
Gui::Command::doCommand(Gui::Command::Doc, command.toLatin1());
Gui::Command::runCommand(Gui::Command::Doc, command.toLatin1());
Gui::Command::commitCommand();
Gui::Command::updateActive();
}