mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-08 16:39:59 +02:00
Add names to some windows.
This is mainly for automation, so that when exploring the windows we have a name for each.
This commit is contained in:
parent
42573d36f8
commit
db45280695
@ -982,6 +982,7 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
this, wxID_ANY, wxDefaultPosition,
|
||||
wxSize{ this->GetSize().GetWidth(), -1 }
|
||||
};
|
||||
mTopPanel->SetName( "Top Panel" );// Not localised
|
||||
mTopPanel->SetAutoLayout(true);
|
||||
#ifdef EXPERIMENTAL_DA2
|
||||
mTopPanel->SetBackgroundColour(theTheme.Colour( clrMedium ));
|
||||
@ -1031,6 +1032,7 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
wxDefaultSize,
|
||||
wxNO_BORDER);
|
||||
mMainPanel->SetSizer( safenew wxBoxSizer(wxVERTICAL) );
|
||||
mMainPanel->SetName("Main Panel");// Not localised.
|
||||
pPage = mMainPanel;
|
||||
// Set the colour here to the track panel background to avoid
|
||||
// flicker when Audacity starts up.
|
||||
@ -1119,6 +1121,8 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
// several focus problems.
|
||||
mHsbar = safenew ScrollBar(pPage, HSBarID, wxSB_HORIZONTAL);
|
||||
mVsbar = safenew ScrollBar(pPage, VSBarID, wxSB_VERTICAL);
|
||||
mHsbar->SetName(_("Horizontal Scrollbar"));
|
||||
mVsbar->SetName(_("Vertical Scrollbar"));
|
||||
|
||||
// LLL: When Audacity starts or becomes active after returning from
|
||||
// another application, the first window that can accept focus
|
||||
|
@ -273,10 +273,12 @@ void SelectionBar::Populate()
|
||||
_("Length and End of Selection"),
|
||||
_("Length and Center of Selection"),
|
||||
};
|
||||
// The choice control now has a name.
|
||||
// If this is less good for VI users, can go back to no name.
|
||||
mChoice = safenew wxChoice
|
||||
(this, ChoiceID, wxDefaultPosition, wxDefaultSize, 4, choices,
|
||||
0, wxDefaultValidator, "");
|
||||
mChoice->SetName(wxT("\a")); // stop Jaws screen reader using nearby text for name when name is empty
|
||||
0, wxDefaultValidator, "Selection Type Chooser");
|
||||
//mChoice->SetName(wxT("\a")); // stop Jaws screen reader using nearby text for name when name is empty
|
||||
mChoice->SetSelection(0);
|
||||
#ifdef __WXGTK__
|
||||
// Combo boxes are taller on Linux, and if we don't do the following, the selection toolbar will
|
||||
|
Loading…
x
Reference in New Issue
Block a user