committed by
Kacper Donat
parent
be0c0e7a74
commit
bbfbb6e059
@@ -82,7 +82,7 @@ PyMOD_INIT_FUNC(TechDraw)
|
||||
PyMOD_Return(nullptr);
|
||||
}
|
||||
PyObject* mod = TechDraw::initModule();
|
||||
Base::Console().log("Loading TechDraw module... done\n");
|
||||
Base::Console().log("Loading TechDraw module… done\n");
|
||||
|
||||
TechDraw::DrawPage ::init();
|
||||
TechDraw::DrawView ::init();
|
||||
|
||||
@@ -29,13 +29,13 @@ namespace TechDraw {
|
||||
|
||||
const int ArrowPropEnum::ArrowCount = 8;
|
||||
const char* ArrowPropEnum::ArrowTypeEnums[]= {
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled Arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open Arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open arrow"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Tick"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Dot"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open Circle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Open circle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Fork"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled Triangle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "Filled triangle"),
|
||||
QT_TRANSLATE_NOOP("ArrowPropEnum", "None"),
|
||||
nullptr};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ PyObject *CenterLinePy::PyMake(struct _typeobject *, PyObject *, PyObject *) //
|
||||
{
|
||||
// never create such objects with the constructor
|
||||
PyErr_SetString(PyExc_RuntimeError,
|
||||
"You cannot create an instance of the abstract class 'CenterLine'.");
|
||||
"Cannot create an instance of the abstract class 'CenterLine'.");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -111,18 +111,18 @@ PROPERTY_SOURCE(TechDraw::DrawBrokenView, TechDraw::DrawViewPart)
|
||||
|
||||
DrawBrokenView::DrawBrokenView()
|
||||
{
|
||||
static const char* sgroup = "Broken View";
|
||||
static const char* sgroup = "Broken view";
|
||||
constexpr double DefaultGapSizeMm{10.0};
|
||||
|
||||
ADD_PROPERTY_TYPE(Breaks, (nullptr), sgroup, App::Prop_None,
|
||||
"Objects in the 3d view that define the start/end points and direction of breaks in this view.");
|
||||
"Objects in the 3D view that define the start/end points and direction of breaks in this view.");
|
||||
Breaks.setScope(App::LinkScope::Global);
|
||||
Breaks.setAllowExternal(true);
|
||||
ADD_PROPERTY_TYPE(Gap,
|
||||
(DefaultGapSizeMm),
|
||||
sgroup,
|
||||
App::Prop_None,
|
||||
"The separation distance for breaks in this view (unscaled 3d length).");
|
||||
"The separation distance for breaks in this view (unscaled 3D length).");
|
||||
}
|
||||
|
||||
|
||||
@@ -557,7 +557,7 @@ std::pair<Base::Vector3d, Base::Vector3d> DrawBrokenView::breakBoundsFromEdge(co
|
||||
}
|
||||
|
||||
if (!DU::fpCompare(fabs(direction.Dot(stdY)), 1.0, EWTOLERANCE) ) {
|
||||
Base::Console().message("DBV::breakBoundsFromEdge - direction is not X or Y\n");
|
||||
Base::Console().message("DBV::breakBoundsFromEdge - direction is neither X nor Y\n");
|
||||
// TODO: throw? return nonsense?
|
||||
}
|
||||
|
||||
|
||||
@@ -508,7 +508,7 @@ int DrawProjGroup::removeProjection(const char* viewProjType)
|
||||
// TODO: shouldn't be able to delete "Front" unless deleting whole group
|
||||
if (checkViewProjType(viewProjType)) {
|
||||
if (!hasProjection(viewProjType)) {
|
||||
throw Base::RuntimeError("The projection doesn't exist in the group");
|
||||
throw Base::RuntimeError("The projection does not exist in the group");
|
||||
}
|
||||
|
||||
// Iterate through the child views and find the projection type
|
||||
|
||||
@@ -206,7 +206,7 @@ bool DrawSVGTemplate::getTemplateDocument(std::string sourceFile, QDomDocument&
|
||||
}
|
||||
QFile templateFile(QString::fromStdString(sourceFile));
|
||||
if (!templateFile.open(QIODevice::ReadOnly)) {
|
||||
Base::Console().error("DrawSVGTemplate::processTemplate can't read embedded template %s!\n", PageResult.getValue());
|
||||
Base::Console().error("DrawSVGTemplate::processTemplate cannot read embedded template %s!\n", PageResult.getValue());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ DrawViewPart::DrawViewPart()
|
||||
ADD_PROPERTY_TYPE(XSource, (nullptr), group, App::Prop_None, "External 3D Shape to view");
|
||||
|
||||
ADD_PROPERTY_TYPE(Direction, (0.0, -1.0, 0.0), group, App::Prop_None,
|
||||
"Projection Plane normal. The direction you are looking from.");
|
||||
"Projection Plane normal. View direction for the projection plane");
|
||||
ADD_PROPERTY_TYPE(XDirection, (1.0, 0.0, 0.0), group, App::Prop_None,
|
||||
"Projection Plane X Axis in R3. Rotates/Mirrors View");
|
||||
ADD_PROPERTY_TYPE(Perspective, (false), group, App::Prop_None,
|
||||
@@ -562,7 +562,7 @@ void DrawViewPart::findFacesNew(const std::vector<BaseGeomPtr> &goEdges)
|
||||
|
||||
if (sortedWires.empty()) {
|
||||
Base::Console().warning(
|
||||
"DVP::findFacesNew - %s - Can't make faces from projected edges\n",
|
||||
"DVP::findFacesNew - %s - Cannot make faces from projected edges\n",
|
||||
getNameInDocument());
|
||||
}
|
||||
else {
|
||||
@@ -685,7 +685,7 @@ void DrawViewPart::findFacesOld(const std::vector<BaseGeomPtr> &goEdges)
|
||||
sortedWires = eWalker.execute(newEdges);
|
||||
if (sortedWires.empty()) {
|
||||
Base::Console().warning(
|
||||
"DVP::findFacesOld - %s -Can't make faces from projected edges\n",
|
||||
"DVP::findFacesOld - %s -Cannott make faces from projected edges\n",
|
||||
getNameInDocument());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ void DrawViewSection::makeSectionCut(const TopoDS_Shape& baseShape)
|
||||
testBox.SetGap(0.0);
|
||||
if (testBox.IsVoid()) {// prism & input don't intersect. rawShape is
|
||||
// garbage, don't bother.
|
||||
Base::Console().warning("DVS::makeSectionCut - prism & input don't intersect - %s\n",
|
||||
Base::Console().warning("DVS::makeSectionCut - prism & input don not intersect - %s\n",
|
||||
Label.getValue());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ PyObject* DrawViewSymbolPy::dumpSymbol(PyObject *args)
|
||||
if (outfile.good()) {
|
||||
outfile.close();
|
||||
} else {
|
||||
std::string error = std::string("Can't write ");
|
||||
std::string error = std::string("Cannot write");
|
||||
error += fileSpec;
|
||||
PyErr_SetString(PyExc_RuntimeError, error.c_str());
|
||||
return nullptr;
|
||||
|
||||
@@ -43,7 +43,7 @@ def moveViews():
|
||||
s = FreeCADGui.Selection.getSelection()
|
||||
|
||||
if len(s) != 2:
|
||||
print("Please select 1 Drawing Page and 1 TechDraw Page")
|
||||
print("Select 1 drawing page and 1 TechDraw page")
|
||||
return
|
||||
|
||||
print("First object in selection is a: ", s[0].TypeId)
|
||||
@@ -59,7 +59,7 @@ def moveViews():
|
||||
tPage = s[0]
|
||||
dPage = s[1]
|
||||
else:
|
||||
print("Please select 1 Drawing Page and 1 TechDraw Page")
|
||||
print("Select 1 drawing page and 1 TechDraw page")
|
||||
return
|
||||
|
||||
for o in dPage.OutList:
|
||||
|
||||
@@ -121,7 +121,7 @@ PyMOD_INIT_FUNC(TechDrawGui)
|
||||
}
|
||||
PyObject* mod = TechDrawGui::initModule();
|
||||
|
||||
Base::Console().log("Loading TechDrawGui module... done\n");
|
||||
Base::Console().log("Loading TechDrawGui module… done\n");
|
||||
|
||||
// instantiating the commands
|
||||
CreateTechDrawCommands();
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -54,7 +54,7 @@ void incorrectSelection()
|
||||
QMessageBox::warning(
|
||||
Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("You must select 2 vertexes or 1 edge\n")
|
||||
QObject::tr("You must select 2 vertices or 1 edge\n")
|
||||
);
|
||||
}
|
||||
|
||||
@@ -122,8 +122,8 @@ CmdTechDrawAlignVertexesVertically::CmdTechDrawAlignVertexesVertically()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Align vertexes/edge vertically by view rotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Align Vertices/Edge Vertically");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the selected vertices or edges vertically to the view rotation");
|
||||
sWhatsThis = "TechDraw_AlignGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
}
|
||||
@@ -155,8 +155,8 @@ CmdTechDrawAlignVertexesHorizontally::CmdTechDrawAlignVertexesHorizontally()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Align vertexes/edge horizontally by view rotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Align Vertices/Edge Horizontally");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the selected vertices or edges horizontally to the view rotation");
|
||||
sWhatsThis = "TechDraw_AlignGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
}
|
||||
|
||||
@@ -89,8 +89,8 @@ CmdTechDrawLeaderLine::CmdTechDrawLeaderLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Leaderline to View");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Leader Line");
|
||||
sToolTipText = QT_TR_NOOP("Adds a leader line");
|
||||
sWhatsThis = "TechDraw_LeaderLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_LeaderLine";
|
||||
@@ -102,8 +102,8 @@ void CmdTechDrawLeaderLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -117,13 +117,13 @@ void CmdTechDrawLeaderLine::activated(int iMsg)
|
||||
if (!selection.empty()) {
|
||||
baseFeat = dynamic_cast<TechDraw::DrawView *>(selection[0].getObject());
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Can not attach leader. No base View selected."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Cannot attach leader. No base view selected."));
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a base View for the line."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a base view for the line"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -151,8 +151,8 @@ CmdTechDrawRichTextAnnotation::CmdTechDrawRichTextAnnotation()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Rich Text Annotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Rich Text Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a rich text annotation in the current page");
|
||||
sWhatsThis = "TechDraw_RichTextAnnotation";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_RichTextAnnotation";
|
||||
@@ -163,8 +163,8 @@ void CmdTechDrawRichTextAnnotation::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;
|
||||
}
|
||||
|
||||
@@ -203,8 +203,8 @@ CmdTechDrawCosmeticVertexGroup::CmdTechDrawCosmeticVertexGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Cosmetic Vertex");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Vertex");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a cosmetic vertex");
|
||||
sWhatsThis = "TechDraw_CosmeticVertexGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
// eType = ForEdit;
|
||||
@@ -215,8 +215,8 @@ void CmdTechDrawCosmeticVertexGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::CosmeticVertexGroup - 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;
|
||||
}
|
||||
|
||||
@@ -278,16 +278,16 @@ void CmdTechDrawCosmeticVertexGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawCosmeticVertexGroup", "Add Cosmetic Vertex"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_CosmeticVertex", "Inserts a Cosmetic Vertex into a View"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawCosmeticVertexGroup", "Cosmetic vertex"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_CosmeticVertex", "Inserts a cosmetic vertex into a view"));
|
||||
arc1->setStatusTip(arc1->toolTip());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdMidpoints", "Add Midpoint Vertices"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_Midpoints", "Inserts Cosmetic Vertices at Midpoint of selected Edges"));
|
||||
arc2->setText(QApplication::translate("CmdMidpoints", "Midpoint vertices"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_Midpoints", "Inserts cosmetic vertices at the midpoint of the selected edges"));
|
||||
arc2->setStatusTip(arc2->toolTip());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdQuadrants", "Add Quadrant Vertices"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_Quadrants", "Inserts Cosmetic Vertices at Quadrant Points of selected Circles"));
|
||||
arc3->setText(QApplication::translate("CmdQuadrants", "Quadrant vertices"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_Quadrants", "Inserts cosmetic vertices at the quadrant points of the selected circles"));
|
||||
arc3->setStatusTip(arc3->toolTip());
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ void execMidpoints(Gui::Command* cmd)
|
||||
if (!dvp || selectedEdges.empty())
|
||||
return;
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Add Midpoint Vertices"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Add midpoint vertices"));
|
||||
|
||||
const TechDraw::BaseGeomPtrVector edges = dvp->getEdgeGeometry();
|
||||
for (auto& s: selectedEdges) {
|
||||
@@ -363,7 +363,7 @@ void execQuadrants(Gui::Command* cmd)
|
||||
if (!dvp || selectedEdges.empty())
|
||||
return;
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Add Quadrant Vertices"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Quadrant vertices"));
|
||||
|
||||
const TechDraw::BaseGeomPtrVector edges = dvp->getEdgeGeometry();
|
||||
for (auto& s: selectedEdges) {
|
||||
@@ -390,8 +390,8 @@ CmdTechDrawCosmeticVertex::CmdTechDrawCosmeticVertex()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Vertex");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Vertex");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic vertex");
|
||||
sWhatsThis = "TechDraw_CosmeticVertex";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_CosmeticVertex";
|
||||
@@ -402,8 +402,8 @@ void CmdTechDrawCosmeticVertex::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;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ void CmdTechDrawCosmeticVertex::activated(int iMsg)
|
||||
TechDraw::DrawViewPart* baseFeat = nullptr;
|
||||
baseFeat = dynamic_cast<TechDraw::DrawViewPart*>((*shapes.begin()));
|
||||
if (!baseFeat) {
|
||||
Base::Console().message("CMD::CosmeticVertex - 1st shape is not DVP. WTF?\n");
|
||||
Base::Console().message("CMD::CosmeticVertex - 1st shape is not DVP.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -451,8 +451,8 @@ CmdTechDrawMidpoints::CmdTechDrawMidpoints()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Midpoint Vertices");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Midpoint Vertices");
|
||||
sToolTipText = QT_TR_NOOP("Adds cosmetic vertices at the midpoint of the selected edges");
|
||||
sWhatsThis = "TechDraw_Midpoints";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Midpoints";
|
||||
@@ -463,8 +463,8 @@ void CmdTechDrawMidpoints::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;
|
||||
}
|
||||
execMidpoints(this);
|
||||
@@ -490,8 +490,8 @@ CmdTechDrawQuadrants::CmdTechDrawQuadrants()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Quadrant Vertices");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Quadrant Vertices");
|
||||
sToolTipText = QT_TR_NOOP("Adds cosmetic vertices at the quadrant points of the selected circles");
|
||||
sWhatsThis = "TechDraw_Quadrants";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Quadrants";
|
||||
@@ -502,8 +502,8 @@ void CmdTechDrawQuadrants::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;
|
||||
}
|
||||
execQuadrants(this);
|
||||
@@ -529,8 +529,8 @@ CmdTechDrawAnnotation::CmdTechDrawAnnotation()
|
||||
{
|
||||
// setting the Gui eye-candy
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Annotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Text Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an editable text block annotation to the current page");
|
||||
sWhatsThis = "TechDraw_NewAnnotation";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Annotation";
|
||||
@@ -579,8 +579,8 @@ CmdTechDrawCenterLineGroup::CmdTechDrawCenterLineGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Center Line");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Centerline");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a centerline to a face, or between 2 lines or edges");
|
||||
sWhatsThis = "TechDraw_CenterLineGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
// eType = ForEdit;
|
||||
@@ -591,8 +591,8 @@ void CmdTechDrawCenterLineGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::CenterLineGroup - 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;
|
||||
}
|
||||
|
||||
@@ -652,16 +652,16 @@ void CmdTechDrawCenterLineGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawCenterLineGroup", "Add Centerline to Faces"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_FaceCenterLine", "Adds a Centerline to Faces"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawCenterLineGroup", "Centerline faces"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_FaceCenterLine", "Adds a centerline to selected faces"));
|
||||
arc1->setStatusTip(arc1->toolTip());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("Cmd2LineCenterLine", "Add Centerline between 2 Lines"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_2LineCenterLine", "Adds a Centerline between 2 Lines"));
|
||||
arc2->setText(QApplication::translate("Cmd2LineCenterLine", "Centerline 2 lines"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_2LineCenterLine", "Adds a centerline between 2 selected lines"));
|
||||
arc2->setStatusTip(arc2->toolTip());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("Cmd2PointCenterLine", "Add Centerline between 2 Points"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_2PointCenterLine", "Adds a Centerline between 2 Points"));
|
||||
arc3->setText(QApplication::translate("Cmd2PointCenterLine", "Centerline 2 points"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_2PointCenterLine", "Adds a centerline between 2 selected points"));
|
||||
arc3->setStatusTip(arc3->toolTip());
|
||||
}
|
||||
|
||||
@@ -682,8 +682,8 @@ CmdTechDrawFaceCenterLine::CmdTechDrawFaceCenterLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Centerline to Faces");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Centerline Between 2 Faces");
|
||||
sToolTipText = QT_TR_NOOP("Adds a centerline to selected faces");
|
||||
sWhatsThis = "TechDraw_FaceCenterLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_FaceCenterLine";
|
||||
@@ -695,8 +695,8 @@ void CmdTechDrawFaceCenterLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -722,14 +722,14 @@ void execCenterLine(Gui::Command* cmd)
|
||||
if (!selection.empty()) {
|
||||
baseFeat = dynamic_cast<TechDraw::DrawViewPart *>(selection[0].getObject());
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No base View in Selection."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No base view in selection"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a base View for the line."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a base view for the line"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -755,8 +755,8 @@ void execCenterLine(Gui::Command* cmd)
|
||||
|
||||
if ( (faceNames.empty()) &&
|
||||
(edgeNames.empty()) ) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select Faces or an existing CenterLine."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select faces or an existing centerline"));
|
||||
return;
|
||||
}
|
||||
if (!faceNames.empty()) {
|
||||
@@ -765,14 +765,14 @@ void execCenterLine(Gui::Command* cmd)
|
||||
faceNames,
|
||||
false));
|
||||
} else if (edgeNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No CenterLine in selection."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No CenterLine in selection"));
|
||||
return;
|
||||
} else {
|
||||
TechDraw::CenterLine* cl = baseFeat->getCenterLineBySelection(edgeNames.front());
|
||||
if (!cl) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is not a CenterLine."));
|
||||
QObject::tr("Selection is not a centerline"));
|
||||
return;
|
||||
}
|
||||
Gui::Control().showDialog(new TaskDlgCenterLine(baseFeat,
|
||||
@@ -793,8 +793,8 @@ CmdTechDraw2LineCenterLine::CmdTechDraw2LineCenterLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Centerline between 2 Lines");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Centerline Between 2 Lines");
|
||||
sToolTipText = QT_TR_NOOP("Adds a centerline between 2 selected lines");
|
||||
sWhatsThis = "TechDraw_2LineCenterLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_2LineCenterline";
|
||||
@@ -806,8 +806,8 @@ void CmdTechDraw2LineCenterLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -842,8 +842,8 @@ void exec2LineCenterLine(Gui::Command* cmd)
|
||||
} else if (selectedEdges.size() == 1) {
|
||||
TechDraw::CenterLine* cl = dvp->getCenterLineBySelection(selectedEdges.front());
|
||||
if (!cl) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is not a CenterLine."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection is not a Centerline"));
|
||||
return;
|
||||
}
|
||||
Gui::Control().showDialog(new TaskDlgCenterLine(dvp,
|
||||
@@ -851,8 +851,8 @@ void exec2LineCenterLine(Gui::Command* cmd)
|
||||
selectedEdges.front(),
|
||||
true));
|
||||
} else { //not create, not edit, what is this???
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection not understood."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection not understood"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -868,8 +868,8 @@ CmdTechDraw2PointCenterLine::CmdTechDraw2PointCenterLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Centerline between 2 Points");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Centerline Between 2 Points");
|
||||
sToolTipText = QT_TR_NOOP("Adds a centerline between 2 selected points");
|
||||
sWhatsThis = "TechDraw_2PointCenterLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_2PointCenterline";
|
||||
@@ -881,8 +881,8 @@ void CmdTechDraw2PointCenterLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -908,15 +908,15 @@ void exec2PointCenterLine(Gui::Command* cmd)
|
||||
std::vector<Gui::SelectionObject> selection = cmd->getSelection().getSelectionEx();
|
||||
TechDraw::DrawViewPart* baseFeat = nullptr;
|
||||
if (selection.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a base View for the line."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a base view for the line"));
|
||||
return;
|
||||
}
|
||||
|
||||
baseFeat = dynamic_cast<TechDraw::DrawViewPart *>(selection[0].getObject());
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No base View in Selection."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No base view in selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -942,8 +942,8 @@ void exec2PointCenterLine(Gui::Command* cmd)
|
||||
|
||||
if (vertexNames.empty() &&
|
||||
edgeNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select 2 Vertexes or an existing CenterLine."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select 2 vertices or an existing centerline"));
|
||||
return;
|
||||
}
|
||||
if (!vertexNames.empty() && (vertexNames.size() == 2)) {
|
||||
@@ -954,8 +954,8 @@ void exec2PointCenterLine(Gui::Command* cmd)
|
||||
} else if (!edgeNames.empty() && (edgeNames.size() == 1)) {
|
||||
TechDraw::CenterLine* cl = baseFeat->getCenterLineBySelection(edgeNames.front());
|
||||
if (!cl) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is not a CenterLine."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection is not a centerline"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -964,8 +964,8 @@ void exec2PointCenterLine(Gui::Command* cmd)
|
||||
edgeNames.front(),
|
||||
false));
|
||||
} else if (vertexNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Need 2 Vertices or 1 CenterLine."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select 2 vertices or 1 centerline"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -981,8 +981,8 @@ CmdTechDraw2PointCosmeticLine::CmdTechDraw2PointCosmeticLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Line Through 2 Points");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Line Through 2 Points");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic line that passes through 2 selected points");
|
||||
sWhatsThis = "TechDraw_2PointCosmeticLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Line2Points";
|
||||
@@ -994,8 +994,8 @@ void CmdTechDraw2PointCosmeticLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -1025,7 +1025,7 @@ void execLine2Points(Gui::Command* cmd)
|
||||
std::vector< std::pair<Part::Feature*, std::string> > objs3D;
|
||||
if (selection.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is empty."));
|
||||
QObject::tr("Selection is empty"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1047,16 +1047,16 @@ void execLine2Points(Gui::Command* cmd)
|
||||
}
|
||||
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a base View for the line."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a base view for the line"));
|
||||
return;
|
||||
}
|
||||
|
||||
//TODO: should be a smarter check
|
||||
if ( (subNames2D.empty()) &&
|
||||
(objs3D.empty()) ) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Not enough points in selection."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Not enough points in the selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1075,8 +1075,8 @@ void execLine2Points(Gui::Command* cmd)
|
||||
if (!edgeNames.empty() && (edgeNames.size() == 1)) {
|
||||
TechDraw::CosmeticEdge* ce = baseFeat->getCosmeticEdgeBySelection(edgeNames.front());
|
||||
if (!ce || ce->m_geometry->getGeomType() != GeomType::GENERIC) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is not a Cosmetic Line."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection is not a cosmetic line"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1111,8 +1111,8 @@ void execLine2Points(Gui::Command* cmd)
|
||||
}
|
||||
|
||||
if (points.size() != 2) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select 2 Vertexes."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select 2 vertices"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1132,8 +1132,8 @@ CmdTechDrawCosmeticCircle::CmdTechDrawCosmeticCircle()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Circle");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Circle");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic circle to the current page");
|
||||
sWhatsThis = "TechDraw_CosmeticCircle";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_CosmeticCircle";
|
||||
@@ -1145,8 +1145,8 @@ void CmdTechDrawCosmeticCircle::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -1175,8 +1175,8 @@ void execCosmeticCircle(Gui::Command* cmd)
|
||||
std::vector<std::string> subNames2D;
|
||||
std::vector< std::pair<Part::Feature*, std::string> > objs3D;
|
||||
if (selection.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is empty."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection is empty"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1198,8 +1198,8 @@ void execCosmeticCircle(Gui::Command* cmd)
|
||||
}
|
||||
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a base View for the circle."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a base view for the circle"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1220,8 +1220,8 @@ void execCosmeticCircle(Gui::Command* cmd)
|
||||
if (!ce
|
||||
|| !(ce->m_geometry->getGeomType() == GeomType::CIRCLE
|
||||
|| ce->m_geometry->getGeomType() == GeomType::ARCOFCIRCLE)) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Selection is not a Cosmetic Circle or a Cosmetic Arc of Circle."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Selection is not a cosmetic circle or a cosmetic arc of a circle"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1256,8 +1256,8 @@ void execCosmeticCircle(Gui::Command* cmd)
|
||||
}
|
||||
|
||||
if (points.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("Please select a center for the circle."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Please select a center for the circle"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1283,7 +1283,7 @@ CmdTechDrawCosmeticEraser::CmdTechDrawCosmeticEraser()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Remove Cosmetic Object");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Removes the selected cosmetic object from the page");
|
||||
sWhatsThis = "TechDraw_CosmeticEraser";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_CosmeticEraser";
|
||||
@@ -1294,8 +1294,8 @@ void CmdTechDrawCosmeticEraser::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;
|
||||
}
|
||||
|
||||
@@ -1400,8 +1400,8 @@ CmdTechDrawDecorateLine::CmdTechDrawDecorateLine()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Change Appearance of Lines");
|
||||
sToolTipText = QT_TR_NOOP("Change Appearance of selected Lines");
|
||||
sMenuText = QT_TR_NOOP("Edit Line Appearance");
|
||||
sToolTipText = QT_TR_NOOP("Opens the 'Line decoration' dialog to edit the selected lines");
|
||||
sWhatsThis = "TechDraw_DecorateLine";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_DecorateLine";
|
||||
@@ -1413,8 +1413,8 @@ void CmdTechDrawDecorateLine::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -1425,8 +1425,8 @@ void CmdTechDrawDecorateLine::activated(int iMsg)
|
||||
|
||||
std::vector<Gui::SelectionObject> selection = getSelection().getSelectionEx();
|
||||
if (selection.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("You must select a View and/or lines."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("You must select a view and/or lines"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1445,8 +1445,8 @@ void CmdTechDrawDecorateLine::activated(int iMsg)
|
||||
}
|
||||
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No View in Selection."));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No view in selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1482,8 +1482,8 @@ CmdTechDrawShowAll::CmdTechDrawShowAll()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Show/Hide Invisible Edges");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Toggle Edge Visibilty");
|
||||
sToolTipText = QT_TR_NOOP("Toggles the visibility of the selected edges");
|
||||
sWhatsThis = "TechDraw_ShowAll";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ShowAll";
|
||||
@@ -1494,8 +1494,8 @@ void CmdTechDrawShowAll::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;
|
||||
}
|
||||
|
||||
@@ -1515,7 +1515,7 @@ void CmdTechDrawShowAll::activated(int iMsg)
|
||||
baseFeat = dynamic_cast<TechDraw::DrawViewPart *>(selection[0].getObject());
|
||||
if (!baseFeat) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Part Views in this selection"));
|
||||
QObject::tr("No part views in this selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1547,8 +1547,8 @@ CmdTechDrawWeldSymbol::CmdTechDrawWeldSymbol()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Welding Information to Leaderline");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Weld Symbol");
|
||||
sToolTipText = QT_TR_NOOP("Adds welding information to the selected leader line");
|
||||
sWhatsThis = "TechDraw_WeldSymbol";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_WeldSymbol";
|
||||
@@ -1560,8 +1560,8 @@ void CmdTechDrawWeldSymbol::activated(int 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;
|
||||
}
|
||||
|
||||
@@ -1579,7 +1579,7 @@ void CmdTechDrawWeldSymbol::activated(int iMsg)
|
||||
if ( (leaders.size() != 1) &&
|
||||
(welds.size() != 1) ) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select exactly one Leader line or one Weld symbol."));
|
||||
QObject::tr("Select exactly one leader line or one weld symbol"));
|
||||
return;
|
||||
}
|
||||
if (!leaders.empty()) {
|
||||
@@ -1611,10 +1611,8 @@ CmdTechDrawSurfaceFinishSymbols::CmdTechDrawSurfaceFinishSymbols()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create a Surface Finish Symbol");
|
||||
sToolTipText = QT_TR_NOOP("Select a view<br>\
|
||||
- click this button<br>\
|
||||
- select surface finish symbol attributes in opened panel");
|
||||
sMenuText = QT_TR_NOOP("Surface Finish Symbol");
|
||||
sToolTipText = QT_TR_NOOP("Adds a surface finish symbol in the selected view");
|
||||
sWhatsThis = "TechDraw_SurfaceFinishSymbols";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_SurfaceFinishSymbols";
|
||||
|
||||
@@ -242,7 +242,7 @@ public:
|
||||
mdi->setDimensionsSelectability(false);
|
||||
}
|
||||
Gui::Selection().setSelectionStyle(Gui::SelectionSingleton::SelectionStyle::GreedySelection);
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert Dimension"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Insert dimension"));
|
||||
handleInitialSelection();
|
||||
}
|
||||
|
||||
@@ -799,7 +799,7 @@ protected:
|
||||
{
|
||||
//area
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Area dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add area dimension"));
|
||||
createAreaDimension(selFaces[0]);
|
||||
selAllowed = true;
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
@@ -810,7 +810,7 @@ protected:
|
||||
{
|
||||
//distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distance dimension"));
|
||||
createDistanceDimension("Distance", { selPoints[0], selPoints[1] });
|
||||
specialDimension = SpecialDimension::LineOr2PointsDistance;
|
||||
selAllowed = true;
|
||||
@@ -819,7 +819,7 @@ protected:
|
||||
}
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceX Chamfer dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceX chamfer dimension"));
|
||||
createDistanceDimension("DistanceX", { selPoints[0], selPoints[1] }, true);
|
||||
specialDimension = SpecialDimension::LineOr2PointsChamfer;
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
@@ -872,7 +872,7 @@ protected:
|
||||
{
|
||||
//distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add point to line Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add point to line distance dimension"));
|
||||
createDistanceDimension("Distance", { selPoints[0], selLine[0] });
|
||||
selAllowed = true;
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
@@ -888,7 +888,7 @@ protected:
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -903,7 +903,7 @@ protected:
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -925,7 +925,7 @@ protected:
|
||||
//addCursorTail(pixmaps);
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceX Chamfer dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceX chamfer dimension"));
|
||||
createDistanceDimension("DistanceX", { selLine[0] }, true);
|
||||
specialDimension = SpecialDimension::LineOr2PointsChamfer;
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
@@ -936,12 +936,12 @@ protected:
|
||||
{
|
||||
//angle (if parallel: Distance (see in createAngleDimension)).
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Angle dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add angle dimension"));
|
||||
createAngleDimension(selLine[0], selLine[1]);
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -951,12 +951,12 @@ protected:
|
||||
{
|
||||
//distance, extent distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add circle to line Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add circle to line distance dimension"));
|
||||
createDistanceDimension("Distance", { selCircleArc[0], selLine[0] });
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -966,12 +966,12 @@ protected:
|
||||
{
|
||||
//distance, extent distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add ellipse to line Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add ellipse to line distance dimension"));
|
||||
createDistanceDimension("Distance", { selEllipseArc[0], selLine[0] });
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -990,7 +990,7 @@ protected:
|
||||
}
|
||||
}
|
||||
if (availableDimension == AvailableDimension::THIRD) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Arc Length dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add arc length dimension"));
|
||||
createArcLengthDimension(selCircleArc[0]);
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -1000,12 +1000,12 @@ protected:
|
||||
{
|
||||
//Distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add circle to circle Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add circle to circle distance dimension"));
|
||||
createDistanceDimension("Distance", { selCircleArc[0], selCircleArc[1] });
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -1024,7 +1024,7 @@ protected:
|
||||
}
|
||||
}
|
||||
if (availableDimension == AvailableDimension::THIRD) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Arc Length dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add arc length dimension"));
|
||||
createArcLengthDimension(selEllipseArc[0]);
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -1034,12 +1034,12 @@ protected:
|
||||
{
|
||||
//Distance
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add ellipse to ellipse Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add ellipse to ellipse distance dimension"));
|
||||
createDistanceDimension("Distance", { selEllipseArc[0], selEllipseArc[1] });
|
||||
selAllowed = true;
|
||||
}
|
||||
if (availableDimension == AvailableDimension::SECOND) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
}
|
||||
@@ -1060,7 +1060,7 @@ protected:
|
||||
{
|
||||
//Extend
|
||||
if (availableDimension == AvailableDimension::FIRST) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
selAllowed = true;
|
||||
availableDimension = AvailableDimension::RESET;
|
||||
@@ -1090,11 +1090,11 @@ protected:
|
||||
(!firstCstr && !dimensioningRadius && dimensioningDiameter) ||
|
||||
(firstCstr && dimensioningRadius && dimensioningDiameter && !isCircleGeom) ||
|
||||
(!firstCstr && dimensioningRadius && dimensioningDiameter && isCircleGeom)) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Radius dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add radius dimension"));
|
||||
dim = dimMaker(partFeat, "Radius", { ref }, {});
|
||||
}
|
||||
else {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Diameter dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add diameter dimension"));
|
||||
dim = dimMaker(partFeat, "Diameter", { ref }, {});
|
||||
}
|
||||
|
||||
@@ -1105,7 +1105,7 @@ protected:
|
||||
void createAngleDimension(ReferenceEntry ref1, ReferenceEntry ref2) {
|
||||
if (TechDraw::isValidMultiEdge({ ref1, ref2 }) != DimensionGeometry::isAngle) {
|
||||
//isValidMultiEdge check if lines are parallel.
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distance dimension"));
|
||||
createDistanceDimension("Distance", { ref1, ref2 });
|
||||
return;
|
||||
}
|
||||
@@ -1186,27 +1186,27 @@ protected:
|
||||
if (fpos.x() > minX && fpos.x() < maxX
|
||||
&& (fpos.y() < minY || fpos.y() > maxY) && type != DimensionType::DistanceX) {
|
||||
if (chamfer) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceX Chamfer dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceX chamfer dimension"));
|
||||
}
|
||||
else {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceX dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceX dimension"));
|
||||
}
|
||||
newType = "DistanceX";
|
||||
}
|
||||
else if (fpos.y() > minY && fpos.y() < maxY
|
||||
&& (fpos.x() < minX || fpos.x() > maxX) && type != DimensionType::DistanceY) {
|
||||
if (chamfer) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceY Chamfer dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceY chamfer dimension"));
|
||||
}
|
||||
else {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceY dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceY dimension"));
|
||||
}
|
||||
newType = "DistanceY";
|
||||
}
|
||||
else if ((((fpos.y() < minY || fpos.y() > maxY) && (fpos.x() < minX || fpos.x() > maxX))
|
||||
|| (fpos.y() > minY && fpos.y() < maxY && fpos.x() > minX && fpos.x() < maxX)) && type != DimensionType::Distance
|
||||
&& !chamfer) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add Distance dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distance dimension"));
|
||||
}
|
||||
else {
|
||||
return;
|
||||
@@ -1244,12 +1244,12 @@ protected:
|
||||
|
||||
if (fpos.x() > minX && fpos.x() < maxX
|
||||
&& (fpos.y() < minY || fpos.y() > maxY) && type != DimensionType::DistanceX) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceX extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceX extent dimension"));
|
||||
createExtentDistanceDimension("DistanceX");
|
||||
}
|
||||
else if (fpos.y() > minY && fpos.y() < maxY
|
||||
&& (fpos.x() < minX || fpos.x() > maxX) && type != DimensionType::DistanceY) {
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add DistanceY extent dimension"));
|
||||
restartCommand(QT_TRANSLATE_NOOP("Command", "Add distanceY extent dimension"));
|
||||
createExtentDistanceDimension("DistanceY");
|
||||
}
|
||||
else {
|
||||
@@ -1405,10 +1405,10 @@ CmdTechDrawDimension::CmdTechDrawDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Dimension contextually based on your selection.\n"
|
||||
sMenuText = QT_TR_NOOP("Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts new contextual dimensions to the selection.\n"
|
||||
"Depending on your selection you might have several dimensions available. You can cycle through them using the M key.\n"
|
||||
"Left clicking on empty space will validate the current Dimension. Right clicking or pressing Esc will cancel.");
|
||||
"Left clicking on empty space will validate the current dimension. Right clicking or pressing Esc will cancel.");
|
||||
sWhatsThis = "TechDraw_Dimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_Dimension";
|
||||
@@ -1445,7 +1445,7 @@ public:
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = "TechDraw";
|
||||
sMenuText = QT_TR_NOOP("Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Dimension tools.");
|
||||
sToolTipText = QT_TR_NOOP("Dimension tools");
|
||||
sWhatsThis = "TechDraw_CompDimensionTools";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -1498,8 +1498,8 @@ CmdTechDrawRadiusDimension::CmdTechDrawRadiusDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Radius Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Radius Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a radius dimension of a circular edge or arc");
|
||||
sWhatsThis = "TechDraw_RadiusDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_RadiusDimension";
|
||||
@@ -1511,8 +1511,8 @@ void CmdTechDrawRadiusDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1546,8 +1546,8 @@ CmdTechDrawDiameterDimension::CmdTechDrawDiameterDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Diameter Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Diameter Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a diameter dimension of a circular edge or arc");
|
||||
sWhatsThis = "TechDraw_DiameterDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_DiameterDimension";
|
||||
@@ -1559,8 +1559,8 @@ void CmdTechDrawDiameterDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1594,8 +1594,8 @@ CmdTechDrawLengthDimension::CmdTechDrawLengthDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Length Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Length Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a length dimension of an edge or distance between two points");
|
||||
sWhatsThis = "TechDraw_LengthDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_LengthDimension";
|
||||
@@ -1607,8 +1607,8 @@ void CmdTechDrawLengthDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1641,8 +1641,8 @@ CmdTechDrawHorizontalDimension::CmdTechDrawHorizontalDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Horizontal Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Horizontal Length Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a horizontal length dimension of an edge or distance between two points");
|
||||
sWhatsThis = "TechDraw_HorizontalDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_HorizontalDimension";
|
||||
@@ -1655,8 +1655,8 @@ void CmdTechDrawHorizontalDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1689,8 +1689,8 @@ CmdTechDrawVerticalDimension::CmdTechDrawVerticalDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Vertical Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Vertical Length Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a vertical length dimension of an edge or distance between two points");
|
||||
sWhatsThis = "TechDraw_VerticalDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_VerticalDimension";
|
||||
@@ -1703,8 +1703,8 @@ void CmdTechDrawVerticalDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1737,8 +1737,8 @@ CmdTechDrawAngleDimension::CmdTechDrawAngleDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Angle Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Angle Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an angle dimension between two edges");
|
||||
sWhatsThis = "TechDraw_AngleDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_AngleDimension";
|
||||
@@ -1750,8 +1750,8 @@ void CmdTechDrawAngleDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1784,8 +1784,8 @@ CmdTechDraw3PtAngleDimension::CmdTechDraw3PtAngleDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert 3-Point Angle Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Angle Dimension From 3 Points");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an angle dimension between 3 selected points");
|
||||
sWhatsThis = "TechDraw_3PtAngleDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_3PtAngleDimension";
|
||||
@@ -1797,8 +1797,8 @@ void CmdTechDraw3PtAngleDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1831,8 +1831,8 @@ CmdTechDrawAreaDimension::CmdTechDrawAreaDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Area Annotation");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Area Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an annotation showing the area of a selected face");
|
||||
sWhatsThis = "TechDraw_AreaDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_AreaDimension";
|
||||
@@ -1844,8 +1844,8 @@ void CmdTechDrawAreaDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1883,7 +1883,7 @@ CmdTechDrawLinkDimension::CmdTechDrawLinkDimension()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Link Dimension to 3D Geometry");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Links the selected TechDraw dimensions to 3D geometry");
|
||||
sWhatsThis = "TechDraw_LinkDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_LinkDimension";
|
||||
@@ -1921,15 +1921,15 @@ void CmdTechDrawLinkDimension::activated(int iMsg)
|
||||
|
||||
if (!obj3D) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("There is no 3D object in your selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (subs.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("There are no 3D Edges or Vertices in your selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("There are no 3D edges or vertices in your selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1962,8 +1962,8 @@ CmdTechDrawExtentGroup::CmdTechDrawExtentGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Extent Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Extent Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a dimension showing the extent (overall length) of an object or feature");
|
||||
sWhatsThis = "TechDraw_ExtentGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
// eType = ForEdit;
|
||||
@@ -1975,8 +1975,8 @@ void CmdTechDrawExtentGroup::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2030,14 +2030,14 @@ void CmdTechDrawExtentGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtentGroup", "Horizontal Extent"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtentGroup", "Horizontal extent"));
|
||||
arc1->setToolTip(
|
||||
QApplication::translate("TechDraw_HorizontalExtent", "Insert Horizontal Extent Dimension"));
|
||||
QApplication::translate("TechDraw_HorizontalExtent", "Insert horizontal extent dimension"));
|
||||
arc1->setStatusTip(arc1->toolTip());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtentGroup", "Vertical Extent"));
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtentGroup", "Vertical extent"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_VerticalExtentDimension",
|
||||
"Insert Vertical Extent Dimension"));
|
||||
"Insert vertical extent dimension"));
|
||||
arc2->setStatusTip(arc2->toolTip());
|
||||
}
|
||||
|
||||
@@ -2057,8 +2057,8 @@ CmdTechDrawHorizontalExtentDimension::CmdTechDrawHorizontalExtentDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Horizontal Extent Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Horizontal Extent Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a dimension showing the horizontal extent (overall length) of an object or feature.");
|
||||
sWhatsThis = "TechDraw_HorizontalExtentDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_HorizontalExtentDimension";
|
||||
@@ -2071,8 +2071,8 @@ void CmdTechDrawHorizontalExtentDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2090,7 +2090,7 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
|
||||
if (!result) {
|
||||
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;
|
||||
}
|
||||
ReferenceVector references2d;
|
||||
@@ -2129,8 +2129,8 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
|
||||
references2d, acceptableGeometry, minimumCounts, acceptableDimensionGeometrys);
|
||||
if (geometryRefs2d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make 2D extent dimension from selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Cannot make 2D extent dimension from selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2145,7 +2145,7 @@ void execExtent(Gui::Command* cmd, const std::string& dimType)
|
||||
if (geometryRefs3d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make 3D extent dimension from selection"));
|
||||
QObject::tr("Cannot make 3D extent dimension from selection"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2169,8 +2169,8 @@ CmdTechDrawVerticalExtentDimension::CmdTechDrawVerticalExtentDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Vertical Extent Dimension");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Vertical Extent Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a dimension showing the vertical extent (overall length) of an object or feature.");
|
||||
sWhatsThis = "TechDraw_VerticalExtentDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_VerticalExtentDimension";
|
||||
@@ -2183,8 +2183,8 @@ void CmdTechDrawVerticalExtentDimension::activated(int 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."));
|
||||
QObject::tr("Task in progress"),
|
||||
QObject::tr("Close the active task dialog and try again"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2208,7 +2208,7 @@ CmdTechDrawDimensionRepair::CmdTechDrawDimensionRepair()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Repair Dimension References");
|
||||
sToolTipText = sMenuText;
|
||||
sToolTipText = QT_TR_NOOP("Repairs broken or incorrect dimension references");
|
||||
sWhatsThis = "TechDraw_DimensionRepair";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_DimensionRepair";
|
||||
@@ -2222,8 +2222,8 @@ void CmdTechDrawDimensionRepair::activated(int iMsg)
|
||||
TechDraw::DrawViewDimension* dim = nullptr;
|
||||
if (dimObjs.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("There is no Dimension in your selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("There is no dimension in your selection"));
|
||||
return;
|
||||
} else {
|
||||
dim = static_cast<TechDraw::DrawViewDimension*>(dimObjs.at(0));
|
||||
@@ -2256,8 +2256,8 @@ CmdTechDrawLandmarkDimension::CmdTechDrawLandmarkDimension()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Landmark Dimension - EXPERIMENTAL");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Landmark Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a landmark dimension (experimental feature). Use with caution.");
|
||||
sWhatsThis = "TechDraw_LandmarkDimension";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_LandmarkDimension";
|
||||
@@ -2276,7 +2276,7 @@ void CmdTechDrawLandmarkDimension::activated(int iMsg)
|
||||
if (objects.size() != 2) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select 2 point objects and 1 View. (1)"));
|
||||
QObject::tr("Select 2 point objects and 1 view. (1)"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2285,7 +2285,7 @@ void CmdTechDrawLandmarkDimension::activated(int iMsg)
|
||||
if (views.size() != 1) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Wrong selection"),
|
||||
QObject::tr("Select 2 point objects and 1 View. (2)"));
|
||||
QObject::tr("Select 2 point objects and 1 view. (2)"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2384,7 +2384,7 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
if (!result) {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -2398,8 +2398,8 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
references2d, acceptableGeometry, minimumCounts, acceptableDimensionGeometrys);
|
||||
if (geometryRefs2d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make 2D dimension from selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Cannot make 2D dimension from selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2415,7 +2415,7 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
if (geometryRefs3d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make 3D dimension from selection"));
|
||||
QObject::tr("Cannot make 3D dimension from selection"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2428,7 +2428,7 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
if (geometryRefs2d == DimensionGeometry::isEllipse || geometryRefs3d == DimensionGeometry::isEllipse) {
|
||||
QMessageBox::StandardButton result = QMessageBox::warning(
|
||||
Gui::getMainWindow(),
|
||||
QObject::tr("Ellipse Curve Warning"),
|
||||
QObject::tr("Ellipse curve warning"),
|
||||
QObject::tr("Selected edge is an Ellipse. Value will be approximate. Continue?"),
|
||||
QMessageBox::Ok | QMessageBox::Cancel,
|
||||
QMessageBox::Cancel);
|
||||
@@ -2439,7 +2439,7 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
if (geometryRefs2d == DimensionGeometry::isBSplineCircle || geometryRefs3d == DimensionGeometry::isBSplineCircle) {
|
||||
QMessageBox::StandardButton result = QMessageBox::warning(
|
||||
Gui::getMainWindow(),
|
||||
QObject::tr("B-spline Curve Warning"),
|
||||
QObject::tr("B-spline curve warning"),
|
||||
QObject::tr("Selected edge is a B-spline. Value will be approximate. Continue?"),
|
||||
QMessageBox::Ok | QMessageBox::Cancel,
|
||||
QMessageBox::Cancel);
|
||||
@@ -2450,8 +2450,8 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
if (geometryRefs2d == DimensionGeometry::isBSpline || geometryRefs3d == DimensionGeometry::isBSpline) {
|
||||
QMessageBox::critical(
|
||||
Gui::getMainWindow(),
|
||||
QObject::tr("B-spline Curve Error"),
|
||||
QObject::tr("Selected edge is a B-spline and a radius/diameter can not be calculated."));
|
||||
QObject::tr("B-spline curve error"),
|
||||
QObject::tr("Selected edge is a B-spline and a radius/diameter cannot be calculated."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2468,7 +2468,7 @@ void execDim(Gui::Command* cmd, std::string type, StringVector acceptableGeometr
|
||||
DrawViewDimension* dimensionMaker(TechDraw::DrawViewPart* dvp, std::string dimType,
|
||||
ReferenceVector references2d, ReferenceVector references3d)
|
||||
{
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Dimension"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create dimension"));
|
||||
|
||||
TechDraw::DrawViewDimension* dim = dimMaker(dvp, dimType, references2d, references3d);
|
||||
|
||||
|
||||
@@ -74,8 +74,8 @@ CmdTechDrawHatch::CmdTechDrawHatch()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Hatch a Face using Image File");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Image Hatch");
|
||||
sToolTipText = QT_TR_NOOP("Applies a hatch pattern to the selected faces using an image file");
|
||||
sWhatsThis = "TechDraw_Hatch";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_Hatch";
|
||||
@@ -108,8 +108,8 @@ void CmdTechDrawHatch::activated(int iMsg)
|
||||
int face = TechDraw::DrawUtil::getIndexFromName(s);
|
||||
if (TechDraw::DrawHatch::faceIsHatched(face, hatchObjs)) {
|
||||
QMessageBox::StandardButton rc =
|
||||
QMessageBox::question(Gui::getMainWindow(), QObject::tr("Replace Hatch?"),
|
||||
QObject::tr("Some Faces in selection are already hatched. Replace?"));
|
||||
QMessageBox::question(Gui::getMainWindow(), QObject::tr("Replace hatch?"),
|
||||
QObject::tr("Some faces in the selection are already hatched. Replace?"));
|
||||
if (rc == QMessageBox::StandardButton::NoButton) {
|
||||
return;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ void CmdTechDrawHatch::activated(int iMsg)
|
||||
}
|
||||
|
||||
if (removeOld) {
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Remove old Hatch"));
|
||||
openCommand(QT_TRANSLATE_NOOP("Command", "Remove old hatch"));
|
||||
std::vector<std::pair< int, TechDraw::DrawHatch*> > toRemove;
|
||||
for (auto& h: hatchObjs) { //all the hatch objects for selected DVP
|
||||
std::vector<std::string> hatchSubs = h->Source.getSubValues();
|
||||
@@ -169,8 +169,8 @@ CmdTechDrawGeometricHatch::CmdTechDrawGeometricHatch()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Apply Geometric Hatch to Face");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Geometric Hatch");
|
||||
sToolTipText = QT_TR_NOOP("Applies a geometric hatch pattern to the selected faces");
|
||||
sWhatsThis = "TechDraw_GeometricHatch";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_GeometricHatch";
|
||||
@@ -240,10 +240,10 @@ CmdTechDrawImage::CmdTechDrawImage()
|
||||
{
|
||||
// setting the Gui eye-candy
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert Bitmap Image");
|
||||
sToolTipText = QT_TR_NOOP("Insert Bitmap from a file into a page");
|
||||
sMenuText = QT_TR_NOOP("Bitmap Image");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a bitmap from a file into the current page");
|
||||
sWhatsThis = "TechDraw_Image";
|
||||
sStatusTip = QT_TR_NOOP("Insert Bitmap from a file into a page");
|
||||
sStatusTip = QT_TR_NOOP("Insert bitmap from a file into a page");
|
||||
sPixmap = "actions/TechDraw_Image";
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ void CmdTechDrawImage::activated(int iMsg)
|
||||
|
||||
// Reading an image
|
||||
QString fileName = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(),
|
||||
QString::fromUtf8(QT_TR_NOOP("Select an Image File")),
|
||||
QString::fromUtf8(QT_TR_NOOP("Select an image file")),
|
||||
Preferences::defaultSymbolDir(),
|
||||
QString::fromUtf8(QT_TR_NOOP("Image files (*.jpg *.jpeg *.png *.bmp);;All files (*)")));
|
||||
if (fileName.isEmpty()) {
|
||||
@@ -303,8 +303,8 @@ CmdTechDrawToggleFrame::CmdTechDrawToggleFrame()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Turn View Frames On/Off");
|
||||
sToolTipText = QT_TR_NOOP("Turn View Frames On/Off");
|
||||
sMenuText = QT_TR_NOOP("Toggle View Frames");
|
||||
sToolTipText = QT_TR_NOOP("Toggles the visibility of the view frames");
|
||||
sWhatsThis = "TechDraw_Toggle";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_ToggleFrame";
|
||||
@@ -331,8 +331,8 @@ void CmdTechDrawToggleFrame::activated(int iMsg)
|
||||
ViewProviderPage* vpPage = freecad_cast<ViewProviderPage*>(vp);
|
||||
|
||||
if (!vpPage) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No TechDraw Page"),
|
||||
QObject::tr("Need a TechDraw Page for this command"));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No TechDraw page"),
|
||||
QObject::tr("A TechDraw page is required for this command"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ bool _checkSelectionHatch(Gui::Command* cmd) {
|
||||
std::vector<Gui::SelectionObject> selection = cmd->getSelection().getSelectionEx();
|
||||
if (selection.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Select a Face first"));
|
||||
QObject::tr("Select a face first"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -398,20 +398,20 @@ bool _checkSelectionHatch(Gui::Command* cmd) {
|
||||
std::vector<App::DocumentObject*> pages = cmd->getDocument()->getObjectsOfType(TechDraw::DrawPage::getClassTypeId());
|
||||
if (pages.empty()){
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Create a page to insert."));
|
||||
QObject::tr("Create a page to insert"));
|
||||
return false;
|
||||
}
|
||||
|
||||
const std::vector<std::string> &SubNames = selection[0].getSubNames();
|
||||
if (SubNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("No Faces to hatch in this selection"));
|
||||
QObject::tr("No faces to hatch in this selection"));
|
||||
return false;
|
||||
}
|
||||
std::string gType = TechDraw::DrawUtil::getGeomTypeFromName(SubNames.at(0));
|
||||
if (!(gType == "Face")) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("No Faces to hatch in this selection"));
|
||||
QObject::tr("No faces to hatch in this selection"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ void execInsertPrefixChar(Gui::Command* cmd, const std::string& prefixFormat) {
|
||||
std::string prefixText(prefixFormat);
|
||||
if (prefixFormat.find("%s") != std::string::npos) {
|
||||
DlgTemplateField ui(Gui::getMainWindow());
|
||||
ui.setFieldName(QObject::tr("Repeat Count").toStdString());
|
||||
ui.setFieldName(QObject::tr("Repeat count").toStdString());
|
||||
ui.setFieldContent("1");
|
||||
if (ui.exec() != QDialog::Accepted) {
|
||||
return;
|
||||
@@ -149,9 +149,7 @@ CmdTechDrawExtensionInsertDiameter::CmdTechDrawExtensionInsertDiameter()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert '⌀' Prefix");
|
||||
sToolTipText = QT_TR_NOOP("Insert a '⌀' symbol at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a '⌀' symbol at the beginning of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionInsertDiameter";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionInsertDiameter";
|
||||
@@ -182,9 +180,7 @@ CmdTechDrawExtensionInsertSquare::CmdTechDrawExtensionInsertSquare()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert '□' Prefix");
|
||||
sToolTipText = QT_TR_NOOP("Insert a '□' symbol at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a '□' symbol at the beginning of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionInsertSquare";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionInsertSquare";
|
||||
@@ -215,9 +211,7 @@ CmdTechDrawExtensionInsertRepetition::CmdTechDrawExtensionInsertRepetition()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert 'n×' Prefix");
|
||||
sToolTipText = QT_TR_NOOP("Insert repeated feature count at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a repeated feature count at the beginning of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionInsertRepetition";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionInsertRepetition";
|
||||
@@ -274,9 +268,7 @@ CmdTechDrawExtensionRemovePrefixChar::CmdTechDrawExtensionRemovePrefixChar()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Remove Prefix");
|
||||
sToolTipText = QT_TR_NOOP("Remove prefix symbols at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Removes the prefix symbols at the beginning of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionRemovePrefixChar";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionRemovePrefixChar";
|
||||
@@ -307,9 +299,7 @@ CmdTechDrawExtensionInsertPrefixGroup::CmdTechDrawExtensionInsertPrefixGroup()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Insert '⌀' Prefix");
|
||||
sToolTipText = QT_TR_NOOP("Insert a '⌀' symbol at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a '⌀' symbol at the beginning of the dimension text");
|
||||
sWhatsThis = "TechDraw_ExtensionInsertPrefixGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -319,8 +309,8 @@ void CmdTechDrawExtensionInsertPrefixGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionLinePPGroup - 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;
|
||||
}
|
||||
|
||||
@@ -389,30 +379,22 @@ void CmdTechDrawExtensionInsertPrefixGroup::languageChange()
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionInsertDiameter", "Insert '⌀' Prefix"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionInsertDiameter",
|
||||
"Insert a '⌀' symbol at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a '⌀' symbol at the beginning of the dimension"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionInsertSquare", "Insert '□' Prefix"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionInsertSquare",
|
||||
"Insert a '□' symbol at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a '□' symbol at the beginning of the dimension"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionInsertRepetition", "Insert 'n×' Prefix"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionInsertRepetition",
|
||||
"Insert repeated feature count at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a repeated feature count at the beginning of the dimension"));
|
||||
arc3->setStatusTip(arc3->text());
|
||||
QAction* arc4 = a[3];
|
||||
arc4->setText(QApplication::translate("TechDraw_ExtensionremovePrefixChar", "Remove Prefix"));
|
||||
arc4->setToolTip(QApplication::translate("TechDraw_ExtensionremovePrefixChar",
|
||||
"Remove prefix symbols at the beginning of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Removes the prefix symbols at the beginning of the dimension"));
|
||||
arc4->setStatusTip(arc4->text());
|
||||
}
|
||||
|
||||
@@ -464,9 +446,7 @@ CmdTechDrawExtensionIncreaseDecimal::CmdTechDrawExtensionIncreaseDecimal()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Increase Decimal Places");
|
||||
sToolTipText = QT_TR_NOOP("Increase the number of decimal places of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Increases the number of decimal places of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionIncreaseDecimal";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionIncreaseDecimal";
|
||||
@@ -497,9 +477,7 @@ CmdTechDrawExtensionDecreaseDecimal::CmdTechDrawExtensionDecreaseDecimal()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Decrease Decimal Places");
|
||||
sToolTipText = QT_TR_NOOP("Decrease the number of decimal places of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Decreases the number of decimal places of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionDecreaseDecimal";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionDecreaseDecimal";
|
||||
@@ -530,9 +508,7 @@ CmdTechDrawExtensionIncreaseDecreaseGroup::CmdTechDrawExtensionIncreaseDecreaseG
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Increase Decimal Places");
|
||||
sToolTipText = QT_TR_NOOP("Increase the number of decimal places of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Increases the number of decimal places of the dimension");
|
||||
sWhatsThis = "TechDraw_ExtensionIncreaseDecreaseGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -542,8 +518,8 @@ void CmdTechDrawExtensionIncreaseDecreaseGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionIncreaseDecreaseGroup - 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;
|
||||
}
|
||||
|
||||
@@ -598,16 +574,12 @@ void CmdTechDrawExtensionIncreaseDecreaseGroup::languageChange()
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionIncreaseDecimal", "Increase Decimal Places"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionIncreaseDecimal",
|
||||
"Increase the number of decimal places of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Increases the number of decimal places of the dimension"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionDecreaseDecimal", "Decrease Decimal Places"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionDecreaseDecimal",
|
||||
"Decrease the number of decimal places of the dimension text:<br>\
|
||||
- Select one or more dimensions<br>\
|
||||
- Click this tool"));
|
||||
"Decreases the number of decimal places of the dimension"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
}
|
||||
|
||||
@@ -629,7 +601,7 @@ void execPosHorizChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Pos Horiz Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Position Horizontal Chain Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "DistanceX");
|
||||
if (validDimension.empty()) {
|
||||
@@ -656,8 +628,8 @@ CmdTechDrawExtensionPosHorizChainDimension::CmdTechDrawExtensionPosHorizChainDim
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Position Horizontal Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Align horizontal dimensions to create a chain dimension:<br>\
|
||||
sMenuText = QT_TR_NOOP("Align Chain Dimensions Horizontally");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the horizontal dimensions to create a chain dimension:<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool");
|
||||
@@ -690,7 +662,7 @@ void execPosVertChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Pos Vert Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Position Vert Chain Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "DistanceY");
|
||||
if (validDimension.empty()) {
|
||||
@@ -718,8 +690,8 @@ CmdTechDrawExtensionPosVertChainDimension::CmdTechDrawExtensionPosVertChainDimen
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Position Vertical Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Align vertical dimensions to create a chain dimension:<br>\
|
||||
sMenuText = QT_TR_NOOP("Align Chain Dimensions Vertically");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the vertical dimensions to create a chain dimension:<br>\
|
||||
- Select two or more vertical dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool");
|
||||
@@ -752,7 +724,7 @@ void execPosObliqueChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Pos Oblique Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Position Oblique Chain Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "Distance");
|
||||
if (validDimension.empty()) {
|
||||
@@ -785,8 +757,8 @@ CmdTechDrawExtensionPosObliqueChainDimension::CmdTechDrawExtensionPosObliqueChai
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Position Oblique Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Align oblique dimensions to create a chain dimension:<br>\
|
||||
sMenuText = QT_TR_NOOP("Align Oblique Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the oblique dimensions to create a chain dimension:<br>\
|
||||
- Select two or more parallel oblique dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool");
|
||||
@@ -820,8 +792,8 @@ CmdTechDrawExtensionPosChainDimensionGroup::CmdTechDrawExtensionPosChainDimensio
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Position Horizontal Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Align horizontal dimensions to create a chain dimension:<br>\
|
||||
sMenuText = QT_TR_NOOP("Align Horizontal Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Aligns the horizontal dimensions to create a chain dimension:<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool");
|
||||
@@ -834,8 +806,8 @@ void CmdTechDrawExtensionPosChainDimensionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionPosChainDimensionGroup - 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;
|
||||
}
|
||||
|
||||
@@ -897,7 +869,7 @@ void CmdTechDrawExtensionPosChainDimensionGroup::languageChange()
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionPosHorizChainDimension", "Position Horizontal Chain Dimensions"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionPosHorizChainDimension",
|
||||
"Align horizontal dimensions to create a chain dimension:<br>\
|
||||
"Aligns the horizontal dimensions to create a chain dimension:<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool"));
|
||||
@@ -905,7 +877,7 @@ void CmdTechDrawExtensionPosChainDimensionGroup::languageChange()
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionPosVertChainDimension", "Position Vertical Chain Dimensions"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionPosVertChainDimension",
|
||||
"Align vertical dimensions to create a chain dimension:<br>\
|
||||
"Aligns the vertical dimensions to create a chain dimension:<br>\
|
||||
- Select two or more vertical dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool"));
|
||||
@@ -913,7 +885,7 @@ void CmdTechDrawExtensionPosChainDimensionGroup::languageChange()
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionPosObliqueChainDimension", "Position Oblique Chain Dimensions"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionPosObliqueChainDimension",
|
||||
"Align oblique dimensions to create a chain dimension:<br>\
|
||||
"Aligns the oblique dimensions to create a chain dimension:<br>\
|
||||
- Select two or more parallel oblique dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
- Click this tool"));
|
||||
@@ -938,7 +910,7 @@ void execCascadeHorizDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Horiz Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Horizontal Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "DistanceX");
|
||||
if (validDimension.empty()) {
|
||||
@@ -970,7 +942,7 @@ CmdTechDrawExtensionCascadeHorizDimension::CmdTechDrawExtensionCascadeHorizDimen
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Cascade Horizontal Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Evenly space horizontal dimensions:<br>\
|
||||
sToolTipText = QT_TR_NOOP("Evenly spaces the selected horizontal dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1004,7 +976,7 @@ void execCascadeVertDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Vert Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Vertical Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "DistanceY");
|
||||
if (validDimension.empty()) {
|
||||
@@ -1037,7 +1009,7 @@ CmdTechDrawExtensionCascadeVertDimension::CmdTechDrawExtensionCascadeVertDimensi
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Cascade Vertical Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Evenly space vertical dimensions:<br>\
|
||||
sToolTipText = QT_TR_NOOP("Evenly spaces the selected vertical dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more vertical dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1071,7 +1043,7 @@ void execCascadeObliqueDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Oblique Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cascade Oblique Dimension"));
|
||||
std::vector<TechDraw::DrawViewDimension*> validDimension;
|
||||
validDimension = _getDimensions(selection, "Distance");
|
||||
if (validDimension.empty()) {
|
||||
@@ -1112,7 +1084,7 @@ CmdTechDrawExtensionCascadeObliqueDimension::CmdTechDrawExtensionCascadeObliqueD
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Cascade Oblique Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Evenly space oblique dimensions:<br>\
|
||||
sToolTipText = QT_TR_NOOP("Evenly spaces the selected oblique dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more parallel oblique dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1148,7 +1120,7 @@ CmdTechDrawExtensionCascadeDimensionGroup::CmdTechDrawExtensionCascadeDimensionG
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Cascade Horizontal Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Evenly space horizontal dimensions:<br>\
|
||||
sToolTipText = QT_TR_NOOP("Evenly spaces the selected horizontal dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1162,8 +1134,8 @@ void CmdTechDrawExtensionCascadeDimensionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionCascadeDimansionGroup - 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;
|
||||
}
|
||||
|
||||
@@ -1225,7 +1197,7 @@ void CmdTechDrawExtensionCascadeDimensionGroup::languageChange()
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCascadeHorizDimension", "Cascade Horizontal Dimensions"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionCascadeHorizDimension",
|
||||
"Evenly space horizontal dimensions:<br>\
|
||||
"Evenly spaces the selected horizontal dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more horizontal dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1234,7 +1206,7 @@ void CmdTechDrawExtensionCascadeDimensionGroup::languageChange()
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCascadeVertDimension", "Cascade Vertical Dimensions"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionCascadeVertDimension",
|
||||
"Evenly space vertical dimensions:<br>\
|
||||
"Evenly spaces the selected vertical dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more vertical dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1243,7 +1215,7 @@ void CmdTechDrawExtensionCascadeDimensionGroup::languageChange()
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionCascadeObliqueDimension", "Cascade Oblique Dimensions"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionCascadeObliqueDimension",
|
||||
"Evenly space oblique dimensions:<br>\
|
||||
"Evenly spaces the selected oblique dimensions:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select two or more parallel oblique dimensions<br>\
|
||||
- The first dimension defines the position<br>\
|
||||
@@ -1270,7 +1242,7 @@ void execCreateHorizChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horiz Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horizontal Chain Dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -1301,10 +1273,9 @@ CmdTechDrawExtensionCreateHorizChainDimension::CmdTechDrawExtensionCreateHorizCh
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create a sequence of aligned horizontal dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Chain Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a sequence of aligned horizontal dimensions to at least "
|
||||
"three selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateHorizChainDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateHorizChainDimension";
|
||||
@@ -1336,7 +1307,7 @@ void execCreateVertChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Chain dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -1368,10 +1339,9 @@ CmdTechDrawExtensionCreateVertChainDimension::CmdTechDrawExtensionCreateVertChai
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Vertical Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create a sequence of aligned vertical dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Vertical Chain Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a sequence of aligned vertical dimensions to at least "
|
||||
"three selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateVertChainDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateVertChainDimension";
|
||||
@@ -1402,7 +1372,7 @@ void execCreateObliqueChainDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Oblique Chain Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create oblique chain dimension"));
|
||||
|
||||
std::vector<TechDraw::ReferenceEntry> refs;
|
||||
for (auto& subName : selection[0].getSubNames()) {
|
||||
@@ -1491,11 +1461,9 @@ CmdTechDrawExtensionCreateObliqueChainDimension::CmdTechDrawExtensionCreateObliq
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Oblique Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create a sequence of aligned oblique dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The first two vertexes define the direction<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Oblique Chain Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a sequence of aligned oblique dimensions to at least "
|
||||
"three selected vertices, where the first two define the direction");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateObliqueChainDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateObliqueChainDimension";
|
||||
@@ -1525,10 +1493,9 @@ CmdTechDrawExtensionCreateChainDimensionGroup::CmdTechDrawExtensionCreateChainDi
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Chain Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create a sequence of aligned horizontal dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Chain Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a sequence of aligned horizontal dimensions to at least "
|
||||
"three selected vertices, where the first two define the direction");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateChainDimensionGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -1538,8 +1505,8 @@ void CmdTechDrawExtensionCreateChainDimensionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionCascadeDimansionGroup - 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;
|
||||
}
|
||||
|
||||
@@ -1599,26 +1566,19 @@ void CmdTechDrawExtensionCreateChainDimensionGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizChainDimension", "Create Horizontal Chain Dimensions"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizChainDimension", "Horizontal Chain Dimension"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateHorizChainDimension",
|
||||
"Create a sequence of aligned horizontal dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a sequence of aligned horizontal dimensions to at least three selected vertices, where the first two define the direction"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertChainDimension", "Create Vertical Chain Dimensions"));
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertChainDimension", "Vertical Chain Dimension"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateVertChainDimension",
|
||||
"Create a sequence of aligned vertical dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a sequence of aligned vertical dimensions to at least three selected vertices, where the first two define the direction"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionCreateObliqueChainDimension", "Create Oblique Chain Dimensions"));
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionCreateObliqueChainDimension", "Oblique Chain Dimension"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateObliqueChainDimension",
|
||||
"Create a sequence of aligned oblique dimensions:<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The first two vertexes define the direction<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a sequence of aligned oblique dimensions to at least three selected vertices, where the first two define the direction"));
|
||||
arc3->setStatusTip(arc3->text());
|
||||
}
|
||||
|
||||
@@ -1637,11 +1597,11 @@ void execCreateHorizCoordDimension(Gui::Command* cmd) {
|
||||
//create horizontal coordinate dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Horizontal Coord Dimension"))) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Horizontal Coordinate Dimension"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horiz Coord Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horizontal Coord Dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -1678,12 +1638,8 @@ CmdTechDrawExtensionCreateHorizCoordDimension::CmdTechDrawExtensionCreateHorizCo
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Coordinate Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create multiple evenly spaced horizontal dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Coordinate Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Adds evenly spaced horizontal dimensions between 3 or more vertices aligned to a shared baseline");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateHorizCoordDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateHorizCoordDimension";
|
||||
@@ -1710,10 +1666,10 @@ void execCreateVertCoordDimension(Gui::Command* cmd) {
|
||||
//create vertical coordinate dimensions
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat;
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Vertical Coord Dimension"))) {
|
||||
if (!_checkSelObjAndSubs(cmd, selection, objFeat, QT_TRANSLATE_NOOP("QObject","TechDraw Create Vertical Coord dimension"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Coord Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create vert coord dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -1751,12 +1707,8 @@ CmdTechDrawExtensionCreateVertCoordDimension::CmdTechDrawExtensionCreateVertCoor
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Vertical Coordinate Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create multiple evenly spaced vertical dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Vertical Coordinate Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Adds evenly spaced vertical dimensions between 3 or more vertices aligned to a shared baseline");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateVertCoordDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateVertCoordDimension";
|
||||
@@ -1787,7 +1739,7 @@ void execCreateObliqueCoordDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Oblique Coord Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create oblique coord dimension"));
|
||||
|
||||
std::vector<TechDraw::ReferenceEntry> refs;
|
||||
for (auto& subName : selection[0].getSubNames()) {
|
||||
@@ -1880,13 +1832,8 @@ CmdTechDrawExtensionCreateObliqueCoordDimension::CmdTechDrawExtensionCreateObliq
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Oblique Coordinate Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create multiple evenly spaced oblique dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- The first two vertexes also define the direction<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Oblique Coordinate Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Adds evenly spaced oblique dimensions between 3 or more vertices aligned to a shared baseline");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateObliqueCoordDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateObliqueCoordDimension";
|
||||
@@ -1916,12 +1863,8 @@ CmdTechDrawExtensionCreateCoordDimensionGroup::CmdTechDrawExtensionCreateCoordDi
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Coordinate Dimensions");
|
||||
sToolTipText = QT_TR_NOOP("Create multiple evenly spaced horizontal dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Coordinate Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Adds evenly spaced horizontal dimensions between 3 or more vertices aligned to a shared baseline");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateCoordDimensionGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -1931,8 +1874,8 @@ void CmdTechDrawExtensionCreateCoordDimensionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionCascadeDimansionGroup - 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;
|
||||
}
|
||||
|
||||
@@ -1992,32 +1935,19 @@ void CmdTechDrawExtensionCreateCoordDimensionGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizCoordDimension", "Create Horizontal Coordinate Dimensions"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizCoordDimension", "Horizontal Coordinate Dimension"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateHorizCoordDimension",
|
||||
"Create multiple evenly spaced horizontal dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- Click this tool"));
|
||||
"Adds evenly spaced horizontal dimensions between 3 or more vertices aligned to a shared baseline"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertCoordDimension", "Create Vertical Coordinate Dimensions"));
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertCoordDimension", "Vertical Coordinate Dimension"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateVertCoordDimension",
|
||||
"Create multiple evenly spaced vertical dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- Click this tool"));
|
||||
"Adds evenly spaced vertical dimensions between 3 or more vertices aligned to a shared baseline"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionCreateObliqueCoordDimension", "Create Oblique Coordinate Dimensions"));
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionCreateObliqueCoordDimension", "Oblique Coordinate Dimension"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateObliqueCoordDimension",
|
||||
"Create multiple evenly spaced oblique dimensions starting from the same baseline:<br>\
|
||||
- Specify the cascade spacing (optional)<br>\
|
||||
- Select three or more vertexes<br>\
|
||||
- The selection order of the first two vertexes determines the position of the baseline<br>\
|
||||
- The first two vertexes also define the direction<br>\
|
||||
- Click this tool"));
|
||||
"Adds evenly spaced oblique dimensions between 3 or more vertices aligned to a shared baseline"));
|
||||
arc3->setStatusTip(arc3->text());
|
||||
}
|
||||
|
||||
@@ -2040,7 +1970,7 @@ void execCreateHorizChamferDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horiz Chamfer Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Horizontal Chamfer Dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -2074,10 +2004,8 @@ CmdTechDrawExtensionCreateHorizChamferDimension::CmdTechDrawExtensionCreateHoriz
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Create a horizontal size and angle dimension for a chamfer:<br>\
|
||||
- Select two vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a horizontal size and angle dimension for a chamfer from 2 selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateHorizChamferDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateHorizChamferDimension";
|
||||
@@ -2108,7 +2036,7 @@ void execCreateVertChamferDimension(Gui::Command* cmd) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Chamfer Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Vert Chamfer Dimension"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
std::vector<dimVertex> allVertexes;
|
||||
allVertexes = _getVertexInfo(objFeat, subNames);
|
||||
@@ -2142,10 +2070,8 @@ CmdTechDrawExtensionCreateVertChamferDimension::CmdTechDrawExtensionCreateVertCh
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Vertical Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Create a vertical size and angle dimension for a chamfer:<br>\
|
||||
- Select two vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Vertical Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a vertical size and angle dimension for a chamfer from 2 selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateVertChamferDimension";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateVertChamferDimension";
|
||||
@@ -2175,10 +2101,8 @@ CmdTechDrawExtensionChamferDimensionGroup::CmdTechDrawExtensionChamferDimensionG
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Horizontal Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Create a horizontal size and angle dimension for a chamfer:<br>\
|
||||
- Select two vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Horizontal Chamfer Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts a horizontal size and angle dimension for a chamfer from 2 selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionChamferDimensionGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -2188,8 +2112,8 @@ void CmdTechDrawExtensionChamferDimensionGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionIncreaseDecreaseGroup - 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;
|
||||
}
|
||||
|
||||
@@ -2242,18 +2166,14 @@ void CmdTechDrawExtensionChamferDimensionGroup::languageChange()
|
||||
QList<QAction*> a = pcAction->actions();
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizChamferDimension", "Create Horizontal Chamfer Dimension"));
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionCreateHorizChamferDimension", "Horizontal Chamfer Dimension"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateHorizChamferDimension",
|
||||
"Create a horizontal size and angle dimension for a chamfer:<br>\
|
||||
- Select two vertexes<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a horizontal size and angle dimension for a chamfer from 2 selected vertices"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertChamferDimension", "Create Vertical Chamfer Dimension"));
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionCreateVertChamferDimension", "Vertical Chamfer Dimension"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionCreateVertChamferDimension",
|
||||
"Create a vertical size and angle dimension for a chamfer:<br>\
|
||||
- Select two vertexes<br>\
|
||||
- Click this tool"));
|
||||
"Inserts a vertical size and angle dimension for a chamfer from 2 selected vertices"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
}
|
||||
|
||||
@@ -2275,10 +2195,8 @@ CmdTechDrawExtensionCreateLengthArc::CmdTechDrawExtensionCreateLengthArc()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Create Arc Length Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Create an arc length dimension:<br>\
|
||||
- Select a single arc<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Arc Length Dimension");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an arc length dimension to the selected arc");
|
||||
sWhatsThis = "TechDraw_ExtensionCreateLengthArc";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCreateLengthArc";
|
||||
@@ -2293,7 +2211,7 @@ void CmdTechDrawExtensionCreateLengthArc::activated(int iMsg) {
|
||||
return;
|
||||
}
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Arc Length Dim"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Arc Length Dimension"));
|
||||
ReferenceEntry ref(objFeat, selection[0].getSubNames()[0]);
|
||||
|
||||
TechDraw::DrawViewDimension* dim = makeArcLengthDimension(ref);
|
||||
@@ -2327,9 +2245,7 @@ CmdTechDrawExtensionCustomizeFormat::CmdTechDrawExtensionCustomizeFormat()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Customize Format Label");
|
||||
sToolTipText = QT_TR_NOOP("Select a dimension or a balloon<br>\
|
||||
- click this tool<br>\
|
||||
- edit the Format field, using the keyboard and/or the special buttons");
|
||||
sToolTipText = QT_TR_NOOP("Customizes the format label of a selected dimension or balloon");
|
||||
sWhatsThis = "TechDraw_ExtensionCustomizeFormat";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_ExtensionCustomizeFormat";
|
||||
@@ -2448,7 +2364,7 @@ namespace TechDrawGui {
|
||||
if (subs.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr(message.c_str()),
|
||||
QObject::tr("No subelements selected"));
|
||||
QObject::tr("No sub-elements selected"));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -103,7 +103,7 @@ void execHoleCircle(Gui::Command* cmd)
|
||||
//create centerlines of a hole/bolt circle
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Hole Circle"))) {
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw hole circle"))) {
|
||||
return;
|
||||
}
|
||||
const std::vector<std::string> SubNames = selection[0].getSubNames();
|
||||
@@ -120,11 +120,11 @@ void execHoleCircle(Gui::Command* cmd)
|
||||
}
|
||||
}
|
||||
if (Circles.size() <= 2) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("TechDraw Hole Circle"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("TechDraw hole circle"),
|
||||
QObject::tr("Fewer than three circles selected"));
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Bolt Circle Centerlines"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Bolt circle centerlines"));
|
||||
|
||||
// make the bolt hole circle from 3 scaled and rotated points
|
||||
Base::Vector3d bigCenter =
|
||||
@@ -169,11 +169,8 @@ CmdTechDrawExtensionHoleCircle::CmdTechDrawExtensionHoleCircle()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Bolt Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Add centerlines to a circular pattern of circles:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select three or more circles forming a circular pattern<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Bolt Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Adds centerlines to a circular pattern of three or more selected circles");
|
||||
sWhatsThis = "TechDraw_ExtensionHoleCircle";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionHoleCircle";
|
||||
@@ -202,7 +199,7 @@ void execCircleCenterLines(Gui::Command* cmd)
|
||||
// create circle centerlines
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Circle Centerlines"))) {
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw circle centerlines"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Circle Centerlines"));
|
||||
@@ -245,11 +242,8 @@ CmdTechDrawExtensionCircleCenterLines::CmdTechDrawExtensionCircleCenterLines()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Add centerlines to circles and arcs:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles or arcs<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Adds centerlines to the selected circles and arcs");
|
||||
sWhatsThis = "TechDraw_ExtensionCircleCenterLines";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionCircleCenterLines";
|
||||
@@ -279,11 +273,8 @@ CmdTechDrawExtensionCircleCenterLinesGroup::CmdTechDrawExtensionCircleCenterLine
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Add centerlines to circles and arcs:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles or arcs<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Circle Centerlines");
|
||||
sToolTipText = QT_TR_NOOP("Adds centerlines to selected circles and arcs");
|
||||
sWhatsThis = "TechDraw_ExtensionCircleCenterLinesGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -292,7 +283,7 @@ void CmdTechDrawExtensionCircleCenterLinesGroup::activated(int iMsg)
|
||||
{
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
@@ -348,21 +339,15 @@ void CmdTechDrawExtensionCircleCenterLinesGroup::languageChange()
|
||||
|
||||
QAction* arc1 = action[0];
|
||||
arc1->setText(
|
||||
QApplication::translate("CmdTechDrawExtensionCircleCenterLines", "Add Circle Centerlines"));
|
||||
QApplication::translate("CmdTechDrawExtensionCircleCenterLines", "Circle Centerlines"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionCircleCenterLines",
|
||||
"Add centerlines to circles and arcs:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles or arcs<br>\
|
||||
- Click this tool"));
|
||||
"Adds centerlines to selected circles and arcs:"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = action[1];
|
||||
arc2->setText(
|
||||
QApplication::translate("CmdTechDrawExtensionHoleCircle", "Add Bolt Circle Centerlines"));
|
||||
QApplication::translate("CmdTechDrawExtensionHoleCircle", "Bolt Circle Centerlines"));
|
||||
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionHoleCircle",
|
||||
"Add centerlines to a circular pattern of circles:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select three or more circles forming a circular pattern<br>\
|
||||
- Click this tool"));
|
||||
"Adds centerlines to a circular pattern of selected circles"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
}
|
||||
|
||||
@@ -404,11 +389,8 @@ CmdTechDrawExtensionThreadHoleSide::CmdTechDrawExtensionThreadHoleSide()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Thread Hole Side View");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic thread to the side view of a hole:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select two parallel lines<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Thread Hole Side View");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic thread to the side view of a hole or circle");
|
||||
sWhatsThis = "TechDraw_ExtensionThreadHoleSide";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionThreadHoleSide";
|
||||
@@ -458,11 +440,9 @@ CmdTechDrawExtensionThreadBoltSide::CmdTechDrawExtensionThreadBoltSide()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Thread Bolt Side View");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic thread to the side view of a bolt/screw/rod:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select two parallel lines<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Thread Bolt Side View");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic thread to the side view of a "
|
||||
"bolt/screw/rod between two selected parallel lines");
|
||||
sWhatsThis = "TechDraw_ExtensionThreadBoltSide";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionThreadBoltSide";
|
||||
@@ -494,7 +474,7 @@ void execThreadHoleBottom(Gui::Command* cmd)
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Thread Hole Bottom"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic Thread Hole Bottom"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic thread hole bottom"));
|
||||
const std::vector<std::string> SubNames = selection[0].getSubNames();
|
||||
for (const std::string& Name : SubNames) {
|
||||
_createThreadCircle(Name, objFeat, ThreadFactor);
|
||||
@@ -512,11 +492,8 @@ CmdTechDrawExtensionThreadHoleBottom::CmdTechDrawExtensionThreadHoleBottom()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Thread Hole Bottom View");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic thread to the top or bottom view of holes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Thread Hole Bottom View");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic thread to the top or bottom view of selected holes or circles");
|
||||
sWhatsThis = "TechDraw_ExtensionThreadHoleBottom";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionThreadHoleBottom";
|
||||
@@ -566,12 +543,9 @@ CmdTechDrawExtensionThreadBoltBottom::CmdTechDrawExtensionThreadBoltBottom()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Thread Bolt Bottom View");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Thread Bolt Bottom View");
|
||||
sToolTipText =
|
||||
QT_TR_NOOP("Add a cosmetic thread to the top or bottom view of bolts/screws/rods:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles<br>\
|
||||
- Click this tool");
|
||||
QT_TR_NOOP("Adds a cosmetic thread to the top or bottom view of the selected bolts/screws/rods");
|
||||
sWhatsThis = "TechDraw_ExtensionThreadBoltBottom";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionThreadBoltBottom";
|
||||
@@ -601,11 +575,8 @@ CmdTechDrawExtensionThreadsGroup::CmdTechDrawExtensionThreadsGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Thread Hole Side View");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic thread to the side view of a hole:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select two parallel lines<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Thread Hole Side View");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic thread to the side view of a selected hole between two selected parallel lines");
|
||||
sWhatsThis = "TechDraw_ExtensionThreadsGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -615,7 +586,7 @@ void CmdTechDrawExtensionThreadsGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::TechDrawExtensionThreadsGroup - activated(%d)\n", iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
@@ -685,42 +656,32 @@ void CmdTechDrawExtensionThreadsGroup::languageChange()
|
||||
|
||||
QAction* arc1 = action[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionThreadHoleSide",
|
||||
"Add Cosmetic Thread Hole Side View"));
|
||||
"Cosmetic Thread Hole Side View"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionThreadHoleSide",
|
||||
"Add a cosmetic thread to the side view of a hole:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select two parallel lines<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic thread to the side view of a "
|
||||
"selected hole between two selected parallel lines"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = action[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionThreadHoleBottom",
|
||||
"Add Cosmetic Thread Hole Bottom View"));
|
||||
"Cosmetic Thread Hole Bottom View"));
|
||||
arc2->setToolTip(
|
||||
QApplication::translate("CmdTechDrawExtensionThreadHoleBottom",
|
||||
"Add a cosmetic thread to the top or bottom view of holes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic thread to the top or bottom view of holes or circles"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
QAction* arc3 = action[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionThreadBoltSide",
|
||||
"Add Cosmetic Thread Bolt Side View"));
|
||||
"Cosmetic Thread Bolt Side View"));
|
||||
arc3->setToolTip(
|
||||
QApplication::translate("CmdTechDrawExtensionThreadBoltSide",
|
||||
"Add a cosmetic thread to the side view of a bolt/screw/rod:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select two parallel lines<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic thread to the side view of a bolt/screw/rod "
|
||||
"between two selected parallel lines"));
|
||||
arc3->setStatusTip(arc3->text());
|
||||
QAction* arc4 = action[3];
|
||||
arc4->setText(QApplication::translate("CmdTechDrawExtensionThreadBoltBottom",
|
||||
"Add Cosmetic Thread Bolt Bottom View"));
|
||||
"Cosmetic Thread Bolt Bottom View"));
|
||||
arc4->setToolTip(QApplication::translate(
|
||||
"CmdTechDrawExtensionThreadBoltBottom",
|
||||
"Add a cosmetic thread to the top or bottom view of bolts/screws/rods:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more circles<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic thread to the top or bottom view of the selected bolts/screws/rods"));
|
||||
arc4->setStatusTip(arc4->text());
|
||||
}
|
||||
|
||||
@@ -744,10 +705,7 @@ CmdTechDrawExtensionSelectLineAttributes::CmdTechDrawExtensionSelectLineAttribut
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Select Line Attributes, Cascade Spacing and Delta Distance");
|
||||
sToolTipText = QT_TR_NOOP(
|
||||
"Select the attributes for new cosmetic lines and centerlines, and specify the cascade spacing and delta distance:<br>\
|
||||
- Click this tool<br>\
|
||||
- Specify the attributes, spacing and distance in the dialog box<br>\
|
||||
- Press OK");
|
||||
"Configures the default attributes for cosmetic lines and centerlines, including cascade spacing and delta distance");
|
||||
sWhatsThis = "TechDraw_ExtensionSelectLineAttributes";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionSelectLineAttributes";
|
||||
@@ -778,10 +736,7 @@ CmdTechDrawExtensionChangeLineAttributes::CmdTechDrawExtensionChangeLineAttribut
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Change Line Attributes");
|
||||
sToolTipText = QT_TR_NOOP("Change the attributes of cosmetic lines and centerlines:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select one or more lines<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Changes the selected cosmetic lines and centerlines to the specified attributes");
|
||||
sWhatsThis = "TechDraw_ExtensionChangeLineAttributes";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionChangeLineAttributes";
|
||||
@@ -793,10 +748,10 @@ void CmdTechDrawExtensionChangeLineAttributes::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Change Line Attributes"))) {
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw change line attributes"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Change Line Attributes"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Change line attributes"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
for (const std::string& name : subNames) {
|
||||
int num = DrawUtil::getIndexFromName(name);
|
||||
@@ -838,11 +793,9 @@ CmdTechDrawExtensionVertexAtIntersection::CmdTechDrawExtensionVertexAtIntersecti
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Intersection Vertex(es)");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Intersection Vertices");
|
||||
sToolTipText =
|
||||
QT_TR_NOOP("Add cosmetic vertex(es) at the intersection(s) of selected edges:<br>\
|
||||
- Select two edges<br>\
|
||||
- Click this tool");
|
||||
QT_TR_NOOP("Adds cosmetic vertices at the intersections of selected edges");
|
||||
sWhatsThis = "TechDraw_ExtensionVertexAtIntersection";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionVertexAtIntersection";
|
||||
@@ -854,10 +807,10 @@ void CmdTechDrawExtensionVertexAtIntersection::activated(int iMsg)
|
||||
//Base::Console().message("VertexAtIntersection started\n");
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Cosmetic Intersection Vertex(es)"))) {
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw cosmetic intersection vertices"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic Intersection Vertex(es)"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic intersection vertices"));
|
||||
const std::vector<std::string> SubNames = selection[0].getSubNames();
|
||||
if (SubNames.size() >= 2) {
|
||||
std::string GeoType1 = TechDraw::DrawUtil::getGeomTypeFromName(SubNames[0]);
|
||||
@@ -900,10 +853,10 @@ void execDrawCosmArc(Gui::Command* cmd)
|
||||
//draw a cosmetic arc of circle
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Cosmetic Arc"))) {
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw cosmetic arc"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic Arc"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic arc"));
|
||||
const std::vector<std::string> SubNames = selection[0].getSubNames();
|
||||
std::vector<Base::Vector3d> vertexPoints;
|
||||
vertexPoints = _getVertexPoints(SubNames, objFeat);
|
||||
@@ -938,13 +891,9 @@ CmdTechDrawExtensionDrawCosmArc::CmdTechDrawExtensionDrawCosmArc()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Arc");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic counter clockwise arc based on three vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select vertex 1 (center point)<br>\
|
||||
- Select vertex 2 (radius and start angle)<br>\
|
||||
- Select vertex 3 (end angle)<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Arc");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic counter clockwise arc based on three vertices, "
|
||||
"where the first selection is the center point and the second is the radius and start point");
|
||||
sWhatsThis = "TechDraw_ExtensionDrawCosmArc";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionDrawCosmArc";
|
||||
@@ -973,7 +922,7 @@ void execDrawCosmCircle(Gui::Command* cmd)
|
||||
//draw a cosmetic circle
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Cosmetic Circle"))) {
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw cosmetic circle"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Cosmetic Circle"));
|
||||
@@ -1002,12 +951,9 @@ CmdTechDrawExtensionDrawCosmCircle::CmdTechDrawExtensionDrawCosmCircle()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Circle");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic circle based on two vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select vertex 1 (center point)<br>\
|
||||
- Select vertex 2 (radius)<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Circle");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic circle based on two selected vertices, where the "
|
||||
"first is the ceneter point and the second is the radius");
|
||||
sWhatsThis = "TechDraw_ExtensionDrawCosmCircle";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionDrawCosmCircle";
|
||||
@@ -1068,11 +1014,8 @@ CmdTechDrawExtensionDrawCosmCircle3Points::CmdTechDrawExtensionDrawCosmCircle3Po
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Circle 3 Points");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic circle based on three vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select 3 vertexes<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Circle 3 Points");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic circle to three selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionDrawCosmCircle3Points";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionDrawCosmCircle3Points";
|
||||
@@ -1103,12 +1046,8 @@ CmdTechDrawExtensionDrawCirclesGroup::CmdTechDrawExtensionDrawCirclesGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Circle");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic circle based on two vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select vertex 1 (center point)<br>\
|
||||
- Select vertex 2 (radius)<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Circle");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic circle based on two vertices, where the first selection is the centerpoint and the second is the radius");
|
||||
sWhatsThis = "TechDraw_ExtensionDrawCirclesGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -1118,7 +1057,7 @@ void CmdTechDrawExtensionDrawCirclesGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionDrawCirclesGroup - activated(%d)\n", iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
@@ -1181,33 +1120,23 @@ void CmdTechDrawExtensionDrawCirclesGroup::languageChange()
|
||||
|
||||
QAction* arc1 = action[0];
|
||||
arc1->setText(
|
||||
QApplication::translate("CmdTechDrawExtensionDrawCosmCircle", "Add Cosmetic Circle"));
|
||||
QApplication::translate("CmdTechDrawExtensionDrawCosmCircle", "Cosmetic Circle"));
|
||||
arc1->setToolTip(QApplication::translate("CmdTechDrawExtensionDrawCosmCircle",
|
||||
"Add a cosmetic circle based on two vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select vertex 1 (center point)<br>\
|
||||
- Select vertex 2 (radius)<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic circle based on two vertices, where "
|
||||
"the first selection is the centerpoint and the second is the radius"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = action[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionDrawCosmArc", "Add Cosmetic Arc"));
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionDrawCosmArc", "Cosmetic Arc"));
|
||||
arc2->setToolTip(
|
||||
QApplication::translate("CmdTechDrawExtensionDrawCosmArc",
|
||||
"Add a cosmetic counter clockwise arc based on three vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select vertex 1 (center point)<br>\
|
||||
- Select vertex 2 (radius and start angle)<br>\
|
||||
- Select vertex 3 (end angle)<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic counter clockwise arc based on three vertices, "
|
||||
"where the first selection is the center point and the second is the radius and start point."));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
QAction* arc3 = action[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawExtensionDrawCosmCircle3Points",
|
||||
"Add Cosmetic Circle 3 Points"));
|
||||
"Cosmetic 3 Point Circle"));
|
||||
arc3->setToolTip(QApplication::translate("CmdTechDrawExtensionDrawCosmCircle3Points",
|
||||
"Add a cosmetic circle based on three vertexes:<br>\
|
||||
- Specify the line attributes (optional)<br>\
|
||||
- Select three vertexes<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic circle to 3 selected vertices"));
|
||||
arc3->setStatusTip(arc3->text());
|
||||
}
|
||||
|
||||
@@ -1284,11 +1213,8 @@ CmdTechDrawExtensionLineParallel::CmdTechDrawExtensionLineParallel()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Parallel Line");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic line parallel to another line through a vertex:<br>\
|
||||
- Select a line<br>\
|
||||
- Select a vertex<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Parallel Line");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic circle to 3 selected vertices");
|
||||
sWhatsThis = "TechDraw_ExtensionLineParallel";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionLineParallel";
|
||||
@@ -1318,12 +1244,9 @@ CmdTechDrawExtensionLinePerpendicular::CmdTechDrawExtensionLinePerpendicular()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Perpendicular Line");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Perpendicular Line");
|
||||
sToolTipText =
|
||||
QT_TR_NOOP("Add a cosmetic line perpendicular to another line through a vertex:<br>\
|
||||
- Select a line<br>\
|
||||
- Select a vertex<br>\
|
||||
- Click this tool");
|
||||
QT_TR_NOOP("Adds a cosmetic line perpendicular to the selected line through the selected vertex");
|
||||
sWhatsThis = "TechDraw_ExtensionLinePerpendicular";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionLinePerpendicular";
|
||||
@@ -1353,11 +1276,8 @@ CmdTechDrawExtensionLinePPGroup::CmdTechDrawExtensionLinePPGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Add Cosmetic Parallel Line");
|
||||
sToolTipText = QT_TR_NOOP("Add a cosmetic line parallel to another line through a vertex:<br>\
|
||||
- Select a line<br>\
|
||||
- Select a vertex<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Cosmetic Parallel Line");
|
||||
sToolTipText = QT_TR_NOOP("Adds a cosmetic line parallel to the selected line through the selected vertex");
|
||||
sWhatsThis = "TechDraw_ExtensionLinePPGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -1367,7 +1287,7 @@ void CmdTechDrawExtensionLinePPGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtensionLinePPGroup - activated(%d)\n", iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
@@ -1423,23 +1343,17 @@ void CmdTechDrawExtensionLinePPGroup::languageChange()
|
||||
|
||||
QAction* arc1 = action[0];
|
||||
arc1->setText(
|
||||
QApplication::translate("CmdTechDrawExtensionLineParallel", "Add Cosmetic Parallel Line"));
|
||||
QApplication::translate("CmdTechDrawExtensionLineParallel", "Cosmetic Parallel Line"));
|
||||
arc1->setToolTip(
|
||||
QApplication::translate("CmdTechDrawExtensionLineParallel",
|
||||
"Add a cosmetic line parallel to another line through a vertex:<br>\
|
||||
- Select a line<br>\
|
||||
- Select a vertex<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic line parallel to the selected line through the selected vertex"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = action[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionLinePerpendicular",
|
||||
"Add Cosmetic Perpendicular Line"));
|
||||
"Cosmetic Perpendicular Line"));
|
||||
arc2->setToolTip(QApplication::translate(
|
||||
"CmdTechDrawExtensionLinePerpendicular",
|
||||
"Add a cosmetic line perpendicular to another line through a vertex:<br>\
|
||||
- Select a line<br>\
|
||||
- Select a vertex<br>\
|
||||
- Click this tool"));
|
||||
"Adds a cosmetic line perpendicular to the selected line through the selected vertex"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
}
|
||||
|
||||
@@ -1461,10 +1375,8 @@ CmdTechDrawExtensionLockUnlockView::CmdTechDrawExtensionLockUnlockView()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Lock/Unlock View");
|
||||
sToolTipText = QT_TR_NOOP("Lock or unlock the position of a view:<br>\
|
||||
- Select view(s)<br>\
|
||||
- Click this tool");
|
||||
sMenuText = QT_TR_NOOP("Toggle View Lock");
|
||||
sToolTipText = QT_TR_NOOP("Locks or unlocks the position of the selected views");
|
||||
sWhatsThis = "TechDraw_ExtensionLockUnlockView";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionLockUnlockView";
|
||||
@@ -1511,7 +1423,7 @@ void execExtendShortenLine(Gui::Command* cmd, bool extend)
|
||||
if (!_checkSel(cmd, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Extend/Shorten Line"))) {
|
||||
return;
|
||||
}
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Extend/Shorten Line"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Extend/shorten line"));
|
||||
const std::vector<std::string> subNames = selection[0].getSubNames();
|
||||
if (!subNames.empty()) {
|
||||
std::string name = subNames[0];
|
||||
@@ -1594,12 +1506,9 @@ CmdTechDrawExtensionExtendLine::CmdTechDrawExtensionExtendLine()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Extend Line");
|
||||
sToolTipText = QT_TR_NOOP("Extend a cosmetic line or centerline at both ends:<br>\
|
||||
- Specify the delta distance (optional)<br>\
|
||||
- Select a single line<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Extends a selected cosmetic line or centerline at both ends by the specified delta distance");
|
||||
sWhatsThis = "TechDraw_ExtensionExtendLine";
|
||||
sStatusTip = sMenuText;
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_ExtensionExtendLine";
|
||||
}
|
||||
|
||||
@@ -1629,10 +1538,7 @@ CmdTechDrawExtensionShortenLine::CmdTechDrawExtensionShortenLine()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Shorten Line");
|
||||
sToolTipText = QT_TR_NOOP("Shorten a cosmetic line or centerline at both ends:<br>\
|
||||
- Specify the delta distance (optional)<br>\
|
||||
- Select a single line<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Shortens a selected cosmetic line or centerline at both ends by the specified delta distance");
|
||||
sWhatsThis = "TechDraw_ExtensionShortenLine";
|
||||
sStatusTip = sMenuText;
|
||||
sPixmap = "TechDraw_ExtensionShortenLine";
|
||||
@@ -1664,10 +1570,7 @@ CmdTechDrawExtendShortenLineGroup::CmdTechDrawExtendShortenLineGroup()
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Extend Line");
|
||||
sToolTipText = QT_TR_NOOP("Extend a cosmetic line or centerline at both ends:<br>\
|
||||
- Specify the delta distance (optional)<br>\
|
||||
- Select a single line<br>\
|
||||
- Click this tool");
|
||||
sToolTipText = QT_TR_NOOP("Extends a selected cosmetic line or centerline at both ends by the specified delta distance");
|
||||
sWhatsThis = "TechDraw_ExtensionExtendShortenLineGroup";
|
||||
sStatusTip = sMenuText;
|
||||
}
|
||||
@@ -1677,7 +1580,7 @@ void CmdTechDrawExtendShortenLineGroup::activated(int iMsg)
|
||||
// Base::Console().message("CMD::ExtendShortenLineGroup - activated(%d)\n", iMsg);
|
||||
Gui::TaskView::TaskDialog* dlg = Gui::Control().activeDialog();
|
||||
if (dlg) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task In Progress"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Task in progress"),
|
||||
QObject::tr("Close active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
@@ -1734,18 +1637,12 @@ void CmdTechDrawExtendShortenLineGroup::languageChange()
|
||||
QAction* arc1 = action[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawExtensionExtendLine", "Extend Line"));
|
||||
arc1->setToolTip(QApplication::translate(
|
||||
"CmdTechDrawExtensionExtendLine", "Extend a cosmetic line or centerline at both ends:<br>\
|
||||
- Specify the delta distance (optional)<br>\
|
||||
- Select a single line<br>\
|
||||
- Click this tool"));
|
||||
"CmdTechDrawExtensionExtendLine", "Extends a selected cosmetic line or centerline at both ends by the specified delta distance"));
|
||||
arc1->setStatusTip(arc1->text());
|
||||
QAction* arc2 = action[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawExtensionShortenLine", "Shorten Line"));
|
||||
arc2->setToolTip(QApplication::translate(
|
||||
"CmdTechDrawExtensionShortenLine", "Shorten a cosmetic line or centerline at both ends:<br>\
|
||||
- Specify the delta distance (optional)<br>\
|
||||
- Select a single line<br>\
|
||||
- Click this tool"));
|
||||
"CmdTechDrawExtensionShortenLine", "Shortens a selected cosmetic line or centerline at both ends by the specified delta distance"));
|
||||
arc2->setStatusTip(arc2->text());
|
||||
}
|
||||
|
||||
@@ -1767,8 +1664,8 @@ CmdTechDrawExtensionAreaAnnotation::CmdTechDrawExtensionAreaAnnotation()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Calculate the area of selected faces");
|
||||
sToolTipText = QT_TR_NOOP("Select several faces then click this tool");
|
||||
sMenuText = QT_TR_NOOP("Area Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Calculates the area of multiple selected faces");
|
||||
sWhatsThis = "TechDraw_ExtensionAreaAnnotation";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_ExtensionAreaAnnotation";
|
||||
@@ -1780,7 +1677,7 @@ void CmdTechDrawExtensionAreaAnnotation::activated(int iMsg)
|
||||
Q_UNUSED(iMsg);
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart* objFeat{nullptr};
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw calculate selected area"))) {
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command","TechDraw Calculate Selected Area"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1797,7 +1694,7 @@ void CmdTechDrawExtensionAreaAnnotation::activated(int iMsg)
|
||||
if (subNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("No faces in selection."));
|
||||
QObject::tr("No faces in selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1897,9 +1794,8 @@ CmdTechDrawExtensionArcLengthAnnotation::CmdTechDrawExtensionArcLengthAnnotation
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Calculate the arc length of selected edges");
|
||||
sToolTipText = QT_TR_NOOP("Select several edges<br>\
|
||||
- click this tool");
|
||||
sMenuText = QT_TR_NOOP("Arc Length Annotation");
|
||||
sToolTipText = QT_TR_NOOP("Inserts an annotation with the calculated arc length of the selected edges");
|
||||
sWhatsThis = "TechDraw_ExtensionArcLengthAnnotation";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "TechDraw_ExtensionArcLengthAnnotation";
|
||||
@@ -1912,7 +1808,7 @@ void CmdTechDrawExtensionArcLengthAnnotation::activated(int iMsg)
|
||||
|
||||
std::vector<Gui::SelectionObject> selection;
|
||||
TechDraw::DrawViewPart *objFeat{nullptr};
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command", "TechDraw calculate selected arc length"))) {
|
||||
if (!_checkSel(this, selection, objFeat, QT_TRANSLATE_NOOP("Command", "TechDraw Calculate Selected Arc Length"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1927,7 +1823,7 @@ void CmdTechDrawExtensionArcLengthAnnotation::activated(int iMsg)
|
||||
if (subNames.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("No edges in selection."));
|
||||
QObject::tr("No edges in selection"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2152,8 +2048,8 @@ void _createThreadLines(const std::vector<std::string>& SubNames, TechDraw::Draw
|
||||
TechDraw::BaseGeomPtr geom0 = objFeat->getGeomByIndex(GeoId0);
|
||||
TechDraw::BaseGeomPtr geom1 = objFeat->getGeomByIndex(GeoId1);
|
||||
if (geom0->getGeomType() != GeomType::GENERIC || geom1->getGeomType() != GeomType::GENERIC) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("TechDraw Thread Hole Side"),
|
||||
QObject::tr("Please select two straight lines"));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("TechDraw thread hole side"),
|
||||
QObject::tr("Select 2 straight lines"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,8 +87,8 @@ std::vector<std::string> CommandHelpers::getSelectedSubElements(Gui::Command* cm
|
||||
}
|
||||
}
|
||||
if (!dvp) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No Part View in Selection"));
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No part view in selection"));
|
||||
return selectedSubs;
|
||||
}
|
||||
|
||||
@@ -100,8 +100,8 @@ std::vector<std::string> CommandHelpers::getSelectedSubElements(Gui::Command* cm
|
||||
|
||||
if (selectedSubs.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Wrong Selection"),
|
||||
QObject::tr("No %1 in Selection")
|
||||
QObject::tr("Wrong selection"),
|
||||
QObject::tr("No %1 in selection")
|
||||
.arg(QString::fromStdString(subType)));
|
||||
return selectedSubs;
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ CmdTechDrawStackGroup::CmdTechDrawStackGroup()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Adjust stacking order of views");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("View Stacking Order");
|
||||
sToolTipText = QT_TR_NOOP("Adjusts the stacking order of the selected views");
|
||||
sWhatsThis = "TechDraw_StackGroup";
|
||||
sStatusTip = sToolTipText;
|
||||
}
|
||||
@@ -72,8 +72,8 @@ void CmdTechDrawStackGroup::activated(int 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 the active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -141,19 +141,19 @@ void CmdTechDrawStackGroup::languageChange()
|
||||
|
||||
QAction* arc1 = a[0];
|
||||
arc1->setText(QApplication::translate("CmdTechDrawStackGroup","Stack Top"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_StackTop","Move view to top of stack"));
|
||||
arc1->setToolTip(QApplication::translate("TechDraw_StackTop","Moves the view to the top of the stack"));
|
||||
arc1->setStatusTip(arc1->toolTip());
|
||||
QAction* arc2 = a[1];
|
||||
arc2->setText(QApplication::translate("CmdTechDrawStackGroup","Stack Bottom"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_StackBottom","Move view to bottom of stack"));
|
||||
arc2->setToolTip(QApplication::translate("TechDraw_StackBottom","Moves the view to the bottom of the stack"));
|
||||
arc2->setStatusTip(arc2->toolTip());
|
||||
QAction* arc3 = a[2];
|
||||
arc3->setText(QApplication::translate("CmdTechDrawStackGroup","Stack Up"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_StackUp","Move view up one level"));
|
||||
arc3->setToolTip(QApplication::translate("TechDraw_StackUp","Moves the view up one level"));
|
||||
arc3->setStatusTip(arc3->toolTip());
|
||||
QAction* arc4 = a[3];
|
||||
arc4->setText(QApplication::translate("CmdTechDrawStackGroup","Stack Down"));
|
||||
arc4->setToolTip(QApplication::translate("TechDraw_StackDown","Move view down one level"));
|
||||
arc4->setToolTip(QApplication::translate("TechDraw_StackDown","Moves the view down one level"));
|
||||
arc4->setStatusTip(arc4->toolTip());
|
||||
}
|
||||
|
||||
@@ -175,8 +175,8 @@ CmdTechDrawStackTop::CmdTechDrawStackTop()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Move view to top of stack");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Stack Top");
|
||||
sToolTipText = QT_TR_NOOP("Moves the selected view to the top of the stack");
|
||||
sWhatsThis = "TechDraw_StackTop";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_StackTop";
|
||||
@@ -188,8 +188,8 @@ void CmdTechDrawStackTop::activated(int 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 the active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -235,8 +235,8 @@ CmdTechDrawStackBottom::CmdTechDrawStackBottom()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Move view to bottom of stack");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Stack Bottom");
|
||||
sToolTipText = QT_TR_NOOP("Moves the selected view to the bottom of the stack");
|
||||
sWhatsThis = "TechDraw_StackBottom";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_StackBottom";
|
||||
@@ -248,8 +248,8 @@ void CmdTechDrawStackBottom::activated(int 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 the active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -295,8 +295,8 @@ CmdTechDrawStackUp::CmdTechDrawStackUp()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Move view up one level");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Stack Up");
|
||||
sToolTipText = QT_TR_NOOP("Moves the selected view up 1 level in the view stack");
|
||||
sWhatsThis = "TechDraw_StackUp";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_StackUp";
|
||||
@@ -308,8 +308,8 @@ void CmdTechDrawStackUp::activated(int 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 the active task dialog and try again."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -355,8 +355,8 @@ CmdTechDrawStackDown::CmdTechDrawStackDown()
|
||||
{
|
||||
sAppModule = "TechDraw";
|
||||
sGroup = QT_TR_NOOP("TechDraw");
|
||||
sMenuText = QT_TR_NOOP("Move view down one level");
|
||||
sToolTipText = sMenuText;
|
||||
sMenuText = QT_TR_NOOP("Stack Down");
|
||||
sToolTipText = QT_TR_NOOP("Moves the selected view down 1 level in the view stack");
|
||||
sWhatsThis = "TechDraw_StackDown";
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "actions/TechDraw_StackDown";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="lPrompt">
|
||||
<property name="text">
|
||||
<string>FreeCAD could not determine which Page to use. Please select a Page.</string>
|
||||
<string>FreeCAD could not determine which page to use. Select a page.</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
@@ -36,7 +36,7 @@
|
||||
<item>
|
||||
<widget class="QListWidget" name="lwPages">
|
||||
<property name="toolTip">
|
||||
<string>Select a Page that should be used</string>
|
||||
<string>Select a page that should be used</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<string>If this box is checked, double-clicking on a page in the tree will automatically switch to TechDraw and the page will be made visible.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Switch Workbench on Click</string>
|
||||
<string>Switch workbench on click</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -56,10 +56,10 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Dump intermediate results during Section view processing</string>
|
||||
<string>Dump intermediate results during section view processing</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Debug Section</string>
|
||||
<string>Debug section</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>debugSection</cstring>
|
||||
@@ -72,17 +72,17 @@
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Edge Fuzz</string>
|
||||
<string>Edge fuzz</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cbNewFaceFinder">
|
||||
<property name="toolTip">
|
||||
<string>If checked, FreeCAD will use the new face finder algorithm. If not checked, FreeCAD will use the legacy face finder algorithm.</string>
|
||||
<string>If checked, FreeCAD will use the new face finder algorithm. If not checked, FreeCAD will use the legacy face finder algorithm.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use New Face Finder Algorithm</string>
|
||||
<string>Use new face finder algorithm</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -104,10 +104,10 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Dump intermediate results during Detail view processing</string>
|
||||
<string>Dump intermediate results during detail view processing</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Debug Detail</string>
|
||||
<string>Debug detail</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>debugDetail</cstring>
|
||||
@@ -132,7 +132,7 @@ Faces must be detected in order to use hatching, but there
|
||||
can be a performance penalty in complex models.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detect Faces</string>
|
||||
<string>Detect faces</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -154,7 +154,7 @@ can be a performance penalty in complex models.</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Auto Correct Dimension Refs</string>
|
||||
<string>Auto-correct dimension references</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -174,7 +174,7 @@ can be a performance penalty in complex models.</string>
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Validate Shapes</string>
|
||||
<string>Validate shapes</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>CheckShapesBeforeUse</cstring>
|
||||
@@ -196,7 +196,7 @@ can be a performance penalty in complex models.</string>
|
||||
<string>Include edges with unexpected geometry (zero length etc.) in results</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow Crazy Edges</string>
|
||||
<string>Allow crazy edges</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>allowCrazyEdge</cstring>
|
||||
@@ -209,10 +209,10 @@ can be a performance penalty in complex models.</string>
|
||||
<item row="0" column="2">
|
||||
<widget class="Gui::PrefCheckBox" name="cbReportProgress">
|
||||
<property name="toolTip">
|
||||
<string>Issue progress messages while building View geometry</string>
|
||||
<string>Issue progress messages while building view geometry</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Report Progress</string>
|
||||
<string>Report progress</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ReportProgress</cstring>
|
||||
@@ -225,7 +225,7 @@ can be a performance penalty in complex models.</string>
|
||||
<item row="7" column="2">
|
||||
<widget class="Gui::PrefSpinBox" name="sbScrubCount">
|
||||
<property name="toolTip">
|
||||
<string>The number of times FreeCAD should try to remove overlapping edges returned by the Hidden Line Removal algorithm. A value of 0 indicates no scrubbing, 1 indicates a single pass and 2 indicates a second pass should be performed. Values above 2 are generally not productive. Each pass adds to the time required to produce the drawing.</string>
|
||||
<string>The number of times FreeCAD should try to remove overlapping edges returned by the hidden line removal algorithm. A value of 0 indicates no scrubbing, 1 indicates a single pass and 2 indicates a second pass should be performed. Values above 2 are generally not productive. Each pass adds to the time required to produce the drawing.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
|
||||
@@ -255,14 +255,14 @@ can be a performance penalty in complex models.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Overlap Edges Scrub Passes</string>
|
||||
<string>Overlap edges scrub passes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Mark Fuzz</string>
|
||||
<string>Mark fuzz</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -298,7 +298,7 @@ when hatching a face with a PAT pattern</string>
|
||||
<item row="10" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Max SVG Hatch Tiles</string>
|
||||
<string>Max SVG hatch tiles</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -308,7 +308,7 @@ when hatching a face with a PAT pattern</string>
|
||||
<string>If checked, shapes that fail validation will be saved as BREP files for later analysis.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Debug Bad Shape</string>
|
||||
<string>Debug bad shape</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>debugBadShape</cstring>
|
||||
@@ -332,10 +332,10 @@ when hatching a face with a PAT pattern</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Perform a fuse operation on input shape(s) before Section view processing</string>
|
||||
<string>Perform a fuse operation on input shapes before section view processing</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Fuse Before Section</string>
|
||||
<string>Fuse before section</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>SectionFuseFirst</cstring>
|
||||
@@ -409,7 +409,7 @@ Each unit is approx. 0.1 mm wide</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Size of selection area around edges
|
||||
Each unit is approx. 0.1 mm wide</string>
|
||||
Each unit is approximately 0.1mm wide</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
@@ -440,7 +440,7 @@ Each unit is approx. 0.1 mm wide</string>
|
||||
<string>Highlights border of section cut in section views</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Section Edges</string>
|
||||
<string>Show section edges</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -456,16 +456,16 @@ Each unit is approx. 0.1 mm wide</string>
|
||||
<item row="11" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Max PAT Hatch Segments</string>
|
||||
<string>Maximum PAT hatch segments</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<widget class="Gui::PrefSpinBox" name="sbMaxTiles">
|
||||
<property name="toolTip">
|
||||
<string>Limit of 64x64 pixel SVG tiles used to hatch a single face.
|
||||
For large scalings, you might get an error about too many SVG tiles.
|
||||
Then you need to increase the tile limit.</string>
|
||||
<string>Limits the number of 64×64 pixel SVG tiles used to hatch a single face.
|
||||
For large scales, errors may occur due to excessive tiling.
|
||||
Increase the limit if necessary.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignmentFlag::AlignRight</set>
|
||||
@@ -498,7 +498,7 @@ Then you need to increase the tile limit.</string>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="gbBehaviour">
|
||||
<property name="toolTip">
|
||||
<string>Some combinations of OS and Navigation style key bindings may conflict with the default modifier keys for Balloon dragging and View snapping override. You can make adjustments here to find a non-conflicting key binding.</string>
|
||||
<string>Choose non-conflicting key bindings as some combinations of OS and navigation style key bindings may conflict with the default modifier keys for balloon dragging and view snapping override.</string>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Behaviour Overrides</string>
|
||||
@@ -512,7 +512,7 @@ Then you need to increase the tile limit.</string>
|
||||
<string>Check this box to use the default modifier keys. Uncheck this box to set a different key combination.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use Default</string>
|
||||
<string>Use default</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -529,7 +529,7 @@ Then you need to increase the tile limit.</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Balloon Drag</string>
|
||||
<string>Balloon drag</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<string>Show arc centers in printed output</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Print Center Marks</string>
|
||||
<string>Print center marks</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>PrintCenterMarks</cstring>
|
||||
@@ -67,7 +67,7 @@
|
||||
<string>Show arc center marks in views</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Center Marks</string>
|
||||
<string>Show center marks</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -88,10 +88,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If checked, the section annotation will be drawn on the Source view. If unchecked, no section line, arrows or symbol will be shown in the Source view.</string>
|
||||
<string>Draws the section annotation on the source view. Otherwise, no section line, arrows or symbol will be shown in the source view.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Section Line in Source View</string>
|
||||
<string>Show section line in source view</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -131,10 +131,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If checked, the cut line will be drawn on the Source view. If unchecked, only the change marks, arrows and symbols will be displayed.</string>
|
||||
<string>Draws a cut line on the source view. Otherwise, only the change marks, arrows and symbols will be displayed.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Include Cut Line in Section Annotation</string>
|
||||
<string>Include cut line in section annotation</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -174,10 +174,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Length of horizontal portion of Balloon leader</string>
|
||||
<string>Length of horizontal portion of balloon leader</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Balloon Leader Kink Length</string>
|
||||
<string>Balloon leader kink length</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -189,7 +189,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Broken View Break Type</string>
|
||||
<string>Broken view break type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -202,10 +202,10 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Restrict Filled Triangle line end to vertical or horizontal directions</string>
|
||||
<string>Restrict filled triangle line end to vertical or horizontal directions</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Balloon Orthogonal Triangle</string>
|
||||
<string>Balloon orthogonal triangle</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -239,17 +239,17 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Solid Color</string>
|
||||
<string>Solid color</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>SVG Hatch</string>
|
||||
<string>SVG hatch</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>PAT Hatch</string>
|
||||
<string>PAT hatch</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -257,10 +257,10 @@
|
||||
<item row="5" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="pcbDetailMatting">
|
||||
<property name="toolTip">
|
||||
<string>This checkbox controls whether or not to display the outline around a detail view.</string>
|
||||
<string>Displays the outline around a detail view</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detail View Show Matting</string>
|
||||
<string>Detail view show matting</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -276,10 +276,10 @@
|
||||
<item row="6" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="pcbDetailHighlight">
|
||||
<property name="toolTip">
|
||||
<string>This checkbox controls whether or not to display a highlight around the detail area in the detail's source view.</string>
|
||||
<string>Highlights the detail area in the source view of the detail</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detail Source Show Highlight</string>
|
||||
<string>Detail source show highlight</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -300,7 +300,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detail View Outline Shape</string>
|
||||
<string>Detail view outline shape</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -321,7 +321,7 @@
|
||||
<string>Forces last leader line segment to be horizontal</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Leader Line Auto Horizontal</string>
|
||||
<string>Leader line auto horizontal</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -355,7 +355,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Balloon Leader End</string>
|
||||
<string>Balloon leader end</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -372,17 +372,17 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>No Break Lines</string>
|
||||
<string>No break lines</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ZigZag Lines</string>
|
||||
<string>Zigzag lines</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Simple Lines</string>
|
||||
<string>Simple lines</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -395,7 +395,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Balloon Shape</string>
|
||||
<string>Balloon shape</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -407,7 +407,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Section Cut Surface</string>
|
||||
<string>Section cut surface</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -438,10 +438,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show or hide marks at direction changes on ComplexSection lines.</string>
|
||||
<string>Shows markers at direction changes on complex section lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Complex Section Line Marks</string>
|
||||
<string>Complex section line marks</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -479,10 +479,10 @@
|
||||
<item row="13" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cbISODates">
|
||||
<property name="toolTip">
|
||||
<string>If this box is checked, templates will auto fill date fields using ccyy-mm-dd format even if that is not the standard format for the current locale.</string>
|
||||
<string>Fills out template date fields using ccyy-mm-dd format automatically, even if that is not the standard format for the current locale.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enforce ISO 8601 Date Format</string>
|
||||
<string>Enforce ISO 8601 date format</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>EnforceISODate</cstring>
|
||||
@@ -547,7 +547,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Center Line Style</string>
|
||||
<string>Center line style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -628,7 +628,7 @@
|
||||
<string>Line style of detail highlight on base view</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detail Highlight Style</string>
|
||||
<string>Detail highlight style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -640,7 +640,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Section Line Style</string>
|
||||
<string>Section line style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -677,7 +677,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Line Standard</string>
|
||||
<string>Line standard</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -695,9 +695,9 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Shape of line end caps. The default (round) should almost
|
||||
<string>Shape of line end caps. The default (round) should almost
|
||||
always be the right choice. Flat or square caps are useful
|
||||
if you are planning to use a drawing as a 1:1 cutting guide.
|
||||
for using drawings a 1:1 cutting guide.
|
||||
</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
@@ -765,7 +765,7 @@ if you are planning to use a drawing as a 1:1 cutting guide.
|
||||
<string>Line group used to set line widths</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Line Width Group</string>
|
||||
<string>Line width group</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -777,14 +777,14 @@ if you are planning to use a drawing as a 1:1 cutting guide.
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Line End Cap Shape</string>
|
||||
<string>Line end cap shape</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Hidden Line Style</string>
|
||||
<string>Hidden line style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -809,14 +809,14 @@ if you are planning to use a drawing as a 1:1 cutting guide.
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Break Line Style</string>
|
||||
<string>Break line style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="Gui::PrefComboBox" name="pcbBreakStyle">
|
||||
<property name="toolTip">
|
||||
<string>Style of line to be used in BrokenView.</string>
|
||||
<string>Style of line to be used in broken view.</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
|
||||
@@ -228,7 +228,7 @@ int DlgPrefsTechDrawAnnotationImp::prefMattingStyle() const
|
||||
void DlgPrefsTechDrawAnnotationImp::onLineGroupChanged(int index)
|
||||
{
|
||||
if (index == -1) { // there is no valid index yet
|
||||
ui->pcbLineGroup->setToolTip(QObject::tr("Please select a Line Group"));
|
||||
ui->pcbLineGroup->setToolTip(QObject::tr("Select a line group"));
|
||||
return;
|
||||
}
|
||||
// get the definition of the selected LineGroup (includes the name)
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Geometric Hatch</string>
|
||||
<string>Geometric hatch</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -81,7 +81,7 @@
|
||||
<item row="11" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="pcbMonochrome">
|
||||
<property name="toolTip">
|
||||
<string>If checked, FreeCAD will use a single color for all text and lines.</string>
|
||||
<string>Use a single colour for all text and lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Monochrome</string>
|
||||
@@ -167,7 +167,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Section Face</string>
|
||||
<string>Section face</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -257,7 +257,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Leaderline</string>
|
||||
<string>Leader line</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -277,7 +277,7 @@
|
||||
<item row="4" column="1">
|
||||
<widget class="Gui::PrefColorButton" name="pcbDimColor">
|
||||
<property name="toolTip">
|
||||
<string>Color of dimension lines and text.</string>
|
||||
<string>Color of dimension lines and text</string>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
@@ -297,7 +297,7 @@
|
||||
<item row="11" column="4">
|
||||
<widget class="Gui::PrefColorButton" name="pcbPageColor">
|
||||
<property name="toolTip">
|
||||
<string>Use a light color for dark text and dark color for light text.</string>
|
||||
<string>Use a light color for dark text and dark color for light text</string>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
@@ -389,7 +389,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Detail Highlight</string>
|
||||
<string>Detail highlight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -408,21 +408,21 @@
|
||||
<item row="11" column="3">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Page Color</string>
|
||||
<string>Page color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QLabel" name="label_14">
|
||||
<property name="text">
|
||||
<string>Section Line</string>
|
||||
<string>Section line</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="pcbLightOnDark">
|
||||
<property name="toolTip">
|
||||
<string>Check this to use light text and lines on dark backgrounds. Set Page Color to a dark color. Transparent or light color faces are recommended with this option.</string>
|
||||
<string>Uses light text and lines on dark backgrounds and sets page color to a dark color. Transparent or light color faces are recommended with this option.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Light on dark</string>
|
||||
@@ -492,7 +492,7 @@
|
||||
<string>Object faces will be transparent</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Transparent Faces</string>
|
||||
<string>Transparent faces</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ClearFace</cstring>
|
||||
@@ -589,7 +589,7 @@
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Grid Color</string>
|
||||
<string>Grid color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -601,7 +601,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Hidden Line</string>
|
||||
<string>Hidden line</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -640,7 +640,7 @@
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Template Underline</string>
|
||||
<string>Template underline</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dimension Format</string>
|
||||
<string>Dimension format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -93,7 +93,7 @@
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Diameter Symbol</string>
|
||||
<string>Diameter symbol</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -116,22 +116,22 @@
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ISO Oriented</string>
|
||||
<string>ISO oriented</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ISO Referencing</string>
|
||||
<string>ISO referencing</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ASME Inlined</string>
|
||||
<string>ASME inlined</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ASME Referencing</string>
|
||||
<string>ASME referencing</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -144,7 +144,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font Size</string>
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -165,7 +165,7 @@
|
||||
<string>Append unit to dimension values</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Units</string>
|
||||
<string>Show units</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>ShowUnits</cstring>
|
||||
@@ -183,7 +183,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Standard and Style</string>
|
||||
<string>Standard and style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -217,7 +217,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Arrow Size</string>
|
||||
<string>Arrow size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -229,7 +229,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Arrow Style</string>
|
||||
<string>Arrow style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -255,7 +255,7 @@
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Tolerance text scale
|
||||
Multiplier of 'Font Size'</string>
|
||||
Multiplier of 'Font size'</string>
|
||||
</property>
|
||||
<property name="accessibleName">
|
||||
<string/>
|
||||
@@ -288,7 +288,7 @@ Multiplier of 'Font Size'</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Tolerance Text Scale</string>
|
||||
<string>Tolerance text scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -304,7 +304,7 @@ Multiplier of 'Font Size'</string>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Number of decimals if 'Use Global Decimals' is not used</string>
|
||||
<string>Number of decimals if 'Use global decimals' is not used</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>2</number>
|
||||
@@ -361,7 +361,7 @@ Multiplier of 'Font Size'</string>
|
||||
<string>Use system setting for number of decimals</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use Global Decimals</string>
|
||||
<string>Use global decimals</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -395,7 +395,7 @@ Multiplier of 'Font Size'</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Alternate Decimals</string>
|
||||
<string>Alternate decimals</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -407,10 +407,10 @@ Multiplier of 'Font Size'</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ISO dimensions.</string>
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ISO dimensions</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Extension Gap Factor - ISO</string>
|
||||
<string>Extension gap factor - ISO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -435,10 +435,10 @@ Multiplier of 'Font Size'</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ASME dimensions.</string>
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ASME dimensions</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Extension Gap Factor - ASME</string>
|
||||
<string>Extension gap factor - ASME</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -446,7 +446,7 @@ Multiplier of 'Font Size'</string>
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbGapISO">
|
||||
<property name="toolTip">
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ISO dimensions.
|
||||
Value * linewidth is the gap.
|
||||
Value multiplied by the line width is the gap.
|
||||
Normally, no gap is used. If using a gap, the recommended value is 8.</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
@@ -463,7 +463,7 @@ Multiplier of 'Font Size'</string>
|
||||
<item row="10" column="2">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbGapASME">
|
||||
<property name="toolTip">
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ASME dimensions. Value * linewidth is the gap.
|
||||
<string>Controls the gap size between the dimension point and the start of the extension line for ASME dimensions. Value multiplied by the line width is the gap.
|
||||
Normally, no gap is used. If using a gap, the recommended value is 6.</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
@@ -488,7 +488,7 @@ Multiplier of 'Font Size'</string>
|
||||
<string>Controls the gap size between dimension line and dimension text for ISO dimensions.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Line Spacing - ISO</string>
|
||||
<string>Line spacing - ISO</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -496,7 +496,7 @@ Multiplier of 'Font Size'</string>
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbLineSpacingFactorISO">
|
||||
<property name="toolTip">
|
||||
<string>Controls the gap size between dimension line and dimension text.
|
||||
Value * linewidth is the line spacing.</string>
|
||||
Value multiplied by the line width is the line spacing.</string>
|
||||
</property>
|
||||
<property name="value">
|
||||
<double>2.000000000000000</double>
|
||||
@@ -545,18 +545,18 @@ Multiplier of 'Font Size'</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="dimensioningLabel">
|
||||
<property name="text">
|
||||
<string>Dimensioning tools:</string>
|
||||
<string>Dimensioning tools</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="dimensioningMode">
|
||||
<property name="toolTip">
|
||||
<string>Select the type of dimensioning tools for your toolbar:
|
||||
'Single tool': A single tool for all dimensioning in the toolbar: Distance, Distance X / Y, Angle, Radius. (Others in dropdown)
|
||||
'Separated tools': Individual tools for each dimensioning tool.
|
||||
'Both': You will have both the 'Dimension' tool and the separated tools.
|
||||
This setting is only for the toolbar. Whichever you choose, all tools are always available in the menu and through shortcuts.</string>
|
||||
<string>Choose the type of dimensioning tools shown in the toolbar:
|
||||
‘Single tool’ provides one unified tool for all dimension types (Distance, X/Y, Angle, Radius) with others in a drop-down.
|
||||
‘Separated tools’ displays individual tools for each dimension type.
|
||||
‘Both’ enables both the unified tool and the individual tools.
|
||||
This affects only the toolbar; all tools remain available via the menu and shortcuts.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -570,7 +570,7 @@ This setting is only for the toolbar. Whichever you choose, all tools are always
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="radiusDiameterMode">
|
||||
<property name="toolTip">
|
||||
<string>While using the Dimension tool you may choose how to handle circles and arcs:
|
||||
<string>While using the dimension tool you may choose how to handle circles and arcs:
|
||||
'Auto': The tool will apply radius to arcs and diameter to circles.
|
||||
'Diameter': The tool will apply diameter to all.
|
||||
'Radius': The tool will apply radius to all.</string>
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<string>Whether or not pages are updated every time the 3D model is changed</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update With 3D (global policy)</string>
|
||||
<string>Update with 3D (global policy)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -71,11 +71,11 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Whether or not a page's 'Keep Updated' property
|
||||
can override the global 'Update With 3D' parameter</string>
|
||||
<string>Controls whether or not a page's 'Keep Updated' property
|
||||
can override the global 'Update with 3D' parameter</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow Page Override (global policy)</string>
|
||||
<string>Allow page override (global policy)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -106,7 +106,7 @@ can override the global 'Update With 3D' parameter</string>
|
||||
This can slow down the response time.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Keep Page Up To Date</string>
|
||||
<string>Keep page up to date</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -137,7 +137,7 @@ This can slow down the response time.</string>
|
||||
for ProjectionGroups</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Auto-distribute Secondary Views</string>
|
||||
<string>Auto-distribute secondary views</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -178,11 +178,11 @@ for ProjectionGroups</string>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>* this font is also used for dimensions
|
||||
<string>* This font is also used for dimensions.
|
||||
Changes have no effect on existing dimensions.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Label Font*</string>
|
||||
<string>Label font*</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -236,7 +236,7 @@ for ProjectionGroups</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Label Size</string>
|
||||
<string>Label size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -316,7 +316,7 @@ for ProjectionGroups</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Projection Group Angle</string>
|
||||
<string>Projection group angle</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -329,7 +329,7 @@ for ProjectionGroups</string>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Use first- or third-angle multiview projection convention</string>
|
||||
<string>Use first or third-angle multiview projection convention</string>
|
||||
</property>
|
||||
<property name="sizeAdjustPolicy">
|
||||
<enum>QComboBox::AdjustToContents</enum>
|
||||
@@ -366,7 +366,7 @@ for ProjectionGroups</string>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Standard to be used to draw section lines. This affects the position of arrows and symbol.</string>
|
||||
<string>Standard to be used to draw section lines. This affects the position of arrows and symbol.</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
@@ -397,7 +397,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Section Line Convention</string>
|
||||
<string>Section line convention</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -441,7 +441,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>PAT File</string>
|
||||
<string>PAT file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -454,7 +454,7 @@ for ProjectionGroups</string>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preferred SVG or bitmap file for hatching. This value will also control the initial directory for choosing hatch patterns. You can use this to get hatch files from a local directory.</string>
|
||||
<string>Preferred SVG or bitmap file for hatching. This value will also control the initial directory for choosing hatch patterns. You can use this to get hatch files from a local directory.</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>FileHatch</cstring>
|
||||
@@ -510,7 +510,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Welding Directory</string>
|
||||
<string>Welding directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -561,7 +561,7 @@ for ProjectionGroups</string>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Starting directory for menu 'Insert Page using Template'</string>
|
||||
<string>Starting directory for 'Insert Page From Template' tool</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>TemplateDir</cstring>
|
||||
@@ -574,7 +574,7 @@ for ProjectionGroups</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Template Directory</string>
|
||||
<string>Template directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -605,14 +605,14 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Hatch Pattern File</string>
|
||||
<string>Hatch pattern file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Default Template</string>
|
||||
<string>Default template</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -624,7 +624,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Symbol Directory</string>
|
||||
<string>Symbol directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -661,7 +661,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Line Group File</string>
|
||||
<string>Line group file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -673,7 +673,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Pattern Name</string>
|
||||
<string>Pattern name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -711,10 +711,10 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Set ShowGrid property to true on new Pages.</string>
|
||||
<string>Set 'Show grid' property to true on new pages</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Grid</string>
|
||||
<string>Show grid</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -735,14 +735,14 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Grid Spacing</string>
|
||||
<string>Grid spacing</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="Gui::PrefUnitSpinBox" name="psb_GridSpacing" native="true">
|
||||
<property name="toolTip">
|
||||
<string>Distance between Page grid lines.</string>
|
||||
<string>Distance between page grid lines</string>
|
||||
</property>
|
||||
<property name="value" stdset="0">
|
||||
<double>10.000000000000000</double>
|
||||
@@ -786,7 +786,7 @@ for ProjectionGroups</string>
|
||||
<string>If enabled, clicking without Ctrl does not clear existing vertex/edge/face selection</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable Multiselection Mode</string>
|
||||
<string>Enable multi-selection mode</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
@@ -832,10 +832,10 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If checked, the 3D camera direction (or normal of a selected face) will be used as the view direction. If not checked, Views will be created as Front Views.</string>
|
||||
<string>Uses the 3D camera direction (or normal of a selected face) as the view direction. Otherwise, views will be created as front views.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use 3D Camera Direction</string>
|
||||
<string>Use 3D camera direction</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>UseCameraDirection</cstring>
|
||||
@@ -853,7 +853,7 @@ for ProjectionGroups</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If checked, view labels will be displayed even when frames are suppressed.</string>
|
||||
<string>Displays view labels even when frames are suppressed</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Always Show Label</string>
|
||||
@@ -888,10 +888,10 @@ for ProjectionGroups</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="cb_SnapViews">
|
||||
<property name="toolTip">
|
||||
<string>Check this box if you want views to snap into alignment when being dragged.</string>
|
||||
<string>Snaps views into alignment when being dragged</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Snap View Alignment</string>
|
||||
<string>Snap view alignment</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -910,7 +910,7 @@ for ProjectionGroups</string>
|
||||
<string>Check this box if you want detail view highlights to snap to the nearest vertex when dragging in TaskDetail.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Snap Detail Highlights</string>
|
||||
<string>Snap detail highlights</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -958,14 +958,14 @@ for ProjectionGroups</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>View Snapping Factor</string>
|
||||
<string>View snapping factor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_14">
|
||||
<property name="text">
|
||||
<string>Highlight SnappingFactor</string>
|
||||
<string>Highlight snapping factor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
Fast, but result is a collection of short straight lines.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use Polygon Approximation</string>
|
||||
<string>Use polygon approximation</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>UsePolygon</cstring>
|
||||
@@ -137,10 +137,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show hard and outline edges (always shown)</string>
|
||||
<string>Shows hard and outline edges (always shown)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Hard Lines</string>
|
||||
<string>Show hard lines</string>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
@@ -170,10 +170,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show hidden hard and outline edges</string>
|
||||
<string>Shows hidden hard and outline edges</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Hard Lines</string>
|
||||
<string>Show hard lines</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>HardHid</cstring>
|
||||
@@ -197,10 +197,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show smooth lines</string>
|
||||
<string>Shows smooth lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Smooth Lines</string>
|
||||
<string>Show smooth lines</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -227,10 +227,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show hidden smooth edges</string>
|
||||
<string>Shows hidden smooth edges</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Smooth Lines</string>
|
||||
<string>Show smooth lines</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>SmoothHid</cstring>
|
||||
@@ -254,10 +254,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show seam lines</string>
|
||||
<string>Shows seam lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Seam Lines</string>
|
||||
<string>Show seam lines</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
@@ -284,10 +284,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show hidden seam lines</string>
|
||||
<string>Shows hidden seam lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Seam Lines</string>
|
||||
<string>Show seam lines</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>SeamHid</cstring>
|
||||
@@ -311,10 +311,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Make lines of equal parameterization</string>
|
||||
<string>Makes lines of equal parameterization</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show UV ISO Lines</string>
|
||||
<string>Show UV ISO lines</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>IsoViz</cstring>
|
||||
@@ -338,10 +338,10 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Show hidden equal parameterization lines</string>
|
||||
<string>Shows hidden equal parameterization lines</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show UV ISO Lines</string>
|
||||
<string>Show UV ISO lines</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>IsoHid</cstring>
|
||||
@@ -365,7 +365,7 @@ Fast, but result is a collection of short straight lines.</string>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>ISO Count</string>
|
||||
<string>ISO count</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Page Scale</string>
|
||||
<string>Page scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -82,7 +82,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>View Custom Scale</string>
|
||||
<string>View custom scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -181,7 +181,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Default scale for views if 'View Scale Type' is 'Custom'</string>
|
||||
<string>Default scale for views if 'View scale type' is 'Custom'</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
@@ -211,7 +211,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>View Scale Type</string>
|
||||
<string>View scale type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -223,10 +223,10 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>If checked, Svg symbols, spreadsheet views and Draft views will use the original (incorrect) scaling method as used in v1.0 and earlier. If unchecked, a more accurate method will be used. </p></body></html></string>
|
||||
<string>Uses the original (incorrect) scaling method for SVG symbols, Spreadsheet views and Draft views as used in v1.0 and earlier. Otherwise, a more accurate method will be used.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Legacy Symbol Scaling</string>
|
||||
<string>Legacy symbol scaling</string>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>LegacySvgScaling</cstring>
|
||||
@@ -256,7 +256,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Size Adjustments</string>
|
||||
<string>Size adjustments</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
@@ -264,7 +264,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Vertex Scale</string>
|
||||
<string>Vertex scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -310,7 +310,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Center Mark Scale</string>
|
||||
<string>Center mark scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -367,7 +367,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Template Edit Mark</string>
|
||||
<string>Template edit mark</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -402,7 +402,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Welding Symbol Scale</string>
|
||||
<string>Welding symbol scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblMsg">
|
||||
<property name="text">
|
||||
<string>Text Name:</string>
|
||||
<string>Text name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -39,7 +39,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Value:</string>
|
||||
<string>Value</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -49,7 +49,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="cbAutofill">
|
||||
<property name="toolTip">
|
||||
<string>Check this box to reapply autofill to this field. </string>
|
||||
<string>Reapplies auto-fill to this field</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Autofill</string>
|
||||
@@ -62,7 +62,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>The autofill replacement value.</string>
|
||||
<string>The autofill replacement value</string>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
|
||||
@@ -94,15 +94,19 @@ MDIViewPage::MDIViewPage(ViewProviderPage* pageVp, Gui::Document* doc, QWidget*
|
||||
connect(m_toggleFrameAction, &QAction::triggered, this, &MDIViewPage::toggleFrame);
|
||||
|
||||
m_exportSVGAction = new QAction(tr("&Export SVG"), this);
|
||||
|
||||
connect(m_exportSVGAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::saveSVG));
|
||||
|
||||
m_exportDXFAction = new QAction(tr("Export DXF"), this);
|
||||
|
||||
connect(m_exportDXFAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::saveDXF));
|
||||
|
||||
m_exportPDFAction = new QAction(tr("Export PDF"), this);
|
||||
|
||||
connect(m_exportPDFAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::savePDF));
|
||||
|
||||
m_printAllAction = new QAction(tr("Print All Pages"), this);
|
||||
|
||||
connect(m_printAllAction, &QAction::triggered, this, qOverload<>(&MDIViewPage::printAllPages));
|
||||
|
||||
isSelectionBlocked = false;
|
||||
@@ -312,7 +316,8 @@ void MDIViewPage::printPdf()
|
||||
filter << QObject::tr("PDF (*.pdf)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export Page As PDF"),
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export Page as PDF"),
|
||||
|
||||
QString(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -488,9 +493,10 @@ void MDIViewPage::saveSVG()
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QStringLiteral("SVG (*.svg)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
filter << QObject::tr("All files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as SVG"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -509,9 +515,10 @@ void MDIViewPage::saveDXF()
|
||||
{
|
||||
QStringList filter;
|
||||
filter << QStringLiteral("DXF (*.dxf)");
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
filter << QObject::tr("All files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as DXF"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
@@ -536,6 +543,7 @@ void MDIViewPage::savePDF()
|
||||
filter << QObject::tr("All Files (*.*)");
|
||||
QString fn =
|
||||
Gui::FileDialog::getSaveFileName(Gui::getMainWindow(), QObject::tr("Export page as PDF"),
|
||||
|
||||
defaultFileName(), filter.join(QLatin1String(";;")));
|
||||
if (fn.isEmpty()) {
|
||||
return;
|
||||
|
||||
@@ -45,14 +45,14 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Symbol Dir</string>
|
||||
<string>Symbol directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="Gui::FileChooser" name="fcSymbolDir">
|
||||
<property name="toolTip">
|
||||
<string>Directory to welding symbols.</string>
|
||||
<string>Directory to welding symbols</string>
|
||||
</property>
|
||||
<property name="mode">
|
||||
<enum>Gui::FileChooser::Directory</enum>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>ActiveView to TD View</string>
|
||||
<string>Active View</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
@@ -41,7 +41,8 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If Crop Image is checked, crop captured image to this width.</string>
|
||||
<string>Crops captured image to this width</string>
|
||||
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -89,14 +90,14 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Crop To Height</string>
|
||||
<string>Crop to height</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="cbUse3d">
|
||||
<property name="text">
|
||||
<string>Use 3D Background</string>
|
||||
<string>Use 3D background</string>
|
||||
</property>
|
||||
<property name="autoExclusive">
|
||||
<bool>true</bool>
|
||||
@@ -112,7 +113,8 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>If Crop Image is checked, crop captured image to this height.</string>
|
||||
<string>Crops captured image to this height</string>
|
||||
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -134,7 +136,7 @@
|
||||
<string>Paint background yes/no</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Solid Background</string>
|
||||
<string>Solid background</string>
|
||||
</property>
|
||||
<property name="autoExclusive">
|
||||
<bool>true</bool>
|
||||
@@ -144,7 +146,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="cbNoBG">
|
||||
<property name="text">
|
||||
<string>No Background</string>
|
||||
<string>No background</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -157,14 +159,14 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Crop To Width</string>
|
||||
<string>Crop to width</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="cbCrop">
|
||||
<property name="text">
|
||||
<string>Crop Image</string>
|
||||
<string>Crop image</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -45,14 +45,14 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>X-Offset</string>
|
||||
<string>X-offset</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Y-Offset</string>
|
||||
<string>Y-offset</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Text Color:</string>
|
||||
<string>Text color:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="Gui::ColorButton" name="textColor">
|
||||
<property name="toolTip">
|
||||
<string>Color for 'Text'</string>
|
||||
<string>Color for text</string>
|
||||
</property>
|
||||
<property name="color">
|
||||
<color>
|
||||
@@ -54,7 +54,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Font Size:</string>
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -73,7 +73,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Fontsize for 'Text'</string>
|
||||
<string>Font size for text</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -92,7 +92,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Bubble Shape:</string>
|
||||
<string>Bubble shape:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -178,7 +178,7 @@
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Shape Scale:</string>
|
||||
<string>Shape scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -210,7 +210,7 @@
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>End Symbol:</string>
|
||||
<string>End symbol</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -224,7 +224,7 @@
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_10">
|
||||
<property name="text">
|
||||
<string>End Symbol Scale:</string>
|
||||
<string>End symbol scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -256,14 +256,14 @@
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>Line Visible:</string>
|
||||
<string>Line visible</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QComboBox" name="comboLineVisible">
|
||||
<property name="toolTip">
|
||||
<string>Whether the leader line is visible or not</string>
|
||||
<string>Controls whether the leader line is visible or not</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
@@ -283,7 +283,7 @@
|
||||
<item row="8" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Line Width:</string>
|
||||
<string>Line width</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -321,7 +321,7 @@
|
||||
<item row="9" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Leader Kink Length:</string>
|
||||
<string>Leader kink length</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -115,7 +115,7 @@ TaskCenterLine::TaskCenterLine(TechDraw::DrawViewPart* partFeat,
|
||||
} else if (geomType == "Vertex") {
|
||||
m_type = Type::VERTEX;
|
||||
} else {
|
||||
Base::Console().error("TaskCenterLine - unknown geometry type: %s. Can not proceed.\n", geomType.c_str());
|
||||
Base::Console().error("TaskCenterLine - unknown geometry type: %s. Cannot proceed.\n", geomType.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ void TaskCenterLine::setUiConnect()
|
||||
|
||||
void TaskCenterLine::setUiPrimary()
|
||||
{
|
||||
setWindowTitle(QObject::tr("Create Center Line"));
|
||||
setWindowTitle(QObject::tr("Centerline"));
|
||||
|
||||
if (m_partFeat) {
|
||||
std::string baseName = m_partFeat->getNameInDocument();
|
||||
@@ -206,7 +206,7 @@ void TaskCenterLine::setUiPrimary()
|
||||
|
||||
void TaskCenterLine::setUiEdit()
|
||||
{
|
||||
setWindowTitle(QObject::tr("Edit Center Line"));
|
||||
setWindowTitle(QObject::tr("Edit Centerline"));
|
||||
if (m_partFeat) {
|
||||
std::string baseName = m_partFeat->getNameInDocument();
|
||||
ui->leBaseView->setText(QString::fromStdString(baseName));
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Center Line</string>
|
||||
<string>Centerline</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
@@ -26,7 +26,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Base View</string>
|
||||
<string>Base view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -86,7 +86,7 @@
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rbVertical">
|
||||
<property name="toolTip">
|
||||
<string>Top to Bottom line</string>
|
||||
<string>Top to bottom line</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Vertical</string>
|
||||
@@ -105,7 +105,7 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Left to Right line</string>
|
||||
<string>Left to right line</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Horizontal</string>
|
||||
@@ -121,10 +121,11 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>centerline between
|
||||
- lines: in equal distance to the lines and with
|
||||
half of the angle the lines have to each other
|
||||
- points: in equal distance to the points</string>
|
||||
<string>
|
||||
Centerline between:
|
||||
- Lines: equidistant from both lines and at half the angle between them
|
||||
- Points: equidistant from both points
|
||||
</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Aligned</string>
|
||||
@@ -205,7 +206,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Shift Horizontal</string>
|
||||
<string>Shift horizontal</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -218,7 +219,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Move line +Up or -Down</string>
|
||||
<string>Move line +up or -down</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -237,7 +238,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Move line -Left or +Right</string>
|
||||
<string>Move line -left or +right</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -250,7 +251,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Shift Vertical</string>
|
||||
<string>Shift vertical</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -286,7 +287,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Extend By</string>
|
||||
<string>Extend by</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -487,7 +487,7 @@ bool TaskComplexSection::apply(bool forceUpdate)
|
||||
if (!DrawComplexSection::canBuild(m_baseView->localVectorToCS(localUnit),
|
||||
m_profileObject)) {
|
||||
Base::Console().error(
|
||||
"Can not build Complex Section with this profile and direction (1)\n");
|
||||
"Cannot build complex section with this profile and direction (1)\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -497,7 +497,7 @@ bool TaskComplexSection::apply(bool forceUpdate)
|
||||
Base::convertTo<gp_Dir>(m_saveXDir));
|
||||
if (!DrawComplexSection::canBuild(sectionCS, m_profileObject)) {
|
||||
Base::Console().error(
|
||||
"Can not build Complex Section with this profile and direction (2)\n");
|
||||
"Cannot build complex section with this profile and direction (2)\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -524,7 +524,7 @@ bool TaskComplexSection::apply(bool forceUpdate)
|
||||
m_baseView->requestPaint();
|
||||
}
|
||||
if (!m_section->checkSectionCS()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Possible Coordinate System Error"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Possible coordinate system error"),
|
||||
QObject::tr("Check SectionNormal, Direction and/or XDirection."));
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ void TaskComplexSection::applyAligned()
|
||||
//pointer to created view is not returned, but stored in m_section
|
||||
void TaskComplexSection::createComplexSection()
|
||||
{
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create ComplexSection"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Complex Section"));
|
||||
if (!m_section) {
|
||||
const std::string objectName{QT_TR_NOOP("ComplexSection")};
|
||||
m_sectionName = m_page->getDocument()->getUniqueObjectName(objectName.c_str());
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
<widget class="QPushButton" name="pbSectionObjects">
|
||||
<property name="text">
|
||||
<string>Use Selection</string>
|
||||
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -77,6 +78,7 @@
|
||||
<widget class="QPushButton" name="pbProfileObject">
|
||||
<property name="text">
|
||||
<string>Use Selection</string>
|
||||
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -131,7 +133,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Scale Type</string>
|
||||
<string>Scale type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -157,7 +159,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Projection Strategy</string>
|
||||
<string>Projection strategy</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -199,7 +201,7 @@
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NoParallel</string>
|
||||
<string>No parallel</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -227,7 +229,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>BaseView</string>
|
||||
<string>Base view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -269,7 +271,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking up.</string>
|
||||
<string>Preset view direction looking up</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -299,7 +301,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking down.</string>
|
||||
<string>Preset view direction looking down</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -326,7 +328,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking left.</string>
|
||||
<string>Preset view direction looking left</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -353,7 +355,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking right.</string>
|
||||
<string>Preset view direction looking right</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -390,7 +392,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="cbLiveUpdate">
|
||||
<property name="toolTip">
|
||||
<string>Check to update display after every property change.</string>
|
||||
<string>Check to update display after every property change</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Live Update</string>
|
||||
@@ -400,7 +402,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="pbUpdateNow">
|
||||
<property name="toolTip">
|
||||
<string>Rebuild display now. May be slow for complex models.</string>
|
||||
<string>Rebuild display now. May be slow for complex models</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update Now</string>
|
||||
|
||||
@@ -156,7 +156,7 @@ void TaskCosVertex::onTrackerClicked(bool clicked)
|
||||
|
||||
if (m_pbTrackerState == TrackerAction::CANCEL) {
|
||||
m_pbTrackerState = TrackerAction::PICK;
|
||||
ui->pbTracker->setText(tr("Pick Points"));
|
||||
ui->pbTracker->setText(tr("Pick points"));
|
||||
enableTaskButtons(true);
|
||||
|
||||
setEditCursor(Qt::ArrowCursor);
|
||||
@@ -245,7 +245,7 @@ void TaskCosVertex::onTrackerFinished(std::vector<QPointF> pts, QGIView* qgParen
|
||||
m_tracker->sleep(true);
|
||||
m_inProgressLock = false;
|
||||
m_pbTrackerState = TrackerAction::PICK;
|
||||
ui->pbTracker->setText(tr("Pick Points"));
|
||||
ui->pbTracker->setText(tr("Pick points"));
|
||||
ui->pbTracker->setEnabled(true);
|
||||
enableTaskButtons(true);
|
||||
setEditCursor(Qt::ArrowCursor);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Base View</string>
|
||||
<string>Base view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -62,7 +62,7 @@ TaskCosmeticCircle::TaskCosmeticCircle(TechDraw::DrawViewPart* partFeat,
|
||||
|
||||
m_ce = m_partFeat->getCosmeticEdgeBySelection(m_circleName);
|
||||
if (!m_ce) {
|
||||
Base::Console().error("TaskCosmeticCircle - bad parameters. Can not proceed.\n");
|
||||
Base::Console().error("TaskCosmeticCircle - bad parameters. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -289,7 +289,7 @@ bool TaskCosmeticCircle::accept()
|
||||
{
|
||||
if (ui->qsbRadius->value().getValue() <= 0.0) {
|
||||
// this won't work!
|
||||
Base::Console().error("TaskCosmeticCircle - can not create a circle with radius: %.3f\n",
|
||||
Base::Console().error("TaskCosmeticCircle - cannot create a circle with radius: %.3f\n",
|
||||
ui->qsbRadius->value().getValue());
|
||||
return false;
|
||||
}
|
||||
@@ -300,7 +300,7 @@ bool TaskCosmeticCircle::accept()
|
||||
m_partFeat->requestPaint();
|
||||
} else {
|
||||
//update mode
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update CosmeticCircle"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update Cosmetic Circle"));
|
||||
updateCosmeticCircle();
|
||||
m_partFeat->refreshCEGeoms();
|
||||
m_partFeat->requestPaint();
|
||||
|
||||
@@ -58,10 +58,10 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QRadioButton" name="rb2d1">
|
||||
<property name="toolTip">
|
||||
<string>Treat the center point as a 2D point within the parent View. Z coordinate is ignored.</string>
|
||||
<string>Treats the center point as a 2D point within the parent view. The Z coordinate is ignored.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>2D Point</string>
|
||||
<string>2D point</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -74,10 +74,10 @@
|
||||
<item row="1" column="1">
|
||||
<widget class="QRadioButton" name="rb3d1">
|
||||
<property name="toolTip">
|
||||
<string>Treat the center point as a 3D point and project it onto the parent View.</string>
|
||||
<string>Treats the center point as a 3D point and project it onto the parent view</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>3D Point</string>
|
||||
<string>3D point</string>
|
||||
</property>
|
||||
<property name="autoExclusive">
|
||||
<bool>true</bool>
|
||||
@@ -87,7 +87,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Circle Center</string>
|
||||
<string>Circle center</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -178,14 +178,14 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>End Angle:</string>
|
||||
<string>End angle:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="cbClockwise">
|
||||
<property name="toolTip">
|
||||
<string>Check this box to make an arc from start angle to end angle in a clockwise direction.</string>
|
||||
<string>Creates an arc from start angle to end angle in a clockwise direction</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Clockwise Angle</string>
|
||||
@@ -195,7 +195,7 @@
|
||||
<item row="2" column="1">
|
||||
<widget class="Gui::QuantitySpinBox" name="qsbEndAngle" native="true">
|
||||
<property name="toolTip">
|
||||
<string>End angle (conventional) of arc in degrees.</string>
|
||||
<string>End angle (conventional) of arc in degrees</string>
|
||||
</property>
|
||||
<property name="unit" stdset="0">
|
||||
<string notr="true"/>
|
||||
@@ -205,17 +205,17 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Start Angle:</string>
|
||||
<string>Start angle</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="rbArc">
|
||||
<property name="toolTip">
|
||||
<string>Select to enter angles and create a circular arc.</string>
|
||||
<string>Uses angles and create a circular arc</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Arc of Circle</string>
|
||||
<string>Arc of circle</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -59,7 +59,7 @@ TaskCosmeticLine::TaskCosmeticLine(TechDraw::DrawViewPart* partFeat,
|
||||
|
||||
m_ce = m_partFeat->getCosmeticEdgeBySelection(m_edgeName);
|
||||
if (!m_ce) {
|
||||
Base::Console().error("TaskCosmeticLine - bad parameters. Can not proceed.\n");
|
||||
Base::Console().error("TaskCosmeticLine - bad parameters. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ bool TaskCosmeticLine::accept()
|
||||
m_partFeat->requestPaint();
|
||||
} else {
|
||||
//update mode
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update CosmeticLine"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Update Cosmetic Line"));
|
||||
updateCosmeticLine();
|
||||
m_partFeat->refreshCEGeoms();
|
||||
m_partFeat->requestPaint();
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="rb2d1">
|
||||
<property name="text">
|
||||
<string>2D Point</string>
|
||||
<string>2D point</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -74,7 +74,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QRadioButton" name="rb3d1">
|
||||
<property name="text">
|
||||
<string>3D Point</string>
|
||||
<string>3D point</string>
|
||||
</property>
|
||||
<property name="autoExclusive">
|
||||
<bool>true</bool>
|
||||
@@ -137,7 +137,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="rb2d2">
|
||||
<property name="text">
|
||||
<string>2D Point</string>
|
||||
<string>2D point</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
@@ -153,7 +153,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QRadioButton" name="rb3d2">
|
||||
<property name="text">
|
||||
<string>3D Point</string>
|
||||
<string>3D point</string>
|
||||
</property>
|
||||
<property name="autoExclusive">
|
||||
<bool>true</bool>
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>derived geometry element</string>
|
||||
<string>Derived geometry element</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Ⓐ</string>
|
||||
@@ -304,7 +304,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>least inscribed geometry element</string>
|
||||
<string>Least inscribed geometry element</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Ⓝ</string>
|
||||
@@ -379,7 +379,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Unequal Bilateral</string>
|
||||
<string>Unequal bilateral</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Ⓤ</string>
|
||||
@@ -394,7 +394,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>most inscribed geometry element</string>
|
||||
<string>Most inscribed geometry element</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">Ⓧ</string>
|
||||
@@ -486,7 +486,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="pbD02">
|
||||
<property name="toolTip">
|
||||
<string>(Arc) Minute</string>
|
||||
<string>(Arc) minute</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">′</string>
|
||||
@@ -496,7 +496,7 @@
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="pbD03">
|
||||
<property name="toolTip">
|
||||
<string>(Arc) Second</string>
|
||||
<string>(Arc) second</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">″</string>
|
||||
@@ -506,7 +506,7 @@
|
||||
<item row="0" column="3">
|
||||
<widget class="QPushButton" name="pbD04">
|
||||
<property name="toolTip">
|
||||
<string>(Arc) Tertie</string>
|
||||
<string>(Arc) tertie</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">‴</string>
|
||||
@@ -570,7 +570,7 @@
|
||||
<item row="0" column="4">
|
||||
<widget class="QPushButton" name="pbE05">
|
||||
<property name="toolTip">
|
||||
<string>Plus - Minus</string>
|
||||
<string>Plus - minus</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">±</string>
|
||||
@@ -622,7 +622,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Greek Letters</string>
|
||||
<string>Greek letters</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -705,7 +705,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lbFormat">
|
||||
<property name="text">
|
||||
<string>Format:</string>
|
||||
<string>Format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -715,7 +715,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lbPreview">
|
||||
<property name="text">
|
||||
<string>Preview:</string>
|
||||
<string>Preview</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -77,7 +77,7 @@ TaskDetail::TaskDetail(TechDraw::DrawViewPart* baseFeat):
|
||||
m_basePage = m_baseFeat->findParentPage();
|
||||
//it is possible that the basePage could be unparented and have no corresponding Page
|
||||
if (!m_basePage) {
|
||||
Base::Console().error("TaskDetail - bad parameters - base page. Can not proceed.\n");
|
||||
Base::Console().error("TaskDetail - bad parameters - base page. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ TaskDetail::TaskDetail(TechDraw::DrawViewDetail* detailFeat):
|
||||
{
|
||||
if (!m_detailFeat) {
|
||||
//should be caught in CMD caller
|
||||
Base::Console().error("TaskDetail - bad parameters. Can not proceed.\n");
|
||||
Base::Console().error("TaskDetail - bad parameters. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ TaskDetail::TaskDetail(TechDraw::DrawViewDetail* detailFeat):
|
||||
App::DocumentObject* baseObj = m_detailFeat->BaseView.getValue();
|
||||
m_baseFeat = dynamic_cast<TechDraw::DrawViewPart*>(baseObj);
|
||||
if (!m_baseFeat) {
|
||||
Base::Console().error("TaskDetail - no BaseView. Can not proceed.\n");
|
||||
Base::Console().error("TaskDetail - no base view. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
m_baseName = m_baseFeat->getNameInDocument();
|
||||
@@ -431,7 +431,7 @@ void TaskDetail::enableTaskButtons(bool button)
|
||||
//***** Feature create & edit stuff *******************************************
|
||||
void TaskDetail::createDetail()
|
||||
{
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Detail View"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Detail view"));
|
||||
|
||||
const std::string objectName{"Detail"};
|
||||
m_detailName = m_doc->getUniqueObjectName(objectName.c_str());
|
||||
@@ -493,7 +493,7 @@ void TaskDetail::updateDetail()
|
||||
}
|
||||
catch (...) {
|
||||
//this is probably due to appl closing while dialog is still open
|
||||
Base::Console().error("Task Detail - detail feature update failed.\n");
|
||||
Base::Console().error("Task detail - detail feature update failed.\n");
|
||||
}
|
||||
|
||||
detailFeat->recomputeFeature();
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Detail View</string>
|
||||
<string>Detail view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -83,7 +83,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="pbDragger">
|
||||
<property name="toolTip">
|
||||
<string>Click to drag detail highlight to new position</string>
|
||||
<string>Enables dragging of the detail highlight to a new position</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Drag Highlight</string>
|
||||
@@ -117,14 +117,14 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>Scale Type</string>
|
||||
<string>Scale type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QLineEdit" name="leReference">
|
||||
<property name="toolTip">
|
||||
<string>reference label</string>
|
||||
<string>Reference label</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -137,7 +137,7 @@
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>scale factor for detail view</string>
|
||||
<string>Scale factor for detail view</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -165,7 +165,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>y position of detail highlight within view</string>
|
||||
<string>Y-position of detail highlight within view</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -181,7 +181,7 @@
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_8">
|
||||
<property name="text">
|
||||
<string>Scale Factor</string>
|
||||
<string>Scale factor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -194,7 +194,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>size of detail view</string>
|
||||
<string>Size of detail view</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -226,7 +226,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>x position of detail highlight within view</string>
|
||||
<string>X position of detail highlight within view</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
||||
@@ -79,7 +79,7 @@ void TaskDimRepair::setUiPrimary()
|
||||
fillList(ui->lwGeometry2d, labelsInOut, subElements2d);
|
||||
|
||||
QStringList headers;
|
||||
headers << tr("Object Name") << tr("Object Label") << tr("SubElement");
|
||||
headers << tr("Object name") << tr("Object label") << tr("Sub-element");
|
||||
ui->twReferences3d->setHorizontalHeaderLabels(headers);
|
||||
|
||||
ReferenceVector references3d = m_dim->getReferences3d();
|
||||
@@ -137,8 +137,8 @@ void TaskDimRepair::slotUseSelection()
|
||||
references2d, acceptableGeometry, minimumCounts, acceptableDimensionGeometrys);
|
||||
if (geometryRefs2d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make dimension from selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Cannot make dimension from selection"));
|
||||
return;
|
||||
}
|
||||
//what 3d geometry configuration did we receive?
|
||||
@@ -148,8 +148,8 @@ void TaskDimRepair::slotUseSelection()
|
||||
dvp, references3d, acceptableGeometry, minimumCounts, acceptableDimensionGeometrys);
|
||||
if (geometryRefs3d == DimensionGeometry::isInvalid) {
|
||||
QMessageBox::warning(Gui::getMainWindow(),
|
||||
QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Can not make dimension from selection"));
|
||||
QObject::tr("Incorrect selection"),
|
||||
QObject::tr("Cannot make dimension from selection"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -245,7 +245,7 @@ bool TaskDimRepair::accept()
|
||||
{
|
||||
Gui::Command::doCommand(Gui::Command::Gui, "Gui.ActiveDocument.resetEdit()");
|
||||
|
||||
Gui::Command::openCommand(tr("Repair Dimension").toStdString().c_str());
|
||||
Gui::Command::openCommand(tr("Repair dimension").toStdString().c_str());
|
||||
replaceReferences();
|
||||
Gui::Command::commitCommand();
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Replace References with Current Selection</string>
|
||||
<string>Replace references with current selection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -116,7 +116,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>The View that owns this Dimension</string>
|
||||
<string>The view that owns this dimension</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -160,7 +160,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>The subelements of the View that define the geometry for this Dimension</string>
|
||||
<string>The sub-elements of the view that define the geometry for this dimension</string>
|
||||
</property>
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
|
||||
@@ -166,7 +166,7 @@ bool TaskDimension::accept()
|
||||
{
|
||||
if (m_dimensionVP.expired()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Missing Dimension"),
|
||||
QObject::tr("Dimension not found. Was it deleted? Can not continue."));
|
||||
QObject::tr("Dimension not found. Was it deleted? Cannot continue."));
|
||||
return true;
|
||||
}
|
||||
Gui::Document* doc = m_dimensionVP->getDocument();
|
||||
@@ -181,7 +181,7 @@ bool TaskDimension::reject()
|
||||
{
|
||||
if (m_dimensionVP.expired()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Missing Dimension"),
|
||||
QObject::tr("Dimension not found. Was it deleted? Can not continue."));
|
||||
QObject::tr("Dimension not found. Was it deleted? Cannot continue."));
|
||||
return true;
|
||||
}
|
||||
Gui::Document* doc = m_dimensionVP->getDocument();
|
||||
@@ -462,7 +462,7 @@ std::pair<double, bool> TaskDimension::getAngleFromSelection()
|
||||
}
|
||||
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Incorrect Selection"),
|
||||
QObject::tr("Select 2 Vertexes or 1 Edge"));
|
||||
QObject::tr("Select 2 vertices or 1 edge"));
|
||||
result.second = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="cbTheoreticallyExact">
|
||||
<property name="toolTip">
|
||||
<string>If theoretical exact (basic) dimension</string>
|
||||
<string>If theoretically exact (basic) dimension</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Theoretically Exact</string>
|
||||
<string>Theoretically exact</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -38,14 +38,14 @@
|
||||
<string>Assign same value to over and under tolerance</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Equal Tolerance</string>
|
||||
<string>Equal tolerance</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Overtolerance:</string>
|
||||
<string>Overtolerance</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -59,8 +59,8 @@
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Overtolerance value
|
||||
If 'Equal Tolerance' is checked this is also
|
||||
the negated value for 'Under Tolerance'.</string>
|
||||
If 'Equal tolerance' is checked this is also
|
||||
the negated value for 'Undertolerance'.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -90,8 +90,8 @@ the negated value for 'Under Tolerance'.</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Undertolerance value
|
||||
If 'Equal Tolerance' is checked it will be replaced
|
||||
by negative value of 'Over Tolerance'.</string>
|
||||
If 'Equal tolerance' is checked it will be replaced
|
||||
by negative value of 'Overtolerance'.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -120,7 +120,7 @@ by negative value of 'Over Tolerance'.</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_11">
|
||||
<property name="text">
|
||||
<string>Format Specifier:</string>
|
||||
<string>Format specifier</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -134,18 +134,17 @@ by negative value of 'Over Tolerance'.</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="cbArbitrary">
|
||||
<property name="toolTip">
|
||||
<string>If checked, the content of 'Format Spec' will
|
||||
be used instead of the dimension value</string>
|
||||
<string>Sets use of 'Format spec' instead of the dimension value</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Arbitrary Text</string>
|
||||
<string>Arbitrary text</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>OverTolerance Format Specifier:</string>
|
||||
<string>Overtolerance format specifier</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -159,7 +158,7 @@ be used instead of the dimension value</string>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="text">
|
||||
<string>UnderTolerance Format Specifier:</string>
|
||||
<string>Undertolerance format specifier</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -173,10 +172,10 @@ be used instead of the dimension value</string>
|
||||
<item row="4" column="0">
|
||||
<widget class="QCheckBox" name="cbArbitraryTolerances">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>If checked, the content of tolerance format spec will</p><p>be used instead of the tolerance value</p></body></html></string>
|
||||
<string><html><head/><body><p>Uses the tolerance format spec</p><p>instead of the tolerance value</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Arbitrary Tolerance Text</string>
|
||||
<string>Arbitrary tolerance text</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -199,7 +198,7 @@ be used instead of the dimension value</string>
|
||||
<string>Reverses usual direction of dimension line terminators</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Flip Arrowheads</string>
|
||||
<string>Flip arrowheads</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -227,7 +226,7 @@ be used instead of the dimension value</string>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Font Size:</string>
|
||||
<string>Font size</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -246,7 +245,7 @@ be used instead of the dimension value</string>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Fontsize for 'Text'</string>
|
||||
<string>Font size for text</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -258,7 +257,7 @@ be used instead of the dimension value</string>
|
||||
<double>4.000000000000000</double>
|
||||
</property>
|
||||
<property name="prefEntry" stdset="0">
|
||||
<cstring>FontSize</cstring>
|
||||
<cstring>Font size</cstring>
|
||||
</property>
|
||||
<property name="prefPath" stdset="0">
|
||||
<cstring>/Mod/TechDraw/Dimensions</cstring>
|
||||
@@ -268,7 +267,7 @@ be used instead of the dimension value</string>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Drawing Style:</string>
|
||||
<string>Drawing style</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -279,22 +278,22 @@ be used instead of the dimension value</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ISO Oriented</string>
|
||||
<string>ISO oriented</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ISO Referencing</string>
|
||||
<string>ISO referencing</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ASME Inlined</string>
|
||||
<string>ASME inlined</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>ASME Referencing</string>
|
||||
<string>ASME referencing</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
@@ -348,20 +347,20 @@ be used instead of the dimension value</string>
|
||||
<item row="2" column="0">
|
||||
<widget class="QPushButton" name="pbDimUseDefault">
|
||||
<property name="toolTip">
|
||||
<string>Set dimension line angle to default (ortho view).</string>
|
||||
<string>Set dimension line angle to default (orthographic view)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use default</string>
|
||||
<string>Use Default</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="pbDimUseSelection">
|
||||
<property name="toolTip">
|
||||
<string>Set dimension line angle to match selected edge or vertices.</string>
|
||||
<string>Set dimension line angle to match selected edge or vertices</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use selection</string>
|
||||
<string>Use Selection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -391,20 +390,20 @@ be used instead of the dimension value</string>
|
||||
<item row="4" column="0">
|
||||
<widget class="QPushButton" name="pbExtUseDefault">
|
||||
<property name="toolTip">
|
||||
<string>Set extension line angle to default (ortho).</string>
|
||||
<string>Set extension line angle to default (orthographic)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use default</string>
|
||||
<string>Use Default</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="pbExtUseSelection">
|
||||
<property name="toolTip">
|
||||
<string>Set extension line angle to match selected edge or vertices.</string>
|
||||
<string>Set extension line angle to match selected edge or vertices</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use selection</string>
|
||||
<string>Use Selection</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -70,7 +70,7 @@ void TaskGeomHatch::initUi()
|
||||
if (nameIndex > -1) {
|
||||
ui->cbName->setCurrentIndex(nameIndex);
|
||||
} else {
|
||||
Base::Console().warning("Warning - Pattern name *%s* not found in current PAT File\n", m_name.c_str());
|
||||
Base::Console().warning("Warning - Pattern name *%s* not found in current PAT file\n", m_name.c_str());
|
||||
}
|
||||
connect(ui->cbName, qOverload<int>(&QComboBox::currentIndexChanged), this, &TaskGeomHatch::onNameChanged);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Apply Geometric Hatch to Face</string>
|
||||
<string>Geometric Hatch</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
@@ -35,7 +35,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Define your pattern</string>
|
||||
<string>Define Pattern</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
@@ -43,7 +43,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Pattern File</string>
|
||||
<string>Pattern file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -56,7 +56,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>The PAT file containing your pattern</string>
|
||||
<string>The PAT file containing the pattern</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -67,7 +67,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Pattern Scale</string>
|
||||
<string>Pattern scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -94,7 +94,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Pattern Name</string>
|
||||
<string>Pattern name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -121,7 +121,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Line Width</string>
|
||||
<string>Line width</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -150,7 +150,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Thickness of lines within the pattern</string>
|
||||
<string>Thickness of the lines within the pattern</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -185,7 +185,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Line Color</string>
|
||||
<string>Line color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -227,7 +227,7 @@ void TaskHatch::createHatch()
|
||||
Base::Vector3d offset(ui->dsbOffsetX->value(), ui->dsbOffsetY->value(), 0.0);
|
||||
m_vp->HatchOffset.setValue(offset);
|
||||
} else {
|
||||
Base::Console().error("TaskHatch - Hatch has no ViewProvider\n");
|
||||
Base::Console().error("TaskHatch - hatch has no ViewProvider\n");
|
||||
}
|
||||
Command::commitCommand();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Apply Hatch to Face</string>
|
||||
<string>Apply Geometric Hatch</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
@@ -35,7 +35,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Select an SVG or Bitmap file</string>
|
||||
<string>Select an SVG or bitmap file</string>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Pattern Parameters</string>
|
||||
@@ -52,14 +52,14 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Choose an SVG or Bitmap file as a pattern</string>
|
||||
<string>Choose an SVG or bitmap file as a pattern</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Pattern File</string>
|
||||
<string>Pattern file</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -82,7 +82,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Enlarges/shrinks the pattern (SVG Only)</string>
|
||||
<string>Enlarges/shrinks the pattern (SVG only)</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
@@ -104,7 +104,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>SVG Line Color</string>
|
||||
<string>SVG line color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -130,14 +130,14 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Color of pattern lines (SVG Only)</string>
|
||||
<string>Color of pattern lines (SVG only)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QDoubleSpinBox" name="dsbRotation">
|
||||
<property name="toolTip">
|
||||
<string>Rotation the pattern (degrees)</string>
|
||||
<string>Rotate the pattern (degrees)</string>
|
||||
</property>
|
||||
<property name="wrapping">
|
||||
<bool>true</bool>
|
||||
@@ -156,7 +156,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>SVG Pattern Scale</string>
|
||||
<string>SVG pattern scale</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Hole /Shaft Fit ISO 286</string>
|
||||
<string>Hole/Shaft Fit ISO 286</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
@@ -142,14 +142,14 @@
|
||||
<item row="0" column="3">
|
||||
<widget class="QLabel" name="lbFitType">
|
||||
<property name="text">
|
||||
<string>loose fit</string>
|
||||
<string>Loose fit</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="lbBaseField">
|
||||
<property name="text">
|
||||
<string notr="true"> H11/</string>
|
||||
<string notr="true">H11/</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -87,7 +87,7 @@ TaskLeaderLine::TaskLeaderLine(TechDrawGui::ViewProviderLeader* leadVP) :
|
||||
|
||||
m_basePage = m_lineFeat->findParentPage();
|
||||
if (!m_basePage) {
|
||||
Base::Console().error("TaskRichAnno - bad parameters (2). Can not proceed.\n");
|
||||
Base::Console().error("TaskRichAnno - bad parameters (2). Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
App::DocumentObject* obj = m_lineFeat->LeaderParent.getValue();
|
||||
@@ -108,7 +108,7 @@ TaskLeaderLine::TaskLeaderLine(TechDrawGui::ViewProviderLeader* leadVP) :
|
||||
|
||||
//TODO: when/if leaders are allowed to be parented to Page, check for m_baseFeat will be removed
|
||||
if (!m_baseFeat || !m_basePage) {
|
||||
Base::Console().error("TaskLeaderLine - bad parameters (2). Can not proceed.\n");
|
||||
Base::Console().error("TaskLeaderLine - bad parameters (2). Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -488,7 +488,7 @@ void TaskLeaderLine::onTrackerClicked(bool clicked)
|
||||
{
|
||||
Q_UNUSED(clicked);
|
||||
if (!m_vpp->getMDIViewPage()) {
|
||||
Base::Console().message("TLL::onTrackerClicked - no Mdi, no Tracker!\n");
|
||||
Base::Console().message("TLL::onTrackerClicked - no MDI, no tracker!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ void TaskLeaderLine::onTrackerClicked(bool clicked)
|
||||
m_tracker->terminateDrawing();
|
||||
}
|
||||
m_pbTrackerState = TrackerAction::PICK;
|
||||
ui->pbTracker->setText(tr("Pick Points"));
|
||||
ui->pbTracker->setText(tr("Pick points"));
|
||||
ui->pbCancelEdit->setEnabled(false);
|
||||
enableTaskButtons(true);
|
||||
|
||||
@@ -512,7 +512,7 @@ void TaskLeaderLine::onTrackerClicked(bool clicked)
|
||||
m_qgLeader->closeEdit();
|
||||
}
|
||||
m_pbTrackerState = TrackerAction::PICK;
|
||||
ui->pbTracker->setText(tr("Edit Points"));
|
||||
ui->pbTracker->setText(tr("Edit points"));
|
||||
ui->pbCancelEdit->setEnabled(false);
|
||||
enableTaskButtons(true);
|
||||
|
||||
@@ -532,7 +532,7 @@ void TaskLeaderLine::onTrackerClicked(bool clicked)
|
||||
QString msg = tr("Pick a starting point for leader line");
|
||||
getMainWindow()->statusBar()->show();
|
||||
Gui::getMainWindow()->showMessage(msg, MessageDisplayTime);
|
||||
ui->pbTracker->setText(tr("Save Points"));
|
||||
ui->pbTracker->setText(tr("Save points"));
|
||||
ui->pbTracker->setEnabled(true);
|
||||
ui->pbCancelEdit->setEnabled(true);
|
||||
m_pbTrackerState = TrackerAction::SAVE;
|
||||
@@ -557,7 +557,7 @@ void TaskLeaderLine::onTrackerClicked(bool clicked)
|
||||
|
||||
if (!qgLead) {
|
||||
//tarfu
|
||||
Base::Console().error("TaskLeaderLine - can't find leader graphic\n");
|
||||
Base::Console().error("TaskLeaderLine - cannot find leader graphic\n");
|
||||
//now what? throw will generate "unknown unhandled exception"
|
||||
} else {
|
||||
m_qgLeader = qgLead;
|
||||
@@ -636,9 +636,9 @@ void TaskLeaderLine::onTrackerFinished(std::vector<QPointF> trackerScenePoints,
|
||||
m_attachPoint = Base::Vector3d(mapped.x(), mapped.y(), 0.0);
|
||||
m_sceneDeltas = scenePointsToDeltas(trackerScenePoints);
|
||||
} else {
|
||||
Base::Console().message("TTL::onTrackerFinished - can't find parent graphic!\n");
|
||||
Base::Console().message("TTL::onTrackerFinished - cannot find parent graphic!\n");
|
||||
//blow up!?
|
||||
throw Base::RuntimeError("TaskLeaderLine - can not find parent graphic");
|
||||
throw Base::RuntimeError("TaskLeaderLine - cannot find parent graphic");
|
||||
}
|
||||
|
||||
QString msg = tr("Press OK or Cancel to continue");
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Base View</string>
|
||||
<string>Base view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -111,7 +111,7 @@
|
||||
<widget class="QPushButton" name="pbTracker">
|
||||
<property name="toolTip">
|
||||
<string>First pick the start point of the line,
|
||||
then at least a second point.
|
||||
then at least one more point.
|
||||
You can pick further points to get line segments.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
@@ -146,7 +146,7 @@ You can pick further points to get line segments.</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Start Symbol</string>
|
||||
<string>Start symbol</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -166,7 +166,7 @@ You can pick further points to get line segments.</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>End Symbol</string>
|
||||
<string>End symbol</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -275,7 +275,7 @@ You can pick further points to get line segments.</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>NoLine</string>
|
||||
<string>No line</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
|
||||
@@ -464,7 +464,7 @@ TaskDlgLineDecor::TaskDlgLineDecor(TechDraw::DrawViewPart* partFeat,
|
||||
if (parent) {
|
||||
restore = new TaskRestoreLines(partFeat, parent);
|
||||
restoreBox = new Gui::TaskView::TaskBox(Gui::BitmapFactory().pixmap("actions/TechDraw_DecorateLine"),
|
||||
tr("Restore Invisible Lines"), true, nullptr);
|
||||
tr("Restore invisible lines"), true, nullptr);
|
||||
restoreBox->groupLayout()->addWidget(restore);
|
||||
Content.push_back(restoreBox);
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<item row="4" column="2">
|
||||
<widget class="QComboBox" name="cb_Style">
|
||||
<property name="toolTip">
|
||||
<string>The use of the Qt line style is being phased out. Please use a standard line style instead.</string>
|
||||
<string>The use of the Qt line style is being phased out. Use a standard line style instead.</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
@@ -142,7 +142,7 @@
|
||||
<item row="6" column="2">
|
||||
<widget class="Gui::QuantitySpinBox" name="dsb_Weight">
|
||||
<property name="toolTip">
|
||||
<string>Thickness of pattern lines.</string>
|
||||
<string>Thickness of pattern lines</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="lblLinkThis">
|
||||
<property name="text">
|
||||
<string>Link This 3D Geometry</string>
|
||||
<string>Link this 3D geometry</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -150,7 +150,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="lblToThese">
|
||||
<property name="text">
|
||||
<string>To These Dimensions</string>
|
||||
<string>To these dimensions</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="pbView">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
<string notr="true">…</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lFromPage">
|
||||
<property name="text">
|
||||
<string>From Page</string>
|
||||
<string>From page</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -54,14 +54,14 @@
|
||||
<item row="1" column="2">
|
||||
<widget class="QPushButton" name="pbFromPage">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
<string notr="true">…</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lToPage">
|
||||
<property name="text">
|
||||
<string>To Page</string>
|
||||
<string>To page</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -75,7 +75,7 @@
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="pbToPage">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
<string notr="true">…</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -186,7 +186,7 @@ void TaskProjGroup::updateUi()
|
||||
ui->label_11->show();
|
||||
}
|
||||
else {
|
||||
setWindowTitle(QObject::tr("Part View"));
|
||||
setWindowTitle(QObject::tr("New View"));
|
||||
ui->projection->hide();
|
||||
ui->cbAutoDistribute->hide();
|
||||
ui->sbXSpacing->hide();
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<item>
|
||||
<widget class="QSpinBox" name="sbScaleNum">
|
||||
<property name="toolTip">
|
||||
<string>Scale Numerator</string>
|
||||
<string>Scale numerator</string>
|
||||
</property>
|
||||
<property name="keyboardTracking">
|
||||
<bool>false</bool>
|
||||
@@ -96,7 +96,7 @@
|
||||
<item>
|
||||
<widget class="QSpinBox" name="sbScaleDen">
|
||||
<property name="toolTip">
|
||||
<string>Scale Denominator</string>
|
||||
<string>Scale denominator</string>
|
||||
</property>
|
||||
<property name="keyboardTracking">
|
||||
<bool>false</bool>
|
||||
@@ -123,7 +123,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QPushButton" name="butCWRotate">
|
||||
<property name="toolTip">
|
||||
<string>Spin clock wise</string>
|
||||
<string>Spin clockwise</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -171,7 +171,7 @@
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="butCCWRotate">
|
||||
<property name="toolTip">
|
||||
<string>Spin counter clock wise</string>
|
||||
<string>Spin counter-clockwise</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -249,7 +249,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QPushButton" name="butFront">
|
||||
<property name="toolTip">
|
||||
<string>Set document front view as primary direction.</string>
|
||||
<string>Sets the document front view as primary direction</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -300,7 +300,7 @@
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="butCam">
|
||||
<property name="toolTip">
|
||||
<string>Set direction of the camera, or selected face if any, as primary direction.</string>
|
||||
<string>Sets the direction of the camera, or selected face if any, as the primary direction</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -556,16 +556,16 @@ height: 24px;
|
||||
<item>
|
||||
<widget class="QComboBox" name="projection">
|
||||
<property name="toolTip">
|
||||
<string>First or Third Angle</string>
|
||||
<string>First or third angle</string>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>First Angle</string>
|
||||
<string>First angle</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Third Angle</string>
|
||||
<string>Third angle</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
@@ -581,10 +581,10 @@ height: 24px;
|
||||
<widget class="QCheckBox" name="cbAutoDistribute">
|
||||
<property name="toolTip">
|
||||
<string>Distributes projections automatically
|
||||
using the given X/Y Spacing</string>
|
||||
using the given X/Y spacings</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Auto Distribute</string>
|
||||
<string>Auto distribute</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -605,7 +605,7 @@ using the given X/Y Spacing</string>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>X Spacing</string>
|
||||
<string>X spacing</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -665,7 +665,7 @@ using the given X/Y Spacing</string>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Y Spacing</string>
|
||||
<string>Y spacing</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -61,13 +61,13 @@ bool TaskProjection::accept()
|
||||
{
|
||||
Gui::Document* document = Gui::Application::Instance->activeDocument();
|
||||
if (!document) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No active document"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No Active Document"),
|
||||
tr("There is currently no active document to complete the operation"));
|
||||
return true;
|
||||
}
|
||||
std::list<Gui::MDIView*> mdis = document->getMDIViewsOfType(Gui::View3DInventor::getClassTypeId());
|
||||
if (mdis.empty()) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No active view"),
|
||||
QMessageBox::warning(Gui::getMainWindow(), tr("No Active View"),
|
||||
tr("There is currently no active view to complete the operation"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Project shapes</string>
|
||||
<string>Project Shapes</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
@@ -97,7 +97,7 @@
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbHidIso">
|
||||
<property name="text">
|
||||
<string>Hidden isoparameters</string>
|
||||
<string>Hidden iso-parameters</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="pb_Center">
|
||||
<property name="text">
|
||||
<string>CenterLine</string>
|
||||
<string>Centerline</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -75,7 +75,7 @@ TaskRichAnno::TaskRichAnno(TechDrawGui::ViewProviderRichAnno* annoVP) :
|
||||
|
||||
m_basePage = m_annoFeat->findParentPage();
|
||||
if (!m_basePage) {
|
||||
Base::Console().error("TaskRichAnno - bad parameters (2). Can not proceed.\n");
|
||||
Base::Console().error("TaskRichAnno - bad parameters (2). Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ TaskRichAnno::TaskRichAnno(TechDrawGui::ViewProviderRichAnno* annoVP) :
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
m_title = QObject::tr("Rich text editor");
|
||||
m_title = QObject::tr("Rich Text Editor");
|
||||
setUiEdit();
|
||||
|
||||
m_attachPoint = Rez::guiX(Base::Vector3d(m_annoFeat->X.getValue(),
|
||||
@@ -136,7 +136,7 @@ TaskRichAnno::TaskRichAnno(TechDraw::DrawView* baseFeat,
|
||||
}
|
||||
|
||||
ui->setupUi(this);
|
||||
m_title = QObject::tr("Rich text creator");
|
||||
m_title = QObject::tr("Rich Text Creator");
|
||||
|
||||
setUiPrimary();
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Base Feature</string>
|
||||
<string>Base feature</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -64,7 +64,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Max Width</string>
|
||||
<string>Max width</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -118,7 +118,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Show Frame</string>
|
||||
<string>Show frame</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -493,7 +493,7 @@ TechDraw::DrawViewSection* TaskSectionView::createSectionView(void)
|
||||
|
||||
std::string baseName = m_base->getNameInDocument();
|
||||
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create SectionView"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Section View"));
|
||||
if (!m_section) {
|
||||
const std::string objectName("SectionView");
|
||||
m_sectionName = m_base->getDocument()->getUniqueObjectName(objectName.c_str());
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>BaseView</string>
|
||||
<string>Base view</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -78,7 +78,7 @@
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Scale Type</string>
|
||||
<string>Scale type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -164,7 +164,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking up.</string>
|
||||
<string>Preset view direction looking up</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string/>
|
||||
@@ -200,7 +200,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking down.</string>
|
||||
<string>Preset view direction looking down</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -230,7 +230,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking left.</string>
|
||||
<string>Preset view direction looking left</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -260,7 +260,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Preset view direction looking right.</string>
|
||||
<string>Preset view direction looking right</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -452,7 +452,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="pbUpdateNow">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Rebuild display now. May be slow for complex models.</p></body></html></string>
|
||||
<string><html><head/><body><p>Rebuild display now. May be slow for complex models.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update Now</string>
|
||||
@@ -462,10 +462,10 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="cbLiveUpdate">
|
||||
<property name="toolTip">
|
||||
<string>Check to update display after every property change.</string>
|
||||
<string>Check to update display after every property change</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Live Update</string>
|
||||
<string>Live update</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -112,7 +112,7 @@ void TaskSelectLineAttributes::changeEvent(QEvent *e)
|
||||
|
||||
void TaskSelectLineAttributes::setUiEdit()
|
||||
{
|
||||
setWindowTitle(tr("Select line attributes"));
|
||||
setWindowTitle(tr("Select Line Attributes"));
|
||||
int lineStyle = LineFormat::getCurrentLineFormat().getStyle();
|
||||
// line numbering starts at 1, not 0
|
||||
DrawGuiUtil::loadLineStyleChoices(ui->cbLineStyle, m_lineGenerator);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Line attributes</string>
|
||||
<string>Line Attributes</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
@@ -101,7 +101,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_colors">
|
||||
<property name="text">
|
||||
<string>Line color:</string>
|
||||
<string>Line color</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lbAngle">
|
||||
<property name="text">
|
||||
<string>Symbol angle:</string>
|
||||
<string>Symbol angle</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -96,7 +96,7 @@ TaskWeldingSymbol::TaskWeldingSymbol(TechDraw::DrawWeldSymbol* weld) :
|
||||
App::DocumentObject* obj = m_weldFeat->Leader.getValue();
|
||||
if (!obj ||
|
||||
!obj->isDerivedFrom<TechDraw::DrawLeaderLine>() ) {
|
||||
Base::Console().error("TaskWeldingSymbol - no leader for welding symbol. Can not proceed.\n");
|
||||
Base::Console().error("TaskWeldingSymbol - no leader for welding symbol. Cannot proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ bool TaskWeldingSymbol::accept()
|
||||
{
|
||||
// Base::Console().message("TWS::accept()\n");
|
||||
if (m_createMode) {
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create WeldSymbol"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create Weld Symbol"));
|
||||
m_weldFeat = createWeldingSymbol();
|
||||
updateTiles();
|
||||
Gui::Command::updateActive();
|
||||
@@ -566,7 +566,7 @@ bool TaskWeldingSymbol::accept()
|
||||
m_weldFeat->recomputeFeature();
|
||||
// m_weldFeat->requestPaint(); //not a dv!
|
||||
} else {
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit WeldSymbol"));
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Edit Weld Symbol"));
|
||||
try {
|
||||
updateWeldingSymbol();
|
||||
updateTiles();
|
||||
|
||||
@@ -213,7 +213,7 @@ Angle, surface finish, root</string>
|
||||
<string>Flips the sides</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Flip Sides</string>
|
||||
<string>Flip sides</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -235,22 +235,22 @@ Angle, surface finish, root</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="cbFieldWeld">
|
||||
<property name="toolTip">
|
||||
<string>Adds the 'Field Weld' symbol (flag)
|
||||
<string>Adds the 'Field weld' symbol (flag)
|
||||
at the kink in the leader line</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Field Weld</string>
|
||||
<string>Field weld</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="cbAllAround">
|
||||
<property name="toolTip">
|
||||
<string>Adds the 'All Around' symbol (circle)
|
||||
<string>Adds the 'All around' symbol (circle)
|
||||
at the kink in the leader line</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>All Around</string>
|
||||
<string>All around</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -271,7 +271,7 @@ at the kink in the leader line</string>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Tail Text</string>
|
||||
<string>Tail text</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -291,7 +291,7 @@ at the kink in the leader line</string>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Symbol Directory</string>
|
||||
<string>Symbol directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -48,7 +48,7 @@ TemplateTextField::TemplateTextField(QGraphicsItem *parent,
|
||||
tmplte(myTmplte),
|
||||
fieldNameStr(myFieldName)
|
||||
{
|
||||
setToolTip(QObject::tr("Click to update text"));
|
||||
setToolTip(QObject::tr("Updates text"));
|
||||
m_rect = new QGraphicsRectItem();
|
||||
addToGroup(m_rect);
|
||||
QPen rectPen(Qt::transparent);
|
||||
|
||||
@@ -84,9 +84,9 @@ ViewProviderPage::ViewProviderPage()
|
||||
|
||||
// NOLINTBEGIN
|
||||
ADD_PROPERTY_TYPE(ShowFrames, (true), group, App::Prop_None,
|
||||
"Show or hide View frames and Labels on this Page");
|
||||
"Show or hide view frames and labels on this page");
|
||||
ADD_PROPERTY_TYPE(ShowGrid, (PreferencesGui::showGrid()), group, App::Prop_None,
|
||||
"Show or hide a grid on this Page");
|
||||
"Show or hide a grid on this page");
|
||||
ADD_PROPERTY_TYPE(GridSpacing, (PreferencesGui::gridSpacing()), group,
|
||||
(App::PropertyType::Prop_None), "Grid line spacing in mm");
|
||||
// NOLINTEND
|
||||
@@ -232,6 +232,7 @@ void ViewProviderPage::setupContextMenu(QMenu* menu, QObject* receiver, const ch
|
||||
QAction* act = menu->addAction(QObject::tr("Show drawing"), receiver, member);
|
||||
act->setData(QVariant((int)ShowDrawing));
|
||||
QAction* act2 = menu->addAction(QObject::tr("Toggle Keep Updated"), receiver, member);
|
||||
|
||||
act2->setData(QVariant((int)ToggleUpdate));
|
||||
}
|
||||
|
||||
|
||||
@@ -234,6 +234,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
// views from other workbenches
|
||||
Gui::MenuItem* other = new Gui::MenuItem;
|
||||
other->setCommand("Views From Other Workbenches");
|
||||
|
||||
*other << "TechDraw_ActiveView";
|
||||
*other << "TechDraw_DraftView";
|
||||
*other << "TechDraw_ArchView";
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Undo (CTRL+Z)</string>
|
||||
<string>Undo (Ctrl+Z)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Undo</string>
|
||||
@@ -142,7 +142,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Cut (CTRL+X)</string>
|
||||
<string>Cut (Ctrl+X)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Cut</string>
|
||||
@@ -165,7 +165,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Copy (CTRL+C)</string>
|
||||
<string>Copy (Ctrl+C)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy</string>
|
||||
@@ -188,7 +188,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Paste (CTRL+V)</string>
|
||||
<string>Paste (Ctrl+V)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Paste</string>
|
||||
@@ -218,7 +218,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Link (CTRL+L)</string>
|
||||
<string>Link (Ctrl+L)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Link</string>
|
||||
@@ -251,7 +251,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string notr="true">Bold (CTRL+B)</string>
|
||||
<string notr="true">Bold (Ctrl+B)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Bold</string>
|
||||
@@ -277,7 +277,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Italic (CTRL+I)</string>
|
||||
<string>Italic (Ctrl+I)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Italic</string>
|
||||
@@ -303,7 +303,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Underline (CTRL+U)</string>
|
||||
<string>Underline (Ctrl+U)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Underline</string>
|
||||
@@ -326,10 +326,10 @@
|
||||
<item>
|
||||
<widget class="QToolButton" name="f_strikeout">
|
||||
<property name="toolTip">
|
||||
<string>Strikethrough</string>
|
||||
<string>Strikethrough text</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Strike Out</string>
|
||||
<string>Strikethrough</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
@@ -359,7 +359,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Bullet list (CTRL+-)</string>
|
||||
<string>Bullet list (Ctrl+-)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -385,7 +385,7 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Ordered list (CTRL+=)</string>
|
||||
<string>Ordered list (Ctrl+=)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
@@ -411,10 +411,10 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Decrease indentation (CTRL+,)</string>
|
||||
<string>Decrease indentation (Ctrl+,)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Decrease indentation</string>
|
||||
<string>Decrease Indentation</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
@@ -434,10 +434,10 @@
|
||||
<enum>Qt::ClickFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Increase indentation (CTRL+.)</string>
|
||||
<string>Increase indentation (Ctrl+.)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Increase indentation</string>
|
||||
<string>Increase Indentation</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="Resources/TechDraw.qrc">
|
||||
|
||||
@@ -51,12 +51,9 @@ class CommandAxoLengthDimension:
|
||||
"""Return a dictionary with data that will be used by the button or menu item."""
|
||||
return {'Pixmap': 'actions/TechDraw_AxoLengthDimension.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_AxoLengthDimension", "Axonometric length dimension"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_AxoLengthDimension", "Create an axonometric length dimension<br>\
|
||||
- select first edge to define direction and length of the dimension line<br>\
|
||||
- select second edge to define the direction of the extension lines<br>\
|
||||
- optional: select two more vertexes which define the measurement instead of the length<br>\
|
||||
of the first selected edge")}
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_AxoLengthDimension", "Axonometric Length Dimension"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_AxoLengthDimension", "Creates a length dimension in with "
|
||||
"axonometric view, using selected edges or vertex pairs to define direction and measurement")}
|
||||
|
||||
def Activated(self):
|
||||
"""Run the following code when the command is activated (button press)."""
|
||||
|
||||
@@ -46,11 +46,11 @@ class CommandFillTemplateFields:
|
||||
"Pixmap": "actions/TechDraw_FillTemplateFields.svg",
|
||||
"Accel": "",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"TechDraw_FillTemplateFields", "Update template fields"
|
||||
"TechDraw_FillTemplateFields", "Update Template Fields"
|
||||
),
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"TechDraw_FillTemplateFields",
|
||||
"Use document info to populate the template fields",
|
||||
"Uses document info to populate the template fields",
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -47,15 +47,11 @@ class CommandHoleShaftFit:
|
||||
"Pixmap": "actions/TechDraw_HoleShaftFit.svg",
|
||||
"Accel": "",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"TechDraw_HoleShaftFit", "Add hole or shaft fit"
|
||||
"TechDraw_HoleShaftFit", "Hole/Shaft Fit"
|
||||
),
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"TechDraw_HoleShaftFit",
|
||||
"Add a hole or shaft fit to a dimension\n"
|
||||
"- select one length dimension or diameter dimension\n"
|
||||
"- click the tool button, a panel opens\n"
|
||||
"- select shaft fit / hole fit\n"
|
||||
"- select the desired ISO 286 fit field using the combo box",
|
||||
"Adds a hole or shaft fit to a selected length or diameter dimension"
|
||||
),
|
||||
}
|
||||
|
||||
@@ -73,7 +69,7 @@ class CommandHoleShaftFit:
|
||||
)
|
||||
msg = translate(
|
||||
"TechDraw_HoleShaftFit",
|
||||
"Please select one length dimension or diameter dimension and retry",
|
||||
"Select one length dimension or diameter dimension and retry",
|
||||
)
|
||||
msgBox.setText(msg)
|
||||
msgBox.setWindowTitle(msgTitle)
|
||||
|
||||
@@ -45,7 +45,7 @@ class CommandMoveView:
|
||||
return {'Pixmap': 'actions/TechDraw_MoveView.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_MoveView", "Move View"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_MoveView", "Move a View to a new Page")}
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_MoveView", "Moves a view to a new page")}
|
||||
|
||||
def Activated(self):
|
||||
"""Run the following code when the command is activated (button press)."""
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"""
|
||||
Provides the TechDraw PositionSectionView GuiCommand.
|
||||
00.01 2021/03/17 C++ Basic version
|
||||
00.02 2023/12/21 Option to select an edge and it's corresponding vertex
|
||||
00.02 2023/12/21 Option to select an edge and its corresponding vertex
|
||||
"""
|
||||
|
||||
__title__ = "TechDrawTools.CommandPositionSectionView"
|
||||
@@ -50,11 +50,7 @@ class CommandPositionSectionView:
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_PositionSectionView", "Position Section View"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_PositionSectionView",
|
||||
"Orthogonally align a section view with its source view:<br>\
|
||||
- Select a single section view<br>\
|
||||
- Click this tool<br>\
|
||||
- optional: select one edge in the section view and it's corresponding vertex in the base view<br>\
|
||||
Click this tool")}
|
||||
"Aligns the selected section view with its source view orthogonally or the selected edge in the section view to the selected vertex in the base view")}
|
||||
|
||||
def Activated(self):
|
||||
"""Run the following code when the command is activated (button pressed)."""
|
||||
@@ -113,8 +109,14 @@ class CommandPositionSectionView:
|
||||
|
||||
def getTrianglePoint(self,p1,dir,p2):
|
||||
'''
|
||||
Get third point of a perpendicular triangle
|
||||
p1, p2 ...vertexes of hypothenusis, dir ...direction of one kathete, p3 ...3rd vertex
|
||||
Calculate the third vertex of a right triangle.
|
||||
|
||||
Parameters:
|
||||
p1, p2 : vertices of the hypotenuse
|
||||
dir : direction vector of one leg (kathete)
|
||||
|
||||
Returns:
|
||||
p3 : the third vertex completing the right triangle
|
||||
'''
|
||||
a = -dir.y
|
||||
b = dir.x
|
||||
|
||||
@@ -34,7 +34,7 @@ import FreeCADGui as Gui
|
||||
import TechDrawTools
|
||||
|
||||
class CommandShareView:
|
||||
"""Shares a View on current Page to another Page."""
|
||||
"""Shares a view on current page to another page."""
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize variables for the command that must exist at all times."""
|
||||
@@ -45,7 +45,7 @@ class CommandShareView:
|
||||
return {'Pixmap': 'actions/TechDraw_ShareView.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_ShareView", "Share View"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_ShareView", "Share a View on a second Page")}
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_ShareView", "Shares a view on a second page")}
|
||||
|
||||
def Activated(self):
|
||||
"""Run the following code when the command is activated (button press)."""
|
||||
|
||||
@@ -57,10 +57,8 @@ class CommandVertexCreationGroup:
|
||||
"""Return a dictionary with data that will be used by the button or menu item."""
|
||||
return {'Pixmap': 'TechDraw_ExtensionVertexAtIntersection.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection","Add Cosmetic Intersection Vertex(es)"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection", "Add cosmetic vertex(es) at the intersection(s) of selected edges:<br>\
|
||||
- Select two edges<br>\
|
||||
- Click this tool")}
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection","Cosmetic Intersection Vertices"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection", "Adds cosmetic vertices at the intersectionss of selected edges")}
|
||||
|
||||
def IsActive(self):
|
||||
"""Return True when the command should be active or False when it should be disabled (greyed)."""
|
||||
@@ -80,11 +78,8 @@ class CommandAddOffsetVertex:
|
||||
"""Return a dictionary with data that will be used by the button or menu item."""
|
||||
return {'Pixmap': 'actions/TechDraw_AddOffsetVertex.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_AddOffsetVertex", "Add an offset vertex"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_AddOffsetVertex", "Create an offset vertex<br>\
|
||||
- select one vertex<br>\
|
||||
- start the tool<br>\
|
||||
- enter offset values in panel")}
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_AddOffsetVertex", "Offset Vertex"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_AddOffsetVertex", "Creates an offset from one selected vertex")}
|
||||
|
||||
def Activated(self):
|
||||
"""Run the following code when the command is activated (button pressed)."""
|
||||
|
||||
@@ -103,7 +103,7 @@ class TaskFillTemplateFields:
|
||||
msgBox = QtGui.QMessageBox()
|
||||
msgTitle = QtCore.QT_TRANSLATE_NOOP(
|
||||
"Techdraw_FillTemplateFields",
|
||||
"View or Projection Group missing",
|
||||
"View or projection group missing",
|
||||
)
|
||||
msg = QtCore.QT_TRANSLATE_NOOP(
|
||||
"Techdraw_FillTemplateFields",
|
||||
@@ -131,7 +131,7 @@ class TaskFillTemplateFields:
|
||||
self.dialog.resize(1050, 400)
|
||||
self.dialog.setWindowTitle(
|
||||
QtCore.QT_TRANSLATE_NOOP(
|
||||
"TechDraw_FillTemplateFields", "Fill Template Fields in "
|
||||
"TechDraw_FillTemplateFields", "Fill Template Fields In "
|
||||
)
|
||||
+ self.page.Label
|
||||
)
|
||||
|
||||
@@ -39,9 +39,9 @@ translate = App.Qt.translate
|
||||
class TaskHoleShaftFit:
|
||||
def __init__(self, sel):
|
||||
|
||||
loose = translate("TechDraw_HoleShaftFit", "loose fit")
|
||||
snug = translate("TechDraw_HoleShaftFit", "snug fit")
|
||||
press = translate("TechDraw_HoleShaftFit", "press fit")
|
||||
loose = translate("TechDraw_HoleShaftFit", "Loose fit")
|
||||
snug = translate("TechDraw_HoleShaftFit", "Snug fit")
|
||||
press = translate("TechDraw_HoleShaftFit", "Press fit")
|
||||
self.isHole = True
|
||||
self.sel = sel
|
||||
self.holeValues = [
|
||||
@@ -88,7 +88,7 @@ class TaskHoleShaftFit:
|
||||
self.form = Gui.PySideUic.loadUi(self._uiPath)
|
||||
|
||||
self.form.setWindowTitle(
|
||||
translate("TechDraw_HoleShaftFit", "Hole / Shaft Fit ISO 286")
|
||||
translate("TechDraw_HoleShaftFit", "Hole/Shaft Fit ISO 286")
|
||||
)
|
||||
|
||||
self.form.rbHoleBase.clicked.connect(partial(self.on_HoleShaftChanged, True))
|
||||
|
||||
@@ -45,7 +45,7 @@ class TaskMoveView:
|
||||
self._uiPath = os.path.join(self._uiPath, "Mod/TechDraw/TechDrawTools/Gui/TaskMoveView.ui")
|
||||
self.form = Gui.PySideUic.loadUi(self._uiPath)
|
||||
|
||||
self.form.setWindowTitle(translate("TechDraw_MoveView", "Move View to a different Page"))
|
||||
self.form.setWindowTitle(translate("TechDraw_MoveView", "Move View to Different Page"))
|
||||
|
||||
self.form.pbView.clicked.connect(self.pickView)
|
||||
self.form.pbFromPage.clicked.connect(self.pickFromPage)
|
||||
@@ -77,7 +77,7 @@ class TaskMoveView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select View to move from list."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select view to move from list."))
|
||||
dlg.setWindowTitle(translate("TechDraw_MoveView", "Select View"))
|
||||
|
||||
views = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawView")]
|
||||
@@ -100,7 +100,7 @@ class TaskMoveView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select From Page."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select from page."))
|
||||
dlg.setWindowTitle(translate("TechDraw_MoveView", "Select Page"))
|
||||
|
||||
pages = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawPage")]
|
||||
@@ -123,7 +123,7 @@ class TaskMoveView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select To Page."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_MoveView", "Select to page."))
|
||||
dlg.setWindowTitle(translate("TechDraw_MoveView", "Select Page"))
|
||||
|
||||
pages = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawPage")]
|
||||
|
||||
@@ -44,7 +44,7 @@ class TaskShareView:
|
||||
self._uiPath = os.path.join(self._uiPath, "Mod/TechDraw/TechDrawTools/Gui/TaskMoveView.ui")
|
||||
self.form = Gui.PySideUic.loadUi(self._uiPath)
|
||||
|
||||
self.form.setWindowTitle(translate("TechDraw_ShareView", "Share View with another Page"))
|
||||
self.form.setWindowTitle(translate("TechDraw_ShareView", "Share View With Another Page"))
|
||||
self.form.lViewName.setText(translate("TechDraw_ShareView", "View to share"))
|
||||
|
||||
self.form.pbView.clicked.connect(self.pickView)
|
||||
@@ -77,7 +77,7 @@ class TaskShareView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select View to share from list."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select view to share from list."))
|
||||
dlg.setWindowTitle(translate("TechDraw_ShareView", "Select View"))
|
||||
|
||||
views = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawView")]
|
||||
@@ -100,7 +100,7 @@ class TaskShareView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select From Page."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select from page."))
|
||||
dlg.setWindowTitle(translate("TechDraw_ShareView", "Select Page"))
|
||||
|
||||
pages = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawPage")]
|
||||
@@ -124,7 +124,7 @@ class TaskShareView:
|
||||
_dlgPath = os.path.join(_dlgPath, "Mod/TechDraw/TechDrawTools/Gui/DlgPageChooser.ui")
|
||||
dlg = Gui.PySideUic.loadUi(_dlgPath)
|
||||
self.dialogOpen = True
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select To Page."))
|
||||
dlg.lPrompt.setText(translate("TechDraw_ShareView", "Select to page."))
|
||||
dlg.setWindowTitle(translate("TechDraw_ShareView", "Select Page"))
|
||||
|
||||
pages = [x for x in App.ActiveDocument.Objects if x.isDerivedFrom("TechDraw::DrawPage")]
|
||||
|
||||
@@ -43,7 +43,7 @@ def moveViews():
|
||||
s = FreeCADGui.Selection.getSelection()
|
||||
|
||||
if len(s) != 2:
|
||||
print("Please select 1 Drawing Page and 1 TechDraw Page")
|
||||
print("Select 1 Drawing page and 1 TechDraw page")
|
||||
return
|
||||
|
||||
print("First object in selection is a: ", s[0].TypeId)
|
||||
@@ -59,7 +59,7 @@ def moveViews():
|
||||
tPage = s[0]
|
||||
dPage = s[1]
|
||||
else:
|
||||
print("Please select 1 Drawing Page and 1 TechDraw Page")
|
||||
print("Select 1 Drawing page and 1 TechDraw page")
|
||||
return
|
||||
|
||||
for o in dPage.OutList:
|
||||
|
||||
Reference in New Issue
Block a user