mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Redo TP_UpdateStatusMessage...
... Rename it as SetStatus; make it part of AudacityProject not TrackPanelListener; and use a roundabout event signalling to cause the timer restart. Because SetStatus will be one of very few things left in AudacityProject, but the timer handling will be part of another class decoupled from it. And TrackPanelListener won't really be needed: TrackPanel will not need to pretend it doesn't know what an AudacityProject is.
This commit is contained in:
@@ -707,7 +707,7 @@ void TrackPanel::UpdateStatusMessage( const wxString &st )
|
||||
if (HasEscape())
|
||||
/* i18n-hint Esc is a key on the keyboard */
|
||||
status += wxT(" "), status += _("(Esc to cancel)");
|
||||
mListener->TP_DisplayStatusMessage(status);
|
||||
GetProject()->SetStatus(status);
|
||||
}
|
||||
|
||||
void TrackPanel::UpdateSelectionDisplay()
|
||||
@@ -765,7 +765,7 @@ void TrackPanel::UpdateViewIfNoTracks()
|
||||
|
||||
mListener->TP_RedrawScrollbars();
|
||||
mListener->TP_HandleResize();
|
||||
mListener->TP_DisplayStatusMessage(wxT("")); //STM: Clear message if all tracks are removed
|
||||
GetProject()->SetStatus(wxT("")); //STM: Clear message if all tracks are removed
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user