![]() |
Audacity 3.2.0
|
#include <MixerBoard.h>
Public Member Functions | |
MixerTrackCluster (wxWindow *parent, MixerBoard *grandParent, AudacityProject *project, const std::shared_ptr< PlayableTrack > &pTrack, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
virtual | ~MixerTrackCluster () |
WaveTrack * | GetWave () const |
WaveChannel * | GetRight () const |
void | HandleResize () |
void | HandleSliderGain (const bool bWantPushState=false) |
void | HandleSliderPan (const bool bWantPushState=false) |
void | ResetMeter (const bool bResetClipping) |
void | UpdateForStateChange () |
void | UpdateMeter (const double t0, const double t1) |
![]() | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Attributes | |
std::shared_ptr< PlayableTrack > | mTrack |
Private Member Functions | |
wxColour | GetTrackColor () |
void | HandleSelect (bool bShiftDown, bool bControlDown) |
void | OnKeyEvent (wxKeyEvent &event) |
void | OnMouseEvent (wxMouseEvent &event) |
void | OnPaint (wxPaintEvent &evt) |
void | OnButton_MusicalInstrument (wxCommandEvent &event) |
void | OnSlider_Gain (wxCommandEvent &event) |
void | OnSlider_Pan (wxCommandEvent &event) |
void | OnButton_Mute (wxCommandEvent &event) |
void | OnButton_Solo (wxCommandEvent &event) |
Private Attributes | |
MixerBoard * | mMixerBoard |
AudacityProject * | mProject |
auStaticText * | mStaticText_TrackName |
wxBitmapButton * | mBitmapButton_MusicalInstrument |
AButton * | mToggleButton_Mute |
AButton * | mToggleButton_Solo |
MixerTrackSlider * | mSlider_Pan |
MixerTrackSlider * | mSlider_Gain |
wxWeakRef< MeterPanel > | mMeter |
ChannelGroupSampleView | mSampleView |
Definition at line 81 of file MixerBoard.h.
MixerTrackCluster::MixerTrackCluster | ( | wxWindow * | parent, |
MixerBoard * | grandParent, | ||
AudacityProject * | project, | ||
const std::shared_ptr< PlayableTrack > & | pTrack, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize |
||
) |
Definition at line 176 of file MixerBoard.cpp.
|
inlinevirtual |
Definition at line 89 of file MixerBoard.h.
WaveChannel * MixerTrackCluster::GetRight | ( | ) | const |
Definition at line 346 of file MixerBoard.cpp.
References GetWave().
|
private |
Definition at line 702 of file MixerBoard.cpp.
WaveTrack * MixerTrackCluster::GetWave | ( | ) | const |
Definition at line 341 of file MixerBoard.cpp.
References mTrack.
Referenced by GetRight(), HandleSliderGain(), HandleSliderPan(), ResetMeter(), UpdateForStateChange(), and UpdateMeter().
void MixerTrackCluster::HandleResize | ( | ) |
Definition at line 377 of file MixerBoard.cpp.
References kDoubleInset, kInset, kQuadrupleInset, mMeter, mSlider_Gain, mToggleButton_Solo, MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH, MUTE_SOLO_HEIGHT, PAN_HEIGHT, SoloBehaviorNone, TRACK_NAME_HEIGHT, and TracksBehaviorsSolo.
|
private |
Definition at line 710 of file MixerBoard.cpp.
References SelectUtilities::DoListSelection(), mProject, and mTrack.
Referenced by OnButton_MusicalInstrument(), and OnMouseEvent().
void MixerTrackCluster::HandleSliderGain | ( | const bool | bWantPushState = false | ) |
Definition at line 416 of file MixerBoard.cpp.
References CONSOLIDATE, ProjectHistory::Get(), TrackPanel::Get(), ASlider::Get(), GetWave(), mProject, mSlider_Gain, mTrack, ProjectHistory::PushState(), TrackPanel::RefreshTrack(), WaveTrack::SetGain(), and XO().
Referenced by MixerTrackSlider::OnMouseEvent(), and OnSlider_Gain().
void MixerTrackCluster::HandleSliderPan | ( | const bool | bWantPushState = false | ) |
Definition at line 445 of file MixerBoard.cpp.
References CONSOLIDATE, ProjectHistory::Get(), TrackPanel::Get(), ASlider::Get(), GetWave(), mProject, mSlider_Pan, mTrack, ProjectHistory::PushState(), TrackPanel::RefreshTrack(), WaveTrack::SetPan(), and XO().
Referenced by MixerTrackSlider::OnMouseEvent(), and OnSlider_Pan().
|
private |
Definition at line 751 of file MixerBoard.cpp.
References HandleSelect().
|
private |
Definition at line 789 of file MixerBoard.cpp.
References TrackUtilities::DoTrackMute(), Viewport::Get(), TrackPanel::Get(), mProject, mToggleButton_Mute, mTrack, Viewport::Redraw(), TrackPanel::RefreshTrack(), AButton::SetAlternateIdx(), SoloBehaviorSimple, TracksBehaviorsSolo, and AButton::WasShiftDown().
|
private |
Definition at line 803 of file MixerBoard.cpp.
References TrackUtilities::DoTrackSolo(), Viewport::Get(), mProject, mToggleButton_Mute, mToggleButton_Solo, mTrack, Viewport::Redraw(), AButton::SetAlternateIdx(), and AButton::WasShiftDown().
|
private |
|
private |
Definition at line 716 of file MixerBoard.cpp.
References HandleSelect().
|
private |
Definition at line 724 of file MixerBoard.cpp.
References AColor::Bevel(), ThemeBase::Colour(), AColor::MediumTrackInfo(), mMeter, mSlider_Gain, mSlider_Pan, mStaticText_TrackName, mTrack, ASlider::SetBackgroundColour(), theTheme, and UpdateForStateChange().
|
private |
Definition at line 757 of file MixerBoard.cpp.
References HandleSliderGain().
|
private |
Definition at line 784 of file MixerBoard.cpp.
References HandleSliderPan().
void MixerTrackCluster::ResetMeter | ( | const bool | bResetClipping | ) |
Definition at line 460 of file MixerBoard.cpp.
References anonymous_namespace{TimeTrack.cpp}::GetRate(), GetWave(), mMeter, and mSampleView.
Referenced by UpdateMeter().
void MixerTrackCluster::UpdateForStateChange | ( | ) |
Definition at line 470 of file MixerBoard.cpp.
References MixerBoard::GetMusicalInstrumentBitmap(), GetWave(), mBitmapButton_MusicalInstrument, mMixerBoard, mSlider_Gain, mSlider_Pan, mStaticText_TrackName, mToggleButton_Mute, mToggleButton_Solo, mTrack, AButton::PopUp(), AButton::PushDown(), ASlider::Set(), AButton::SetAlternateIdx(), wxPanelWrapper::SetName(), and Verbatim().
Referenced by OnPaint().
void MixerTrackCluster::UpdateMeter | ( | const double | t0, |
const double | t1 | ||
) |
Definition at line 538 of file MixerBoard.cpp.
References anonymous_namespace{MixerBoard.cpp}::FillBufferWithSampleView(), anonymous_namespace{MixerBoard.cpp}::GetNumSamplesInView(), GetWave(), MixerBoard::HasSolo(), mMeter, mMixerBoard, mSampleView, mTrack, ArrayOf< X >::reinit(), and ResetMeter().
|
private |
Definition at line 142 of file MixerBoard.h.
Referenced by UpdateForStateChange().
|
private |
Definition at line 150 of file MixerBoard.h.
Referenced by HandleResize(), OnPaint(), ResetMeter(), and UpdateMeter().
|
private |
Definition at line 137 of file MixerBoard.h.
Referenced by UpdateForStateChange(), and UpdateMeter().
|
private |
Definition at line 138 of file MixerBoard.h.
Referenced by HandleSelect(), HandleSliderGain(), HandleSliderPan(), OnButton_Mute(), and OnButton_Solo().
|
private |
Definition at line 151 of file MixerBoard.h.
Referenced by ResetMeter(), and UpdateMeter().
|
private |
Definition at line 146 of file MixerBoard.h.
Referenced by HandleResize(), HandleSliderGain(), OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 145 of file MixerBoard.h.
Referenced by HandleSliderPan(), OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 141 of file MixerBoard.h.
Referenced by OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 143 of file MixerBoard.h.
Referenced by OnButton_Mute(), OnButton_Solo(), and UpdateForStateChange().
|
private |
Definition at line 144 of file MixerBoard.h.
Referenced by HandleResize(), OnButton_Solo(), and UpdateForStateChange().
std::shared_ptr<PlayableTrack> MixerTrackCluster::mTrack |
Definition at line 134 of file MixerBoard.h.
Referenced by GetWave(), HandleSelect(), HandleSliderGain(), HandleSliderPan(), OnButton_Mute(), OnButton_Solo(), OnPaint(), UpdateForStateChange(), and UpdateMeter().