13#ifndef __AUDACITY_TOOLMANAGER__
14#define __AUDACITY_TOOLMANAGER__
19#include <wx/eventfilter.h>
53 ,
public wxEventFilter
60 wxWindow*( wxWindow& )
73 void LayoutToolBars();
94 void RegenerateTooltips();
96 int FilterEvent(wxEvent &event)
override;
101 template<
typename F >
105 fun(pair.second.get());
116 static void ModifyAllProjectToolbarMenus();
123 void OnTimer( wxTimerEvent & event );
124 void OnMouse( wxMouseEvent & event );
125 void OnCaptureLost( wxMouseCaptureLostEvent & event );
126 void UndockBar( wxPoint mp );
128 void HandleEscapeKey();
131 void OnIndicatorCreate( wxWindowCreateEvent & event );
132 void OnIndicatorPaint( wxPaintEvent & event );
140 wxWindowRef mLastFocus{};
153 std::unique_ptr<wxRegion> mLeft,
mDown;
159#if defined(__WXMAC__)
167 std::map<Identifier, ToolBar::Holder>
mBars;
169 wxPoint mPrevPosition {};
180 DECLARE_EVENT_TABLE()
213 void OnPaint( wxPaintEvent & WXUNUSED(event) );
215 void OnMotion( wxMouseEvent & event );
217 void OnCaptureLost( wxMouseCaptureLostEvent & WXUNUSED(event) );
223 void OnClose( wxCloseEvent & event );
240 DECLARE_EVENT_TABLE()
252 std::vector< Identifier > excludeIds = {} );
Utility ClientData::Site to register hooks into a host class that attach client data.
wxEvtHandler CommandHandlerObject
std::unique_ptr< T, Destroyer< T > > Destroy_ptr
a convenience for using Destroyer
static const AttachedProjectObjects::RegisteredFactory manager
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Global function-valued variable, adding a convenient Call()
An explicitly nonlocalized string, not meant for the user to see.
A move-only handle representing a connection to a Publisher.
A top-level window associated with a project, and handling scrollbars and zooming.
Generates classes whose instances register items at construction.
Holds a msgid for the translation catalog; may also bind format arguments.
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
const char * end(const char *str) noexcept
const char * begin(const char *str) noexcept
A convenient default parameter for class template Site.