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:
Collaboration diagram for MenuTable::MenuItem:

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::GroupItem< ToolbarMenuVisitor >
 GroupItem (const Identifier &internalName, Args &&... args)
 GroupItemBase (const Identifier &internalName, BaseItemPtrs &&items_)
 GroupItemBase (const GroupItemBase &) PROHIBITED
- Public Member Functions inherited from Registry::GroupItemBase
 GroupItemBase (const Identifier &internalName, BaseItemPtrs &&items_)
 GroupItemBase (const GroupItemBase &) PROHIBITED
 ~GroupItemBase () override=0
virtual Ordering GetOrdering () const
 Default implementation returns Strong. More...
 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::GroupItemBase
BaseItemPtrs items
- Public Attributes inherited from Registry::BaseItem
const Identifier name
OrderingHint orderingHint
- Public Attributes inherited from MenuTable::WholeMenu
bool extension

Additional Inherited Members

- Public Types inherited from Registry::GroupItemBase
enum  Ordering { Anonymous , Weak , Strong }
 Choose treatment of the children of the group when merging trees. More...

Detailed Description

Definition at line 434 of file CommandManager.h.

Constructor & Destructor Documentation

◆ MenuItem() [1/2]

MenuTable::MenuItem::MenuItem ( const Identifier internalName,
const TranslatableString title,
BaseItemPtrs &&  items 

Definition at line 189 of file Menus.cpp.

191 : GroupItem{ internalName, move(items) }
192 , title{ title }
194 wxASSERT( !title.empty() );
TranslatableString title
BaseItemPtrs items
Definition: Registry.h:158

References TranslatableString::empty(), and title.

Here is the call graph for this function:

◆ MenuItem() [2/2]

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

Definition at line 443 of file CommandManager.h.

445 : GroupItem{ internalName, std::forward<Args>(args)... }
446 , title{ title }
447 {}

◆ ~MenuItem()

MenuTable::MenuItem::~MenuItem ( )

Definition at line 196 of file Menus.cpp.


Member Data Documentation

◆ title

TranslatableString MenuTable::MenuItem::title

Definition at line 450 of file CommandManager.h.

Referenced by MenuItem().

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