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

Continuing the work to expose the undo/redo functionality to translation. This commit does so for the Image Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
This commit is contained in:
luz paz
2020-11-28 13:59:40 -05:00
committed by wwmayer
parent cc97a3a757
commit 69ff55c8a4

View File

@@ -152,7 +152,7 @@ void CmdCreateImagePlane::activated(int iMsg)
QString pyfile = Base::Tools::escapeEncodeFilename(s);
openCommand("Create ImagePlane");
openCommand(QT_TRANSLATE_NOOP("Command", "Create ImagePlane"));
doCommand(Doc,"App.activeDocument().addObject('Image::ImagePlane','%s\')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.ImageFile = '%s'",FeatName.c_str(),(const char*)pyfile.toUtf8());
doCommand(Doc,"App.activeDocument().%s.XSize = %d",FeatName.c_str(),nWidth);