Audacity
3.2.0
src
menus
MenuHelper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <functional>
4
#include "
MenuRegistry.h
"
5
#include "
EffectInterface.h
"
6
7
class
PluginDescriptor
;
8
9
namespace
MenuHelper
10
{
11
using
Group
=
MenuRegistry::GroupItem<MenuRegistry::Traits>
;
12
16
void
PopulateEffectsMenu
(
17
Group
&
menuItems
,
18
EffectType
type,
19
CommandFlag
batchflags,
20
const
wxString& groupby,
21
void
(*onMenuCommand)(
const
CommandContext
&),
22
std::function<
bool
(
const
PluginDescriptor
&)> pred = {});
23
24
}
CommandFlag
std::bitset< NCommandFlags > CommandFlag
Definition:
CommandFlag.h:30
EffectInterface.h
EffectType
EffectType
Definition:
EffectInterface.h:63
MenuRegistry.h
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
PluginDescriptor
Definition:
PluginDescriptor.h:43
MenuHelper
Definition:
MenuHelper.h:10
MenuHelper::PopulateEffectsMenu
void PopulateEffectsMenu(Group &menuItems, EffectType type, CommandFlag batchflags, const wxString &groupby, void(*onMenuCommand)(const CommandContext &), std::function< bool(const PluginDescriptor &)> pred={})
Definition:
MenuHelper.cpp:563
anonymous_namespace{Scrubbing.cpp}::menuItems
const MenuItems & menuItems()
Definition:
Scrubbing.cpp:259
Registry::GroupItem
Has variadic and range constructors that check types.
Definition:
Registry.h:292
Generated by
1.9.3