DropHandler.hpp
1 #pragma once
2 #include <Process/Drop/ProcessDropHandler.hpp>
3 
4 #include <JS/JSProcessModel.hpp>
5 
6 namespace JS
7 {
8 
10 {
11  SCORE_CONCRETE("ad3a575a-f4a8-4a89-bb7e-bfd85f3430fe")
12 
13  QSet<QString> fileExtensions() const noexcept override { return {"qml"}; }
14 
15  void dropData(
16  std::vector<ProcessDrop>& vec, const DroppedFile& data,
17  const score::DocumentContext& ctx) const noexcept override
18  {
19  const auto& [filename, file] = data;
22  p.creation.prettyName = filename.basename;
23  p.creation.customData = std::move(file);
24 
25  vec.push_back(std::move(p));
26  }
27 };
28 
29 }
Definition: DropHandler.hpp:10
Definition: ProcessDropHandler.hpp:25
Static metadata implementation.
Definition: lib/score/tools/Metadata.hpp:36
Definition: ProcessDropHandler.hpp:36
Definition: ProcessDropHandler.hpp:29
Definition: DocumentContext.hpp:18