EventActions.hpp
1 #pragma once
2 
3 #include <score/command/Dispatchers/CommandDispatcher.hpp>
4 
5 #include <QObject>
6 
7 #include <score_plugin_scenario_export.h>
8 class QAction;
9 namespace Process
10 {
11 class LayerContextMenuManager;
12 }
13 namespace score
14 {
15 struct GUIElements;
16 }
17 namespace Scenario
18 {
19 class ScenarioApplicationPlugin;
20 class ScenarioPresenter;
21 namespace Command
22 {
23 class TriggerCommandFactoryList;
24 }
25 class SCORE_PLUGIN_SCENARIO_EXPORT EventActions final : public QObject
26 {
27 public:
29 
30  void makeGUIElements(score::GUIElements& ref);
31  void setupContextMenu(Process::LayerContextMenuManager& ctxm);
32 
33 private:
34  void addTriggerToTimeSync();
35  void removeTriggerFromTimeSync();
36  void addCondition();
37  void removeCondition();
38 
39  CommandDispatcher<> dispatcher();
40 
41  ScenarioApplicationPlugin* m_parent{};
42  QAction* m_addTrigger{};
43  QAction* m_removeTrigger{};
44 
45  QAction* m_addCondition{};
46  QAction* m_removeCondition{};
47 
48  const Command::TriggerCommandFactoryList& m_triggerCommandFactory;
49 };
50 }
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
Definition: LayerContextMenu.hpp:38
Definition: TriggerCommandFactoryList.hpp:14
Definition: EventActions.hpp:26
Definition: ScenarioApplicationPlugin.hpp:42
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: GUIApplicationPlugin.hpp:24