score
Home
Classes
Namespaces
Files
ImageListChooser.hpp
1
#pragma once
2
3
#include <Process/Dataflow/Port.hpp>
4
5
#include <
score/serialization/VisitorCommon.hpp
>
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
& inlet,
const
score::DocumentContext
& ctx,
33
QWidget* parent, QObject* context);
34
35
static
QGraphicsItem* make_item(
36
const
Gfx::Images::ImageListChooser
& slider,
37
const
Gfx::Images::ImageListChooser
& inlet,
const
score::DocumentContext
& ctx,
38
QGraphicsItem* parent, QObject* context);
39
};
40
}
41
42
namespace
Gfx::Images
43
{
44
struct
ImageListChooser
:
public
Process::ControlInlet
45
{
46
MODEL_METADATA_IMPL(
ImageListChooser
)
47
ImageListChooser
(
48
const
std::vector<QString>& init,
const
QString& name,
Id<Process::Port>
id
,
49
QObject* parent);
50
~
ImageListChooser
();
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
}
VisitorCommon.hpp
DataStreamWriter
Definition:
DataStreamVisitor.hpp:202
JSONWriter
Definition:
JSONVisitor.hpp:423
Process::ControlInlet
Definition:
Port.hpp:203
Process::Port
Definition:
Port.hpp:102
id_base_t
The id_base_t class.
Definition:
Identifier.hpp:57
Process
Base classes and tools to implement processes and layers.
Definition:
JSONVisitor.hpp:1324
Gfx::Images::ImageListChooser
Definition:
ImageListChooser.hpp:45
Process::PortItemLayout
Definition:
Port.hpp:90
score::DocumentContext
Definition:
DocumentContext.hpp:18