Skip to content

Commit

Permalink
Gui: [skip ci] rename Std_ExportGraphviz to Std_DependencyGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 13, 2020
1 parent dc007c1 commit 17c79f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
18 changes: 9 additions & 9 deletions src/Gui/CommandDoc.cpp
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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());
Expand Down
21 changes: 15 additions & 6 deletions src/Gui/Workbench.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 17c79f1

Please sign in to comment.