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

#include <WaveTrackControls.h>

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

Public Member Functions

WaveTrackFindWaveTrack () const
 
int ReserveId ()
 
 PopupMenuTable (const Identifier &id, const TranslatableString &caption={})
 
- Public Member Functions inherited from PopupMenuTable
 PopupMenuTable (const Identifier &id, const TranslatableString &caption={})
 
const IdentifierId () const
 
const TranslatableStringCaption () const
 
const auto * GetRegistry () const
 
const auto & Get (void *pUserData)
 
void Clear ()
 
- Public Member Functions inherited from PopupMenuHandler
 PopupMenuHandler ()=default
 
 PopupMenuHandler (const PopupMenuHandler &)=delete
 
PopupMenuHandleroperator= (const PopupMenuHandler &)=delete
 
virtual void InitUserData (void *pUserData)=0
 Called before the menu items are appended. More...
 

Public Attributes

PlayableTrackControls::InitMenuDatampData {}
 

Protected Attributes

int mNextId = 0
 
- Protected Attributes inherited from PopupMenuTable
std::shared_ptr< PopupSubMenumTop
 
std::vector< PopupMenuGroupItem * > mStack
 
Identifier mId
 
TranslatableString mCaption
 
std::unique_ptr< PopupMenuGroupItemmRegistry
 

Additional Inherited Members

- Public Types inherited from PopupMenuTable
using Entry = PopupMenuTableEntry
 
- Static Public Member Functions inherited from PopupMenuTable
static std::unique_ptr< PopupMenuBuildMenu (PopupMenuTable *pTable, void *pUserData=NULL)
 
static void ExtendMenu (PopupMenu &menu, PopupMenuTable &otherTable)
 
template<typename Table , typename Factory >
static auto Adapt (const Factory &factory)
 
- Protected Member Functions inherited from PopupMenuTable
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 ()
 
- Static Protected Member Functions inherited from PopupMenuTable
static TranslatableString MakeLabel (const TranslatableString &label, bool useExtra, const TranslatableString &extra)
 

Detailed Description

Definition at line 76 of file WaveTrackControls.h.

Member Function Documentation

◆ FindWaveTrack()

WaveTrack & WaveTrackPopupMenuTable::FindWaveTrack ( ) const

Definition at line 96 of file WaveTrackControls.cpp.

97{
98 return static_cast<WaveTrack&>(mpData->track);
99};
A Track that contains audio waveform data.
Definition: WaveTrack.h:203
PlayableTrackControls::InitMenuData * mpData

References mpData, and CommonTrackControls::InitMenuData::track.

◆ PopupMenuTable()

PopupMenuTable::PopupMenuTable ( const Identifier id,
const TranslatableString caption = {} 
)
inline

Definition at line 127 of file PopupMenuTable.h.

127 {})
128 : mId{ id }
129 , mCaption{ caption }
130 , mRegistry{
131 std::make_unique<PopupMenuGroupItem>(mId) }
132 {}
Identifier mId
std::unique_ptr< PopupMenuGroupItem > mRegistry
TranslatableString mCaption

◆ ReserveId()

int WaveTrackPopupMenuTable::ReserveId ( )
inline

Definition at line 81 of file WaveTrackControls.h.

81{ return mNextId++; }

Member Data Documentation

◆ mNextId

int WaveTrackPopupMenuTable::mNextId = 0
protected

Definition at line 83 of file WaveTrackControls.h.

Referenced by WaveTrackMenuTable::WaveTrackMenuTable().

◆ mpData

PlayableTrackControls::InitMenuData* WaveTrackPopupMenuTable::mpData {}

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