ImageListChooser.hpp
1 #pragma once
2 
3 #include <Process/Dataflow/Port.hpp>
4 
6 
7 #include <QGraphicsItem>
8 #include <QTableWidget>
9 
10 #include <score_plugin_gfx_export.h>
11 
12 namespace Gfx::Images
13 {
14 struct ImageListChooser;
15 }
16 
17 UUID_METADATA(
18  SCORE_PLUGIN_GFX_EXPORT, Process::Port, Gfx::Images::ImageListChooser,
19  "e9e711ca-62c6-43b7-bb51-bbb9ca1e0306")
20 
21 namespace WidgetFactory
22 {
23 struct ImageListChooserItems
24 {
25  static constexpr Process::PortItemLayout layout() noexcept
26  {
27  using namespace Process;
28  return {};
29  }
30 
31  static QWidget* make_widget(
32  const Gfx::Images::ImageListChooser& slider,
34  QWidget* parent, QObject* context);
35 
36  static QGraphicsItem* make_item(
37  const Gfx::Images::ImageListChooser& slider,
39  QGraphicsItem* parent, QObject* context);
40 };
41 }
42 
43 namespace Gfx::Images
44 {
46 {
47  MODEL_METADATA_IMPL(ImageListChooser)
49  const std::vector<QString>& init, const QString& name, Id<Process::Port> id,
50  QObject* parent);
52  ImageListChooser(DataStream::Deserializer& vis, QObject* parent);
53  ImageListChooser(JSONObject::Deserializer& vis, QObject* parent);
54  ImageListChooser(DataStream::Deserializer&& vis, QObject* parent);
55  ImageListChooser(JSONObject::Deserializer&& vis, QObject* parent);
56 
57  using Process::ControlInlet::ControlInlet;
58 };
59 }
Definition: DataStreamVisitor.hpp:202
Definition: JSONVisitor.hpp:423
Definition: score-lib-process/Process/Dataflow/Port.hpp:202
Definition: score-lib-process/Process/Dataflow/Port.hpp:102
The id_base_t class.
Definition: Identifier.hpp:57
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ImageListChooser.hpp:46
Definition: score-lib-process/Process/Dataflow/Port.hpp:90
Definition: DocumentContext.hpp:18