Audacity 3.2.0
|
Panel that displays mixing for advanced mixing option. More...
#include <ExportMixerPanel.h>
Public Member Functions | |
ExportMixerPanel (wxWindow *parent, wxWindowID id, MixerOptions::Downmix *mixerSpec, wxArrayString trackNames, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
virtual | ~ExportMixerPanel () |
void | OnMouseEvent (wxMouseEvent &event) |
void | OnPaint (wxPaintEvent &event) |
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 |
Private Member Functions | |
void | SetFont (wxMemoryDC &memDC, const wxString &text, int width, int height) |
double | Distance (wxPoint &a, wxPoint &b) |
bool | IsOnLine (wxPoint p, wxPoint la, wxPoint lb) |
Private Attributes | |
std::unique_ptr< wxBitmap > | mBitmap |
wxRect | mEnvRect |
int | mWidth |
int | mHeight |
MixerOptions::Downmix * | mMixerSpec |
ArrayOf< wxRect > | mChannelRects |
ArrayOf< wxRect > | mTrackRects |
int | mSelectedTrack |
int | mSelectedChannel |
wxArrayString | mTrackNames |
int | mBoxWidth |
int | mChannelHeight |
int | mTrackHeight |
Panel that displays mixing for advanced mixing option.
Definition at line 25 of file ExportMixerPanel.h.
ExportMixerPanel::ExportMixerPanel | ( | wxWindow * | parent, |
wxWindowID | id, | ||
MixerOptions::Downmix * | mixerSpec, | ||
wxArrayString | trackNames, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize |
||
) |
Definition at line 25 of file ExportMixerPanel.cpp.
|
virtual |
Definition at line 42 of file ExportMixerPanel.cpp.
|
private |
Definition at line 185 of file ExportMixerPanel.cpp.
References staffpad::audio::simd::sqrt().
Referenced by IsOnLine().
|
private |
Definition at line 191 of file ExportMixerPanel.cpp.
References Distance().
Referenced by OnMouseEvent().
void ExportMixerPanel::OnMouseEvent | ( | wxMouseEvent & | event | ) |
Definition at line 196 of file ExportMixerPanel.cpp.
References MixerOptions::Downmix::GetNumChannels(), MixerOptions::Downmix::GetNumTracks(), IsOnLine(), mBoxWidth, mChannelHeight, mChannelRects, MixerOptions::Downmix::mMap, mMixerSpec, mSelectedChannel, mSelectedTrack, mTrackHeight, and mTrackRects.
void ExportMixerPanel::OnPaint | ( | wxPaintEvent & | event | ) |
Definition at line 68 of file ExportMixerPanel.cpp.
References _, AColor::envelopeBrush, MixerOptions::Downmix::GetNumChannels(), MixerOptions::Downmix::GetNumTracks(), AColor::Line(), mBitmap, mBoxWidth, mChannelHeight, mChannelRects, mHeight, MixerOptions::Downmix::mMap, mMixerSpec, mSelectedChannel, mSelectedTrack, mTrackHeight, mTrackNames, mTrackRects, mWidth, PI, AColor::playRegionBrush, SetFont(), and wxT().
|
private |
Definition at line 47 of file ExportMixerPanel.cpp.
Referenced by OnPaint().
|
private |
Definition at line 38 of file ExportMixerPanel.h.
Referenced by OnPaint().
|
private |
Definition at line 47 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 47 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 43 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 39 of file ExportMixerPanel.h.
|
private |
Definition at line 41 of file ExportMixerPanel.h.
Referenced by OnPaint().
|
private |
Definition at line 42 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 45 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 45 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 47 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 46 of file ExportMixerPanel.h.
Referenced by OnPaint().
|
private |
Definition at line 44 of file ExportMixerPanel.h.
Referenced by OnMouseEvent(), and OnPaint().
|
private |
Definition at line 40 of file ExportMixerPanel.h.
Referenced by OnPaint().