1
0
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:
David Bailes
2015-06-01 10:08:33 +01:00
parent cfddd5f069
commit 7b3628c753

View File

@@ -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);
}