1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Each toolbar registers its menu item

This commit is contained in:
Paul Licameli
2020-02-14 10:20:25 -05:00
parent 4bbf8bfb6a
commit d0a99d5ae5
17 changed files with 185 additions and 217 deletions

View File

@@ -28,9 +28,10 @@ class wxEvtHandler;
// couldn't satisfy the requirement for both base classes at once.
using CommandHandlerObject = wxEvtHandler;
// First of two function pointers registered with each command: an extractor
// First of two functions registered with each command: an extractor
// of the handler object from the AudacityProject
using CommandHandlerFinder = CommandHandlerObject &(*)(AudacityProject&);
using CommandHandlerFinder =
std::function< CommandHandlerObject&(AudacityProject &) >;
// Second of two function pointers registered with each command: a pointer
// to a member function of the handler object