Audacity 3.2.0
ToolbarMenus.cpp
Go to the documentation of this file.
1#include "CommandContext.h"
2#include "../toolbars/ToolManager.h"
3
5namespace {
6
7// Menu definitions
8
9using namespace MenuRegistry;
10
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}
27
29 Placement{ wxT("View/Other"), { OrderingHint::Begin } }
30};
31}
wxT("CloseDown"))
AttachedItem sAttachment1
constexpr CommandFlag AlwaysEnabledFlag
Definition: CommandFlag.h:34
XXO("&Cut/Copy/Paste Toolbar")
Generates classes whose instances register items at construction.
Definition: Registry.h:388
static void OnResetToolBars(const CommandContext &context)
bool Begin(const FilePath &dataDir)
Definition: Journal.cpp:226
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
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
Definition: Registry.h:175