Audacity  2.2.0
SpectralSelectionBar Class Referencefinal

(not quite a Toolbar) at foot of screen for setting and viewing the frequency selection range. More...

#include <SpectralSelectionBar.h>

Inheritance diagram for SpectralSelectionBar:
ToolBar wxTabTraversalWrapper< Base >

Public Member Functions

 SpectralSelectionBar ()
 
virtual ~SpectralSelectionBar ()
 
void Create (wxWindow *parent)
 
void Populate () override
 
void Repaint (wxDC *WXUNUSED(dc)) override
 
void EnableDisableButtons () override
 
void UpdatePrefs () override
 
void SetFrequencies (double bottom, double top)
 
void SetFrequencySelectionFormatName (const wxString &formatName)
 
void SetBandwidthSelectionFormatName (const wxString &formatName)
 
void SetListener (SpectralSelectionBarListener *l)
 
void RegenerateTooltips () 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
 
virtual void ReCreateButtons ()
 
int GetType ()
 
wxString GetTitle ()
 
wxString GetLabel ()
 
wxString GetSection ()
 
ToolDockGetDock ()
 
void SetLabel (const wxString &label)
 
void SetDock (ToolDock *dock)
 
void SetDocked (ToolDock *dock, bool pushed)
 
virtual bool Expose (bool show=true)
 
bool IsResizable () const
 
bool IsVisible () const
 
bool IsDocked () const
 
bool IsPositioned ()
 
void SetVisible (bool bVisible)
 
void SetPositioned ()
 
virtual int GetInitialWidth ()
 Resizable toolbars should implement this. More...
 
virtual int GetMinToolbarWidth ()
 
virtual wxSize GetDockedSize ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void ValuesToControls ()
 
void SetBounds ()
 
void OnUpdate (wxCommandEvent &evt)
 
void OnCtrl (wxCommandEvent &evt)
 
void OnChoice (wxCommandEvent &evt)
 
void OnSize (wxSizeEvent &evt)
 
void ModifySpectralSelection (bool done=false)
 

Private Attributes

SpectralSelectionBarListenermListener
 
bool mbCenterAndWidth
 
double mCenter
 
double mWidth
 
double mLow
 
double mHigh
 
NumericTextCtrlmCenterCtrl
 
NumericTextCtrlmWidthCtrl
 
NumericTextCtrlmLowCtrl
 
NumericTextCtrlmHighCtrl
 
wxChoice * mChoice
 
int mHeight
 

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 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 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

(not quite a Toolbar) at foot of screen for setting and viewing the frequency selection range.

Constructor & Destructor Documentation

SpectralSelectionBar::SpectralSelectionBar ( )
SpectralSelectionBar::~SpectralSelectionBar ( )
virtual

Member Function Documentation

void SpectralSelectionBar::Create ( wxWindow *  parent)
virtual

Reimplemented from ToolBar.

References ToolBar::Create(), and mHeight.

void SpectralSelectionBar::EnableDisableButtons ( )
inlineoverridevirtual

Implements ToolBar.

void SpectralSelectionBar::OnChoice ( wxCommandEvent &  evt)
private
void SpectralSelectionBar::OnCtrl ( wxCommandEvent &  evt)
private
void SpectralSelectionBar::OnSize ( wxSizeEvent &  evt)
private
void SpectralSelectionBar::RegenerateTooltips ( )
inlineoverridevirtual

Implements ToolBar.

Referenced by UpdatePrefs().

void SpectralSelectionBar::Repaint ( wxDC *  WXUNUSEDdc)
inlineoverride
void SpectralSelectionBar::SetBandwidthSelectionFormatName ( const wxString &  formatName)
void SpectralSelectionBar::SetFrequencies ( double  bottom,
double  top 
)
void SpectralSelectionBar::SetFrequencySelectionFormatName ( const wxString &  formatName)
void SpectralSelectionBar::UpdatePrefs ( )
overridevirtual
void SpectralSelectionBar::ValuesToControls ( )
private

Member Data Documentation

double SpectralSelectionBar::mCenter
private
wxChoice* SpectralSelectionBar::mChoice
private

Referenced by OnChoice(), and Populate().

int SpectralSelectionBar::mHeight
private

Referenced by Create(), and OnChoice().

double SpectralSelectionBar::mHigh
private
NumericTextCtrl * SpectralSelectionBar::mHighCtrl
private
SpectralSelectionBarListener* SpectralSelectionBar::mListener
private
double SpectralSelectionBar::mLow
private
double SpectralSelectionBar::mWidth
private

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