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=false)
 
 ~CommandGroupItem () override
 
- Public Member Functions inherited from Registry::SingleItem
 ~SingleItem () override=0
 
- Public Member Functions inherited from Registry::detail::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::detail::BaseItem
const Identifier name
 
OrderingHint orderingHint
 

Detailed Description

Definition at line 600 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 224 of file Menus.cpp.

230: SingleItem{ name_ }, items{ std::move(items_) }
231, finder{ finder_ }, callback{ callback_ }
232, flags{ flags_ }, isEffect{ isEffect_ }
233{}
const std::vector< ComponentInterfaceSymbol > items
CommandHandlerFinder finder
CommandFunctorPointer callback
Common abstract base class for items that are not groups.
Definition: Registry.h:224

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

620 : CommandGroupItem(name_, move(items_),
622 static_cast<CommandFunctorPointer::MemberFn>(pmf) },
623 flags_, isEffect_, finder)
624 { assert(finder); }
CommandGroupItem(const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
Definition: Menus.cpp:224
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 = false 
)
inline

Definition at line 628 of file CommandManager.h.

633 : CommandGroupItem(name, move(items),
635 flags, isEffect, nullptr)
636 {}
static const auto fn
const Identifier name
Definition: Registry.h:86

◆ ~CommandGroupItem()

MenuTable::CommandGroupItem::~CommandGroupItem ( )
override

Definition at line 234 of file Menus.cpp.

234{}

Member Data Documentation

◆ callback

CommandFunctorPointer MenuTable::CommandGroupItem::callback

Definition at line 642 of file CommandManager.h.

◆ finder

CommandHandlerFinder MenuTable::CommandGroupItem::finder

Definition at line 641 of file CommandManager.h.

◆ flags

CommandFlag MenuTable::CommandGroupItem::flags

Definition at line 643 of file CommandManager.h.

◆ isEffect

bool MenuTable::CommandGroupItem::isEffect

Definition at line 644 of file CommandManager.h.

◆ items

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

Definition at line 640 of file CommandManager.h.


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