Audacity  2.2.2
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
PopupMenuTable Class Referenceabstract

#include <PopupMenuTable.h>

Inheritance diagram for PopupMenuTable:
TranslatableArray< std::vector< PopupMenuTableEntry > > FormatMenuTable LabelTrackMenuTable RateMenuTable TimeTrackMenuTable TrackMenuTable WaveColorMenuTable WaveTrackMenuTable WaveTrackVRulerMenuTable

Classes

class  Menu
 

Public Types

typedef PopupMenuTableEntry Entry
 

Public Member Functions

virtual void InitMenu (Menu *pMenu, void *pUserData)=0
 
virtual void DestroyMenu ()=0
 
- Public Member Functions inherited from TranslatableArray< std::vector< PopupMenuTableEntry > >
 TranslatableArray ()
 
const std::vector
< PopupMenuTableEntry > & 
Get ()
 

Static Public Member Functions

static std::unique_ptr< MenuBuildMenu (wxEvtHandler *pParent, PopupMenuTable *pTable, void *pUserData=NULL)
 

Additional Inherited Members

- Protected Member Functions inherited from TranslatableArray< std::vector< PopupMenuTableEntry > >
virtual void Populate ()=0
 
void Invalidate (wxCommandEvent &evt)
 
- Protected Attributes inherited from TranslatableArray< std::vector< PopupMenuTableEntry > >
std::vector< PopupMenuTableEntrymContents
 

Detailed Description

Definition at line 56 of file PopupMenuTable.h.

Member Typedef Documentation

Definition at line 59 of file PopupMenuTable.h.

Member Function Documentation

std::unique_ptr< PopupMenuTable::Menu > PopupMenuTable::BuildMenu ( wxEvtHandler *  pParent,
PopupMenuTable pTable,
void *  pUserData = NULL 
)
static

Definition at line 90 of file PopupMenuTable.cpp.

References PopupMenuTable::Menu::Extend(), and safenew.

Referenced by TrackControls::DoContextMenu(), PopupMenuTable::Menu::Extend(), and WaveTrackVZoomHandle::Release().

91 {
92  // Rebuild as needed each time. That makes it safe in case of language change.
93  std::unique_ptr<Menu> theMenu{ safenew Menu( pParent, pUserData ) };
94  theMenu->Extend(pTable);
95  return theMenu;
96 }
#define safenew
Definition: Audacity.h:230
virtual void PopupMenuTable::DestroyMenu ( )
pure virtual
virtual void PopupMenuTable::InitMenu ( Menu pMenu,
void *  pUserData 
)
pure virtual

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