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 (const CommandID &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer::NonMemberFn fn_, CommandFlag flags_, bool isEffect_)
 
 ~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 552 of file CommandManager.h.

Constructor & Destructor Documentation

◆ CommandGroupItem() [1/3]

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

Definition at line 214 of file Menus.cpp.

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

◆ CommandGroupItem() [2/3]

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
Precondition
finder != nullptr

Definition at line 566 of file CommandManager.h.

572 : CommandGroupItem(name_, move(items_),
574 static_cast<CommandFunctorPointer::MemberFn>(pmf) },
575 flags_, isEffect_, finder)
576 { assert(finder); }
CommandGroupItem(const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
Definition: Menus.cpp:214
void(CommandHandlerObject::*)(const CommandContext &context) MemberFn

◆ CommandGroupItem() [3/3]

MenuTable::CommandGroupItem::CommandGroupItem ( const CommandID name_,
std::vector< ComponentInterfaceSymbol items_,
CommandFunctorPointer::NonMemberFn  fn_,
CommandFlag  flags_,
bool  isEffect_ 
)
inline

Definition at line 580 of file CommandManager.h.

585 : CommandGroupItem(name_, move(items_),
587 flags_, isEffect_, nullptr)
588 {}

◆ ~CommandGroupItem()

MenuTable::CommandGroupItem::~CommandGroupItem ( )
override

Definition at line 224 of file Menus.cpp.

224{}

Member Data Documentation

◆ callback

CommandFunctorPointer MenuTable::CommandGroupItem::callback

Definition at line 594 of file CommandManager.h.

◆ finder

CommandHandlerFinder MenuTable::CommandGroupItem::finder

Definition at line 593 of file CommandManager.h.

◆ flags

CommandFlag MenuTable::CommandGroupItem::flags

Definition at line 595 of file CommandManager.h.

◆ isEffect

bool MenuTable::CommandGroupItem::isEffect

Definition at line 596 of file CommandManager.h.

◆ items

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

Definition at line 592 of file CommandManager.h.


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