Audacity  2.2.0
RateMenuTable Class Reference
Inheritance diagram for RateMenuTable:
PopupMenuTable TranslatableArray< std::vector< PopupMenuTableEntry > >

Static Public Member Functions

static RateMenuTableInstance ()
 
- Static Public Member Functions inherited from PopupMenuTable
static std::unique_ptr< MenuBuildMenu (wxEvtHandler *pParent, PopupMenuTable *pTable, void *pUserData=NULL)
 

Private Member Functions

 RateMenuTable ()
 
 DECLARE_POPUP_MENU (RateMenuTable)
 
void InitMenu (Menu *pMenu, void *pUserData) override
 
void DestroyMenu () override
 
int IdOfRate (int rate)
 Converts a sampling rate to a wxWidgets menu item id. More...
 
void SetRate (WaveTrack *pTrack, double rate)
 
void OnRateChange (wxCommandEvent &event)
 
void OnRateOther (wxCommandEvent &event)
 

Private Attributes

TrackControls::InitMenuDatampData
 

Additional Inherited Members

- Public Types inherited from PopupMenuTable
typedef PopupMenuTableEntry Entry
 
- Public Member Functions inherited from TranslatableArray< std::vector< PopupMenuTableEntry > >
 TranslatableArray ()
 
 ~TranslatableArray ()
 
const std::vector
< PopupMenuTableEntry > & 
Get ()
 
- 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
 

Constructor & Destructor Documentation

RateMenuTable::RateMenuTable ( )
inlineprivate

Member Function Documentation

RateMenuTable::DECLARE_POPUP_MENU ( RateMenuTable  )
private
void RateMenuTable::DestroyMenu ( )
inlineoverrideprivatevirtual

Implements PopupMenuTable.

References FormatMenuTable::mpData.

int RateMenuTable::IdOfRate ( int  rate)
private

Converts a sampling rate to a wxWidgets menu item id.

References gRates, nRates, OnRate8ID, and OnRateOtherID.

void RateMenuTable::InitMenu ( Menu pMenu,
void *  pUserData 
)
overrideprivatevirtual
RateMenuTable & RateMenuTable::Instance ( )
static
void RateMenuTable::OnRateChange ( wxCommandEvent &  event)
private

This method handles the selection from the Rate submenu of the track menu, except for "Other" (/see OnRateOther).

References RefreshCode::FixScrollbars, WaveTrack::GetKind(), gRates, FormatMenuTable::mpData, OnRate384ID, OnRate8ID, TrackControls::InitMenuData::pTrack, RefreshCode::RefreshAll, TrackControls::InitMenuData::result, and Track::Wave.

void RateMenuTable::SetRate ( WaveTrack pTrack,
double  rate 
)
private

Sets the sample rate for a track, and if it is linked to another track, that one as well.

References _(), GetActiveProject(), Track::GetLink(), Track::GetName(), AudacityProject::GetTracks(), AudacityProject::PushState(), and WaveTrack::SetRate().

Member Data Documentation

TrackControls::InitMenuData* RateMenuTable::mpData
private

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