2 #include <Process/Drop/ProcessDropHandler.hpp>
4 #include <Library/LibraryInterface.hpp>
5 #include <Library/LibrarySettings.hpp>
6 #include <Library/ProcessesItemModel.hpp>
7 #include <Pd/PdProcess.hpp>
18 SCORE_CONCRETE(
"01ffc109-9cb3-4c5a-9cdd-d9fd38fe5e17")
20 QSet<QString> acceptedFiles()
const noexcept
override {
return {
"pd"}; }
29 QModelIndex node = model.find(key);
30 if(node == QModelIndex{})
33 categories.init(node, ctx);
36 void addPath(std::string_view path)
override
38 QFileInfo file{QString::fromUtf8(path.data(), path.length())};
40 pdata.prettyName = file.completeBaseName();
42 pdata.customData = [&] {
return file.absoluteFilePath(); }();
44 categories.add(file, std::move(pdata));
50 SCORE_CONCRETE(
"3c4379ce-a5b9-456f-b1d6-09f3f02cc67e")
52 QSet<QString> fileExtensions()
const noexcept
override {
return {
"pd"}; }
60 p.creation.prettyName = filename.basename;
61 p.creation.customData = filename.relative;
63 vec.push_back(std::move(p));
Definition: LibraryInterface.hpp:22
Definition: ProcessesItemModel.hpp:45
Definition: PdLibrary.hpp:49
Definition: PdLibrary.hpp:17
Definition: ProcessDropHandler.hpp:25
Definition: ProcessesItemModel.hpp:32
Definition: ProcessesItemModel.hpp:86
Definition: ProcessDropHandler.hpp:29
Definition: DocumentContext.hpp:18
Definition: FilePath.hpp:25
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15