From fcdff96a9e3ff1ab2f6a4973e0f3dfb50d6ae020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Mon, 4 Nov 2013 08:33:33 +0100 Subject: [PATCH] rename the add commands --- src/Mod/Assembly/Gui/Command.cpp | 8 ++++---- src/Mod/Assembly/Gui/Workbench.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Assembly/Gui/Command.cpp b/src/Mod/Assembly/Gui/Command.cpp index d711a7493f..fef2f5d246 100644 --- a/src/Mod/Assembly/Gui/Command.cpp +++ b/src/Mod/Assembly/Gui/Command.cpp @@ -116,8 +116,8 @@ CmdAssemblyAddNewComponent::CmdAssemblyAddNewComponent() { sAppModule = "Assembly"; sGroup = QT_TR_NOOP("Assembly"); - sMenuText = QT_TR_NOOP("Add new Component"); - sToolTipText = QT_TR_NOOP("Add a new Component into the active Assembly"); + sMenuText = QT_TR_NOOP("Add new Assembly"); + sToolTipText = QT_TR_NOOP("Add a new Subassembly into the active Assembly"); sWhatsThis = sToolTipText; sStatusTip = sToolTipText; sPixmap = "Part_Box"; @@ -137,7 +137,7 @@ void CmdAssemblyAddNewComponent::activated(int iMsg) } openCommand("Insert Component"); - std::string CompName = getUniqueObjectName("Product"); + std::string CompName = getUniqueObjectName("Assembly"); doCommand(Doc,"App.activeDocument().addObject('Assembly::ItemAssembly','%s')",CompName.c_str()); if(dest){ std::string fatherName = dest->getNameInDocument(); @@ -155,7 +155,7 @@ CmdAssemblyAddExistingComponent::CmdAssemblyAddExistingComponent() sAppModule = "Assembly"; sGroup = QT_TR_NOOP("Assembly"); sMenuText = QT_TR_NOOP("Add existing Component..."); - sToolTipText = QT_TR_NOOP("Add a existing Component or File into the active Assembly"); + sToolTipText = QT_TR_NOOP("Add a existing Component into the active Assembly"); sWhatsThis = sToolTipText; sStatusTip = sToolTipText; sPixmap = "Part_Box"; diff --git a/src/Mod/Assembly/Gui/Workbench.cpp b/src/Mod/Assembly/Gui/Workbench.cpp index e003dbedc1..6e01dc1c02 100644 --- a/src/Mod/Assembly/Gui/Workbench.cpp +++ b/src/Mod/Assembly/Gui/Workbench.cpp @@ -130,8 +130,8 @@ void Workbench::activated() assert(doc); if(doc->countObjects()==0){ - Gui::Command::doCommand(Gui::Command::Doc,"App.activeDocument().addObject('Assembly::ItemAssembly','Product')"); - Gui::Command::doCommand(Gui::Command::Doc,"AssemblyGui.setActiveAssembly(App.activeDocument().Product)"); + Gui::Command::doCommand(Gui::Command::Doc,"App.activeDocument().addObject('Assembly::ItemAssembly','Assembly')"); + Gui::Command::doCommand(Gui::Command::Doc,"AssemblyGui.setActiveAssembly(App.activeDocument().Assembly)"); } Gui::Control().showModelView();