Loading...
Searching...
No Matches
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
12namespace Gfx::Images
13{
14struct ImageListChooser;
15}
16
17UUID_METADATA(
18 SCORE_PLUGIN_GFX_EXPORT, Process::Port, Gfx::Images::ImageListChooser,
19 "e9e711ca-62c6-43b7-bb51-bbb9ca1e0306")
20
21namespace WidgetFactory
22{
23struct ImageListChooserItems
24{
25 static constexpr Process::PortItemLayout layout() noexcept
26 {
27 using namespace Process;
28 return {};
29 }
30
31 static QWidget* make_widget(
33 QWidget* parent, QObject* context);
34
35 static QGraphicsItem* make_item(
38 QGraphicsItem* parent, QObject* context);
39};
40}
41
42namespace Gfx::Images
43{
45{
46 MODEL_METADATA_IMPL(ImageListChooser)
48 const std::vector<QString>& init, const QString& name, Id<Process::Port> id,
49 QObject* parent);
51 ImageListChooser(DataStream::Deserializer& vis, QObject* parent);
52 ImageListChooser(JSONObject::Deserializer& vis, QObject* parent);
53 ImageListChooser(DataStream::Deserializer&& vis, QObject* parent);
54 ImageListChooser(JSONObject::Deserializer&& vis, QObject* parent);
55
56 using Process::ControlInlet::ControlInlet;
57};
58}
Definition DataStreamVisitor.hpp:202
Definition JSONVisitor.hpp:423
Definition Port.hpp:203
Definition 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:45
Definition Port.hpp:90
Definition DocumentContext.hpp:18