From 17c79f19e2a9c0b4f1060e12f8e1188735c28465 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 13 May 2020 10:26:57 +0200 Subject: [PATCH] Gui: [skip ci] rename Std_ExportGraphviz to Std_DependencyGraph --- src/Gui/CommandDoc.cpp | 18 +++++++++--------- src/Gui/Workbench.cpp | 21 +++++++++++++++------ 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index a79ad6a289..bc7d25974f 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -369,33 +369,33 @@ bool StdCmdMergeProjects::isActive(void) } //=========================================================================== -// Std_ExportGraphviz +// Std_DependencyGraph //=========================================================================== -DEF_STD_CMD_A(StdCmdExportGraphviz) +DEF_STD_CMD_A(StdCmdDependencyGraph) -StdCmdExportGraphviz::StdCmdExportGraphviz() - : Command("Std_ExportGraphviz") +StdCmdDependencyGraph::StdCmdDependencyGraph() + : Command("Std_DependencyGraph") { // setting the sGroup = QT_TR_NOOP("Tools"); sMenuText = QT_TR_NOOP("Dependency graph..."); sToolTipText = QT_TR_NOOP("Show the dependency graph of the objects in the active document"); sStatusTip = QT_TR_NOOP("Show the dependency graph of the objects in the active document"); - sWhatsThis = "Std_ExportGraphviz"; + sWhatsThis = "Std_DependencyGraph"; eType = 0; } -void StdCmdExportGraphviz::activated(int iMsg) +void StdCmdDependencyGraph::activated(int 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")); + view->setWindowTitle(qApp->translate("Std_DependencyGraph","Dependency graph")); getMainWindow()->addWindow(view); } -bool StdCmdExportGraphviz::isActive(void) +bool StdCmdDependencyGraph::isActive(void) { return (getActiveGuiDocument() ? true : false); } @@ -1758,7 +1758,7 @@ void CreateDocCommands(void) rcCmdMgr.addCommand(new StdCmdImport()); rcCmdMgr.addCommand(new StdCmdExport()); rcCmdMgr.addCommand(new StdCmdMergeProjects()); - rcCmdMgr.addCommand(new StdCmdExportGraphviz()); + rcCmdMgr.addCommand(new StdCmdDependencyGraph()); rcCmdMgr.addCommand(new StdCmdSave()); rcCmdMgr.addCommand(new StdCmdSaveAs()); diff --git a/src/Gui/Workbench.cpp b/src/Gui/Workbench.cpp index d14518fd35..7c04b71206 100644 --- a/src/Gui/Workbench.cpp +++ b/src/Gui/Workbench.cpp @@ -646,12 +646,21 @@ MenuItem* StdWorkbench::setupMenuBar() const // Tools MenuItem* tool = new MenuItem( menuBar ); tool->setCommand("&Tools"); - *tool << "Std_DlgParameter" << "Separator" - << "Std_ViewScreenShot" << "Std_SceneInspector" - << "Std_ExportGraphviz" << "Std_ProjectUtil" << "Separator" - << "Std_MeasureDistance" << "Separator" - << "Std_TextDocument" << "Separator" - << "Std_DemoMode" << "Std_UnitsCalculator" << "Separator" << "Std_DlgCustomize"; + *tool << "Std_DlgParameter" + << "Separator" + << "Std_ViewScreenShot" + << "Std_SceneInspector" + << "Std_DependencyGraph" + << "Std_ProjectUtil" + << "Separator" + << "Std_MeasureDistance" + << "Separator" + << "Std_TextDocument" + << "Separator" + << "Std_DemoMode" + << "Std_UnitsCalculator" + << "Separator" + << "Std_DlgCustomize"; #ifdef BUILD_ADDONMGR *tool << "Std_AddonMgr"; #endif