Audacity 3.2.0
Functions | Variables
anonymous_namespace{ToolbarMenus.cpp} Namespace Reference

Namespace for functions for View Toolbar menu. More...

Functions

auto ToolbarsMenu ()
 

Variables

AttachedItem sAttachment1
 

Detailed Description

Namespace for functions for View Toolbar menu.

Function Documentation

◆ ToolbarsMenu()

auto anonymous_namespace{ToolbarMenus.cpp}::ToolbarsMenu ( )

Definition at line 11 of file ToolbarMenus.cpp.

12{
13 static auto menu = std::shared_ptr{
14 Section( wxT("Toolbars"),
15 Menu( wxT("Toolbars"), XXO("&Toolbars"),
16 Section( "Reset",
17 /* i18n-hint: (verb)*/
18 Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
20 ),
21
22 Section( "Other" )
23 )
24 ) };
25 return menu;
26}
wxT("CloseDown"))
constexpr CommandFlag AlwaysEnabledFlag
Definition: CommandFlag.h:34
XXO("&Cut/Copy/Paste Toolbar")
static void OnResetToolBars(const CommandContext &context)
constexpr auto Section
Definition: MenuRegistry.h:436
constexpr auto Command
Definition: MenuRegistry.h:456
constexpr auto Menu
Items will appear in a main toolbar menu or in a sub-menu.
Definition: MenuRegistry.h:445

References AlwaysEnabledFlag, MenuRegistry::Command, MenuRegistry::Menu, ToolManager::OnResetToolBars(), MenuRegistry::Section, wxT(), and XXO().

Here is the call graph for this function:

Variable Documentation

◆ sAttachment1

AttachedItem anonymous_namespace{ToolbarMenus.cpp}::sAttachment1
Initial value:
Placement{ wxT("View/Other"), { OrderingHint::Begin } }
}
bool Begin(const FilePath &dataDir)
Definition: Journal.cpp:226
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
Definition: Registry.h:175

Definition at line 28 of file ToolbarMenus.cpp.