Audacity 3.2.0
|
#include <MixerBoard.h>
Public Member Functions | |
MixerTrackCluster (wxWindow *parent, MixerBoard *grandParent, AudacityProject *project, PlayableTrack &track, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
virtual | ~MixerTrackCluster () |
WaveTrack * | GetWave () const |
WaveChannel * | GetRight () const |
NoteTrack * | GetNote () const |
void | HandleResize () |
void | HandleSliderGain (const bool bWantPushState=false) |
void | HandleSliderVelocity (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) |
Public Member Functions inherited from wxPanelWrapper | |
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 () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
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 |
Invariant not null. More... | |
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_Velocity (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_Volume |
MixerTrackSlider * | mSlider_Velocity |
wxWeakRef< MeterPanel > | mMeter |
ChannelGroupSampleView | mSampleView |
Definition at line 81 of file MixerBoard.h.
MixerTrackCluster::MixerTrackCluster | ( | wxWindow * | parent, |
MixerBoard * | grandParent, | ||
AudacityProject * | project, | ||
PlayableTrack & | track, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize |
||
) |
Definition at line 173 of file MixerBoard.cpp.
|
inlinevirtual |
Definition at line 89 of file MixerBoard.h.
NoteTrack * MixerTrackCluster::GetNote | ( | ) | const |
Definition at line 351 of file MixerBoard.cpp.
References mTrack.
Referenced by HandleSliderVelocity(), and UpdateForStateChange().
WaveChannel * MixerTrackCluster::GetRight | ( | ) | const |
Definition at line 339 of file MixerBoard.cpp.
References GetWave().
|
private |
Definition at line 679 of file MixerBoard.cpp.
WaveTrack * MixerTrackCluster::GetWave | ( | ) | const |
Definition at line 334 of file MixerBoard.cpp.
References mTrack.
Referenced by GetRight(), HandleSliderGain(), HandleSliderPan(), ResetMeter(), UpdateForStateChange(), and UpdateMeter().
void MixerTrackCluster::HandleResize | ( | ) |
Definition at line 368 of file MixerBoard.cpp.
References kDoubleInset, kInset, kQuadrupleInset, mMeter, mSlider_Velocity, mSlider_Volume, MUSICAL_INSTRUMENT_HEIGHT_AND_WIDTH, MUTE_SOLO_HEIGHT, PAN_HEIGHT, and TRACK_NAME_HEIGHT.
|
private |
Definition at line 687 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 401 of file MixerBoard.cpp.
References CONSOLIDATE, ProjectHistory::Get(), TrackPanel::Get(), ASlider::Get(), GetWave(), mProject, mSlider_Volume, mTrack, ProjectHistory::PushState(), TrackPanel::RefreshTrack(), WaveTrack::SetVolume(), and XO().
Referenced by MixerTrackSlider::OnMouseEvent(), and OnSlider_Gain().
void MixerTrackCluster::HandleSliderPan | ( | const bool | bWantPushState = false | ) |
Definition at line 428 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().
void MixerTrackCluster::HandleSliderVelocity | ( | const bool | bWantPushState = false | ) |
Definition at line 414 of file MixerBoard.cpp.
References CONSOLIDATE, ProjectHistory::Get(), TrackPanel::Get(), ASlider::Get(), GetNote(), mProject, mSlider_Velocity, mTrack, ProjectHistory::PushState(), TrackPanel::RefreshTrack(), NoteTrack::SetVelocity(), and XO().
Referenced by OnSlider_Velocity().
|
private |
Definition at line 728 of file MixerBoard.cpp.
References HandleSelect().
|
private |
Definition at line 749 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 763 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 693 of file MixerBoard.cpp.
References HandleSelect().
|
private |
Definition at line 701 of file MixerBoard.cpp.
References AColor::Bevel(), ThemeBase::Colour(), AColor::MediumTrackInfo(), mMeter, mSlider_Pan, mSlider_Volume, mStaticText_TrackName, mTrack, ASlider::SetBackgroundColour(), theTheme, and UpdateForStateChange().
|
private |
Definition at line 734 of file MixerBoard.cpp.
References HandleSliderGain().
|
private |
Definition at line 744 of file MixerBoard.cpp.
References HandleSliderPan().
|
private |
Definition at line 739 of file MixerBoard.cpp.
References HandleSliderVelocity().
void MixerTrackCluster::ResetMeter | ( | const bool | bResetClipping | ) |
Definition at line 443 of file MixerBoard.cpp.
References anonymous_namespace{TimeTrack.cpp}::GetRate(), GetWave(), mMeter, and mSampleView.
Referenced by UpdateMeter().
void MixerTrackCluster::UpdateForStateChange | ( | ) |
Definition at line 453 of file MixerBoard.cpp.
References MixerBoard::GetMusicalInstrumentBitmap(), GetNote(), GetWave(), mBitmapButton_MusicalInstrument, mMixerBoard, mSlider_Pan, mSlider_Velocity, mSlider_Volume, 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 519 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 135 of file MixerBoard.h.
Referenced by UpdateForStateChange().
|
private |
Definition at line 141 of file MixerBoard.h.
Referenced by HandleResize(), OnPaint(), ResetMeter(), and UpdateMeter().
|
private |
Definition at line 130 of file MixerBoard.h.
Referenced by UpdateForStateChange(), and UpdateMeter().
|
private |
Definition at line 131 of file MixerBoard.h.
Referenced by HandleSelect(), HandleSliderGain(), HandleSliderPan(), HandleSliderVelocity(), OnButton_Mute(), and OnButton_Solo().
|
private |
Definition at line 142 of file MixerBoard.h.
Referenced by ResetMeter(), and UpdateMeter().
|
private |
Definition at line 138 of file MixerBoard.h.
Referenced by HandleSliderPan(), OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 140 of file MixerBoard.h.
Referenced by HandleResize(), HandleSliderVelocity(), and UpdateForStateChange().
|
private |
Definition at line 139 of file MixerBoard.h.
Referenced by HandleResize(), HandleSliderGain(), OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 134 of file MixerBoard.h.
Referenced by OnPaint(), and UpdateForStateChange().
|
private |
Definition at line 136 of file MixerBoard.h.
Referenced by OnButton_Mute(), OnButton_Solo(), and UpdateForStateChange().
|
private |
Definition at line 137 of file MixerBoard.h.
Referenced by OnButton_Solo(), and UpdateForStateChange().
std::shared_ptr<PlayableTrack> MixerTrackCluster::mTrack |
Invariant not null.
Definition at line 127 of file MixerBoard.h.
Referenced by GetNote(), GetWave(), HandleSelect(), HandleSliderGain(), HandleSliderPan(), HandleSliderVelocity(), OnButton_Mute(), OnButton_Solo(), OnPaint(), UpdateForStateChange(), and UpdateMeter().