Audacity 3.2.0
|
Inherits wxPanel and has a Meter; exposes shared_ptr to the Meter. More...
#include <MeterPanelBase.h>
Classes | |
struct | Forwarder |
struct | Resetter |
Public Member Functions | |
~MeterPanelBase () override | |
template<typename ... Args> | |
MeterPanelBase (Args &&...args) | |
std::shared_ptr< Meter > | GetMeter () const |
virtual void | Clear ()=0 |
virtual void | Reset (double sampleRate, bool resetClipping)=0 |
virtual void | UpdateDisplay (unsigned numChannels, int numFrames, const float *sampleData)=0 |
virtual bool | IsMeterDisabled () const =0 |
virtual float | GetMaxPeak () const =0 |
virtual bool | IsClipping () const =0 |
virtual int | GetDBRange () const =0 |
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")) | |
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 |
Static Public Member Functions | |
static TempAllowFocus | TemporarilyAllowFocus () |
Private Types | |
using | TempAllowFocus = std::unique_ptr< bool, Resetter > |
Private Member Functions | |
bool | AcceptsFocus () const override |
bool | AcceptsFocusFromKeyboard () const override |
void | Init () |
Private Attributes | |
std::shared_ptr< Forwarder > | mForwarder |
Static Private Attributes | |
static bool | s_AcceptsFocus { false } |
Inherits wxPanel and has a Meter; exposes shared_ptr to the Meter.
Derived classes supply implementations of its pure virtual functions, and the Meter object forwards calls to them. This indirection is done so shared_ptr or weak_ptr to Meter may be used where such pointers to wxWindow classes don't work.
Definition at line 25 of file MeterPanelBase.h.
|
private |
Definition at line 51 of file MeterPanelBase.h.
|
overridedefault |
|
inline |
Definition at line 33 of file MeterPanelBase.h.
|
inlineoverrideprivate |
Definition at line 53 of file MeterPanelBase.h.
|
inlineoverrideprivate |
Definition at line 54 of file MeterPanelBase.h.
|
pure virtual |
Implemented in MeterPanel.
|
pure virtual |
Implemented in MeterPanel.
|
pure virtual |
Implemented in MeterPanel.
std::shared_ptr< Meter > MeterPanelBase::GetMeter | ( | ) | const |
Definition at line 85 of file MeterPanelBase.cpp.
References mForwarder.
Referenced by MeterToolBar::Expose(), and MeterToolBar::ReCreateButtons().
|
private |
Definition at line 80 of file MeterPanelBase.cpp.
References mForwarder.
|
pure virtual |
Implemented in MeterPanel.
|
pure virtual |
Implemented in MeterPanel.
|
pure virtual |
Implemented in MeterPanel.
|
static |
Definition at line 17 of file MeterPanelBase.cpp.
Referenced by anonymous_namespace{NavigationMenus.cpp}::NextOrPrevFrame(), ToolManager::RestoreFocus(), and MeterPanel::SetFocusFromKbd().
|
pure virtual |
Implemented in MeterPanel.
|
inline |
Definition at line 43 of file wxPanelWrapper.h.
|
inline |
Definition at line 45 of file wxPanelWrapper.h.
|
private |
Definition at line 63 of file MeterPanelBase.h.
Referenced by GetMeter(), and Init().
|
staticprivate |
Definition at line 49 of file MeterPanelBase.h.