Audacity  3.0.3
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 Registry::GroupItemGetRegistry () const
 
const std::shared_ptr< Registry::GroupItem > & 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< Registry::GroupItemmTop
 
std::vector< Registry::GroupItem * > mStack
 
Identifier mId
 
TranslatableString mCaption
 
std::unique_ptr< Registry::GroupItemmRegistry
 

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 >
static Registry::BaseItemPtr Computed (const std::function< Registry::BaseItemPtr(Table &) > &factory)
 
- 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)
 

Detailed Description

Definition at line 73 of file WaveTrackControls.h.

Member Function Documentation

◆ FindWaveTrack()

WaveTrack & WaveTrackPopupMenuTable::FindWaveTrack ( ) const

Definition at line 89 of file WaveTrackControls.cpp.

90 {
91  return *static_cast< WaveTrack* >( mpData->pTrack );
92 };

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

◆ PopupMenuTable()

PopupMenuTable::PopupMenuTable
inline

Definition at line 120 of file PopupMenuTable.h.

120  {} )
121  : mId{ id }
122  , mCaption{ caption }
123  , mRegistry{ std::make_unique<Registry::TransparentGroupItem<>>( mId ) }
124  {}

◆ ReserveId()

int WaveTrackPopupMenuTable::ReserveId ( )
inline

Definition at line 78 of file WaveTrackControls.h.

78 { return mNextId++; }

Member Data Documentation

◆ mNextId

int WaveTrackPopupMenuTable::mNextId = 0
protected

Definition at line 80 of file WaveTrackControls.h.

◆ mpData

PlayableTrackControls::InitMenuData* WaveTrackPopupMenuTable::mpData {}

Definition at line 76 of file WaveTrackControls.h.

Referenced by FindWaveTrack().


The documentation for this struct was generated from the following files:
PopupMenuTable::mRegistry
std::unique_ptr< Registry::GroupItem > mRegistry
Definition: PopupMenuTable.h:226
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
WaveTrackPopupMenuTable::mNextId
int mNextId
Definition: WaveTrackControls.h:80
PopupMenuTable::mId
Identifier mId
Definition: PopupMenuTable.h:224
PopupMenuTable::mCaption
TranslatableString mCaption
Definition: PopupMenuTable.h:225
CommonTrackControls::InitMenuData::pTrack
Track * pTrack
Definition: CommonTrackControls.h:37
WaveTrackPopupMenuTable::mpData
PlayableTrackControls::InitMenuData * mpData
Definition: WaveTrackControls.h:76