Audacity  3.0.3
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 619 of file Menus.cpp.

◆ Predicates

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

Definition at line 521 of file Menus.cpp.

Function Documentation

◆ Enablers()

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

Definition at line 620 of file Menus.cpp.

621  {
622  static MenuItemEnablers enablers;
623  return enablers;
624  }

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 527 of file Menus.cpp.

528  {
529  static std::vector< CommandFlagOptions > options;
530  return options;
531  }

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 522 of file Menus.cpp.

523  {
524  static Predicates thePredicates;
525  return thePredicates;
526  }

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 258 of file Menus.cpp.

259 {
261  return registry;
262 }

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 256 of file Menus.cpp.

Registry::TransparentGroupItem
Definition: Registry.h:210
MenuPathStart
static const auto MenuPathStart
Definition: WaveTrackControls.cpp:483
anonymous_namespace{Menus.cpp}::Predicates
std::vector< ReservedCommandFlag::Predicate > Predicates
Definition: Menus.cpp:521
anonymous_namespace{Menus.cpp}::MenuItemEnablers
std::vector< MenuItemEnabler > MenuItemEnablers
Definition: Menus.cpp:619