Audacity 3.2.0
ToolbarMenus.cpp
Go to the documentation of this file.
1#include "../ProjectSettings.h"
2#include "../commands/CommandContext.h"
3#include "../commands/CommandManager.h"
4#include "../toolbars/ToolManager.h"
5
7namespace {
8
9// Menu definitions
10
11using namespace MenuTable;
12
14{
16
17 static BaseItemSharedPtr menu{
18 Section( wxT("Toolbars"),
19 Menu( wxT("Toolbars"), XXO("&Toolbars"),
20 Section( "Reset",
21 /* i18n-hint: (verb)*/
22 Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
24 ),
25
26 Section( "Other" )
27 )
28 ) };
29 return menu;
30}
31
33 Placement{ wxT("View/Other"), { OrderingHint::Begin } },
35};
36}
wxT("CloseDown"))
AttachedItem sAttachment1
constexpr CommandFlag AlwaysEnabledFlag
Definition: CommandFlag.h:34
XXO("&Cut/Copy/Paste Toolbar")
static void OnResetToolBars(const CommandContext &context)
bool Begin(const FilePath &dataDir)
Definition: Journal.cpp:226
constexpr auto Section
constexpr auto Menu
Items will appear in a main toolbar menu or in a sub-menu.
constexpr auto Command
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
Definition: Registry.h:113
std::shared_ptr< BaseItem > BaseItemSharedPtr
Definition: Registry.h:78