Loading...
Searching...
No Matches
score-lib-process/Process/ApplicationPlugin.hpp
1#pragma once
2#include <Process/Preset.hpp>
3#include <Process/Process.hpp>
4
5#include <score/plugins/application/GUIApplicationPlugin.hpp>
6
7#include <Process/Layer/LayerContextMenu.hpp>
8
9namespace Process
10{
11
12class SCORE_LIB_PROCESS_EXPORT ApplicationPlugin
13 : public QObject
15{
16 W_OBJECT(ApplicationPlugin)
17public:
20
21 void savePreset(const Process::ProcessModel* proc)
22 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, savePreset, proc)
23
24
26 void presetAboutToBeAdded(int index)
27 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, presetAboutToBeAdded, index)
28 void presetAdded(int index) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, presetAdded, index)
29
30 void addPreset(Process::Preset&& p);
31
32 Process::LayerContextMenuManager& layerContextMenuRegistrar()
33 {
34 return m_layerCtxMenuManager;
35 }
36
37 const Process::LayerContextMenuManager& layerContextMenuRegistrar() const
38 {
39 return m_layerCtxMenuManager;
40 }
41
42 std::vector<Process::Preset> presets;
43 Process::LayerContextMenuManager m_layerCtxMenuManager;
44};
45
46}
Definition score-lib-process/Process/ApplicationPlugin.hpp:15
Definition LayerContextMenu.hpp:38
The Process class.
Definition score-lib-process/Process/Process.hpp:75
Definition GUIApplicationPlugin.hpp:31
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition Preset.hpp:32
Used to access all the application-wide state and structures.
Definition ApplicationContext.hpp:25