Audacity  3.0.3
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 532 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 220 of file Menus.cpp.

226 : SingleItem{ name_ }, items{ std::move(items_) }
227 , finder{ finder_ }, callback{ callback_ }
228 , flags{ flags_ }, isEffect{ isEffect_ }
229 {}

◆ 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 543 of file CommandManager.h.

549  : CommandGroupItem(name_, std::move(items_),
550  static_cast<CommandFunctorPointer>(pmf),
551  flags_, isEffect_, finder)
552  {}

◆ ~CommandGroupItem()

MenuTable::CommandGroupItem::~CommandGroupItem ( )
override

Definition at line 230 of file Menus.cpp.

230 {}

Member Data Documentation

◆ callback

CommandFunctorPointer MenuTable::CommandGroupItem::callback

Definition at line 558 of file CommandManager.h.

◆ finder

CommandHandlerFinder MenuTable::CommandGroupItem::finder

Definition at line 557 of file CommandManager.h.

◆ flags

CommandFlag MenuTable::CommandGroupItem::flags

Definition at line 559 of file CommandManager.h.

◆ isEffect

bool MenuTable::CommandGroupItem::isEffect

Definition at line 560 of file CommandManager.h.

◆ items

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

Definition at line 556 of file CommandManager.h.


The documentation for this struct was generated from the following files:
MenuTable::CommandGroupItem::isEffect
bool isEffect
Definition: CommandManager.h:560
Registry::SingleItem
Definition: Registry.h:120
MenuTable::CommandGroupItem::items
const std::vector< ComponentInterfaceSymbol > items
Definition: CommandManager.h:556
MenuTable::CommandGroupItem::finder
CommandHandlerFinder finder
Definition: CommandManager.h:557
MenuTable::CommandGroupItem::callback
CommandFunctorPointer callback
Definition: CommandManager.h:558
MenuTable::CommandGroupItem::CommandGroupItem
CommandGroupItem(const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
Definition: Menus.cpp:220
CommandFunctorPointer
void(CommandHandlerObject::*)(const CommandContext &context) CommandFunctorPointer
Definition: CommandFunctors.h:38
MenuTable::CommandGroupItem::flags
CommandFlag flags
Definition: CommandManager.h:559