Audacity  2.3.1
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 NoteTrackMenuTable NoteTrackVRulerMenuTable RateMenuTable TimeTrackMenuTable TrackMenuTable WaveColorMenuTable WaveTrackMenuTable WaveTrackVRulerMenuTable


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 

Definition at line 90 of file PopupMenuTable.cpp.

References MenuTable::Menu(), and safenew.

Referenced by TrackControls::DoContextMenu(), PopupMenuTable::Menu::Extend(), NoteTrackVZoomHandle::Release(), 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 }
BaseItemPtr Menu(const wxString &title, Args &&...args)
#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: