Audacity  2.2.0
MixerBoard Class Referencefinal

#include <MixerBoard.h>

Inheritance diagram for MixerBoard:

Public Member Functions

 MixerBoard (AudacityProject *pProject, wxFrame *parent, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual ~MixerBoard ()
 
void UpdatePrefs ()
 
void UpdateTrackClusters ()
 
int GetTrackClustersWidth ()
 
void MoveTrackCluster (const PlayableTrack *pTrack, bool bUp)
 
void RemoveTrackCluster (const PlayableTrack *pTrack)
 
void RemoveTrackCluster (size_t nIndex)
 
wxBitmap * GetMusicalInstrumentBitmap (const Track *pTrack)
 
bool HasSolo ()
 
void RefreshTrackCluster (const PlayableTrack *pTrack, bool bEraseBackground=true)
 
void RefreshTrackClusters (bool bEraseBackground=true)
 
void ResizeTrackClusters ()
 
void ResetMeters (const bool bResetClipping)
 
void UpdateName (const PlayableTrack *pTrack)
 
void UpdateMute (const PlayableTrack *pTrack=NULL)
 
void UpdateSolo (const PlayableTrack *pTrack=NULL)
 
void UpdatePan (const PlayableTrack *pTrack=NULL)
 
void UpdateGain (const PlayableTrack *pTrack)
 
void UpdateMeters (const double t1, const bool bLoopedPlay)
 
void UpdateWidth ()
 

Public Attributes

std::unique_ptr< wxImage > mImageMuteUp
 
std::unique_ptr< wxImage > mImageMuteOver
 
std::unique_ptr< wxImage > mImageMuteDown
 
std::unique_ptr< wxImage > mImageMuteDownWhileSolo
 
std::unique_ptr< wxImage > mImageMuteDisabled
 
std::unique_ptr< wxImage > mImageSoloUp
 
std::unique_ptr< wxImage > mImageSoloOver
 
std::unique_ptr< wxImage > mImageSoloDown
 
std::unique_ptr< wxImage > mImageSoloDisabled
 
int mMuteSoloWidth
 

Private Member Functions

void MakeButtonBitmap (wxMemoryDC &dc, wxBitmap &bitmap, wxRect &bev, const wxString &str, bool up)
 
void CreateMuteSoloImages ()
 
int FindMixerTrackCluster (const PlayableTrack *pTrack, MixerTrackCluster **hMixerTrackCluster) const
 
void LoadMusicalInstruments ()
 
void OnSize (wxSizeEvent &evt)
 
void OnTimer (wxCommandEvent &event)
 

Private Attributes

MixerTrackClusterArray mMixerTrackClusters
 
MusicalInstrumentArray mMusicalInstruments
 
AudacityProjectmProject
 
MixerBoardScrolledWindowmScrolledWindow
 
double mPrevT1
 
TrackListmTracks
 

Friends

class MixerBoardFrame
 

Constructor & Destructor Documentation

MixerBoard::MixerBoard ( AudacityProject pProject,
wxFrame *  parent,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize 
)
MixerBoard::~MixerBoard ( )
virtual

Member Function Documentation

int MixerBoard::FindMixerTrackCluster ( const PlayableTrack pTrack,
MixerTrackCluster **  hMixerTrackCluster 
) const
private
wxBitmap * MixerBoard::GetMusicalInstrumentBitmap ( const Track pTrack)
int MixerBoard::GetTrackClustersWidth ( )
bool MixerBoard::HasSolo ( )
void MixerBoard::LoadMusicalInstruments ( )
private
void MixerBoard::MakeButtonBitmap ( wxMemoryDC &  dc,
wxBitmap &  bitmap,
wxRect &  bev,
const wxString &  str,
bool  up 
)
private
void MixerBoard::MoveTrackCluster ( const PlayableTrack pTrack,
bool  bUp 
)
void MixerBoard::OnSize ( wxSizeEvent &  evt)
private
void MixerBoard::OnTimer ( wxCommandEvent &  event)
private
void MixerBoard::RefreshTrackCluster ( const PlayableTrack pTrack,
bool  bEraseBackground = true 
)
void MixerBoard::RefreshTrackClusters ( bool  bEraseBackground = true)
void MixerBoard::RemoveTrackCluster ( const PlayableTrack pTrack)
void MixerBoard::RemoveTrackCluster ( size_t  nIndex)
void MixerBoard::ResetMeters ( const bool  bResetClipping)
void MixerBoard::ResizeTrackClusters ( )

References mMixerTrackClusters.

Referenced by OnSize(), and UpdateTrackClusters().

void MixerBoard::UpdateGain ( const PlayableTrack pTrack)
void MixerBoard::UpdateMeters ( const double  t1,
const bool  bLoopedPlay 
)

References BAD_STREAM_TIME, mMixerTrackClusters, and mPrevT1.

Referenced by OnTimer().

void MixerBoard::UpdateName ( const PlayableTrack pTrack)
void MixerBoard::UpdatePan ( const PlayableTrack pTrack = NULL)

Friends And Related Function Documentation

friend class MixerBoardFrame
friend

Member Data Documentation

std::unique_ptr<wxImage> MixerBoard::mImageMuteDisabled
std::unique_ptr<wxImage> MixerBoard::mImageMuteDown
std::unique_ptr<wxImage> MixerBoard::mImageMuteDownWhileSolo
std::unique_ptr<wxImage> MixerBoard::mImageMuteOver
std::unique_ptr<wxImage> MixerBoard::mImageMuteUp
std::unique_ptr<wxImage> MixerBoard::mImageSoloDisabled
std::unique_ptr<wxImage> MixerBoard::mImageSoloDown
std::unique_ptr<wxImage> MixerBoard::mImageSoloOver
std::unique_ptr<wxImage> MixerBoard::mImageSoloUp
MusicalInstrumentArray MixerBoard::mMusicalInstruments
private
int MixerBoard::mMuteSoloWidth

Referenced by CreateMuteSoloImages().

double MixerBoard::mPrevT1
private

Referenced by ResetMeters(), and UpdateMeters().

AudacityProject* MixerBoard::mProject
private
MixerBoardScrolledWindow* MixerBoard::mScrolledWindow
private
TrackList* MixerBoard::mTracks
private

Referenced by HasSolo(), and UpdateTrackClusters().


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