10#ifndef __AUDACITY_TRACK_PANEL_ACCESSIBILITY__
11#define __AUDACITY_TRACK_PANEL_ACCESSIBILITY__
18#include <wx/weakref.h>
20#if wxUSE_ACCESSIBILITY
30#if wxUSE_ACCESSIBILITY
47 const wxWeakRef<TrackPanelAx>
mwAx;
61#if wxUSE_ACCESSIBILITY
64 wxAccStatus GetChild(
int childId, wxAccessible** child)
override;
67 wxAccStatus GetChildCount(
int* childCount)
override;
75 wxAccStatus GetDefaultAction(
int childId, wxString *actionName)
override;
78 wxAccStatus GetDescription(
int childId, wxString *description)
override;
84 wxAccStatus GetFocus(
int *childId, wxAccessible **child)
override;
87 wxAccStatus GetHelpText(
int childId, wxString *helpText)
override;
91 wxAccStatus GetKeyboardShortcut(
int childId, wxString *shortcut)
override;
95 wxAccStatus GetLocation(wxRect& rect,
int elementId)
override;
98 wxAccStatus GetName(
int childId, wxString *
name)
override;
101 wxAccStatus GetRole(
int childId, wxAccRole *role)
override;
111 wxAccStatus GetSelections(wxVariant *selections)
override;
114 wxAccStatus GetState(
int childId,
long* state)
override;
118 wxAccStatus GetValue(
int childId, wxString* strValue)
override;
121 wxAccStatus Navigate(wxNavDir navDir,
int fromId,
int* toId, wxAccessible** toObject)
override;
124 wxAccStatus Select(
int childId, wxAccSelectionFlags selectFlags)
override;
132 void EndChangeFocus(
const std::shared_ptr<Track> &track)
override;
138#if !wxUSE_ACCESSIBILITY
Abstract base class for an object holding data associated with points on a time axis.
Helper to TrackPanel to give accessibility.
void BeginChangeFocus() override
TrackPanelAx(std::weak_ptr< Viewport > wViewport, std::weak_ptr< TrackFocus > wFocus, RectangleFinder finder)
void SetWindow(wxWindow *window)
std::weak_ptr< Viewport > mwViewport
std::function< wxRect(Track &) > RectangleFinder
std::weak_ptr< TrackFocus > mwFocus
void UpdateAccessibility() override
wxWindow * GetWindow() const
void MessageForScreenReader(const TranslatableString &message) override
void EndChangeFocus(const std::shared_ptr< Track > &track) override
Holds a msgid for the translation catalog; may also bind format arguments.
An alternative to using wxWindowAccessible, which in wxWidgets 3.1.1 contained GetParent() which was ...
A façade hiding platform-specific accessibility API.
void BeginChangeFocus() override
void MessageForScreenReader(const TranslatableString &message) override
const wxWeakRef< TrackPanelAx > mwAx
void UpdateAccessibility() override
void EndChangeFocus(const std::shared_ptr< Track > &track) override
Adapter(TrackPanelAx *pAx)