TracktionEngine
|
This class wraps a string that is generally held in a 'source' property, and which is a reference to some sort of file, either in the form of a local filename or as a project ID that can be resolved. More...
Public Member Functions | |
SourceFileReference (Edit &, juce::ValueTree &, const juce::Identifier &prop) | |
~SourceFileReference () | |
juce::File | getFile () const |
bool | isUsingProjectReference () const |
ProjectItemID | getSourceProjectItemID () const |
ProjectItem::Ptr | getSourceProjectItem () const |
void | setToDirectFileReference (const juce::File &, bool useRelativePath) |
void | setToProjectFileReference (const juce::File &, bool updateProjectItem) |
Points this source at a new file via a project item. More... | |
void | setToProjectFileReference (ProjectItemID) |
Static Public Member Functions | |
static juce::String | findPathFromFile (Edit &, const juce::File &, bool useRelativePath) |
static juce::File | findFileFromString (Edit &, const juce::String &source) |
Public Attributes | |
Edit & | edit |
juce::CachedValue< juce::String > | source |
This class wraps a string that is generally held in a 'source' property, and which is a reference to some sort of file, either in the form of a local filename or as a project ID that can be resolved.
tracktion::engine::SourceFileReference::SourceFileReference | ( | Edit & | , |
juce::ValueTree & | , | ||
const juce::Identifier & | prop | ||
) |
tracktion::engine::SourceFileReference::~SourceFileReference | ( | ) |
juce::File tracktion::engine::SourceFileReference::getFile | ( | ) | const |
bool tracktion::engine::SourceFileReference::isUsingProjectReference | ( | ) | const |
ProjectItemID tracktion::engine::SourceFileReference::getSourceProjectItemID | ( | ) | const |
ProjectItem::Ptr tracktion::engine::SourceFileReference::getSourceProjectItem | ( | ) | const |
void tracktion::engine::SourceFileReference::setToDirectFileReference | ( | const juce::File & | , |
bool | useRelativePath | ||
) |
void tracktion::engine::SourceFileReference::setToProjectFileReference | ( | const juce::File & | , |
bool | updateProjectItem | ||
) |
Points this source at a new file via a project item.
If updateProjectItem is true and there isn't already a media id for this file, it'll create one and add it to the project, or will update the current ProjectItem if it doesn't yet point to a real file.
void tracktion::engine::SourceFileReference::setToProjectFileReference | ( | ProjectItemID | ) |
|
static |
|
static |
Edit& tracktion::engine::SourceFileReference::edit |
juce::CachedValue<juce::String> tracktion::engine::SourceFileReference::source |