Audacity  3.0.3
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 430 of file CommandManager.h.

Constructor & Destructor Documentation

◆ MenuItem() [1/2]

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

Definition at line 191 of file Menus.cpp.

194  internalName, std::move( items_ ) }, title{ title_ }
195 {
196  wxASSERT( !title.empty() );
197 }

◆ MenuItem() [2/2]

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

Definition at line 439 of file CommandManager.h.

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

◆ ~MenuItem()

MenuTable::MenuItem::~MenuItem ( )
override

Definition at line 198 of file Menus.cpp.

198 {}

Member Data Documentation

◆ title

TranslatableString MenuTable::MenuItem::title

Definition at line 447 of file CommandManager.h.


The documentation for this struct was generated from the following files:
TranslatableString::empty
bool empty() const
Definition: TranslatableString.h:72
MenuTable::MenuItem::title
TranslatableString title
Definition: CommandManager.h:447
Registry::ConcreteGroupItem< false, ToolbarMenuVisitor >