mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 00:51:12 +02:00
changes to the text of state in status bar. Play changed to playing etc. Also full stop added to that for screen readers there is a pause between the state field and the next field.
This commit is contained in:
@@ -102,10 +102,10 @@ ControlToolBar::ControlToolBar()
|
||||
mCutPreviewTracks = NULL;
|
||||
|
||||
// strings for status bar
|
||||
mStatePlay = _("Play");
|
||||
mStateStop = _("Stop");
|
||||
mStateRecord = _("Record");
|
||||
mStatePause = _("Pause");
|
||||
mStatePlay = _("Playing");
|
||||
mStateStop = _("Stopped");
|
||||
mStateRecord = _("Recording");
|
||||
mStatePause = _("Paused");
|
||||
}
|
||||
|
||||
ControlToolBar::~ControlToolBar()
|
||||
@@ -1092,15 +1092,15 @@ int ControlToolBar::WidthForStatusBar()
|
||||
int xMax = 0;
|
||||
int x, y;
|
||||
|
||||
sb->GetTextExtent(mStatePlay + wxT(" ") + mStatePause, &x, &y);
|
||||
sb->GetTextExtent(mStatePlay + wxT(" ") + mStatePause + wxT("."), &x, &y);
|
||||
if (x > xMax)
|
||||
xMax = x;
|
||||
|
||||
sb->GetTextExtent(mStateStop + wxT(" ") + mStatePause, &x, &y);
|
||||
sb->GetTextExtent(mStateStop + wxT(" ") + mStatePause + wxT("."), &x, &y);
|
||||
if (x > xMax)
|
||||
xMax = x;
|
||||
|
||||
sb->GetTextExtent(mStateRecord + wxT(" ") + mStatePause, &x, &y);
|
||||
sb->GetTextExtent(mStateRecord + wxT(" ") + mStatePause + wxT("."), &x, &y);
|
||||
if (x > xMax)
|
||||
xMax = x;
|
||||
|
||||
@@ -1124,6 +1124,8 @@ void ControlToolBar::UpdateStatusBar()
|
||||
state.Append(mStatePause);
|
||||
}
|
||||
|
||||
state.Append(wxT("."));
|
||||
|
||||
GetActiveProject()->GetStatusBar()->SetStatusText(state);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user