IntervalActions.hpp
1 #pragma once
2 
3 #include <score/command/Dispatchers/CommandDispatcher.hpp>
4 #include <score/plugins/UuidKey.hpp>
5 
6 #include <QObject>
7 
8 #include <score_plugin_scenario_export.h>
9 class QAction;
10 namespace score
11 {
12 struct GUIElements;
13 }
14 namespace Process
15 {
16 class ProcessModel;
17 class LayerContextMenuManager;
18 class ProcessModelFactory;
19 class LayerFactory;
20 }
21 namespace Scenario
22 {
23 class ScenarioApplicationPlugin;
24 class ScenarioPresenter;
25 class SCORE_PLUGIN_SCENARIO_EXPORT IntervalActions final : public QObject
26 {
27 public:
29  ~IntervalActions();
30 
31  void makeGUIElements(score::GUIElements& ref);
32  void setupContextMenu(Process::LayerContextMenuManager& ctxm);
33 
34 private:
35  void addProcessInInterval(const UuidKey<Process::ProcessModel>&, const QString& data);
36 
37  void on_showRacks();
38  void on_hideRacks();
39 
40  ScenarioApplicationPlugin* m_parent{};
41  QAction* m_addProcess{};
42 
43  QAction* m_hideRacks{};
44  QAction* m_showRacks{};
45 };
46 }
Definition: LayerContextMenu.hpp:38
Definition: IntervalActions.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