![]() |
Audacity 3.2.0
|
#include <PopupMenuTable.h>
Public Types | |
| using | Factory = std::function< Registry::BaseItemPtr(Derived &) > |
Public Types inherited from PopupMenuTable | |
| using | Entry = PopupMenuTableEntry |
Public Member Functions | |
| void | Append (const Factory &factory) |
Public Member Functions inherited from PopupMenuTable | |
| PopupMenuTable (const Identifier &id, const TranslatableString &caption={}) | |
| const Identifier & | Id () const |
| const TranslatableString & | Caption () const |
| const Registry::GroupItemBase * | GetRegistry () const |
| const std::shared_ptr< Registry::GroupItemBase > & | Get (void *pUserData) |
| void | Clear () |
Public Member Functions inherited from PopupMenuHandler | |
| PopupMenuHandler ()=default | |
| PopupMenuHandler (const PopupMenuHandler &)=delete | |
| PopupMenuHandler & | operator= (const PopupMenuHandler &)=delete |
| virtual void | InitUserData (void *pUserData)=0 |
| Called before the menu items are appended. More... | |
Static Public Member Functions | |
| static Registry::BaseItemPtr | Computed (const Factory &factory) |
Static Public Member Functions inherited from PopupMenuTable | |
| static std::unique_ptr< PopupMenu > | BuildMenu (PopupMenuTable *pTable, void *pUserData=NULL) |
| static void | ExtendMenu (PopupMenu &menu, PopupMenuTable &otherTable) |
| template<typename Table > | |
| static Registry::BaseItemPtr | Computed (const std::function< Registry::BaseItemPtr(Table &) > &factory) |
Additional Inherited Members | |
Protected Member Functions inherited from PopupMenuTable | |
| virtual void | Populate ()=0 |
| void | Append (Registry::BaseItemPtr pItem) |
| void | Append (const Identifier &stringId, PopupMenuTableEntry::Type type, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init) |
| void | AppendItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
| void | AppendRadioItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
| void | AppendCheckItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
| void | BeginSection (const Identifier &name) |
| void | EndSection () |
Static Protected Member Functions inherited from PopupMenuTable | |
| static TranslatableString | MakeLabel (const TranslatableString &label, bool useExtra, const TranslatableString &extra) |
Protected Attributes inherited from PopupMenuTable | |
| std::shared_ptr< Registry::GroupItemBase > | mTop |
| std::vector< Registry::GroupItemBase * > | mStack |
| Identifier | mId |
| TranslatableString | mCaption |
| std::unique_ptr< Registry::GroupItemBase > | mRegistry |
Definition at line 231 of file PopupMenuTable.h.
| using ComputedPopupMenuTable< Derived, Base >::Factory = std::function< Registry::BaseItemPtr( Derived& ) > |
Definition at line 239 of file PopupMenuTable.h.
|
inline |
Definition at line 245 of file PopupMenuTable.h.
References ComputedPopupMenuTable< Derived, Base >::Append(), ComputedPopupMenuTable< Derived, Base >::Computed(), and cloud::factory.
Referenced by ComputedPopupMenuTable< Derived, Base >::Append().
|
inlinestatic |
Definition at line 240 of file PopupMenuTable.h.
References cloud::factory.
Referenced by ComputedPopupMenuTable< Derived, Base >::Append().