Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
document_event.h
1#pragma once
2
3#include <QString>
4
5#include "mission_parameter.h"
6
8{
9 // The id of this node
10 QString id;
11 QString nodeType;
12 QString parentId;
13
14 // Empty for structural nodes.
15 // Otherwise identifies the owning FlowSaveInfo.
16 QString ownerFlowId;
17
18 QString propertyId;
19 maki::Value propertyValue;
20};
21
23{
24 // The id of this flow
25 QString id;
26
27 // Identified the owning NodeSaveInfo.
28 QString ownerNodeId;
29};
30
32{
33 // The id of this transition
34 QString id;
35
36 // Otherwise identifies the owning FlowSaveInfo.
37 QString ownerFlowId;
38};
39
41{
42};
43
45{
46};
47
49{
50 enum class Type
51 {
52 NodeAdded,
53 NodeRemoved,
54 NodeModified,
55 FlowAdded,
56 FlowRemoved,
57 FlowModified,
58 TransitionAdded,
59 TransitionRemoved,
60 TransitionModified,
61 ParentAdded,
62 ParentRemoved,
63 ChildAdded,
64 ChildRemoved,
65 DocumentReset,
66 };
67
68 Type type;
69 std::variant<NodeEvent, FlowEvent, TransitionEvent, ParentEvent, ChildEvent> data;
70};
71
72namespace maki
73{
74QString toString(const DocumentEvent::Type type);
75}
Contains UI helper widgets and layout grouping utilities used by MAKI.
Definition macros.h:9
Definition document_event.h:45
Definition document_event.h:49
Definition document_event.h:23
Definition document_event.h:8
Definition document_event.h:41
Definition document_event.h:32