Audacity  3.0.3
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
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:
[legend]
Collaboration diagram for SpectralSelectionBar:
[legend]

Public Member Functions

 SpectralSelectionBar (AudacityProject &project)
 
virtual ~SpectralSelectionBar ()
 
void Create (wxWindow *parent) override
 
void Populate () override
 
void Repaint (wxDC *WXUNUSED(dc)) override
 
void EnableDisableButtons () override
 
void UpdatePrefs () override
 
void SetFrequencies (double bottom, double top)
 
void SetFrequencySelectionFormatName (const NumericFormatSymbol &formatName)
 
void SetBandwidthSelectionFormatName (const NumericFormatSymbol &formatName)
 
void SetListener (SpectralSelectionBarListener *l)
 
void RegenerateTooltips () override
 
- Public Member Functions inherited from ToolBar
 ToolBar (AudacityProject &project, int type, const TranslatableString &label, const wxString &section, bool resizable=false)
 
virtual ~ToolBar ()
 
bool AcceptsFocus () const override
 
virtual void SetToDefaultSize ()
 
virtual void ReCreateButtons ()
 
void UpdatePrefs () override
 
int GetType ()
 
TranslatableString GetTitle ()
 
TranslatableString GetLabel ()
 
wxString GetSection ()
 
ToolDockGetDock ()
 
void SetLabel (const TranslatableString &label)
 
virtual 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 these. More...
 
virtual int GetMinToolbarWidth ()
 
virtual wxSize GetDockedSize ()
 
wxSize GetSmartDockedSize ()
 
virtual void ResizingDone ()
 
- 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
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Static Public Member Functions

static SpectralSelectionBarGet (AudacityProject &project)
 
static const SpectralSelectionBarGet (const AudacityProject &project)
 
- 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 (AudacityProject &project, AButton &button, const ComponentInterfaceSymbol commands[], size_t nCommands)
 
static void MakeButtonBackgroundsSmall ()
 
static void MakeButtonBackgroundsLarge ()
 

Private Member Functions

void ValuesToControls ()
 
void SetBounds ()
 
void OnUpdate (wxCommandEvent &evt)
 
void OnCtrl (wxCommandEvent &evt)
 
void OnChoice (wxCommandEvent &evt)
 
void OnIdle (wxIdleEvent &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 = wxWindowPtr< ToolBar >
 
- Protected Member Functions inherited from ToolBar
void SetButton (bool down, AButton *button)
 
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 Member Functions inherited from PrefsListener
virtual void UpdateSelectedPrefs (int id)
 
 PrefsListener ()
 
virtual ~PrefsListener ()
 
- Static Protected Member Functions inherited from ToolBar
static void MakeMacRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
 
static void MakeRecoloredImage (teBmps eBmpOut, teBmps eBmpIn)
 
- Static Protected Member Functions inherited from PrefsListener
static void Broadcast (int id=0)
 Call this static function to notify all PrefsListener objects. More...
 
- Protected Attributes inherited from ToolBar
AudacityProjectmProject
 
TranslatableString mLabel
 
wxString mSection
 
int mType
 

Detailed Description

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

Definition at line 28 of file SpectralSelectionBar.h.

Constructor & Destructor Documentation

◆ SpectralSelectionBar()

SpectralSelectionBar::SpectralSelectionBar ( AudacityProject project)

◆ ~SpectralSelectionBar()

virtual SpectralSelectionBar::~SpectralSelectionBar ( )
virtual

Member Function Documentation

◆ Create()

void SpectralSelectionBar::Create ( wxWindow *  parent)
overridevirtual

Reimplemented from ToolBar.

◆ EnableDisableButtons()

void SpectralSelectionBar::EnableDisableButtons ( )
inlineoverridevirtual

Implements ToolBar.

Definition at line 42 of file SpectralSelectionBar.h.

42 {};

◆ Get() [1/2]

static SpectralSelectionBar& SpectralSelectionBar::Get ( AudacityProject project)
static

Referenced by ProjectManager::New(), ProjectSelectionManager::SSBL_SetBandwidthSelectionFormatName(), and ProjectSelectionManager::SSBL_SetFrequencySelectionFormatName().

Here is the caller graph for this function:

◆ Get() [2/2]

static const SpectralSelectionBar& SpectralSelectionBar::Get ( const AudacityProject project)
static

◆ ModifySpectralSelection()

void SpectralSelectionBar::ModifySpectralSelection ( bool  done = false)
private

◆ OnChoice()

void SpectralSelectionBar::OnChoice ( wxCommandEvent &  evt)
private

◆ OnCtrl()

void SpectralSelectionBar::OnCtrl ( wxCommandEvent &  evt)
private

◆ OnIdle()

void SpectralSelectionBar::OnIdle ( wxIdleEvent &  evt)
private

◆ OnSize()

void SpectralSelectionBar::OnSize ( wxSizeEvent &  evt)
private

◆ OnUpdate()

void SpectralSelectionBar::OnUpdate ( wxCommandEvent &  evt)
private

◆ Populate()

void SpectralSelectionBar::Populate ( )
overridevirtual

Implements ToolBar.

◆ RegenerateTooltips()

void SpectralSelectionBar::RegenerateTooltips ( )
inlineoverridevirtual

Implements ToolBar.

Definition at line 50 of file SpectralSelectionBar.h.

50 {};

◆ Repaint()

void SpectralSelectionBar::Repaint ( wxDC *  WXUNUSEDdc)
inlineoverride

Definition at line 41 of file SpectralSelectionBar.h.

41 {};

◆ SetBandwidthSelectionFormatName()

void SpectralSelectionBar::SetBandwidthSelectionFormatName ( const NumericFormatSymbol formatName)

Referenced by ProjectSelectionManager::SSBL_SetBandwidthSelectionFormatName().

Here is the caller graph for this function:

◆ SetBounds()

void SpectralSelectionBar::SetBounds ( )
private

◆ SetFrequencies()

void SpectralSelectionBar::SetFrequencies ( double  bottom,
double  top 
)

◆ SetFrequencySelectionFormatName()

void SpectralSelectionBar::SetFrequencySelectionFormatName ( const NumericFormatSymbol formatName)

Referenced by ProjectSelectionManager::SSBL_SetFrequencySelectionFormatName().

Here is the caller graph for this function:

◆ SetListener()

void SpectralSelectionBar::SetListener ( SpectralSelectionBarListener l)

Referenced by ProjectManager::New().

Here is the caller graph for this function:

◆ UpdatePrefs()

void SpectralSelectionBar::UpdatePrefs ( )
overridevirtual

Implements PrefsListener.

◆ ValuesToControls()

void SpectralSelectionBar::ValuesToControls ( )
private

Member Data Documentation

◆ mbCenterAndWidth

bool SpectralSelectionBar::mbCenterAndWidth
private

Definition at line 67 of file SpectralSelectionBar.h.

◆ mCenter

double SpectralSelectionBar::mCenter
private

Definition at line 69 of file SpectralSelectionBar.h.

◆ mCenterCtrl

NumericTextCtrl* SpectralSelectionBar::mCenterCtrl
private

Definition at line 74 of file SpectralSelectionBar.h.

◆ mChoice

wxChoice* SpectralSelectionBar::mChoice
private

Definition at line 75 of file SpectralSelectionBar.h.

◆ mHeight

int SpectralSelectionBar::mHeight
private

Definition at line 77 of file SpectralSelectionBar.h.

◆ mHigh

double SpectralSelectionBar::mHigh
private

Definition at line 72 of file SpectralSelectionBar.h.

◆ mHighCtrl

NumericTextCtrl * SpectralSelectionBar::mHighCtrl
private

Definition at line 74 of file SpectralSelectionBar.h.

◆ mListener

SpectralSelectionBarListener* SpectralSelectionBar::mListener
private

Definition at line 65 of file SpectralSelectionBar.h.

◆ mLow

double SpectralSelectionBar::mLow
private

Definition at line 71 of file SpectralSelectionBar.h.

◆ mLowCtrl

NumericTextCtrl * SpectralSelectionBar::mLowCtrl
private

Definition at line 74 of file SpectralSelectionBar.h.

◆ mWidth

double SpectralSelectionBar::mWidth
private

Definition at line 70 of file SpectralSelectionBar.h.

◆ mWidthCtrl

NumericTextCtrl * SpectralSelectionBar::mWidthCtrl
private

Definition at line 74 of file SpectralSelectionBar.h.


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