Audacity 3.2.0
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
8
9namespace MenuHelper
10{
12
18 EffectType type,
19 CommandFlag batchflags,
20 const wxString& groupby,
21 void (*onMenuCommand)(const CommandContext&),
22 std::function<bool(const PluginDescriptor&)> pred = {});
23
24}
std::bitset< NCommandFlags > CommandFlag
Definition: CommandFlag.h:30
EffectType
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
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
Has variadic and range constructors that check types.
Definition: Registry.h:292