Correct event handlers to trigger in all instnces

Some events don't propagate correctly to the right sub-window
and some things like the pad handler don't even necessarily have
windows. So, just register some events with the top-level app.

Also add a virtual destructor to the PadHandlerBase to be able to
deal with multiple inheritance in the derived classes.
This commit is contained in:
Lioncash 2014-04-12 21:31:59 -04:00
parent b877879db6
commit 8feabb00d6
10 changed files with 86 additions and 87 deletions

View file

@ -33,7 +33,7 @@ public:
Layout();
UpdateUI();
Bind(wxEVT_DBG_COMMAND, &DbgEmuPanel::HandleCommand, this);
wxGetApp().Bind(wxEVT_DBG_COMMAND, &DbgEmuPanel::HandleCommand, this);
}
void UpdateUI()