From 7b3628c75319ed9b74b36a8709db44ad2787f57b Mon Sep 17 00:00:00 2001 From: David Bailes Date: Mon, 1 Jun 2015 10:08:33 +0100 Subject: [PATCH] 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. --- src/toolbars/ControlToolBar.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/toolbars/ControlToolBar.cpp b/src/toolbars/ControlToolBar.cpp index e602e221d..b6b334bf8 100644 --- a/src/toolbars/ControlToolBar.cpp +++ b/src/toolbars/ControlToolBar.cpp @@ -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); }