Audacity  2.2.0
ScrubbingToolBar Class Referencefinal

#include <ScrubbingToolBar.h>

Inheritance diagram for ScrubbingToolBar:
ToolBar wxTabTraversalWrapper< Base >

Public Member Functions

 ScrubbingToolBar ()
virtual ~ScrubbingToolBar ()
void Create (wxWindow *parent)
void OnButton (wxCommandEvent &event)
void Populate ()
void Repaint (wxDC *WXUNUSED(dc))
void EnableDisableButtons () override
void UpdatePrefs () override
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

AButtonAddButton (teBmps eEnabledUp, teBmps eEnabledDown, teBmps eDisabled, int id, const wxChar *label, bool toggle=false)
void MakeButtons ()

Private Attributes

AButtonmButtons [STBNumButtons]
wxImage * upImage
wxImage * downImage
wxImage * hiliteImage

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

Constructor & Destructor Documentation

ScrubbingToolBar::ScrubbingToolBar ( )
ScrubbingToolBar::~ScrubbingToolBar ( )

Member Function Documentation

AButton * ScrubbingToolBar::AddButton ( teBmps  eEnabledUp,
teBmps  eEnabledDown,
teBmps  eDisabled,
int  id,
const wxChar *  label,
bool  toggle = false 

This is a convenience function that allows for button creation in MakeButtons() with fewer arguments Very similar to code in ControlToolBar...

References ThemeBase::ImageSize(), ToolBar::MakeButton(), and theTheme.

Referenced by Populate().

void ScrubbingToolBar::Create ( wxWindow *  parent)

Reimplemented from ToolBar.

References ToolBar::Create().

void ScrubbingToolBar::MakeButtons ( )
void ScrubbingToolBar::OnButton ( wxCommandEvent &  event)
void ScrubbingToolBar::Populate ( )
void ScrubbingToolBar::RegenerateTooltips ( )
void ScrubbingToolBar::Repaint ( wxDC *  WXUNUSEDdc)
void ScrubbingToolBar::UpdatePrefs ( )

Member Data Documentation

wxImage* ScrubbingToolBar::downImage
wxImage* ScrubbingToolBar::hiliteImage
AButton* ScrubbingToolBar::mButtons[STBNumButtons]
wxImage* ScrubbingToolBar::upImage

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