Loading...
Searching...
No Matches
ExternalFiles.hpp
Definition Port.hpp:242
Collects — and in the same pass rewrites — the files a document references.
Definition ExternalFiles.hpp:93
void addCommand(score::Command *cmd)
Definition ExternalFiles.cpp:62
QString owner
Name attributed to the references reported next. Set by the traversal.
Definition ExternalFiles.hpp:128
void property(T &obj, const char *property, score::FileKind kind, FileUsage usage=FileUsage::Input)
A path held in a QString Q_PROPERTY of a model object.
Definition ExternalFiles.hpp:157
Points a QString path property at another file.
Definition RelocateFile.hpp:18
void mapDocumentExternalFiles(const score::DocumentContext &ctx, ExternalFileMap &map)
Walk every process of the document and let it report its files.
Definition ExternalFiles.cpp:228
std::function< std::vector< QString >(const QString &storedPath)> CompanionFiles
Definition ExternalFiles.hpp:70
FileUsage
Whether the process reads the file or writes to it.
Definition ExternalFiles.hpp:28
@ Output
Written by the process (recorders, encoders): only the path moves.
bool looksLikeExistingFile(const QString &value, const score::DocumentContext &ctx) noexcept
Definition ExternalFiles.cpp:170
std::function< QString(const ExternalFileRef &)> ExternalFileMapper
Definition ExternalFiles.hpp:74
FileKind guessFileKind(const QString &path) noexcept
Definition ProjectFiles.cpp:59
std::optional< MediaRange > usedRange
Definition ExternalFiles.hpp:56
QString owner
Human-readable name of the object holding the reference.
Definition ExternalFiles.hpp:47
std::vector< QString > companions
Definition ExternalFiles.hpp:65
bool directory
The reference designates a folder, not a file.
Definition ExternalFiles.hpp:42
Definition DocumentContext.hpp:18