1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 08:27:13 +01:00

New class ProjectHistory split from ProjectManager for undo, etc...

... And yet fewer inclusions of Projectmanager.h, though it's still not yet
free of cycles
This commit is contained in:
Paul Licameli
2019-06-06 09:55:34 -04:00
parent 7857d59f57
commit f03684db4f
53 changed files with 581 additions and 456 deletions

View File

@@ -7,7 +7,7 @@
#include "../MixerBoard.h"
#include "../Prefs.h"
#include "../Project.h"
#include "../ProjectManager.h"
#include "../ProjectHistory.h"
#include "../ProjectWindow.h"
#include "../TrackPanel.h"
#include "../UndoManager.h"
@@ -282,7 +282,7 @@ void OnZoomFitV(const CommandContext &context)
window.GetVerticalScrollBar().SetThumbPosition(0);
window.RedrawProject();
ProjectManager::Get( project ).ModifyState(true);
ProjectHistory::Get( project ).ModifyState(true);
}
void OnAdvancedVZoom(const CommandContext &context)
@@ -306,7 +306,7 @@ void OnCollapseAllTracks(const CommandContext &context)
for (auto t : tracks.Any())
t->SetMinimized(true);
ProjectManager::Get( project ).ModifyState(true);
ProjectHistory::Get( project ).ModifyState(true);
window.RedrawProject();
}
@@ -319,7 +319,7 @@ void OnExpandAllTracks(const CommandContext &context)
for (auto t : tracks.Any())
t->SetMinimized(false);
ProjectManager::Get( project ).ModifyState(true);
ProjectHistory::Get( project ).ModifyState(true);
window.RedrawProject();
}