Audacity 3.2.0
|
Helper to TrackPanel to give accessibility. More...
#include <TrackPanelAx.h>
Classes | |
struct | Adapter |
Public Types | |
using | RectangleFinder = std::function< wxRect(Track &) > |
Public Member Functions | |
TrackPanelAx (std::weak_ptr< Viewport > wViewport, std::weak_ptr< TrackFocus > wFocus, RectangleFinder finder) | |
~TrackPanelAx () override | |
void | Updated () |
void | MessageForScreenReader (const TranslatableString &message) override |
wxWindow * | GetWindow () const |
void | SetWindow (wxWindow *window) |
Public Member Functions inherited from TrackFocusCallbacks | |
virtual | ~TrackFocusCallbacks () |
virtual void | MessageForScreenReader (const TranslatableString &message)=0 |
virtual void | BeginChangeFocus ()=0 |
virtual void | EndChangeFocus (const std::shared_ptr< Track > &track)=0 |
virtual void | UpdateAccessibility ()=0 |
Private Member Functions | |
void | BeginChangeFocus () override |
void | EndChangeFocus (const std::shared_ptr< Track > &track) override |
void | UpdateAccessibility () override |
Private Attributes | |
std::weak_ptr< Viewport > | mwViewport |
std::weak_ptr< TrackFocus > | mwFocus |
wxWindow * | mWindow {} |
RectangleFinder | mFinder |
wxString | mMessage |
int | mMessageCount { 0 } |
bool | mTrackName { true } |
Helper to TrackPanel to give accessibility.
Definition at line 28 of file TrackPanelAx.h.
using TrackPanelAx::RectangleFinder = std::function< wxRect(Track&) > |
Definition at line 50 of file TrackPanelAx.h.
TrackPanelAx::TrackPanelAx | ( | std::weak_ptr< Viewport > | wViewport, |
std::weak_ptr< TrackFocus > | wFocus, | ||
RectangleFinder | finder | ||
) |
Definition at line 63 of file TrackPanelAx.cpp.
|
override |
Definition at line 76 of file TrackPanelAx.cpp.
|
overrideprivatevirtual |
Implements TrackFocusCallbacks.
Definition at line 80 of file TrackPanelAx.cpp.
References GetWindow(), mTrackName, and mwFocus.
|
overrideprivatevirtual |
Implements TrackFocusCallbacks.
Definition at line 98 of file TrackPanelAx.cpp.
References BasicUI::FindFocus(), GetWindow(), and mwFocus.
|
inline |
Definition at line 126 of file TrackPanelAx.h.
References mWindow.
Referenced by BeginChangeFocus(), EndChangeFocus(), MessageForScreenReader(), and Updated().
|
overridevirtual |
Implements TrackFocusCallbacks.
Definition at line 159 of file TrackPanelAx.cpp.
References BasicUI::FindFocus(), GetWindow(), mMessage, mMessageCount, mTrackName, mwFocus, and TranslatableString::Translation().
|
inline |
|
overrideprivatevirtual |
Implements TrackFocusCallbacks.
Definition at line 130 of file TrackPanelAx.cpp.
References Updated().
void TrackPanelAx::Updated | ( | ) |
Definition at line 135 of file TrackPanelAx.cpp.
References GetWindow(), mTrackName, and mwFocus.
Referenced by UpdateAccessibility().
|
private |
Definition at line 142 of file TrackPanelAx.h.
|
private |
Definition at line 144 of file TrackPanelAx.h.
Referenced by MessageForScreenReader().
|
private |
Definition at line 145 of file TrackPanelAx.h.
Referenced by MessageForScreenReader().
|
private |
Definition at line 146 of file TrackPanelAx.h.
Referenced by BeginChangeFocus(), MessageForScreenReader(), and Updated().
|
private |
Definition at line 136 of file TrackPanelAx.h.
Referenced by BeginChangeFocus(), EndChangeFocus(), MessageForScreenReader(), and Updated().
|
private |
Definition at line 139 of file TrackPanelAx.h.
Referenced by GetWindow(), and SetWindow().
|
private |
Definition at line 135 of file TrackPanelAx.h.