Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
PopupSubMenu Struct Reference

#include <PopupMenuTable.h>

Inheritance diagram for PopupSubMenu:
[legend]
Collaboration diagram for PopupSubMenu:
[legend]

Public Member Functions

 PopupSubMenu (const Identifier &stringId, const TranslatableString &caption_, PopupMenuTable &table)
 
 ~PopupSubMenu () override
 
Properties GetProperties () const override
 
- Public Member Functions inherited from Registry::GroupItem< RegistryTraits >
 ~GroupItem () override=default
 
- Public Member Functions inherited from Composite::Builder< detail::GroupItemBase, GroupItem< RegistryTraits >, const Identifier & >
auto push_back (Arg &&arg) -> std::enable_if_t< Traits< detail::GroupItemBase, GroupItem< RegistryTraits > > ::template enables_item_type_v< Arg >, void >
 
void push_back (typename Base::value_type arg)
 
 Builder (BaseArgs... args, Items &&... items)
 Variadic constructor. More...
 
 Builder (BaseArgs... args, InputIterator begin, InputIterator end)
 Iterator range constructor, with default transformer. More...
 
 Builder (BaseArgs... args, InputIterator begin, InputIterator end, Transformer transformer)
 Iterator range constructor, with explicit transformer. More...
 
- Public Member Functions inherited from MenuRegistry::ItemProperties
virtual ~ItemProperties ()=default
 
virtual Properties GetProperties () const =0
 

Public Attributes

TranslatableString caption
 
PopupMenuTabletable
 

Additional Inherited Members

- Public Types inherited from Composite::Builder< detail::GroupItemBase, GroupItem< RegistryTraits >, const Identifier & >
using BaseType = detail::GroupItemBase
 
- Public Types inherited from MenuRegistry::ItemProperties
enum  Properties {
  None , Inline , Section , Whole ,
  Extension
}
 

Detailed Description

Definition at line 75 of file PopupMenuTable.h.

Constructor & Destructor Documentation

◆ PopupSubMenu()

PopupSubMenu::PopupSubMenu ( const Identifier stringId,
const TranslatableString caption_,
PopupMenuTable table 
)

Definition at line 19 of file PopupMenuTable.cpp.

21 : GroupItem{ stringId }
22 , caption{ caption }
23 , table{ table }
24{
25}
PopupMenuTable & table
TranslatableString caption

◆ ~PopupSubMenu()

PopupSubMenu::~PopupSubMenu ( )
override

Definition at line 27 of file PopupMenuTable.cpp.

28{}

Member Function Documentation

◆ GetProperties()

auto PopupSubMenu::GetProperties ( ) const
overridevirtual

Implements MenuRegistry::ItemProperties.

Definition at line 30 of file PopupMenuTable.cpp.

References caption, TranslatableString::empty(), MenuRegistry::ItemProperties::Extension, and MenuRegistry::ItemProperties::Whole.

Here is the call graph for this function:

Member Data Documentation

◆ caption

TranslatableString PopupSubMenu::caption

◆ table

PopupMenuTable& PopupSubMenu::table

Definition at line 79 of file PopupMenuTable.h.


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