Loading...
Searching...
No Matches
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>
8class QAction;
9namespace Process
10{
11class LayerContextMenuManager;
12}
13namespace score
14{
15struct GUIElements;
16}
17namespace Scenario
18{
19class ScenarioApplicationPlugin;
20class ScenarioPresenter;
21namespace Command
22{
23class TriggerCommandFactoryList;
24}
25class SCORE_PLUGIN_SCENARIO_EXPORT EventActions final : public QObject
26{
27public:
29
30 void makeGUIElements(score::GUIElements& ref);
31 void setupContextMenu(Process::LayerContextMenuManager& ctxm);
32
33private:
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:13
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition GUIApplicationPlugin.hpp:24