mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 17:49:45 +02:00
A table of menu description factories; iterate it; but it's empty...
... to be populated in succeeding commits.
This commit is contained in:
parent
e756f2e71c
commit
2c5f56b9ae
@ -524,6 +524,14 @@ static CommandHandlerObject &findMenuCommandHandler(AudacityProject &project)
|
||||
static_cast<CommandFunctorPointer>(& MenuCommandHandler :: X)
|
||||
#define XXO(X) _(X), wxString{X}.Contains("...")
|
||||
|
||||
// Tables of menu factories.
|
||||
// TODO: devise a registration system instead.
|
||||
static const std::shared_ptr<MenuTable::BaseItem> extraItems = MenuTable::Items(
|
||||
);
|
||||
|
||||
static const auto menuTree = MenuTable::Items(
|
||||
);
|
||||
|
||||
void MenuCreator::CreateMenusAndCommands(AudacityProject &project)
|
||||
{
|
||||
using Options = CommandManager::Options;
|
||||
@ -540,6 +548,8 @@ void MenuCreator::CreateMenusAndCommands(AudacityProject &project)
|
||||
auto menubar = c->AddMenuBar(wxT("appmenu"));
|
||||
wxASSERT(menubar);
|
||||
|
||||
VisitItem( project, menuTree.get() );
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// File menu
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user