Audacity 3.2.0
|
Namespaces | |
namespace | detail |
Classes | |
struct | CommandGroupItem |
struct | CommandItem |
struct | ConditionalGroupItem |
class | FinderScope |
struct | ItemRegistry |
struct | MenuItem |
struct | MenuItemData |
struct | MenuItemProperties |
A mix-in discovered by dynamic_cast; independent of the Traits. More... | |
struct | MenuItems |
struct | MenuPart |
struct | SpecialItem |
struct | Traits |
struct | Visitor |
Typedefs | |
using | Condition = std::function< bool()> |
using | AttachedItem = RegisteredItem< ItemRegistry > |
Functions | |
template<typename RegistryTraits > | |
static bool | IsSection (const GroupItem< RegistryTraits > &item) |
Variables | |
Factories | |
The following, and Registry::Indirect(), are the functions to use directly to specify elements of menu groupings. | |
constexpr auto | Items = Callable::UniqueMaker<MenuItems>() |
constexpr auto | Section = Callable::UniqueMaker<MenuPart>() |
constexpr auto | Menu = Callable::UniqueMaker<MenuItem>() |
Items will appear in a main toolbar menu or in a sub-menu. More... | |
constexpr auto | ConditionalItems = Callable::UniqueMaker<ConditionalGroupItem>() |
constexpr auto | Command = Callable::UniqueMaker<CommandItem>() |
constexpr auto | CommandGroup |
constexpr auto | Special = Callable::UniqueMaker<SpecialItem>() |
using MenuTable::AttachedItem = typedef RegisteredItem<ItemRegistry> |
Definition at line 749 of file CommandManager.h.
using MenuTable::Condition = typedef std::function<bool()> |
Definition at line 509 of file CommandManager.h.
|
inlinestatic |
Definition at line 485 of file CommandManager.h.
References MenuTable::MenuItemProperties::GetProperties(), and MenuTable::MenuItemProperties::Section.
Referenced by anonymous_namespace{Menus.cpp}::MenuItemVisitor::MenuItemVisitor().
|
constexpr |
Definition at line 733 of file CommandManager.h.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), ScreenshotCommand::CapturePreferences(), anonymous_namespace{ClipMenus.cpp}::ClipCursorItems(), anonymous_namespace{ClipMenus.cpp}::ClipSelectMenu(), anonymous_namespace{SelectMenus.cpp}::CursorMenu(), BuiltinCommandsModule::DiscoverPluginsAtPath(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{DeviceToolBar.cpp}::ExtraDeviceMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraFocusMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraGlobalCommands(), anonymous_namespace{ExtraMenus.cpp}::ExtraMiscItems(), anonymous_namespace{MeterToolBar.cpp}::ExtraMixerMenu(), anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedItems(), anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{TimelineMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems(), anonymous_namespace{ToolsToolBar.cpp}::ExtraToolsMenu(), anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), anonymous_namespace{FileMenus.cpp}::HiddenFileMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), TrackMenuTable::OnSetName(), PluginMenuItems(), anonymous_namespace{BatchProcessDialog.cpp}::PopulateMacrosMenu(), anonymous_namespace{Printing.cpp}::PrintingItems(), DEFINE_VERSION_CHECK::RegisterMenuItems(), anonymous_namespace{NyqBench.cpp}::RegisterMenuItems(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), MacroCommandDialog::SetCommandAndParams(), WaveTrackAffordanceControls::StartEditClipName(), 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().
|
constexpr |
Definition at line 735 of file CommandManager.h.
Referenced by anonymous_namespace{TrackMenus.cpp}::TracksMenu().
|
constexpr |
These items register in the CommandManager but are not shown in menus if the condition evaluates false.
The name is untranslated. Try to keep the name stable across Audacity versions. Name for conditional group must be non-empty.
Definition at line 731 of file CommandManager.h.
Referenced by anonymous_namespace{ExtraMenus.cpp}::ExtraMenu(), and anonymous_namespace{FileMenus.cpp}::HiddenFileMenu().
|
constexpr |
Variadic constructor from pointers to subordinate items, which are moved into the result.
Null pointers are permitted, and ignored when building the menu. Items are spliced into the enclosing menu. The name is untranslated and may be empty, to make the group transparent in identification of items by path. Otherwise try to keep the name stable across Audacity versions.
Definition at line 704 of file CommandManager.h.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddGroupedEffectMenuItems(), anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{ClipMenus.cpp}::ClipCursorItems(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraGlobalCommands(), anonymous_namespace{ExtraMenus.cpp}::ExtraMiscItems(), anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedItems(), anonymous_namespace{TransportMenus.cpp}::ExtraSelectionItems(), anonymous_namespace{ClipMenus.cpp}::ExtraTimeShiftItems(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), anonymous_namespace{MenuHelper.cpp}::MakeAddGroupItems(), PluginMenuItems(), MenuHelper::PopulateEffectsMenu(), anonymous_namespace{PluginMenus.cpp}::ToolsMenu(), and MenuManager::Visit().
|
constexpr |
Items will appear in a main toolbar menu or in a sub-menu.
The name is untranslated. Try to keep the name stable across Audacity versions. If the name of a menu is empty, then subordinate items cannot be located by path.
Definition at line 722 of file CommandManager.h.
Referenced by anonymous_namespace{MenuHelper.cpp}::AddEffectMenuItemGroup(), anonymous_namespace{MenuHelper.cpp}::AddGroupedEffectMenuItems(), anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{ClipMenus.cpp}::ClipSelectMenu(), anonymous_namespace{SelectMenus.cpp}::CursorMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{DeviceToolBar.cpp}::ExtraDeviceMenu(), anonymous_namespace{EditMenus.cpp}::ExtraEditMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{NavigationMenus.cpp}::ExtraFocusMenu(), anonymous_namespace{ExtraMenus.cpp}::ExtraMenu(), anonymous_namespace{MeterToolBar.cpp}::ExtraMixerMenu(), anonymous_namespace{TranscriptionToolBar.cpp}::ExtraPlayAtSpeedMenu(), ExtraScriptablesIIMenu(), ExtraScriptablesIMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{TimelineMenus.cpp}::ExtraSelectionMenu(), anonymous_namespace{ToolsToolBar.cpp}::ExtraToolsMenu(), anonymous_namespace{TrackMenus.cpp}::ExtraTrackMenu(), anonymous_namespace{TransportMenus.cpp}::ExtraTransportMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), anonymous_namespace{FileMenus.cpp}::HiddenFileMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), anonymous_namespace{MenuHelper.cpp}::MakeAddGroupItems(), KeyConfigPrefs::OnDefaults(), PluginMenuItems(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), anonymous_namespace{ToolbarMenus.cpp}::ToolbarsMenu(), anonymous_namespace{PluginMenus.cpp}::ToolsMenu(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), anonymous_namespace{TransportMenus.cpp}::TransportMenu(), RealtimeEffectListWindow::UpdateEffectMenuItems(), and anonymous_namespace{ViewMenus.cpp}::ViewMenu().
|
constexpr |
Like Items, but insert a menu separator between the menu section and any other items or sections before or after it in the same (innermost, enclosing) menu.
It's not necessary that the sisters of sections be other sections, but it might clarify the logical groupings.
Definition at line 713 of file CommandManager.h.
Referenced by anonymous_namespace{PluginMenus.cpp}::AnalyzeMenu(), anonymous_namespace{EditMenus.cpp}::EditMenu(), anonymous_namespace{PluginMenus.cpp}::EffectMenu(), anonymous_namespace{FileMenus.cpp}::ExtraExportMenu(), anonymous_namespace{ExtraMenus.cpp}::ExtraMenu(), anonymous_namespace{FileMenus.cpp}::FileMenu(), anonymous_namespace{PluginMenus.cpp}::GenerateMenu(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), anonymous_namespace{LabelMenus.cpp}::LabelEditMenus(), PluginMenuItems(), MenuHelper::PopulateEffectsMenu(), anonymous_namespace{Printing.cpp}::PrintingItems(), DEFINE_VERSION_CHECK::RegisterMenuItems(), anonymous_namespace{NyqBench.cpp}::RegisterMenuItems(), anonymous_namespace{SelectMenus.cpp}::SelectMenu(), anonymous_namespace{ToolbarMenus.cpp}::ToolbarsMenu(), anonymous_namespace{PluginMenus.cpp}::ToolsMenu(), anonymous_namespace{TrackMenus.cpp}::TracksMenu(), anonymous_namespace{TransportMenus.cpp}::TransportMenu(), RealtimeEffectListWindow::UpdateEffectMenuItems(), and anonymous_namespace{ViewMenus.cpp}::ViewMenu().
|
constexpr |
Definition at line 738 of file CommandManager.h.
Referenced by anonymous_namespace{EditMenus.cpp}::EditMenu(), and anonymous_namespace{FileMenus.cpp}::FileMenu().