![]() |
Audacity 3.2.0
|
Helper to TrackPanel to give accessibility. More...
#include <TrackPanelAx.h>
Public Types | |
using | RectangleFinder = std::function< wxRect(Track &) > |
Public Member Functions | |
TrackPanelAx (AudacityProject &project) | |
virtual | ~TrackPanelAx () |
void | SetFinder (const RectangleFinder &finder) |
std::shared_ptr< Track > | GetFocus () |
std::shared_ptr< Track > | SetFocus (std::shared_ptr< Track > track={}) |
bool | IsFocused (const Track *track) |
void | Updated () |
void | MessageForScreenReader (const TranslatableString &message) |
wxWindow * | GetWindow () const |
void | SetWindow (wxWindow *window) |
Private Member Functions | |
TrackList & | GetTracks () |
int | TrackNum (const std::shared_ptr< Track > &track) |
std::shared_ptr< Track > | FindTrack (int num) |
Private Attributes | |
AudacityProject & | mProject |
wxWindow * | mWindow {} |
RectangleFinder | mFinder |
std::weak_ptr< Track > | mFocusedTrack |
int | mNumFocusedTrack |
wxString | mMessage |
bool | mTrackName |
int | mMessageCount |
Helper to TrackPanel to give accessibility.
Definition at line 35 of file TrackPanelAx.h.
using TrackPanelAx::RectangleFinder = std::function< wxRect( Track& ) > |
Definition at line 44 of file TrackPanelAx.h.
TrackPanelAx::TrackPanelAx | ( | AudacityProject & | project | ) |
Definition at line 38 of file TrackPanelAx.cpp.
References mMessageCount, mNumFocusedTrack, and mTrackName.
|
virtual |
Definition at line 51 of file TrackPanelAx.cpp.
|
private |
Definition at line 190 of file TrackPanelAx.cpp.
References GetTracks().
Referenced by GetFocus().
std::shared_ptr< Track > TrackPanelAx::GetFocus | ( | ) |
Definition at line 64 of file TrackPanelAx.cpp.
References FindTrack(), GetTracks(), mFocusedTrack, mNumFocusedTrack, SetFocus(), Track::SharedPointer(), and TrackNum().
Referenced by MessageForScreenReader(), and Updated().
|
private |
Definition at line 55 of file TrackPanelAx.cpp.
References TrackList::Get(), and mProject.
Referenced by FindTrack(), GetFocus(), IsFocused(), SetFocus(), and TrackNum().
|
inline |
Definition at line 128 of file TrackPanelAx.h.
References mWindow.
Referenced by MessageForScreenReader(), SetFocus(), and Updated().
bool TrackPanelAx::IsFocused | ( | const Track * | track | ) |
Definition at line 155 of file TrackPanelAx.cpp.
References TrackList::Channels(), TrackList::FindById(), Track::GetId(), GetTracks(), mFocusedTrack, and SetFocus().
void TrackPanelAx::MessageForScreenReader | ( | const TranslatableString & | message | ) |
Definition at line 224 of file TrackPanelAx.cpp.
References BasicUI::FindFocus(), GetFocus(), GetWindow(), mMessage, mMessageCount, mTrackName, TrackNum(), and TranslatableString::Translation().
|
inline |
Definition at line 94 of file TrackPanelAx.cpp.
References PackedArray::begin(), BasicUI::CallAfter(), BasicUI::FindFocus(), TrackFocus::Get(), GetTracks(), GetWindow(), mFocusedTrack, mNumFocusedTrack, mProject, mTrackName, Track::SharedPointer(), and TrackNum().
Referenced by GetFocus(), and IsFocused().
|
inline |
|
private |
Definition at line 172 of file TrackPanelAx.cpp.
References GetTracks().
Referenced by GetFocus(), MessageForScreenReader(), SetFocus(), and Updated().
void TrackPanelAx::Updated | ( | ) |
Definition at line 204 of file TrackPanelAx.cpp.
References GetFocus(), GetWindow(), mTrackName, and TrackNum().
|
private |
Definition at line 144 of file TrackPanelAx.h.
Referenced by SetFinder().
|
private |
Definition at line 146 of file TrackPanelAx.h.
Referenced by GetFocus(), IsFocused(), and SetFocus().
|
private |
Definition at line 149 of file TrackPanelAx.h.
Referenced by MessageForScreenReader().
|
private |
Definition at line 151 of file TrackPanelAx.h.
Referenced by MessageForScreenReader(), and TrackPanelAx().
|
private |
Definition at line 147 of file TrackPanelAx.h.
Referenced by GetFocus(), SetFocus(), and TrackPanelAx().
|
private |
Definition at line 138 of file TrackPanelAx.h.
Referenced by GetTracks(), and SetFocus().
|
private |
Definition at line 150 of file TrackPanelAx.h.
Referenced by MessageForScreenReader(), SetFocus(), TrackPanelAx(), and Updated().
|
private |
Definition at line 141 of file TrackPanelAx.h.
Referenced by GetWindow(), and SetWindow().