mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
New attached structure ProjectManager handles project lifetime...
... that is, a factory function, open, close, import, undo/redo/rollback. Also the callbacks from AudioIO, which need to invoke undo history push when recording stops. It is meant as a high-level class using several of the other things attached to the project, while AudacityProject will be a low level class acting mostly as just the container of the attached structures.
This commit is contained in:
@@ -280,7 +280,7 @@ void OnZoomFitV(const CommandContext &context)
|
||||
|
||||
window.GetVerticalScrollBar().SetThumbPosition(0);
|
||||
window.RedrawProject();
|
||||
project.ModifyState(true);
|
||||
ProjectManager::Get( project ).ModifyState(true);
|
||||
}
|
||||
|
||||
void OnAdvancedVZoom(const CommandContext &context)
|
||||
@@ -304,7 +304,7 @@ void OnCollapseAllTracks(const CommandContext &context)
|
||||
for (auto t : tracks.Any())
|
||||
t->SetMinimized(true);
|
||||
|
||||
project.ModifyState(true);
|
||||
ProjectManager::Get( project ).ModifyState(true);
|
||||
window.RedrawProject();
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ void OnExpandAllTracks(const CommandContext &context)
|
||||
for (auto t : tracks.Any())
|
||||
t->SetMinimized(false);
|
||||
|
||||
project.ModifyState(true);
|
||||
ProjectManager::Get( project ).ModifyState(true);
|
||||
window.RedrawProject();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user