Audacity  3.0.3
Public Types | Public Member Functions | Public Attributes | List of all members
MenuTable::ConditionalGroupItem Struct Referencefinal

#include <CommandManager.h>

Inheritance diagram for MenuTable::ConditionalGroupItem:
[legend]
Collaboration diagram for MenuTable::ConditionalGroupItem:
[legend]

Public Types

using Condition = std::function< bool() >
 

Public Member Functions

 ConditionalGroupItem (const Identifier &internalName, Condition condition_, BaseItemPtrs &&items_)
 
template<typename... Args>
 ConditionalGroupItem (const Identifier &internalName, Condition condition_, Args &&... args)
 
 ~ConditionalGroupItem () override
 
- Public Member Functions inherited from Registry::ConcreteGroupItem< false, ToolbarMenuVisitor >
 ~ConcreteGroupItem ()
 
bool Transparent () const override
 
- Public Member Functions inherited from Registry::InlineGroupItem< ToolbarMenuVisitor >
 InlineGroupItem (const Identifier &internalName, Args &&... args)
 
 GroupItem (const Identifier &internalName, BaseItemPtrs &&items_)
 
 GroupItem (const GroupItem &) PROHIBITED
 
- Public Member Functions inherited from Registry::GroupItem
 GroupItem (const Identifier &internalName, BaseItemPtrs &&items_)
 
 GroupItem (const GroupItem &) PROHIBITED
 
 ~GroupItem () override=0
 
virtual bool Transparent () const =0
 
 BaseItem (const Identifier &internalName)
 
- Public Member Functions inherited from Registry::BaseItem
 BaseItem (const Identifier &internalName)
 
virtual ~BaseItem ()
 

Public Attributes

Condition condition
 
- Public Attributes inherited from Registry::GroupItem
BaseItemPtrs items
 
- Public Attributes inherited from Registry::BaseItem
const Identifier name
 
OrderingHint orderingHint
 

Detailed Description

Definition at line 452 of file CommandManager.h.

Member Typedef Documentation

◆ Condition

using MenuTable::ConditionalGroupItem::Condition = std::function< bool() >

Definition at line 454 of file CommandManager.h.

Constructor & Destructor Documentation

◆ ConditionalGroupItem() [1/2]

MenuTable::ConditionalGroupItem::ConditionalGroupItem ( const Identifier internalName,
Condition  condition_,
BaseItemPtrs &&  items_ 
)

Definition at line 200 of file Menus.cpp.

203  internalName, std::move( items_ ) }, condition{ condition_ }
204 {
205 }

◆ ConditionalGroupItem() [2/2]

template<typename... Args>
MenuTable::ConditionalGroupItem::ConditionalGroupItem ( const Identifier internalName,
Condition  condition_,
Args &&...  args 
)
inline

Definition at line 462 of file CommandManager.h.

465  internalName, std::forward<Args>(args)... }
466  , condition{ condition_ }
467  {}

◆ ~ConditionalGroupItem()

MenuTable::ConditionalGroupItem::~ConditionalGroupItem ( )
override

Definition at line 206 of file Menus.cpp.

206 {}

Member Data Documentation

◆ condition

Condition MenuTable::ConditionalGroupItem::condition

Definition at line 470 of file CommandManager.h.


The documentation for this struct was generated from the following files:
MenuTable::ConditionalGroupItem::condition
Condition condition
Definition: CommandManager.h:470
Registry::ConcreteGroupItem< false, ToolbarMenuVisitor >