#include <PopupMenuTable.h>
|
virtual void | Populate ()=0 |
|
template<typename Ptr > |
void | Append (Ptr 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 () |
|
Definition at line 121 of file PopupMenuTable.h.
◆ Entry
◆ PopupMenuTable()
Definition at line 127 of file PopupMenuTable.h.
127 {})
131 std::make_unique<PopupMenuGroupItem>(
mId) }
132 {}
◆ Adapt()
template<typename Table , typename Factory >
static auto PopupMenuTable::Adapt |
( |
const Factory & |
factory | ) |
|
|
inlinestatic |
◆ Append() [1/2]
◆ Append() [2/2]
template<typename Ptr >
void PopupMenuTable::Append |
( |
Ptr |
pItem | ) |
|
|
inlineprotected |
◆ AppendCheckItem()
◆ AppendItem()
◆ AppendRadioItem()
◆ BeginSection()
void PopupMenuTable::BeginSection |
( |
const Identifier & |
name | ) |
|
|
protected |
Definition at line 155 of file PopupMenuTable.cpp.
156{
157 auto uSection = std::make_unique< PopupMenuSection >(
name );
158 auto section = uSection.get();
159 mStack.back()->push_back( std::move( uSection ) );
160 mStack.push_back( section );
161}
References mStack, and name.
◆ BuildMenu()
◆ Caption()
◆ Clear()
void PopupMenuTable::Clear |
( |
| ) |
|
|
inline |
◆ EndSection()
void PopupMenuTable::EndSection |
( |
| ) |
|
|
protected |
◆ ExtendMenu()
Definition at line 137 of file PopupMenuTable.cpp.
138{
139 auto &theMenu = dynamic_cast<PopupMenuImpl&>(menu);
140
141 PopupMenuBuilder visitor{ table, theMenu, theMenu.pUserData };
143 table.GetRegistry(), table);
144}
void VisitWithFunctions(const VisitorFunctions< RegistryTraits > &visitors, const GroupItem< RegistryTraits > *pTopItem, const GroupItem< RegistryTraits > *pRegistry={}, typename RegistryTraits::ComputedItemContextType &computedItemContext=RegistryTraits::ComputedItemContextType::Instance)
References Get(), GetRegistry(), and Registry::VisitWithFunctions().
Referenced by BuildMenu(), and CommonTrackControls::DoContextMenu().
◆ Get()
const auto & PopupMenuTable::Get |
( |
void * |
pUserData | ) |
|
|
inline |
Definition at line 154 of file PopupMenuTable.h.
155 {
156 if ( pUserData )
161 }
virtual void InitUserData(void *pUserData)=0
Called before the menu items are appended.
Referenced by ExtendMenu().
◆ GetRegistry()
const auto * PopupMenuTable::GetRegistry |
( |
| ) |
const |
|
inline |
◆ Id()
◆ MakeLabel()
◆ Populate()
virtual void PopupMenuTable::Populate |
( |
| ) |
|
|
protectedpure virtual |
◆ RegisterItem()
◆ mCaption
◆ mId
◆ mRegistry
◆ mStack
◆ mTop
The documentation for this class was generated from the following files: