Skip to content

Commit

Permalink
TD: Issue #4473: Expose openCommand() to translation
Browse files Browse the repository at this point in the history
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the TechDraw Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
  • Loading branch information
luzpaz authored and wwmayer committed Dec 1, 2020
1 parent 5effcc1 commit 2befcd9
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 46 deletions.
26 changes: 13 additions & 13 deletions src/Mod/TechDraw/Gui/Command.cpp
Expand Up @@ -129,7 +129,7 @@ void CmdTechDrawPageDefault::activated(int iMsg)
QFileInfo tfi(templateFileName);
if (tfi.isReadable()) {
Gui::WaitCursor wc;
openCommand("Drawing create page");
openCommand(QT_TRANSLATE_NOOP("Command", "Drawing create page"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawPage','%s')",PageName.c_str());
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawSVGTemplate','%s')",TemplateName.c_str());

Expand Down Expand Up @@ -199,7 +199,7 @@ void CmdTechDrawPageTemplate::activated(int iMsg)
QFileInfo tfi(templateFileName);
if (tfi.isReadable()) {
Gui::WaitCursor wc;
openCommand("Drawing create page");
openCommand(QT_TRANSLATE_NOOP("Command", "Drawing create page"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawPage','%s')",PageName.c_str());

// Create the Template Object to attach to the page
Expand Down Expand Up @@ -353,7 +353,7 @@ void CmdTechDrawView::activated(int iMsg)
Base::Vector3d projDir;

Gui::WaitCursor wc;
openCommand("Create view");
openCommand(QT_TRANSLATE_NOOP("Command", "Create view"));
std::string FeatName = getUniqueObjectName("View");
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewPart','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
Expand Down Expand Up @@ -606,7 +606,7 @@ void CmdTechDrawProjectionGroup::activated(int iMsg)
Base::Vector3d projDir;
Gui::WaitCursor wc;

openCommand("Create Projection Group");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Projection Group"));

std::string multiViewName = getUniqueObjectName("ProjGroup");
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawProjGroup','%s')",
Expand Down Expand Up @@ -697,7 +697,7 @@ bool CmdTechDrawProjectionGroup::isActive(void)

// Gui::WaitCursor wc;

// openCommand("Create view");
// openCommand(QT_TRANSLATE_NOOP("Command", "Create view"));
// std::string FeatName = getUniqueObjectName("MultiView");
// doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewMulti','%s')",FeatName.c_str());
// App::DocumentObject *docObj = getDocument()->getObject(FeatName.c_str());
Expand Down Expand Up @@ -828,7 +828,7 @@ void CmdTechDrawClipGroup::activated(int iMsg)
std::string PageName = page->getNameInDocument();

std::string FeatName = getUniqueObjectName("Clip");
openCommand("Create Clip");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Clip"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewClip','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
updateActive();
Expand Down Expand Up @@ -901,7 +901,7 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
std::string ClipName = clip->getNameInDocument();
std::string ViewName = view->getNameInDocument();

openCommand("ClipGroupAdd");
openCommand(QT_TRANSLATE_NOOP("Command", "ClipGroupAdd"));
doCommand(Doc,"App.activeDocument().%s.ViewObject.Visibility = False",ViewName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",ClipName.c_str(),ViewName.c_str());
doCommand(Doc,"App.activeDocument().%s.ViewObject.Visibility = True",ViewName.c_str());
Expand Down Expand Up @@ -974,7 +974,7 @@ void CmdTechDrawClipGroupRemove::activated(int iMsg)
std::string ClipName = clip->getNameInDocument();
std::string ViewName = view->getNameInDocument();

openCommand("ClipGroupRemove");
openCommand(QT_TRANSLATE_NOOP("Command", "ClipGroupRemove"));
doCommand(Doc,"App.activeDocument().%s.ViewObject.Visibility = False",ViewName.c_str());
doCommand(Doc,"App.activeDocument().%s.removeView(App.activeDocument().%s)",ClipName.c_str(),ViewName.c_str());
doCommand(Doc,"App.activeDocument().%s.ViewObject.Visibility = True",ViewName.c_str());
Expand Down Expand Up @@ -1035,7 +1035,7 @@ void CmdTechDrawSymbol::activated(int iMsg)
{
std::string FeatName = getUniqueObjectName("Symbol");
filename = Base::Tools::escapeEncodeFilename(filename);
openCommand("Create Symbol");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Symbol"));
#if PY_MAJOR_VERSION < 3
doCommand(Doc,"f = open(unicode(\"%s\",'utf-8'),'r')",(const char*)filename.toUtf8());
#else
Expand Down Expand Up @@ -1099,7 +1099,7 @@ void CmdTechDrawDraftView::activated(int iMsg)
draftItemsFound++;
std::string FeatName = getUniqueObjectName("DraftView");
std::string SourceName = (*it)->getNameInDocument();
openCommand("Create DraftView");
openCommand(QT_TRANSLATE_NOOP("Command", "Create DraftView"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDraft','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Source = App.activeDocument().%s",
FeatName.c_str(),SourceName.c_str());
Expand Down Expand Up @@ -1174,7 +1174,7 @@ void CmdTechDrawArchView::activated(int iMsg)

std::string FeatName = getUniqueObjectName("ArchView");
std::string SourceName = archObject->getNameInDocument();
openCommand("Create ArchView");
openCommand(QT_TRANSLATE_NOOP("Command", "Create ArchView"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewArch','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Source = App.activeDocument().%s",FeatName.c_str(),SourceName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
Expand Down Expand Up @@ -1222,7 +1222,7 @@ void CmdTechDrawSpreadsheetView::activated(int iMsg)
}
std::string PageName = page->getNameInDocument();

openCommand("Create spreadsheet view");
openCommand(QT_TRANSLATE_NOOP("Command", "Create spreadsheet view"));
std::string FeatName = getUniqueObjectName("Sheet");
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewSpreadsheet','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Source = App.activeDocument().%s",FeatName.c_str(),SpreadName.c_str());
Expand Down Expand Up @@ -1343,7 +1343,7 @@ void CmdTechDrawExportPageDXF::activated(int iMsg)
}

std::string PageName = page->getNameInDocument();
openCommand("Save page to dxf");
openCommand(QT_TRANSLATE_NOOP("Command", "Save page to dxf"));
doCommand(Doc,"import TechDraw");
fileName = Base::Tools::escapeEncodeFilename(fileName);
doCommand(Doc,"TechDraw.writeDXFPage(App.activeDocument().%s,u\"%s\")",PageName.c_str(),(const char*)fileName.toUtf8());
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/CommandAnnotate.cpp
Expand Up @@ -548,7 +548,7 @@ void CmdTechDrawAnnotation::activated(int iMsg)
std::string PageName = page->getNameInDocument();

std::string FeatName = getUniqueObjectName("Annotation");
openCommand("Create Annotation");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Annotation"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewAnnotation','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
updateActive();
Expand Down
18 changes: 9 additions & 9 deletions src/Mod/TechDraw/Gui/CommandCreateDims.cpp
Expand Up @@ -210,7 +210,7 @@ void CmdTechDrawDimension::activated(int iMsg)
// return;
// }

// openCommand("Create Dimension");
// openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
// doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
// doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
// ,dimType.c_str());
Expand Down Expand Up @@ -330,7 +330,7 @@ void CmdTechDrawRadiusDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Radius");
Expand Down Expand Up @@ -452,7 +452,7 @@ void CmdTechDrawDiameterDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Diameter");
Expand Down Expand Up @@ -549,7 +549,7 @@ void CmdTechDrawLengthDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')", FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'", FeatName.c_str()
, "Distance");
Expand Down Expand Up @@ -650,7 +650,7 @@ void CmdTechDrawHorizontalDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"DistanceX");
Expand Down Expand Up @@ -752,7 +752,7 @@ void CmdTechDrawVerticalDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"DistanceY");
Expand Down Expand Up @@ -843,7 +843,7 @@ void CmdTechDrawAngleDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Angle");
Expand Down Expand Up @@ -932,7 +932,7 @@ void CmdTechDraw3PtAngleDimension::activated(int iMsg)
return;
}

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Type = '%s'",FeatName.c_str()
,"Angle3Pt");
Expand Down Expand Up @@ -1359,7 +1359,7 @@ void CmdTechDrawLandmarkDimension::activated(int iMsg)
TechDraw::LandmarkDimension *dim = 0;
std::string FeatName = getUniqueObjectName("LandmarkDim");

openCommand("Create Dimension");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::LandmarkDimension','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
if (objects.size() == 2) {
Expand Down
6 changes: 3 additions & 3 deletions src/Mod/TechDraw/Gui/CommandDecorate.cpp
Expand Up @@ -248,7 +248,7 @@ void CmdTechDrawHatch::activated(int iMsg)
}
}

openCommand("Create Hatch");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Hatch"));
if (removeOld) {
std::vector<std::pair< int, TechDraw::DrawHatch*> > toRemove;
for (auto& h: hatchObjs) { //all the hatch objects for selected DVP
Expand Down Expand Up @@ -351,7 +351,7 @@ void CmdTechDrawGeometricHatch::activated(int iMsg)
std::stringstream featLabel;
featLabel << FeatName << "FX" << TechDraw::DrawUtil::getIndexFromName(subNames.at(0));

openCommand("Create GeomHatch");
openCommand(QT_TRANSLATE_NOOP("Command", "Create GeomHatch"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawGeomHatch','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.Label = '%s'",FeatName.c_str(),featLabel.str().c_str());

Expand Down Expand Up @@ -419,7 +419,7 @@ void CmdTechDrawImage::activated(int iMsg)
{
std::string FeatName = getUniqueObjectName("Image");
fileName = Base::Tools::escapeEncodeFilename(fileName);
openCommand("Create Image");
openCommand(QT_TRANSLATE_NOOP("Command", "Create Image"));
doCommand(Doc,"App.activeDocument().addObject('TechDraw::DrawViewImage','%s')",FeatName.c_str());
doCommand(Doc,"App.activeDocument().%s.ImageFile = '%s'",FeatName.c_str(),fileName.toUtf8().constData());
doCommand(Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/MDIViewPage.cpp
Expand Up @@ -933,7 +933,7 @@ void MDIViewPage::saveDXF(std::string fileName)
TechDraw::DrawPage* page = m_vpPage->getDrawPage();
std::string PageName = page->getNameInDocument();
fileName = Base::Tools::escapeEncodeFilename(fileName);
Gui::Command::openCommand("Save page to dxf");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Save page to dxf"));
Gui::Command::doCommand(Gui::Command::Doc,"import TechDraw");
Gui::Command::doCommand(Gui::Command::Doc,"TechDraw.writeDXFPage(App.activeDocument().%s,u\"%s\")",
PageName.c_str(),(const char*)fileName.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/QGIViewBalloon.cpp
Expand Up @@ -484,7 +484,7 @@ void QGIViewBalloon::balloonLabelDragged(bool ctrl)
//set feature position (x,y) from graphic position
double x = Rez::appX(balloonLabel->X() / scale),
y = Rez::appX(balloonLabel->Y() / scale);
Gui::Command::openCommand("Drag Balloon");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Drag Balloon"));
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.X = %f", dvb->getNameInDocument(), x);
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Y = %f", dvb->getNameInDocument(), -y);
//if origin is also moving, calc new origin and update feature
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/QGIViewDimension.cpp
Expand Up @@ -671,7 +671,7 @@ void QGIViewDimension::datumLabelDragFinished()

double x = Rez::appX(datumLabel->X()),
y = Rez::appX(datumLabel->Y());
Gui::Command::openCommand("Drag Dimension");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Drag Dimension"));
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.X = %f", dim->getNameInDocument(), x);
Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.Y = %f", dim->getNameInDocument(), -y);
Gui::Command::commitCommand();
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/QGVPage.cpp
Expand Up @@ -1194,10 +1194,10 @@ void QGVPage::mouseReleaseEvent(QMouseEvent *event)

std::string FeatName = getDrawPage()->getDocument()->getUniqueObjectName("Balloon");
std::string PageName = getDrawPage()->getNameInDocument();
Gui::Command::openCommand("Create Balloon");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Balloon"));
TechDraw::DrawViewBalloon *balloon = 0;

Gui::Command::openCommand("Create Balloon");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Balloon"));
Command::doCommand(Command::Doc,"App.activeDocument().addObject('TechDraw::DrawViewBalloon','%s')",FeatName.c_str());
Command::doCommand(Command::Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",PageName.c_str(),FeatName.c_str());

Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/TaskActiveView.cpp
Expand Up @@ -193,7 +193,7 @@ void TaskActiveView::enableTaskButtons(bool b)
bool TaskActiveView::accept()
{
// Base::Console().Message("TAV::accept()\n");
Gui::Command::openCommand("Create ActiveView");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create ActiveView"));
m_symbolFeat = createActiveView();
// m_symbolFeat->requestPaint();
m_symbolFeat->recomputeFeature();
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskCenterLine.cpp
Expand Up @@ -344,7 +344,7 @@ void TaskCenterLine::onFlipChanged()
void TaskCenterLine::createCenterLine(void)
{
// Base::Console().Message("TCL::createCenterLine() - m_type: %d\n", m_type);
Gui::Command::openCommand("Create CenterLine");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create CenterLine"));
// bool vertical = false;
double hShift = ui->qsbHorizShift->rawValue();
double vShift = ui->qsbVertShift->rawValue();
Expand Down Expand Up @@ -389,7 +389,7 @@ void TaskCenterLine::createCenterLine(void)
void TaskCenterLine::updateCenterLine(void)
{
// Base::Console().Message("TCL::updateCenterLine()\n");
Gui::Command::openCommand("Edit CenterLine");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit CenterLine"));
m_cl->m_format.m_color.setValue<QColor>(ui->cpLineColor->color() );
m_cl->m_format.m_weight = ui->dsbWeight->value().getValue();
m_cl->m_format.m_style = ui->cboxStyle->currentIndex() + 1;
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/TaskCosmeticLine.cpp
Expand Up @@ -269,7 +269,7 @@ bool TaskCosmeticLine::accept()
m_partFeat->requestPaint();
} else {
//update mode
Gui::Command::openCommand("Update CosmeticLine");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update CosmeticLine"));
updateCosmeticLine();
m_partFeat->refreshCEGeoms();
m_partFeat->requestPaint();
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskDetail.cpp
Expand Up @@ -470,7 +470,7 @@ void TaskDetail::enableTaskButtons(bool b)
void TaskDetail::createDetail()
{
// Base::Console().Message("TD::createDetail()\n");
Gui::Command::openCommand("Create Detail View");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Detail View"));

m_detailName = m_doc->getUniqueObjectName("Detail");

Expand Down Expand Up @@ -507,7 +507,7 @@ void TaskDetail::updateDetail()
{
// Base::Console().Message("TD::updateDetail()\n");
try {
Gui::Command::openCommand("Update Detail");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update Detail"));
double x = ui->qsbX->rawValue();
double y = ui->qsbY->rawValue();
Base::Vector3d temp(x, y, 0.0);
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskLeaderLine.cpp
Expand Up @@ -398,7 +398,7 @@ void TaskLeaderLine::createLeaderFeature(std::vector<Base::Vector3d> converted)

std::string PageName = m_basePage->getNameInDocument();

Gui::Command::openCommand("Create Leader");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Leader"));
Command::doCommand(Command::Doc,"App.activeDocument().addObject('%s','%s')",
m_leaderType.c_str(),m_leaderName.c_str());
Command::doCommand(Command::Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",
Expand Down Expand Up @@ -452,7 +452,7 @@ void TaskLeaderLine::createLeaderFeature(std::vector<Base::Vector3d> converted)
void TaskLeaderLine::updateLeaderFeature(void)
{
// Base::Console().Message("TTL::updateLeaderFeature()\n");
Gui::Command::openCommand("Edit Leader");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit Leader"));
//waypoints & x,y are updated by QGILeaderLine (for edits only!)
commonFeatureUpdate();
App::Color ac;
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/TaskRichAnno.cpp
Expand Up @@ -355,7 +355,7 @@ void TaskRichAnno::createAnnoFeature()

std::string PageName = m_basePage->getNameInDocument();

Gui::Command::openCommand("Create Anno");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Anno"));
Command::doCommand(Command::Doc,"App.activeDocument().addObject('%s','%s')",
annoType.c_str(),annoName.c_str());
Command::doCommand(Command::Doc,"App.activeDocument().%s.addView(App.activeDocument().%s)",
Expand Down Expand Up @@ -414,7 +414,7 @@ void TaskRichAnno::createAnnoFeature()
void TaskRichAnno::updateAnnoFeature()
{
// Base::Console().Message("TRA::updateAnnoFeature()\n");
Gui::Command::openCommand("Edit Anno");
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit Anno"));
commonFeatureUpdate();
App::Color ac;
ac.setValue<QColor>(ui->cpFrameColor->color());
Expand Down

0 comments on commit 2befcd9

Please sign in to comment.