Audacity 3.2.0
Classes | Typedefs | Functions | Variables
anonymous_namespace{Menus.cpp} Namespace Reference

Classes

struct  MenuItemVisitor
 

Typedefs

using Predicates = std::vector< ReservedCommandFlag::Predicate >
 
using MenuItemEnablers = std::vector< MenuItemEnabler >
 

Functions

static Registry::GroupItemsRegistry ()
 
PredicatesRegisteredPredicates ()
 
std::vector< CommandFlagOptions > & Options ()
 
MenuItemEnablersEnablers ()
 

Variables

const auto MenuPathStart = wxT("MenuBar")
 

Detailed Description

CreateMenusAndCommands builds the menus, and also rebuilds them after changes in configured preferences - for example changes in key-bindings affect the short-cut key legend that appears beside each command,

Typedef Documentation

◆ MenuItemEnablers

using anonymous_namespace{Menus.cpp}::MenuItemEnablers = typedef std::vector<MenuItemEnabler>

Definition at line 627 of file Menus.cpp.

◆ Predicates

using anonymous_namespace{Menus.cpp}::Predicates = typedef std::vector< ReservedCommandFlag::Predicate >

Definition at line 529 of file Menus.cpp.

Function Documentation

◆ Enablers()

MenuItemEnablers & anonymous_namespace{Menus.cpp}::Enablers ( )

Definition at line 628 of file Menus.cpp.

629 {
630 static MenuItemEnablers enablers;
631 return enablers;
632 }
std::vector< MenuItemEnabler > MenuItemEnablers
Definition: Menus.cpp:627

Referenced by RegisteredMenuItemEnabler::RegisteredMenuItemEnabler(), MenuManager::TryToMakeActionAllowed(), and MenuManager::UpdateMenus().

Here is the caller graph for this function:

◆ Options()

std::vector< CommandFlagOptions > & anonymous_namespace{Menus.cpp}::Options ( )

Definition at line 535 of file Menus.cpp.

536 {
537 static std::vector< CommandFlagOptions > options;
538 return options;
539 }

Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{ClipMenus.cpp}::ClipCursorItems(), anonymous_namespace{ClipMenus.cpp}::ClipSelectMenu(), anonymous_namespace{SelectMenus.cpp}::CursorMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraGlobalCommands(), anonymous_namespace{ExtraMenus.cpp}::ExtraMiscItems(), anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems(), anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), MenuManager::GetUpdateFlags(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), TimerRecordDialog::PopulateOrExchange(), ReservedCommandFlag::ReservedCommandFlag(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), MenuManager::TellUserWhyDisallowed(), anonymous_namespace{ToolbarMenus.cpp}::ToolbarsMenu(), anonymous_namespace{PluginMenus.cpp}::ToolsMenu(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), anonymous_namespace{TransportMenus.cpp}::TransportMenu(), and anonymous_namespace{ViewMenus.cpp}::ViewMenu().

Here is the caller graph for this function:

◆ RegisteredPredicates()

Predicates & anonymous_namespace{Menus.cpp}::RegisteredPredicates ( )

Definition at line 530 of file Menus.cpp.

531 {
532 static Predicates thePredicates;
533 return thePredicates;
534 }
std::vector< ReservedCommandFlag::Predicate > Predicates
Definition: Menus.cpp:529

Referenced by MenuManager::GetUpdateFlags(), and ReservedCommandFlag::ReservedCommandFlag().

Here is the caller graph for this function:

◆ sRegistry()

static Registry::GroupItem & anonymous_namespace{Menus.cpp}::sRegistry ( )
static

Definition at line 254 of file Menus.cpp.

255{
257 return registry;
258}
static const auto MenuPathStart

References MenuPathStart.

Referenced by MenuTable::AttachedItem::AttachedItem(), MenuTable::DestroyRegistry(), and MenuManager::Visit().

Here is the caller graph for this function:

Variable Documentation

◆ MenuPathStart

const auto anonymous_namespace{Menus.cpp}::MenuPathStart = wxT("MenuBar")

Definition at line 252 of file Menus.cpp.