committed by
Kacper Donat
parent
be0c0e7a74
commit
bbfbb6e059
@@ -107,8 +107,8 @@ CmdTechDrawPageDefault::CmdTechDrawPageDefault() : Command("TechDraw_PageDefault
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Default Page");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("New Page");
|
||||
sToolTipText = QT_TR_NOOP("Creates a new page with the default template");
|
||||
sWhatsThis = "TechDraw_PageDefault";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_PageDefault";
|
||||
@@ -167,8 +167,8 @@ CmdTechDrawPageTemplate::CmdTechDrawPageTemplate() : Command("TechDraw_PageTempl
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Page using Template");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("New Page From Template");
|
||||
sToolTipText = QT_TR_NOOP("Creates a new page from a custom template");
|
||||
sWhatsThis = "TechDraw_PageTemplate";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_PageTemplate";
|
||||
@@ -180,7 +180,7 @@ void CmdTechDrawPageTemplate::activated(int iMsg)
|
||||
QString work_dir = Gui::FileDialog::getWorkingDirectory();
|
||||
QString templateDir = Preferences::defaultTemplateDir();
|
||||
QString templateFileName = Gui::FileDialog::getOpenFileName(
|
||||
Gui::getMainWindow(), QString::fromUtf8(QT_TR_NOOP("Select a Template File")), templateDir,
|
||||
Gui::getMainWindow(), QString::fromUtf8(QT_TR_NOOP("Select a template file")), templateDir,
|
||||
QString::fromUtf8(QT_TR_NOOP("Template (*.svg)")));
|
||||
Gui::FileDialog::setWorkingDirectory(work_dir);// Don't overwrite WD with templateDir
|
||||
|
||||
@@ -237,7 +237,7 @@ CmdTechDrawRedrawPage::CmdTechDrawRedrawPage() : Command("TechDraw_RedrawPage")
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Redraw Page");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Redraws the current page");
|
||||
sWhatsThis = "TechDraw_RedrawPage";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_RedrawPage";
|
||||
@@ -273,7 +273,7 @@ CmdTechDrawPrintAll::CmdTechDrawPrintAll() : Command("TechDraw_PrintAll")
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Print All Pages");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Prints all pages with the print dialog");
|
||||
sWhatsThis = "TechDraw_PrintAll";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_PrintAll";
|
||||
@@ -297,10 +297,11 @@ CmdTechDrawView::CmdTechDrawView() : Command("TechDraw_View")
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert View");
|
||||
sToolTipText = QT_TR_NOOP("Insert a View in current page.\n"
|
||||
"Selected objects, spreadsheets or BIM section planes will be added.\n"
|
||||
"Without a selection, a file browser lets you select a SVG or image file.");
|
||||
sMenuText = QT_TR_NOOP("New View");
|
||||
sToolTipText = QT_TR_NOOP(
|
||||
"Inserts a new view into the current page based on the selected object in the tree view "
|
||||
"or 3D view.\n"
|
||||
"If no object is selected, a file browser opens to select an SVG or image file.");
|
||||
sWhatsThis = "TechDraw_View";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_View";
|
||||
@@ -423,7 +424,9 @@ void CmdTechDrawView::activated(int iMsg)
|
||||
// If nothing was selected, then we offer to insert SVG or Images files.
|
||||
bool dontShowAgain = hGrp->GetBool("DontShowInsertFileMessage", false);
|
||||
if (!dontShowAgain) {
|
||||
auto msgText = QObject::tr("If you want to insert a view from existing objects, please select them before invoking this tool. Without a selection, a file browser will open, to insert a SVG or image file.");
|
||||
auto msgText = QObject::tr("to insert a view from existing objects, "
|
||||
"select them before invoking this tool. Without a selection, a "
|
||||
"file browser will open to insert a SVG or image file.");
|
||||
QMessageBox msgBox(Gui::getMainWindow());
|
||||
msgBox.setText(msgText);
|
||||
auto dontShowMsg = QObject::tr("Do not show this message again");
|
||||
@@ -476,7 +479,7 @@ void CmdTechDrawView::activated(int iMsg)
|
||||
std::string FeatName = getUniqueObjectName("Image");
|
||||
filename = Base::Tools::escapeEncodeFilename(filename);
|
||||
auto filespec = DU::cleanFilespecBackslash(filename.toStdString());
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "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.translateLabel('DrawViewImage', 'Image', '%s')",
|
||||
FeatName.c_str(), FeatName.c_str());
|
||||
@@ -544,8 +547,8 @@ CmdTechDrawBrokenView::CmdTechDrawBrokenView()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Broken View");
|
||||
sToolTipText = QT_TR_NOOP("Insert Broken View");
|
||||
sMenuText = QT_TR_NOOP("Broken View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a new broken view for the selected objects or base view and break definition objects");
|
||||
sWhatsThis = "TechDraw_BrokenView";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_BrokenView";
|
||||
@@ -587,7 +590,7 @@ void CmdTechDrawBrokenView::activated(int iMsg)
|
||||
// we need either a base view (dvp) or some shape objects in the selection
|
||||
if (!dvp && (shapes.empty() && xShapes.empty())) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Empty selection"),
|
||||
QObject::tr("Please select objects to break or a base view and break definition objects."));
|
||||
QObject::tr("Select objects to break or a base view and break definition objects"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -626,7 +629,7 @@ void CmdTechDrawBrokenView::activated(int iMsg)
|
||||
}
|
||||
if (breakObjects.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Break objects found in this selection"));
|
||||
QObject::tr("No break objects found in this selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -636,7 +639,7 @@ void CmdTechDrawBrokenView::activated(int iMsg)
|
||||
if (shapes.empty() &&
|
||||
xShapes.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Shapes, Groups or Links in this selection"));
|
||||
QObject::tr("No shapes, groups, or links in this selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -693,9 +696,9 @@ CmdTechDrawActiveView::CmdTechDrawActiveView() : Command("TechDraw_ActiveView")
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Active View");
|
||||
sToolTipText = "Insert an image of the active 3D model in current page.\n"
|
||||
"If multiple 3D models are active, a selection dialog will be shown.";
|
||||
sMenuText = QT_TR_NOOP("Active View");
|
||||
sToolTipText = "Inserts an image of the open 3D view in the current page.\n"
|
||||
"If multiple 3D views are open, a selection dialog will be shown.";
|
||||
sWhatsThis = "TechDraw_ActiveView";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ActiveView";
|
||||
@@ -724,8 +727,8 @@ CmdTechDrawSectionGroup::CmdTechDrawSectionGroup() : Command("TechDraw_SectionGr
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert a simple or complex Section View");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Section View (Simple or Complex)");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a simple or complex section view in the current page");
|
||||
sWhatsThis = "TechDraw_SectionGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
}
|
||||
@@ -735,8 +738,8 @@ void CmdTechDrawSectionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::SectionGrp - activated(%d)\n", iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -790,12 +793,12 @@ void CmdTechDrawSectionGroup::languageChange()
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawSectionGroup", "Section View"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_SectionView", "Insert simple Section View"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_SectionView", "Inserts a simple section view"));
|
||||
arc1->setStatusTip(arc1->toolTip());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawSectionGroup", "Complex Section"));
|
||||
arc2->setToolTip(
|
||||
QApplication::translate("TechDraw_ComplexSection", "Insert complex Section View"));
|
||||
QApplication::translate("TechDraw_ComplexSection", "Inserts a complex section view"));
|
||||
arc2->setStatusTip(arc2->toolTip());
|
||||
}
|
||||
|
||||
@@ -816,8 +819,8 @@ CmdTechDrawSectionView::CmdTechDrawSectionView() : Command("TechDraw_SectionView
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Section View");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Section View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a new section view based on the selected view in the current page");
|
||||
sWhatsThis = "TechDraw_SectionView";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_SectionView";
|
||||
@@ -828,8 +831,8 @@ void CmdTechDrawSectionView::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -853,7 +856,7 @@ void execSimpleSection(Gui::Command* cmd)
|
||||
cmd->getSelection().getObjectsOfType(TechDraw::DrawViewPart::getClassTypeId());
|
||||
if (baseObj.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select at least 1 DrawViewPart object as Base."));
|
||||
QObject::tr("Select at least 1 DrawViewPart object as base"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -879,8 +882,8 @@ CmdTechDrawComplexSection::CmdTechDrawComplexSection() : Command("TechDraw_Compl
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Complex Section View");
|
||||
sToolTipText = QT_TR_NOOP("Insert a Complex Section View");
|
||||
sMenuText = QT_TR_NOOP("Complex Section View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a complex section view based on the selected view in the current page");
|
||||
sWhatsThis = "TechDraw_ComplexSection";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ComplexSection";
|
||||
@@ -891,8 +894,8 @@ void CmdTechDrawComplexSection::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -970,14 +973,14 @@ void execComplexSection(Gui::Command* cmd)
|
||||
|
||||
if (!baseView) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("I do not know what base view to use."));
|
||||
QObject::tr("No base view selected"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (shapes.empty() && xShapes.empty() && !baseView) {
|
||||
QMessageBox::warning(
|
||||
Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Base View, Shapes, Groups or Links in this selection"));
|
||||
QObject::tr("No base view, shapes, groups, or links in this selection"));
|
||||
return;
|
||||
}
|
||||
if (!profileObject) {
|
||||
@@ -1005,8 +1008,8 @@ CmdTechDrawDetailView::CmdTechDrawDetailView() : Command("TechDraw_DetailView")
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Detail View");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Detail View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a new detail view based on the selected view in the current page");
|
||||
sWhatsThis = "TechDraw_DetailView";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_DetailView";
|
||||
@@ -1020,7 +1023,7 @@ void CmdTechDrawDetailView::activated(int iMsg)
|
||||
getSelection().getObjectsOfType(TechDraw::DrawViewPart::getClassTypeId());
|
||||
if (baseObj.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select at least 1 DrawViewPart object as Base."));
|
||||
QObject::tr("Select at least 1 DrawViewPart object as base"));
|
||||
return;
|
||||
}
|
||||
TechDraw::DrawViewPart* dvp = static_cast<TechDraw::DrawViewPart*>(*(baseObj.begin()));
|
||||
@@ -1049,8 +1052,8 @@ CmdTechDrawProjectionGroup::CmdTechDrawProjectionGroup() : Command("TechDraw_Pro
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Projection Group");
|
||||
sToolTipText = QT_TR_NOOP("Insert multiple linked views of drawable object(s)");
|
||||
sMenuText = QT_TR_NOOP("Projection Group");
|
||||
sToolTipText = QT_TR_NOOP("Inserts multiple new linked views of the selected objects in the current page");
|
||||
sWhatsThis = "TechDraw_ProjectionGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ProjectionGroup";
|
||||
@@ -1119,7 +1122,7 @@ void CmdTechDrawProjectionGroup::activated(int iMsg)
|
||||
}
|
||||
if (shapes.empty() && xShapes.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Shapes, Groups or Links in this selection"));
|
||||
QObject::tr("No shapes, groups, or links in this selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1132,7 +1135,7 @@ void CmdTechDrawProjectionGroup::activated(int iMsg)
|
||||
Base::Vector3d projDir;
|
||||
Gui::WaitCursor wc;
|
||||
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Create Projection Group"));
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Create projection group"));
|
||||
|
||||
std::string multiViewName = getUniqueObjectName("ProjGroup");
|
||||
doCommand(Doc, "App.activeDocument().addObject('TechDraw::DrawProjGroup', '%s')",
|
||||
@@ -1202,7 +1205,7 @@ bool _checkSelectionBalloon(Gui::Command* cmd, unsigned maxObjs)
|
||||
cmd->getDocument()->getObjectsOfType(TechDraw::DrawPage::getClassTypeId());
|
||||
if (pages.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Create a page first."));
|
||||
QObject::tr("Create a page first"));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -1214,7 +1217,7 @@ bool _checkDrawViewPartBalloon(Gui::Command* cmd)
|
||||
auto objFeat(dynamic_cast<TechDraw::DrawViewPart*>(selection[0].getObject()));
|
||||
if (!objFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect selection"),
|
||||
QObject::tr("No View of a Part in selection."));
|
||||
QObject::tr("No view of a part in selection"));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -1271,8 +1274,8 @@ CmdTechDrawBalloon::CmdTechDrawBalloon() : Command("TechDraw_Balloon")
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Balloon Annotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Balloon Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a new balloon annotation in the selected view");
|
||||
sWhatsThis = "TechDraw_Balloon";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_Balloon";
|
||||
@@ -1335,8 +1338,8 @@ CmdTechDrawClipGroup::CmdTechDrawClipGroup() : Command("TechDraw_ClipGroup")
|
||||
{
|
||||
// setting the
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Clip Group");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Clip Group");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a new clip group for the selected view");
|
||||
sWhatsThis = "TechDraw_ClipGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ClipGroup";
|
||||
@@ -1352,7 +1355,7 @@ void CmdTechDrawClipGroup::activated(int iMsg)
|
||||
std::string PageName = page->getNameInDocument();
|
||||
|
||||
std::string FeatName = getUniqueObjectName("Clip");
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "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(),
|
||||
@@ -1372,8 +1375,8 @@ DEF_STD_CMD_A(CmdTechDrawClipGroupAdd)
|
||||
CmdTechDrawClipGroupAdd::CmdTechDrawClipGroupAdd() : Command("TechDraw_ClipGroupAdd")
|
||||
{
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add View to Clip Group");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Add View To Clip Group");
|
||||
sToolTipText = QT_TR_NOOP("Adds the selected view to a clip group");
|
||||
sWhatsThis = "TechDraw_ClipGroupAdd";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ClipGroupAdd";
|
||||
@@ -1385,7 +1388,7 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
|
||||
std::vector<Gui::SelectionObject> selection = getSelection().getSelectionEx();
|
||||
if (selection.size() != 2) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select one Clip group and one View."));
|
||||
QObject::tr("Select one clip group and one view"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1402,12 +1405,12 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
|
||||
}
|
||||
if (!view) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select exactly one View to add to group."));
|
||||
QObject::tr("Select exactly one view to add to group"));
|
||||
return;
|
||||
}
|
||||
if (!clip) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select exactly one Clip group."));
|
||||
QObject::tr("Select exactly one clip group"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1416,7 +1419,7 @@ void CmdTechDrawClipGroupAdd::activated(int iMsg)
|
||||
|
||||
if (pageClip != pageView) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Clip and View must be from same Page."));
|
||||
QObject::tr("Clip and view must be from same page"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1456,8 +1459,8 @@ DEF_STD_CMD_A(CmdTechDrawClipGroupRemove)
|
||||
CmdTechDrawClipGroupRemove::CmdTechDrawClipGroupRemove() : Command("TechDraw_ClipGroupRemove")
|
||||
{
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Remove View from Clip Group");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Remove From Clip Group");
|
||||
sToolTipText = QT_TR_NOOP("Removes a view based on the selected clip group");
|
||||
sWhatsThis = "TechDraw_ClipGroupRemove";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ClipGroupRemove";
|
||||
@@ -1469,7 +1472,7 @@ void CmdTechDrawClipGroupRemove::activated(int iMsg)
|
||||
auto dObj(getSelection().getObjectsOfType(TechDraw::DrawView::getClassTypeId()));
|
||||
if (dObj.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select exactly one View to remove from Group."));
|
||||
QObject::tr("Select exactly one view to remove from group"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1488,7 +1491,7 @@ void CmdTechDrawClipGroupRemove::activated(int iMsg)
|
||||
|
||||
if (!clip) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("View does not belong to a Clip"));
|
||||
QObject::tr("View does not belong to a clip"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1529,8 +1532,8 @@ CmdTechDrawSymbol::CmdTechDrawSymbol() : Command("TechDraw_Symbol")
|
||||
{
|
||||
// setting the Gui eye-candy
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert SVG Symbol");
|
||||
sToolTipText = QT_TR_NOOP("Insert symbol from an SVG file");
|
||||
sMenuText = QT_TR_NOOP("Insert SVG");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a symbol from an SVG file");
|
||||
sWhatsThis = "TechDraw_Symbol";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Symbol";
|
||||
@@ -1550,7 +1553,7 @@ void CmdTechDrawSymbol::activated(int iMsg)
|
||||
Gui::getMainWindow(), QObject::tr("Choose an SVG file to open"),
|
||||
Preferences::defaultSymbolDir(),
|
||||
QStringLiteral("%1 (*.svg *.svgz);;%2 (*.*)")
|
||||
.arg(QObject::tr("Scalable Vector Graphic"), QObject::tr("All Files")));
|
||||
.arg(QObject::tr("Scalable vector graphic"), QObject::tr("All files")));
|
||||
|
||||
if (!filename.isEmpty()) {
|
||||
std::string FeatName = getUniqueObjectName("Symbol");
|
||||
@@ -1594,8 +1597,9 @@ CmdTechDrawDraftView::CmdTechDrawDraftView() : Command("TechDraw_DraftView")
|
||||
{
|
||||
// setting the Gui eye-candy
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Draft Workbench Object");
|
||||
sToolTipText = QT_TR_NOOP("Insert a View of a Draft Workbench object");
|
||||
sMenuText = QT_TR_NOOP("Draft View");
|
||||
//: "Draft" is a workbench and should not be translated
|
||||
sToolTipText = QT_TR_NOOP("Inserts a view of a Draft object");
|
||||
sWhatsThis = "TechDraw_NewDraft";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_DraftView";
|
||||
@@ -1610,7 +1614,7 @@ void CmdTechDrawDraftView::activated(int iMsg)
|
||||
|
||||
if (objects.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select at least one object."));
|
||||
QObject::tr("Select at least one object"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1657,8 +1661,8 @@ CmdTechDrawArchView::CmdTechDrawArchView() : Command("TechDraw_ArchView")
|
||||
{
|
||||
// setting the Gui eye-candy
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert BIM Workbench Object");
|
||||
sToolTipText = QT_TR_NOOP("Insert a View of a BIM Workbench section plane");
|
||||
sMenuText = QT_TR_NOOP("BIM View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a view of a BIM section plane");
|
||||
sWhatsThis = "TechDraw_NewArch";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ArchView";
|
||||
@@ -1685,13 +1689,13 @@ void CmdTechDrawArchView::activated(int iMsg)
|
||||
}
|
||||
if (archCount > 1) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Please select only 1 BIM section plane."));
|
||||
QObject::tr("Select only 1 BIM section plane"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!archObject) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No BIM section plane in selection."));
|
||||
QObject::tr("No BIM section plane in selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1730,8 +1734,8 @@ CmdTechDrawSpreadsheetView::CmdTechDrawSpreadsheetView() : Command("TechDraw_Spr
|
||||
{
|
||||
// setting the
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Spreadsheet View");
|
||||
sToolTipText = QT_TR_NOOP("Insert View to a spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("Spreadsheet View");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a view of a spreadsheet in the current page");
|
||||
sWhatsThis = "TechDraw_SpreadsheetView";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_SpreadsheetView";
|
||||
@@ -1750,7 +1754,7 @@ void CmdTechDrawSpreadsheetView::activated(int iMsg)
|
||||
getSelection().getObjectsOfType(Spreadsheet::Sheet::getClassTypeId());
|
||||
if (spreads.size() != 1) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select exactly one Spreadsheet object."));
|
||||
QObject::tr("Select exactly one spreadsheet object"));
|
||||
return;
|
||||
}
|
||||
std::string SpreadName = spreads.front()->getNameInDocument();
|
||||
@@ -1804,7 +1808,7 @@ CmdTechDrawExportPageSVG::CmdTechDrawExportPageSVG() : Command("TechDraw_ExportP
|
||||
{
|
||||
sGroup = QT_TR_NOOP("File");
|
||||
sMenuText = QT_TR_NOOP("Export Page as SVG");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Exports the current page as an SVG");
|
||||
sWhatsThis = "TechDraw_ExportPageSVG";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ExportPageSVG";
|
||||
@@ -1829,7 +1833,7 @@ void CmdTechDrawExportPageSVG::activated(int iMsg)
|
||||
}
|
||||
else {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("No Drawing Page"),
|
||||
QObject::tr("No drawing page"),
|
||||
QObject::tr("FreeCAD could not find a page to export"));
|
||||
return;
|
||||
}
|
||||
@@ -1847,7 +1851,7 @@ CmdTechDrawExportPageDXF::CmdTechDrawExportPageDXF() : Command("TechDraw_ExportP
|
||||
{
|
||||
sGroup = QT_TR_NOOP("File");
|
||||
sMenuText = QT_TR_NOOP("Export Page as DXF");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Exports the current page as a DXF");
|
||||
sWhatsThis = "TechDraw_ExportPageDXF";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ExportPageDXF";
|
||||
@@ -1865,7 +1869,7 @@ void CmdTechDrawExportPageDXF::activated(int iMsg)
|
||||
for (auto& v : views) {
|
||||
if (v->isDerivedFrom<TechDraw::DrawViewArch>()) {
|
||||
QMessageBox::StandardButton rc = QMessageBox::question(
|
||||
Gui::getMainWindow(), QObject::tr("Can not export selection"),
|
||||
Gui::getMainWindow(), QObject::tr("Cannot export selection"),
|
||||
QObject::tr("Page contains DrawViewArch which will not be exported. Continue?"),
|
||||
QMessageBox::StandardButtons(QMessageBox::Yes | QMessageBox::No));
|
||||
if (rc == QMessageBox::No) {
|
||||
@@ -1910,8 +1914,8 @@ CmdTechDrawProjectShape::CmdTechDrawProjectShape() : Command("TechDraw_ProjectSh
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Project shape...");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Project Shape");
|
||||
sToolTipText = QT_TR_NOOP("Creates a projected geometry of the selected object in the 3D view from the current camera angle");
|
||||
sWhatsThis = "TechDraw_ProjectShape";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ProjectShape";
|
||||
|
||||
Reference in New Issue
Block a user