2 #include <LV2/ApplicationPlugin.hpp>
3 #include <LV2/EffectModel.hpp>
4 #include <Library/LibraryInterface.hpp>
5 #include <Library/ProcessesItemModel.hpp>
11 SCORE_CONCRETE(
"570f0b92-a091-47ff-a5c3-a585e07df2bf")
16 QModelIndex node = model.find(key);
17 if(node == QModelIndex{})
24 auto& world = plug.lilv;
26 auto plugs = world.get_all_plugins();
28 ossia::flat_map<QString, QVector<QString>> categories;
30 auto it = plugs.begin();
31 while(!plugs.is_end(it))
33 auto plug = plugs.get(it);
34 const auto class_name = plug.get_class().get_label().as_string();
35 const auto plug_name = plug.get_name().as_string();
36 categories[class_name].push_back(plug_name);
40 for(
auto& category : categories)
43 auto& cat = parent.emplace_back(
46 for(
auto& plug : category.second)
48 Library::addToLibrary(
Definition: score-plugin-lv2/LV2/ApplicationPlugin.hpp:24
Definition: score-plugin-lv2/LV2/Library.hpp:10
Definition: LibraryInterface.hpp:22
Definition: ProcessesItemModel.hpp:45
Definition: EffectFactory.hpp:14
Definition: ProcessesItemModel.hpp:32
Definition: ProcessMimeSerialization.hpp:38
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
T & applicationPlugin() const
Access a specific application plug-in instance.
Definition: GUIApplicationContext.hpp:69