ReverseEngineering: Issue #0004473: Expose openCommand() to translation

Continuing the work to expose the undo/redo functionality to translation. This commit does so for the ReverseEngineering Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
This commit is contained in:
luz paz
2020-11-28 13:57:41 -05:00
committed by wwmayer
parent c93bf6cbae
commit 3830e99110
4 changed files with 9 additions and 9 deletions

View File

@@ -187,7 +187,7 @@ void CmdApproxPlane::activated(int)
<< "Base.Vector(" << base.x << "," << base.y << "," << base.z << "),"
<< "Base.Rotation(" << q0 << "," << q1 << "," << q2 << "," << q3 << "))" << std::endl;
openCommand("Fit plane");
openCommand(QT_TRANSLATE_NOOP("Command", "Fit plane"));
runCommand(Gui::Command::Doc, str.str().c_str());
commitCommand();
updateActive();
@@ -218,7 +218,7 @@ CmdApproxCylinder::CmdApproxCylinder()
void CmdApproxCylinder::activated(int)
{
std::vector<Mesh::Feature*> sel = getSelection().getObjectsOfType<Mesh::Feature>();
openCommand("Fit cylinder");
openCommand(QT_TRANSLATE_NOOP("Command", "Fit cylinder"));
for (auto it : sel) {
const Mesh::MeshObject& mesh = it->Mesh.getValue();
const MeshCore::MeshKernel& kernel = mesh.getKernel();
@@ -284,7 +284,7 @@ CmdApproxSphere::CmdApproxSphere()
void CmdApproxSphere::activated(int)
{
std::vector<Mesh::Feature*> sel = getSelection().getObjectsOfType<Mesh::Feature>();
openCommand("Fit sphere");
openCommand(QT_TRANSLATE_NOOP("Command", "Fit sphere"));
for (auto it : sel) {
const Mesh::MeshObject& mesh = it->Mesh.getValue();
const MeshCore::MeshKernel& kernel = mesh.getKernel();
@@ -332,7 +332,7 @@ void CmdApproxPolynomial::activated(int)
{
std::vector<Mesh::Feature*> sel = getSelection().getObjectsOfType<Mesh::Feature>();
App::Document* doc = App::GetApplication().getActiveDocument();
openCommand("Fit polynomial surface");
openCommand(QT_TRANSLATE_NOOP("Command", "Fit polynomial surface"));
for (auto it : sel) {
const Mesh::MeshObject& mesh = it->Mesh.getValue();
const MeshCore::MeshKernel& kernel = mesh.getKernel();
@@ -598,7 +598,7 @@ void CmdViewTriangulation::activated(int)
{
std::vector<App::DocumentObject*> obj = Gui::Selection().getObjectsOfType(Points::Structured::getClassTypeId());
addModule(App,"ReverseEngineering");
openCommand("View triangulation");
openCommand(QT_TRANSLATE_NOOP("Command", "View triangulation"));
try {
for (std::vector<App::DocumentObject*>::iterator it = obj.begin(); it != obj.end(); ++it) {
App::DocumentObjectT objT(*it);