1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-22 00:47:13 +01:00

CommandManager, MenuManager don't use Lyrics.h, MixerBoard.h ...

... instead define new base classes in src/commands that those other
windows can inherit.  The classes have nothing but a virtual destructor.  This
lets CommandManager use dynamic_cast to detect the special windows.

See commits cbfde23 and 68e4bf6 which added the #include directives
This commit is contained in:
Paul Licameli
2018-12-28 11:49:35 -05:00
parent 1bcb7c20a5
commit 3dba70120c
13 changed files with 75 additions and 25 deletions

View File

@@ -24,6 +24,8 @@
#include "CellularPanel.h"
#include "commands/CommandManagerWindowClasses.h"
class wxMenu;
class wxRect;
@@ -245,8 +247,10 @@ enum : int {
};
#endif
class AUDACITY_DLL_API TrackPanel final : public CellularPanel {
class AUDACITY_DLL_API TrackPanel final
: public CellularPanel
, public NonKeystrokeInterceptingWindow
{
public:
TrackPanel(wxWindow * parent,
wxWindowID id,