diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index 6adec1d9b5..74d5456546 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -94,7 +94,7 @@ StdCmdOpen::StdCmdOpen() void StdCmdOpen::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // fill the list of registered endings QString formatList; @@ -176,7 +176,7 @@ StdCmdImport::StdCmdImport() void StdCmdImport::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // fill the list of registered endings QString formatList; @@ -263,7 +263,7 @@ StdCmdExport::StdCmdExport() void StdCmdExport::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (Gui::Selection().countObjectsOfType(App::DocumentObject::getClassTypeId()) == 0) { QMessageBox::warning(Gui::getMainWindow(), @@ -326,7 +326,7 @@ StdCmdMergeProjects::StdCmdMergeProjects() void StdCmdMergeProjects::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); QString exe = qApp->applicationName(); QString project = QFileDialog::getOpenFileName(Gui::getMainWindow(), @@ -379,7 +379,7 @@ StdCmdExportGraphviz::StdCmdExportGraphviz() void StdCmdExportGraphviz::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); App::Document* doc = App::GetApplication().getActiveDocument(); Gui::GraphvizView* view = new Gui::GraphvizView(*doc); view->setWindowTitle(qApp->translate("Std_ExportGraphviz","Dependency graph")); @@ -411,7 +411,7 @@ StdCmdNew::StdCmdNew() void StdCmdNew::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); QString cmd; cmd = QString::fromLatin1("App.newDocument(\"%1\")") .arg(qApp->translate("StdCmdNew","Unnamed")); @@ -439,7 +439,7 @@ StdCmdSave::StdCmdSave() void StdCmdSave::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); #if 0 Gui::Document* pActiveDoc = getActiveGuiDocument(); if ( pActiveDoc ) @@ -481,7 +481,7 @@ StdCmdSaveAs::StdCmdSaveAs() void StdCmdSaveAs::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); #if 0 Gui::Document* pActiveDoc = getActiveGuiDocument(); if ( pActiveDoc ) @@ -519,7 +519,7 @@ StdCmdSaveCopy::StdCmdSaveCopy() void StdCmdSaveCopy::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); #if 0 Gui::Document* pActiveDoc = getActiveGuiDocument(); if ( pActiveDoc ) @@ -552,7 +552,7 @@ StdCmdRevert::StdCmdRevert() void StdCmdRevert::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); QMessageBox msgBox(Gui::getMainWindow()); msgBox.setIcon(QMessageBox::Question); msgBox.setWindowTitle(qApp->translate("Std_Revert","Revert document")); @@ -592,7 +592,7 @@ StdCmdProjectInfo::StdCmdProjectInfo() void StdCmdProjectInfo::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); Gui::Dialog::DlgProjectInformationImp dlg(getActiveGuiDocument()->getDocument(), getMainWindow()); dlg.exec(); } @@ -621,7 +621,7 @@ StdCmdProjectUtil::StdCmdProjectUtil() void StdCmdProjectUtil::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); Gui::Dialog::DlgProjectUtility dlg(getMainWindow()); dlg.exec(); } @@ -650,7 +650,7 @@ StdCmdPrint::StdCmdPrint() void StdCmdPrint::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (getMainWindow()->activeWindow()) { getMainWindow()->showMessage(QObject::tr("Printing...")); getMainWindow()->activeWindow()->print(); @@ -680,7 +680,7 @@ StdCmdPrintPreview::StdCmdPrintPreview() void StdCmdPrintPreview::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (getMainWindow()->activeWindow()) { getMainWindow()->activeWindow()->printPreview(); } @@ -708,7 +708,7 @@ StdCmdPrintPdf::StdCmdPrintPdf() void StdCmdPrintPdf::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (getMainWindow()->activeWindow()) { getMainWindow()->showMessage(QObject::tr("Exporting PDF...")); getMainWindow()->activeWindow()->printPdf(); @@ -742,7 +742,7 @@ StdCmdQuit::StdCmdQuit() void StdCmdQuit::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // close the main window and exit the event loop getMainWindow()->close(); } @@ -768,7 +768,7 @@ StdCmdUndo::StdCmdUndo() void StdCmdUndo::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // Application::Instance->slotUndo(); getGuiApplication()->sendMsgToActiveView("Undo"); } @@ -812,7 +812,7 @@ StdCmdRedo::StdCmdRedo() void StdCmdRedo::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // Application::Instance->slotRedo(); getGuiApplication()->sendMsgToActiveView("Redo"); } @@ -854,7 +854,7 @@ StdCmdCut::StdCmdCut() void StdCmdCut::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); getGuiApplication()->sendMsgToActiveView("Cut"); } @@ -882,7 +882,7 @@ StdCmdCopy::StdCmdCopy() void StdCmdCopy::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); bool done = getGuiApplication()->sendMsgToActiveView("Copy"); if (!done) { QMimeData * mimeData = getMainWindow()->createMimeDataFromSelection(); @@ -917,7 +917,7 @@ StdCmdPaste::StdCmdPaste() void StdCmdPaste::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); bool done = getGuiApplication()->sendMsgToActiveView("Paste"); if (!done) { QClipboard* cb = QApplication::clipboard(); @@ -954,7 +954,7 @@ StdCmdDuplicateSelection::StdCmdDuplicateSelection() void StdCmdDuplicateSelection::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); std::vector sel = Selection().getCompleteSelection(); std::set unique_objs; std::map< App::Document*, std::vector > objs; @@ -1036,7 +1036,7 @@ StdCmdSelectAll::StdCmdSelectAll() void StdCmdSelectAll::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); SelectionSingleton& rSel = Selection(); App::Document* doc = App::GetApplication().getActiveDocument(); std::vector objs = doc->getObjectsOfType(App::DocumentObject::getClassTypeId()); @@ -1070,7 +1070,7 @@ StdCmdDelete::StdCmdDelete() void StdCmdDelete::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); // go through all documents const SelectionSingleton& rSel = Selection(); @@ -1135,7 +1135,7 @@ void StdCmdDelete::activated(int iMsg) autoDeletion = false; } } - + if (!autoDeletion) { //can't just delete, need to ask QString bodyMessage; QTextStream bodyMessageStream(&bodyMessage); @@ -1218,7 +1218,7 @@ StdCmdRefresh::StdCmdRefresh() void StdCmdRefresh::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (getActiveGuiDocument()) { //Note: Don't add the recompute to undo/redo because it complicates //testing the changes of properties. @@ -1251,7 +1251,7 @@ StdCmdTransform::StdCmdTransform() void StdCmdTransform::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); Gui::Control().showDialog(new Gui::Dialog::TaskTransform()); } @@ -1277,7 +1277,7 @@ StdCmdPlacement::StdCmdPlacement() void StdCmdPlacement::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); std::vector sel = Gui::Selection().getObjectsOfType(App::GeoFeature::getClassTypeId()); Gui::Dialog::TaskPlacement* plm = new Gui::Dialog::TaskPlacement(); if (!sel.empty()) { @@ -1310,7 +1310,7 @@ StdCmdTransformManip::StdCmdTransformManip() void StdCmdTransformManip::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); if (getActiveGuiDocument()->getInEdit()) getActiveGuiDocument()->resetEdit(); std::vector sel = Gui::Selection().getObjectsOfType(App::GeoFeature::getClassTypeId()); @@ -1343,7 +1343,7 @@ StdCmdAlignment::StdCmdAlignment() void StdCmdAlignment::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); std::vector sel = Gui::Selection().getObjectsOfType (App::GeoFeature::getClassTypeId()); ManualAlignment* align = ManualAlignment::instance(); @@ -1407,7 +1407,7 @@ StdCmdEdit::StdCmdEdit() sMenuText = QT_TR_NOOP("Toggle &Edit mode"); sToolTipText = QT_TR_NOOP("Toggles the selected object's edit mode"); sWhatsThis = "Std_Edit"; - sStatusTip = QT_TR_NOOP("Enters or leaves the selected object's edit mode"); + sStatusTip = QT_TR_NOOP("Activates or Deactivates the selected object's edit mode"); #if QT_VERSION >= 0x040200 sPixmap = "edit-edit"; #endif @@ -1416,7 +1416,7 @@ StdCmdEdit::StdCmdEdit() void StdCmdEdit::activated(int iMsg) { - Q_UNUSED(iMsg); + Q_UNUSED(iMsg); Gui::MDIView* view = Gui::getMainWindow()->activeWindow(); if (view && view->isDerivedFrom(Gui::View3DInventor::getClassTypeId())) { Gui::View3DInventorViewer* viewer = static_cast(view)->getViewer(); diff --git a/src/Gui/DlgKeyboardImp.cpp b/src/Gui/DlgKeyboardImp.cpp index c53b35b782..156da73f10 100644 --- a/src/Gui/DlgKeyboardImp.cpp +++ b/src/Gui/DlgKeyboardImp.cpp @@ -101,7 +101,7 @@ DlgCustomKeyboardImp::DlgCustomKeyboardImp( QWidget* parent ) categoryBox->setItemData(index, QVariant(it->first), Qt::UserRole); } - QStringList labels; + QStringList labels; labels << tr("Icon") << tr("Command"); commandTreeWidget->setHeaderLabels(labels); commandTreeWidget->header()->hide(); @@ -123,7 +123,7 @@ DlgCustomKeyboardImp::~DlgCustomKeyboardImp() void DlgCustomKeyboardImp::showEvent(QShowEvent* e) { - Q_UNUSED(e); + Q_UNUSED(e); // If we did this already in the constructor we wouldn't get the vertical scrollbar if needed. // The problem was noticed with Qt 4.1.4 but may arise with any later version. if (firstShow) { @@ -394,16 +394,16 @@ void DlgCustomKeyboardImp::on_editShortcut_textChanged(const QString& sc) if (countAmbiguous > 0) assignedTreeWidget->resizeColumnToContents(0); - + if (countAmbiguous > 1) { QMessageBox::warning(this, tr("Multiple defined shortcut"), - tr("The shortcut '%1' is defined more than once. This could result into unexpected behaviour.").arg(sc) ); + tr("The shortcut '%1' is defined more than once. This could result in unexpected behaviour.").arg(sc) ); editShortcut->setFocus(); buttonAssign->setEnabled(false); } else if (countAmbiguous == 1 && ambiguousCommand != QLatin1String(name)) { int ret = QMessageBox::warning(this, tr("Already defined shortcut"), - tr("The shortcut '%1' is already assigned to '%2'.\n\nDo you want to override it?") + tr("The shortcut '%1' is already assigned to '%2'. Do you want to override it?") .arg(sc, ambiguousMenu), QMessageBox::Yes | QMessageBox::No); if (ret == QMessageBox::Yes) { for (auto* cmd : ambiguousCommands) { diff --git a/src/Mod/Arch/ArchBuilding.py b/src/Mod/Arch/ArchBuilding.py index b0b43922ae..4cec3d2bd5 100644 --- a/src/Mod/Arch/ArchBuilding.py +++ b/src/Mod/Arch/ArchBuilding.py @@ -239,8 +239,8 @@ class _CommandBuilding: else: warning = True if warning : - message = translate( "Arch" , "You can put anything but Site and Building object in a Building object.\n\ -Building object is not allowed to accept Site and Building object.\n\ + message = translate( "Arch" , "You can put anything but Site and Building objects in a Building object.\n\ +Building object is not allowed to accept Site and Building objects.\n\ Site and Building objects will be removed from the selection.\n\ You can change that in the preferences.") + "\n" ArchCommands.printMessage( message ) diff --git a/src/Mod/Arch/ArchPanel.py b/src/Mod/Arch/ArchPanel.py index 15e8da8e26..8399ee7853 100644 --- a/src/Mod/Arch/ArchPanel.py +++ b/src/Mod/Arch/ArchPanel.py @@ -1207,7 +1207,7 @@ class PanelSheet(Draft._DraftObject): obj.addProperty("App::PropertyLength","TagSize","PanelSheet",QT_TRANSLATE_NOOP("App::Property","The size of the tag text")) obj.TagSize = 10 if not "TagPosition" in pl: - obj.addProperty("App::PropertyVector","TagPosition","PanelSheet",QT_TRANSLATE_NOOP("App::Property","The position of the tag text. Keep (0,0,0) for automatic center position")) + obj.addProperty("App::PropertyVector","TagPosition","PanelSheet",QT_TRANSLATE_NOOP("App::Property","The position of the tag text. Keep (0,0,0) for center position")) if not "TagRotation" in pl: obj.addProperty("App::PropertyAngle","TagRotation","PanelSheet",QT_TRANSLATE_NOOP("App::Property","The rotation of the tag text")) if not "FontFile" in pl: diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index eeaf551427..978544fc0e 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -4670,7 +4670,7 @@ class _ViewProviderWire(_ViewProviderDraft): "A View Provider for the Wire object" def __init__(self, obj): _ViewProviderDraft.__init__(self,obj) - obj.addProperty("App::PropertyBool","EndArrow","Draft",QT_TRANSLATE_NOOP("App::Property","Displays a dim symbol at the end of the wire")) + obj.addProperty("App::PropertyBool","EndArrow","Draft",QT_TRANSLATE_NOOP("App::Property","Displays a Dimension symbol at the end of the wire")) obj.addProperty("App::PropertyLength","ArrowSize","Draft",QT_TRANSLATE_NOOP("App::Property","Arrow size")) obj.addProperty("App::PropertyEnumeration","ArrowType","Draft",QT_TRANSLATE_NOOP("App::Property","Arrow type")) obj.ArrowSize = getParam("arrowsize",0.1) diff --git a/src/Mod/PartDesign/Gui/WorkflowManager.cpp b/src/Mod/PartDesign/Gui/WorkflowManager.cpp index e1e801f9c2..fadd74f8e6 100644 --- a/src/Mod/PartDesign/Gui/WorkflowManager.cpp +++ b/src/Mod/PartDesign/Gui/WorkflowManager.cpp @@ -158,7 +158,7 @@ Workflow WorkflowManager::determineWorkflow(App::Document *doc) { "If you refuse to migrate you won't be able to use new PartDesign features" " like Bodies and Parts. As a result you also won't be able to use your parts" " in the assembly workbench.\n" - "Although you will be able to migrate any moment later with 'Part Design->Migrate...'." ) ); + "Although you will be able to migrate any moment later with 'Part Design -> Migrate'." ) ); msgBox.setIcon( QMessageBox::Question ); QPushButton * yesBtn = msgBox.addButton ( QMessageBox::Yes ); QPushButton * manuallyBtn = msgBox.addButton (