1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Move project status string management to new attached object class

This commit is contained in:
Paul Licameli
2019-07-02 11:38:15 -04:00
parent efa66f5350
commit e2362bc25a
17 changed files with 131 additions and 45 deletions

View File

@@ -56,6 +56,7 @@ is time to refresh some aspect of the screen.
#include "ProjectAudioIO.h"
#include "ProjectHistory.h"
#include "ProjectSettings.h"
#include "ProjectStatus.h"
#include "ProjectWindow.h"
#include "TrackPanelMouseEvent.h"
#include "TrackPanelResizeHandle.h"
@@ -673,7 +674,7 @@ void TrackPanel::UpdateStatusMessage( const wxString &st )
if (HasEscape())
/* i18n-hint Esc is a key on the keyboard */
status += wxT(" "), status += _("(Esc to cancel)");
GetProject()->SetStatus(status);
ProjectStatus::Get( *GetProject() ).Set( status );
}
void TrackPanel::UpdateSelectionDisplay()
@@ -724,7 +725,8 @@ void TrackPanel::UpdateViewIfNoTracks()
mViewInfo->h = 0;
mListener->TP_HandleResize();
GetProject()->SetStatus(wxT("")); //STM: Clear message if all tracks are removed
//STM: Clear message if all tracks are removed
ProjectStatus::Get( *GetProject() ).Set(wxT(""));
}
}