11namespace tracktion {
inline namespace engine
26 bool save (
bool warnOfFailure,
bool forceSaveEvenIfNotModified,
bool offerToDiscardChanges);
27 bool saveAs (
const juce::File&,
bool forceOverwriteExisting =
false);
30 bool writeToFile (
const juce::File&,
bool writeQuickBinaryVersion);
32 bool saveTempVersion (
bool forceSaveEvenIfUnchanged);
33 void deleteTempVersion();
36 static void updateEditFiles();
38 juce::Time getTimeOfLastSave()
const {
return timeOfLastSave; }
44 struct SharedDataPimpl;
48 EditSnapshot::Ptr& editSnapshot;
Contains methods for saving an Edit to a file.
The Tracktion Edit class!
EditRole
Enum used to determine what an Edit is being used for.
@ forExamining
Creates an Edit for examining (listing source files etc).
@ forEditing
Creates an Edit for normal use.
The Engine is the central class for all tracktion sessions.
An ID representing one of the items in a Project.
std::unique_ptr< Edit > loadEditForExamining(ProjectManager &pm, ProjectItemID itemID, Edit::EditRole role)
Uses the ProjectManager to find an Edit file and open it.
juce::ValueTree loadEditFromProjectManager(ProjectManager &pm, ProjectItemID itemID)
Uses the ProjectManager to find an Edit file and load it as a ValueTree.
juce::ValueTree loadEditFromFile(Engine &e, const juce::File &f, ProjectItemID itemID)
Legacy, will be deprecated soon.
juce::ValueTree createEmptyEdit(Engine &e)
Legacy, will be deprecated soon.
juce::ValueTree updateLegacyEdit(const juce::ValueTree &)
Converts old edit formats to the latest structure.