1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 06:31:07 +01:00

Rewrite wxPanelWrapper passing the base class as a template

This commit is contained in:
Paul Licameli
2016-07-10 15:20:37 -04:00
parent 0a16141ee5
commit e0f6ed9972
4 changed files with 24 additions and 37 deletions

View File

@@ -9,16 +9,7 @@
#include "../Audacity.h"
#include "wxPanelWrapper.h"
IMPLEMENT_CLASS(wxPanelWrapper, wxPanel)
wxPanelWrapper::wxPanelWrapper(wxWindow * parent, wxWindowID id,
const wxPoint & pos,
const wxSize & size,
long style)
: wxPanel(parent, id, pos, size, style)
{}
void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
void wxTabTraversalWrapperCharHook(wxKeyEvent &event)
{
#ifdef __WXMAC__
// Compensate for the regressions in TAB key navigation
@@ -35,12 +26,3 @@ void wxPanelWrapper::DoCharHook(wxKeyEvent &event)
event.Skip();
}
void wxPanelWrapper::OnCharHook(wxKeyEvent &event)
{
DoCharHook(event);
}
BEGIN_EVENT_TABLE(wxPanelWrapper, wxPanel)
EVT_CHAR_HOOK(wxPanelWrapper::OnCharHook)
END_EVENT_TABLE()