2 #include <Process/Drop/ProcessDropHandler.hpp>
4 #include <Library/LibraryInterface.hpp>
5 #include <Library/LibrarySettings.hpp>
6 #include <Library/ProcessesItemModel.hpp>
11 #include <Faust/EffectModel.hpp>
19 SCORE_CONCRETE(
"e274ee7b-9142-43a0-9d77-9286a63af4d9")
21 QSet<QString> acceptedFiles()
const noexcept
override {
return {
"dsp"}; }
23 static inline const QRegularExpression nameExpr{
24 R
"_(declare name "([a-zA-Z0-9_\-]+)";)_"};
25 static inline const QRegularExpression authorExpr{
26 R
"_(declare author "([a-zA-Z0-9_\-]+)";)_"};
27 static inline const QRegularExpression descExpr{
28 R
"_(declare description "([a-zA-Z0-9.<>\(\):/~, _\-]+)";)_"};
37 QModelIndex node = model.find(key);
38 if(node == QModelIndex{})
41 categories.init(node, ctx);
44 void addPath(std::string_view path)
override
47 if(file.fileName !=
"layout.dsp")
55 = QString::fromUtf8(file.completeBaseName.data(), file.completeBaseName.size());
58 = QString::fromUtf8(file.absoluteFilePath.data(), file.absoluteFilePath.size());
59 pdata.author =
"Faust standard library";
62 auto matches = nameExpr.match(pdata.customData);
65 pdata.prettyName =
matches.captured(1);
69 auto matches = authorExpr.match(pdata.customData);
72 pdata.author =
matches.captured(1);
76 auto matches = descExpr.match(pdata.customData);
79 pdata.description =
matches.captured(1);
83 categories.add(file, std::move(pdata));
89 SCORE_CONCRETE(
"1e83a000-5aca-4427-8de5-1dc7a390e201")
91 QSet<QString> fileExtensions()
const noexcept
override {
return {
"dsp"}; }
101 p.creation.prettyName = filename.basename;
102 p.creation.customData = filename.relative;
104 vec.push_back(std::move(p));
Definition: score-plugin-faust/Faust/Library.hpp:88
Definition: score-plugin-faust/Faust/Library.hpp:18
Definition: LibraryInterface.hpp:22
Definition: ProcessesItemModel.hpp:45
Definition: EffectFactory.hpp:14
Definition: ProcessDropHandler.hpp:25
Definition: ProcessesItemModel.hpp:32
Definition: ProcessesItemModel.hpp:86
Definition: ProcessDropHandler.hpp:29
Definition: ObjectMatches.hpp:6
Definition: DocumentContext.hpp:18
Definition: FilePath.hpp:25
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
Definition: lib/score/tools/File.hpp:20