13#ifndef __AUDACITY_TOOLBAR__
14#define __AUDACITY_TOOLBAR__
23#include <wx/windowptr.h>
44#define USE_AQUA_THEME 1
59#define toolbarSingle 27
82 bool resizable =
false);
86 virtual bool ShownByDefault()
const;
89 virtual bool HideAfterReset()
const;
98 virtual DockID DefaultDockID()
const;
101 bool AcceptsFocusFromKeyboard()
const override;
103 virtual void SetToDefaultSize();
105 virtual void Create(wxWindow *parent);
107 virtual void ReCreateButtons();
127 virtual void SetDocked(
ToolDock *dock,
bool pushed);
130 std::pair<Identifier, Identifier> PreferredNeighbors() const noexcept;
133 virtual
bool Expose(
bool show = true);
135 bool IsResizable() const;
136 bool IsVisible() const;
137 bool IsDocked() const;
138 bool IsPositioned(){
return mPositioned; };
139 void SetVisible(
bool bVisible );
150 wxSize GetSmartDockedSize();
154 AButton *MakeButton(wxWindow *parent,
164 bool processdownevents,
174 bool processdownevents,
178 void MakeAlternateImages(
AButton &button,
int idx,
189 void SetButtonToolTip
195 static void MakeButtonBackgroundsSmall();
196 static void MakeButtonBackgroundsLarge();
200 void SetButton(
bool down,
AButton *button);
202 static void MakeMacRecoloredImage(
teBmps eBmpOut,
teBmps eBmpIn);
203 static void MakeMacRecoloredImageSize(
teBmps eBmpOut,
teBmps eBmpIn,
const wxSize&
size);
204 static void MakeRecoloredImage(
teBmps eBmpOut,
teBmps eBmpIn);
205 static void MakeRecoloredImageSize(
teBmps eBmpOut,
teBmps eBmpIn,
const wxSize&
size);
207 wxBoxSizer *GetSizer();
209 void Add(wxWindow *window,
211 int flag = wxALIGN_TOP,
213 wxObject *userData = NULL);
216 void Add(wxSizer *sizer,
220 wxObject *userData = NULL);
227 wxObject *userData = NULL);
229 void AddSpacer(
int size = 14);
230 void AddStretchSpacer(
int prop = 1);
232 void Detach(wxWindow *window);
233 void Detach(wxSizer *sizer);
238 int GetResizeGrabberWidth();
243 void OnErase(wxEraseEvent & event);
244 void OnPaint(wxPaintEvent & event);
245 void OnMouseEvents(wxMouseEvent &event);
253 void Init(wxWindow *parent,
int type,
const wxString &
title,
const wxString &
label);
272 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.
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)
AUDACITY_DLL_API void UpdatePrefs(wxWindow *pParent)