13#ifndef __AUDACITY_TOOLBAR__
14#define __AUDACITY_TOOLBAR__
23#include <wx/windowptr.h>
81 bool resizable =
false);
85 virtual bool ShownByDefault()
const;
88 virtual bool HideAfterReset()
const;
97 virtual DockID DefaultDockID()
const;
100 bool AcceptsFocusFromKeyboard()
const override;
102 virtual void SetToDefaultSize();
104 virtual void Create(wxWindow *parent);
106 virtual void ReCreateButtons();
126 virtual void SetDocked(
ToolDock *dock,
bool pushed);
129 std::pair<Identifier, Identifier> PreferredNeighbors() const noexcept;
132 virtual
bool Expose(
bool show = true);
134 bool IsResizable() const;
135 bool IsVisible() const;
136 bool IsDocked() const;
137 bool IsPositioned(){
return mPositioned; };
138 void SetVisible(
bool bVisible );
149 wxSize GetSmartDockedSize();
153 AButton *MakeButton(wxWindow *parent,
163 bool processdownevents,
173 bool processdownevents,
177 void MakeAlternateImages(
AButton &button,
int idx,
188 void SetButtonToolTip
194 static void MakeButtonBackgroundsSmall();
195 static void MakeButtonBackgroundsLarge();
199 void SetButton(
bool down,
AButton *button);
201 static void MakeMacRecoloredImage(
teBmps eBmpOut,
teBmps eBmpIn);
202 static void MakeMacRecoloredImageSize(
teBmps eBmpOut,
teBmps eBmpIn,
const wxSize&
size);
203 static void MakeRecoloredImage(
teBmps eBmpOut,
teBmps eBmpIn);
204 static void MakeRecoloredImageSize(
teBmps eBmpOut,
teBmps eBmpIn,
const wxSize&
size);
206 wxBoxSizer *GetSizer();
208 void Add(wxWindow *window,
210 int flag = wxALIGN_TOP,
212 wxObject *userData = NULL);
215 void Add(wxSizer *sizer,
219 wxObject *userData = NULL);
226 wxObject *userData = NULL);
228 void AddSpacer(
int size = 14);
229 void AddStretchSpacer(
int prop = 1);
231 void Detach(wxWindow *window);
232 void Detach(wxSizer *sizer);
237 int GetResizeGrabberWidth();
242 void OnErase(wxEraseEvent & event);
243 void OnPaint(wxPaintEvent & event);
244 void OnMouseEvents(wxMouseEvent &event);
252 void Init(wxWindow *parent,
int type,
const wxString &
title,
const wxString &
label);
271 DECLARE_EVENT_TABLE()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
The widget to the left of a ToolBar that allows it to be dragged around to NEW positions.
An explicitly nonlocalized string, not meant for the user to see.
A listener notified of changes in preferences.
virtual void UpdatePrefs()=0
Holds a msgid for the translation catalog; may also bind format arguments.
void SetLabel(const TranslatableString &label)
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"))
PROJECT_FILE_IO_API void Add(const FilePath &path)