TracktionEngine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
tracktion_ProjectUtilities.h File Reference

Classes

struct  engine::ProjectUtilities::EditReferences
 Holds a mixed list of Edit pointers and owned Edits. More...
 

Namespaces

namespace  engine
 
namespace  engine::ProjectUtilities
 Utilities for consolidating Projects and Edits.
 

Functions

template<typename EditContainer >
void engine::ProjectUtilities::saveEdits (const EditContainer &edits)
 Force saves a container of Edits.
 
EditReferences engine::ProjectUtilities::getEditsInProject (Project &project)
 Returns a list of all Edits in a Project.
 
int engine::ProjectUtilities::importExternalFiles (Project &proj, juce::Array< ProjectItemRef > refsToImport)
 Looks through the given list of ProjectItemRefs for ProjectItems that have source files outside the project folder and copies these in, updating the ProjectItem to reference the new source files.
 
int engine::ProjectUtilities::importExternalReferences (Project &proj, juce::Array< ProjectItemRef > refsToImport)
 Looks through the given list of ProjectItemRefs for ProjectItems that are in a Project other than this Project, and creates new ProjectItems for them in this Project.
 
std::pair< int, juce::String > engine::ProjectUtilities::consolidateEdit (Edit &edit)
 Looks for clips that have source files outside of the project folder, and copies them in, updating the ProjectItem references.
 
bool engine::ProjectUtilities::canConsolidateEdit (Edit &edit)
 Returns true if the Edit has any ProjectItem references to files outside the project directory.
 
std::pair< int, juce::String > engine::ProjectUtilities::consolidateProject (Project &project)
 Looks for clips that have source files outside of the project folder, and copies them in, updating the ProjectItem references.
 
bool engine::ProjectUtilities::canConsolidateProject (Project &project)
 Returns true if the Project has any ProjectItem references to files outside the project directory.
 
bool engine::ProjectUtilities::isConsolidated (Edit &edit)
 Returns true if the Edit is fully consolidated (no external file refs).
 
bool engine::ProjectUtilities::isConsolidated (Project &project)
 Returns true if the Project is fully consolidated.
 
void engine::ProjectUtilities::consolidateEditInteractive (Edit &edit, std::function< void()> completionCallback=nullptr)
 Consolidates an Edit showing a confirmation dialog box first and a completion dialog afterwards.
 
void engine::ProjectUtilities::consolidateProjectInteractive (Project &project, std::function< void()> completionCallback=nullptr)
 Consolidates a Project showing a confirmation dialog box first and a completion dialog afterwards.