1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 08:27:13 +01:00

Menus.cpp no longer link dependent on top level menu definitions...

... They all use the registry.

(This link dependency was not shown in diagrams generated by scripts/graph.pl,
because it was not reflected in Menus.h but was done using extern declarations
within Menus.cpp.  That was a cheat, but it let all the other dependencies
be exposed in the graph and mitigated first.)
This commit is contained in:
Paul Licameli
2019-01-14 14:35:35 -05:00
parent d9d3f95570
commit de08d9ff86
11 changed files with 124 additions and 105 deletions

View File

@@ -523,10 +523,10 @@ static CommandHandlerObject &findCommandHandler(AudacityProject &) {
#define FN(X) (& HelpActions::Handler :: X)
// Under /MenuBar
MenuTable::BaseItemSharedPtr HelpMenu()
namespace {
using namespace MenuTable;
BaseItemSharedPtr HelpMenu()
{
using namespace MenuTable;
static BaseItemSharedPtr menu{
( FinderScope{ findCommandHandler },
Menu( wxT("Help"), XO("&Help"),
@@ -602,4 +602,11 @@ MenuTable::BaseItemSharedPtr HelpMenu()
return menu;
}
AttachedItem sAttachment1{
wxT(""),
Shared( HelpMenu() )
};
}
#undef FN