1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Add missing files to Mac build.

Also moved the constructor into the .cpp file, so that wxWindow is a fully defined class.
This commit is contained in:
James Crook
2018-04-04 14:01:51 +01:00
parent 082ab5ca28
commit c0e1c82be9
3 changed files with 15 additions and 3 deletions

View File

@@ -19,6 +19,12 @@ contained GetParent() which was incorrect.
#if wxUSE_ACCESSIBILITY
WindowAccessible::WindowAccessible(wxWindow* win)
: wxAccessible(win)
{
if (win) win->SetAccessible(this);
}
wxAccStatus WindowAccessible::GetName(int childId, wxString* name)
{
wxCHECK( GetWindow() != nullptr, wxACC_FAIL);
@@ -31,4 +37,4 @@ wxAccStatus WindowAccessible::GetName(int childId, wxString* name)
return wxACC_OK;
}
#endif // wxUSE_ACCESSIBILITY
#endif // wxUSE_ACCESSIBILITY

View File

@@ -20,7 +20,7 @@
class WindowAccessible: public wxAccessible
{
public:
WindowAccessible(wxWindow* win): wxAccessible(win) { if (win) win->SetAccessible(this); }
WindowAccessible(wxWindow* win);
virtual ~WindowAccessible() {}
wxAccStatus GetName(int childId, wxString* name) override;
@@ -28,4 +28,4 @@ public:
};
#endif // wxUSE_ACCESSIBILITY
#endif // __AUDACITY_WINDOW_ACCESSIBLE__
#endif // __AUDACITY_WINDOW_ACCESSIBLE__