Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MenuTable::CommandGroupItem Struct Referencefinal

#include <CommandManager.h>

Inheritance diagram for MenuTable::CommandGroupItem:
[legend]
Collaboration diagram for MenuTable::CommandGroupItem:
[legend]

Public Member Functions

 CommandGroupItem (const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
 
template<typename Handler >
 CommandGroupItem (const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, void(Handler::*pmf)(const CommandContext &), CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder=FinderScope::DefaultFinder())
 
 ~CommandGroupItem () override
 
- Public Member Functions inherited from Registry::SingleItem
 ~SingleItem () override=0
 
 BaseItem (const Identifier &internalName)
 
- Public Member Functions inherited from Registry::BaseItem
 BaseItem (const Identifier &internalName)
 
virtual ~BaseItem ()
 

Public Attributes

const std::vector< ComponentInterfaceSymbolitems
 
CommandHandlerFinder finder
 
CommandFunctorPointer callback
 
CommandFlag flags
 
bool isEffect
 
- Public Attributes inherited from Registry::BaseItem
const Identifier name
 
OrderingHint orderingHint
 

Detailed Description

Definition at line 533 of file CommandManager.h.

Constructor & Destructor Documentation

◆ CommandGroupItem() [1/2]

MenuTable::CommandGroupItem::CommandGroupItem ( const Identifier name_,
std::vector< ComponentInterfaceSymbol items_,
CommandFunctorPointer  callback_,
CommandFlag  flags_,
bool  isEffect_,
CommandHandlerFinder  finder_ 
)

Definition at line 216 of file Menus.cpp.

222: SingleItem{ name_ }, items{ std::move(items_) }
223, finder{ finder_ }, callback{ callback_ }
224, flags{ flags_ }, isEffect{ isEffect_ }
225{}
const std::vector< ComponentInterfaceSymbol > items
CommandHandlerFinder finder
CommandFunctorPointer callback

◆ CommandGroupItem() [2/2]

template<typename Handler >
MenuTable::CommandGroupItem::CommandGroupItem ( const Identifier name_,
std::vector< ComponentInterfaceSymbol items_,
void(Handler::*)(const CommandContext &)  pmf,
CommandFlag  flags_,
bool  isEffect_,
CommandHandlerFinder  finder = FinderScope::DefaultFinder() 
)
inline

Definition at line 544 of file CommandManager.h.

550 : CommandGroupItem(name_, std::move(items_),
551 static_cast<CommandFunctorPointer>(pmf),
552 flags_, isEffect_, finder)
553 {}
void(CommandHandlerObject::*)(const CommandContext &context) CommandFunctorPointer
CommandGroupItem(const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
Definition: Menus.cpp:216

◆ ~CommandGroupItem()

MenuTable::CommandGroupItem::~CommandGroupItem ( )
override

Definition at line 226 of file Menus.cpp.

226{}

Member Data Documentation

◆ callback

CommandFunctorPointer MenuTable::CommandGroupItem::callback

Definition at line 559 of file CommandManager.h.

◆ finder

CommandHandlerFinder MenuTable::CommandGroupItem::finder

Definition at line 558 of file CommandManager.h.

◆ flags

CommandFlag MenuTable::CommandGroupItem::flags

Definition at line 560 of file CommandManager.h.

◆ isEffect

bool MenuTable::CommandGroupItem::isEffect

Definition at line 561 of file CommandManager.h.

◆ items

const std::vector<ComponentInterfaceSymbol> MenuTable::CommandGroupItem::items

Definition at line 557 of file CommandManager.h.


The documentation for this struct was generated from the following files: