AutomationDropHandler.hpp
1 #pragma once
2 #include <Process/Drop/ProcessDropHandler.hpp>
3 
4 #include <Scenario/Application/Drops/DropLayerInInterval.hpp>
5 #include <Scenario/Application/Drops/DropLayerInScenario.hpp>
6 #include <Scenario/Application/Drops/DropPresetInInterval.hpp>
7 #include <Scenario/Application/Drops/DropPresetInScenario.hpp>
8 #include <Scenario/Application/Drops/DropProcessInInterval.hpp>
9 #include <Scenario/Application/Drops/DropProcessInScenario.hpp>
10 #include <Scenario/Application/Drops/ScenarioDropHandler.hpp>
11 
12 #include <QSet>
13 
14 namespace score
15 {
16 struct DocumentContext;
17 }
18 namespace Scenario
19 {
20 namespace Command
21 {
22 class Macro;
23 }
24 
26 {
27  SCORE_CONCRETE("c2829c8c-e1e7-4f90-b67a-d75d77d297f2")
28 public:
29  QSet<QString> mimeTypes() const noexcept override
30  {
31  return {score::mime::processdata()};
32  }
33 
34  void dropCustom(
35  std::vector<ProcessDrop>& vec, const QMimeData& mime,
36  const score::DocumentContext& ctx) const noexcept override
37  try
38  {
40 
41  ProcessDrop p;
42  p.creation = des.deserialize();
43  vec.push_back(p);
44  }
45  catch(...)
46  {
47  }
48 };
49 
51 {
52  SCORE_CONCRETE("34961e8b-19a5-408f-af90-55f59ce8c58a")
53 
54 public:
55  DropScenario();
56 
57 private:
58  bool
59  drop(const Scenario::ScenarioPresenter&, QPointF pos, const QMimeData& mime) override;
60 };
61 
63 {
64  SCORE_CONCRETE("63fc2b70-79b2-4bf8-a1f6-c148b8eceba8")
65 public:
67 
68 private:
69  bool
70  drop(const Scenario::ScenarioPresenter&, QPointF pos, const QMimeData& mime) override;
71 };
72 
77 {
78  SCORE_CONCRETE("46cb9918-fe25-4123-ab61-68ce3939b80a")
79 
80  bool drop(
81  const score::DocumentContext& ctx, const Scenario::IntervalModel&, QPointF p,
82  const QMimeData& mime) override;
83 };
84 
90 {
91  SCORE_CONCRETE("851c98e1-4bcb-407b-9a72-8288d83c9f38")
92 
93  bool drop(
94  const score::DocumentContext& ctx, const Scenario::IntervalModel&, QPointF p,
95  const QMimeData& mime) override;
96 };
97 }
Definition: ProcessDropHandler.hpp:25
The AutomationDropHandler class Will create an automation where the addresses are dropped.
Definition: AutomationDropHandler.hpp:90
Definition: AutomationDropHandler.hpp:51
What happens when a .score file is dropped in an interval.
Definition: AutomationDropHandler.hpp:77
Definition: AutomationDropHandler.hpp:63
Definition: ScenarioDropHandler.hpp:58
Definition: ScenarioDropHandler.hpp:91
Definition: IntervalModel.hpp:50
Definition: AutomationDropHandler.hpp:26
Definition: ScenarioPresenter.hpp:29
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: ProcessMimeSerialization.hpp:56
Definition: ProcessDropHandler.hpp:29
Definition: DocumentContext.hpp:18