1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-08 17:46:25 +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

@@ -87,6 +87,7 @@
#include "../Menus.h"
#include "../NoteTrack.h"
#include "../Project.h"
#include "../ProjectHistory.h"
#include "../ProjectManager.h"
#include "../ProjectWindow.h"
#include "../FileFormats.h"
@@ -442,7 +443,7 @@ void LOFImportFileHandle::lofOpenFiles(wxString* ln)
}
// Amend the undo transaction made by import
ProjectManager::Get( *mProject ).ModifyState(false);
ProjectHistory::Get( *mProject ).ModifyState(false);
} // end of converting "offset" argument
else
{
@@ -486,7 +487,7 @@ void LOFImportFileHandle::doDurationAndScrollOffset()
if (doSomething)
// Amend last undo state
ProjectManager::Get( *mProject ).ModifyState(false);
ProjectHistory::Get( *mProject ).ModifyState(false);
}
LOFImportFileHandle::~LOFImportFileHandle()