Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MenuTable::MenuItem Struct Referencefinal

#include <CommandManager.h>

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

Public Member Functions

 MenuItem (const Identifier &internalName, const TranslatableString &title_, BaseItemPtrs &&items_)
 
template<typename... Args>
 MenuItem (const Identifier &internalName, const TranslatableString &title_, Args &&... args)
 
 ~MenuItem () 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 Member Functions inherited from MenuTable::WholeMenu
 WholeMenu (bool extend=false)
 
virtual ~WholeMenu ()
 

Public Attributes

TranslatableString title
 
- Public Attributes inherited from Registry::GroupItem
BaseItemPtrs items
 
- Public Attributes inherited from Registry::BaseItem
const Identifier name
 
OrderingHint orderingHint
 
- Public Attributes inherited from MenuTable::WholeMenu
bool extension
 

Detailed Description

Definition at line 431 of file CommandManager.h.

Constructor & Destructor Documentation

◆ MenuItem() [1/2]

MenuTable::MenuItem::MenuItem ( const Identifier internalName,
const TranslatableString title_,
BaseItemPtrs &&  items_ 
)

Definition at line 187 of file Menus.cpp.

190 internalName, std::move( items_ ) }, title{ title_ }
191{
192 wxASSERT( !title.empty() );
193}
TranslatableString title

◆ MenuItem() [2/2]

template<typename... Args>
MenuTable::MenuItem::MenuItem ( const Identifier internalName,
const TranslatableString title_,
Args &&...  args 
)
inline

Definition at line 440 of file CommandManager.h.

443 internalName, std::forward<Args>(args)... }
444 , title{ title_ }
445 {}

◆ ~MenuItem()

MenuTable::MenuItem::~MenuItem ( )
override

Definition at line 194 of file Menus.cpp.

194{}

Member Data Documentation

◆ title

TranslatableString MenuTable::MenuItem::title

Definition at line 448 of file CommandManager.h.


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