284
285 std::tuple {
286 [
this](
const MenuItem &menu,
auto&) {
288 },
290 const auto flag = conditionalGroup();
293
295 },
296 [this](auto &item, auto&) {
298 }
299 },
300
301
302 [this](const auto &item, const auto&) {
304 if (!pCurrentMenu) {
305
306
307 assert(false);
308 }
309 else TypeSwitch::VDispatch<void, LeafTypes>(item,
315 },
318 commandList.items.data(), commandList.items.size(),
319 commandList.finder, commandList.callback,
320 commandList.flags, commandList.isEffect);
321 },
323 special.fn(
mProject, *pCurrentMenu);
324 }
325 );
326 },
327
328
329 std::tuple {
330 [
this](
const MenuItem &,
const auto&) {
332 },
338 },
339 [this](auto &item, auto&) {
341 }
342 }},
343
344 [this]() {
346 }
347 }
350 {}
void AddItemList(const CommandID &name, const ComponentInterfaceSymbol items[], size_t nItems, CommandHandlerFinder finder, CommandFunctorPointer callback, CommandFlag flags, bool bIsEffect=false)
wxMenu * BeginMenu(const TranslatableString &tName)
void BeginOccultCommands()
wxMenu * CurrentMenu() const
void EndMenu()
This attaches a menu, if it's main, to the menubar.
void AddItem(AudacityProject &project, const CommandID &name, const TranslatableString &label_in, CommandHandlerFinder finder, CommandFunctorPointer callback, CommandFlag flags, const Options &options={})
const TranslatableString label_in
CommandHandlerFinder finder
CommandFunctorPointer callback
CommandManager::Options options