Audacity 3.2.0
Public Member Functions | Protected Attributes | List of all members
MixerTrackSlider Class Referencefinal

#include <MixerBoard.h>

Inheritance diagram for MixerTrackSlider:
Collaboration diagram for MixerTrackSlider:

Public Member Functions

 MixerTrackSlider (wxWindow *parent, wxWindowID id, const TranslatableString &name, const wxPoint &pos, const wxSize &size, const ASlider::Options &options=ASlider::Options{})
virtual ~MixerTrackSlider ()
void OnMouseEvent (wxMouseEvent &event)
void OnFocus (wxFocusEvent &event)
void OnCaptureKey (wxCommandEvent &event)
- Public Member Functions inherited from ASlider
 ASlider (wxWindow *parent, wxWindowID id, const TranslatableString &name, const wxPoint &pos, const wxSize &size, const Options &options=Options{})
virtual ~ASlider ()
bool AcceptsFocus () const override
bool AcceptsFocusFromKeyboard () const override
void SetFocusFromKbd () override
bool SetBackgroundColour (const wxColour &colour) override
void GetScroll (float &line, float &page)
void SetScroll (float line, float page)
void SetToolTipTemplate (const TranslatableString &tip)
float Get (bool convert=true)
void Set (float value)
void Increase (float steps)
void Decrease (float steps)
bool ShowDialog (wxPoint pos=wxPoint(-1, -1))
void SetSpeed (float speed)
void OnErase (wxEraseEvent &event)
void OnPaint (wxPaintEvent &event)
void OnSize (wxSizeEvent &event)
void OnMouseEvent (wxMouseEvent &event)
void OnCaptureLost (wxMouseCaptureLostEvent &event)
void OnKeyDown (wxKeyEvent &event)
void OnSlider (wxCommandEvent &event)
void OnSetFocus (wxFocusEvent &event)
void OnKillFocus (wxFocusEvent &event)
void OnTimer (wxTimerEvent &event)
bool Enable (bool enable=true) override
bool IsEnabled () const

Protected Attributes

bool mIsPan
- Protected Attributes inherited from ASlider
int mStyle

Additional Inherited Members

- Static Public Member Functions inherited from ASlider
static TempAllowFocus TemporarilyAllowFocus ()

Detailed Description

Definition at line 40 of file MixerBoard.h.

Constructor & Destructor Documentation

◆ MixerTrackSlider()

MixerTrackSlider::MixerTrackSlider ( wxWindow *  parent,
wxWindowID  id,
const TranslatableString name,
const wxPoint &  pos,
const wxSize &  size,
const ASlider::Options options = ASlider::Options{} 

Definition at line 81 of file MixerBoard.cpp.

87: ASlider(parent, id, name, pos, size, options)
const TranslatableString name
Definition: Distortion.cpp:74
ASlider(wxWindow *parent, wxWindowID id, const TranslatableString &name, const wxPoint &pos, const wxSize &size, const Options &options=Options{})
Definition: ASlider.cpp:1683

◆ ~MixerTrackSlider()

virtual MixerTrackSlider::~MixerTrackSlider ( )

Definition at line 49 of file MixerBoard.h.


Member Function Documentation

◆ OnCaptureKey()

void MixerTrackSlider::OnCaptureKey ( wxCommandEvent &  event)

Definition at line 112 of file MixerBoard.cpp.

114 wxKeyEvent *kevent = (wxKeyEvent *)event.GetEventObject();
115 int keyCode = kevent->GetKeyCode();
117 // Pass LEFT/RIGHT/UP/DOWN/PAGEUP/PAGEDOWN through for input/output sliders
118 if (keyCode == WXK_LEFT || keyCode == WXK_RIGHT ||
119 keyCode == WXK_UP || keyCode == WXK_DOWN ||
120 keyCode == WXK_PAGEUP || keyCode == WXK_PAGEDOWN) {
121 return;
122 }
124 event.Skip();
126 return;

◆ OnFocus()

void MixerTrackSlider::OnFocus ( wxFocusEvent &  event)

Definition at line 107 of file MixerBoard.cpp.

109 KeyboardCapture::OnFocus( *this, event );
void OnFocus(wxWindow &window, wxFocusEvent &event)
a function useful to implement a focus event handler The window releases the keyboard if the event is...

References KeyboardCapture::OnFocus().

Here is the call graph for this function:

◆ OnMouseEvent()

void MixerTrackSlider::OnMouseEvent ( wxMouseEvent &  event)

Definition at line 91 of file MixerBoard.cpp.

95 if (event.ButtonUp())
96 {
97 MixerTrackCluster* pMixerTrackCluster = (MixerTrackCluster*)(this->GetParent());
98 switch (mStyle)
99 {
100 case DB_SLIDER: pMixerTrackCluster->HandleSliderGain(true); break;
101 case PAN_SLIDER: pMixerTrackCluster->HandleSliderPan(true); break;
102 default: break; // no-op
103 }
104 }
#define DB_SLIDER
Definition: ASlider.h:33
#define PAN_SLIDER
Definition: ASlider.h:34
int mStyle
Definition: ASlider.h:353
void OnMouseEvent(wxMouseEvent &event)
Definition: ASlider.cpp:1787
void HandleSliderGain(const bool bWantPushState=false)
Definition: MixerBoard.cpp:413
void HandleSliderPan(const bool bWantPushState=false)
Definition: MixerBoard.cpp:444

References DB_SLIDER, MixerTrackCluster::HandleSliderGain(), MixerTrackCluster::HandleSliderPan(), ASlider::mStyle, ASlider::OnMouseEvent(), and PAN_SLIDER.

Here is the call graph for this function:

Member Data Documentation

◆ mIsPan

bool MixerTrackSlider::mIsPan

Definition at line 57 of file MixerBoard.h.

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