Audacity 3.2.0
|
#include <CommandManager.h>
Public Member Functions | |
Visitor (VisitorFunctions< MenuTraits > functions, std::function< void()> doSeparator) | |
Public Member Functions inherited from Registry::VisitorFunctions< MenuTraits > | |
VisitorFunctions (Visitors &&visitors) | |
Type-erasing constructor. More... | |
void | BeginGroup (const GroupItem< MenuTraits > &item, const Path &path) const |
Call-through for a decorating pre-visitor. More... | |
void | Visit (const SingleItem &item, const Path &path) const |
Call-through for a decorating leaf-visitor. More... | |
void | EndGroup (const GroupItem< MenuTraits > &item, const Path &path) const |
Call-through for a decorating post-visitor. More... | |
Public Member Functions inherited from MenuTable::detail::VisitorBase | |
std::pair< bool, bool > | ShouldBeginGroup (const MenuItemProperties *pProperties) |
void | AfterBeginGroup (const MenuItemProperties *pProperties) |
bool | ShouldEndGroup (const MenuItemProperties *pProperties) |
bool | ShouldDoSeparator () |
Private Attributes | |
const VisitorFunctions< MenuTraits > | mWrapped |
const std::function< void()> | mDoSeparator |
Additional Inherited Members | |
Public Types inherited from Registry::VisitorFunctions< MenuTraits > | |
using | NodeTypes = detail::VisitedNodeTypes< MenuTraits > |
using | LeafTypes = detail::VisitedLeafTypes< MenuTraits > |
Public Attributes inherited from MenuTable::detail::VisitorBase | |
std::vector< bool > | firstItem |
std::vector< bool > | needSeparator |
Wraps the behavior of another VisitorFuntions<MenuTraits>, and also needs a callback for what to do at separator lines
Definition at line 423 of file CommandManager.h.
|
inline |
Definition at line 427 of file CommandManager.h.
References MenuTable::detail::VisitorBase::AfterBeginGroup(), PackedArray::begin(), Registry::VisitorFunctions< RegistryTraits, Reference >::BeginGroup(), Registry::VisitorFunctions< RegistryTraits, Reference >::EndGroup(), MenuTable::Visitor< MenuTraits >::mDoSeparator, MenuTable::Visitor< MenuTraits >::mWrapped, MenuTable::detail::VisitorBase::ShouldBeginGroup(), MenuTable::detail::VisitorBase::ShouldDoSeparator(), MenuTable::detail::VisitorBase::ShouldEndGroup(), and Registry::VisitorFunctions< RegistryTraits, Reference >::Visit().
|
private |
Definition at line 465 of file CommandManager.h.
Referenced by MenuTable::Visitor< MenuTraits >::Visitor().
|
private |
Definition at line 464 of file CommandManager.h.
Referenced by MenuTable::Visitor< MenuTraits >::Visitor().