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

#include <MenuRegistry.h>

Inheritance diagram for MenuRegistry::CommandGroupItem:
[legend]
Collaboration diagram for MenuRegistry::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 331 of file MenuRegistry.h.

Constructor & Destructor Documentation

◆ CommandGroupItem() [1/3]

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

Definition at line 146 of file MenuRegistry.cpp.

152: SingleItem{ name_ }, items{ std::move(items_) }
153, finder{ finder_ }, callback{ callback_ }
154, flags{ flags_ }, isEffect{ isEffect_ }
155{}
CommandFunctorPointer callback
Definition: MenuRegistry.h:373
CommandHandlerFinder finder
Definition: MenuRegistry.h:372
const std::vector< ComponentInterfaceSymbol > items
Definition: MenuRegistry.h:371
Common abstract base class for items that are not groups.
Definition: Registry.h:224

◆ CommandGroupItem() [2/3]

template<typename Handler >
MenuRegistry::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 345 of file MenuRegistry.h.

351 : CommandGroupItem(name_, move(items_),
353 static_cast<CommandFunctorPointer::MemberFn>(pmf) },
354 flags_, isEffect_, finder)
355 { assert(finder); }
CommandGroupItem(const Identifier &name_, std::vector< ComponentInterfaceSymbol > items_, CommandFunctorPointer callback_, CommandFlag flags_, bool isEffect_, CommandHandlerFinder finder_)
void(CommandHandlerObject::*)(const CommandContext &context) MemberFn

References anonymous_namespace{Scrubbing.cpp}::finder.

◆ CommandGroupItem() [3/3]

MenuRegistry::CommandGroupItem::CommandGroupItem ( const CommandID name,
std::vector< ComponentInterfaceSymbol items,
CommandFunctorPointer::NonMemberFn  fn,
CommandFlag  flags,
bool  isEffect = false 
)
inline

Definition at line 359 of file MenuRegistry.h.

364 : CommandGroupItem(name, move(items),
366 flags, isEffect, nullptr)
367 {}
static const auto fn
const Identifier name
Definition: Registry.h:86

◆ ~CommandGroupItem()

MenuRegistry::CommandGroupItem::~CommandGroupItem ( )
override

Definition at line 156 of file MenuRegistry.cpp.

156{}

Member Data Documentation

◆ callback

CommandFunctorPointer MenuRegistry::CommandGroupItem::callback

Definition at line 373 of file MenuRegistry.h.

◆ finder

CommandHandlerFinder MenuRegistry::CommandGroupItem::finder

Definition at line 372 of file MenuRegistry.h.

◆ flags

CommandFlag MenuRegistry::CommandGroupItem::flags

Definition at line 374 of file MenuRegistry.h.

◆ isEffect

bool MenuRegistry::CommandGroupItem::isEffect

Definition at line 375 of file MenuRegistry.h.

◆ items

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

Definition at line 371 of file MenuRegistry.h.


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