Loading...
Searching...
No Matches
ExternalFiles.hpp
Definition Port.hpp:206
Collects — and in the same pass rewrites — the files a document references.
Definition ExternalFiles.hpp:80
void addCommand(score::Command *cmd)
Definition ExternalFiles.cpp:59
QString owner
Name attributed to the references reported next. Set by the traversal.
Definition ExternalFiles.hpp:114
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:143
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:221
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:163
std::function< QString(const ExternalFileRef &)> ExternalFileMapper
Definition ExternalFiles.hpp:61
FileKind guessFileKind(const QString &path) noexcept
Definition ProjectFiles.cpp:30
std::optional< MediaRange > usedRange
Definition ExternalFiles.hpp:56
QString owner
Human-readable name of the object holding the reference.
Definition ExternalFiles.hpp:47
bool directory
The reference designates a folder, not a file.
Definition ExternalFiles.hpp:42
Definition DocumentContext.hpp:18