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:
@@ -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
|
||||
|
@@ -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__
|
||||
|
Reference in New Issue
Block a user