Audacity  2.2.0
MeterToolBar Class Referencefinal

A ToolBar that holds the VU Meter. More...

#include <MeterToolBar.h>

Inheritance diagram for MeterToolBar:
ToolBar wxTabTraversalWrapper< Base >

Public Member Functions

 MeterToolBar (AudacityProject *project, int type)
 Methods for MeterToolBar. More...
virtual ~MeterToolBar ()
void Create (wxWindow *parent) override
void Populate () override
void ReCreateButtons () override
void Repaint (wxDC *WXUNUSED(dc)) override
void EnableDisableButtons () override
void UpdatePrefs () override
void OnSize (wxSizeEvent &event)
bool Expose (bool show) override
int GetInitialWidth () override
 Resizable toolbars should implement these. More...
int GetMinToolbarWidth () override
wxSize GetDockedSize () override
- Public Member Functions inherited from ToolBar
 ToolBar (int type, const wxString &label, const wxString &section, bool resizable=false)
virtual ~ToolBar ()
bool AcceptsFocus () const override
int GetType ()
wxString GetTitle ()
wxString GetLabel ()
wxString GetSection ()
ToolDockGetDock ()
void SetLabel (const wxString &label)
void SetDock (ToolDock *dock)
void SetDocked (ToolDock *dock, bool pushed)
bool IsResizable () const
bool IsVisible () const
bool IsDocked () const
bool IsPositioned ()
void SetVisible (bool bVisible)
void SetPositioned ()
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 ~wxTabTraversalWrapper ()

Private Member Functions

void RegenerateTooltips () override

Private Attributes

int mWhichMeters
wxGridBagSizer * mSizer

Additional Inherited Members

- Public Types inherited from ToolBar
using Holder = Destroy_ptr< ToolBar >
- Static Public Member Functions inherited from ToolBar
static AButtonMakeButton (wxWindow *parent, teBmps eUp, teBmps eDown, teBmps eHilite, teBmps eDownHi, teBmps eStandardUp, teBmps eStandardDown, teBmps eDisabled, wxWindowID id, wxPoint placement, bool processdownevents, wxSize size)
static void MakeAlternateImages (AButton &button, int idx, teBmps eUp, teBmps eDown, teBmps eHilite, teBmps eDownHi, teBmps eStandardUp, teBmps eStandardDown, teBmps eDisabled, wxSize size)
static void SetButtonToolTip (AButton &button, const std::vector< wxString > &commands)
- Protected Member Functions inherited from ToolBar
void SetButton (bool down, AButton *button)
void MakeMacRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
void MakeRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
void MakeButtonBackgroundsLarge ()
void MakeButtonBackgroundsSmall ()
wxBoxSizer * GetSizer ()
void Add (wxWindow *window, int proportion=0, int flag=wxALIGN_TOP, int border=0, wxObject *userData=NULL)
void Add (wxSizer *sizer, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
void Add (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL)
void AddSpacer (int size=14)
void AddStretchSpacer (int prop=1)
void Detach (wxWindow *window)
void Detach (wxSizer *sizer)
void Updated ()
int GetResizeGrabberWidth ()
 Returns the width in pixels of the resizer element. More...
virtual void Repaint (wxDC *dc)=0
void OnErase (wxEraseEvent &event)
void OnPaint (wxPaintEvent &event)
void OnMouseEvents (wxMouseEvent &event)
- Protected Attributes inherited from ToolBar
wxString mLabel
wxString mSection
int mType

Detailed Description

A ToolBar that holds the VU Meter.

Constructor & Destructor Documentation

MeterToolBar::MeterToolBar ( AudacityProject project,
int  type 
MeterToolBar::~MeterToolBar ( )

Member Function Documentation

void MeterToolBar::Create ( wxWindow *  parent)

Reimplemented from ToolBar.

References ToolBar::Create(), and OnSize().

void MeterToolBar::EnableDisableButtons ( )

Implements ToolBar.

wxSize MeterToolBar::GetDockedSize ( )

Reimplemented from ToolBar.

References toolbarGap, and toolbarSingle.

int MeterToolBar::GetInitialWidth ( )

Resizable toolbars should implement these.

Reimplemented from ToolBar.

References kWithPlayMeter, kWithRecordMeter, and mWhichMeters.

int MeterToolBar::GetMinToolbarWidth ( )

Reimplemented from ToolBar.

void MeterToolBar::OnSize ( wxSizeEvent &  event)

References ToolBar::GetSizer(), mPlayMeter, mRecordMeter, and mSizer.

Referenced by Create().

void MeterToolBar::RegenerateTooltips ( )

Implements ToolBar.

References _(), mPlayMeter, and mRecordMeter.

Referenced by Populate(), and UpdatePrefs().

void MeterToolBar::Repaint ( wxDC *  WXUNUSEDdc)
void MeterToolBar::UpdatePrefs ( )

Member Data Documentation

Meter* MeterToolBar::mPlayMeter
AudacityProject* MeterToolBar::mProject

Referenced by Expose(), Populate(), and ReCreateButtons().

Meter* MeterToolBar::mRecordMeter
wxGridBagSizer* MeterToolBar::mSizer

Referenced by OnSize(), and Populate().

int MeterToolBar::mWhichMeters

Referenced by GetInitialWidth(), and Populate().

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