Maki
Formally verified low-code orchestration
Loading...
Searching...
No Matches
structure_canvas.h
1#pragma once
2
3#include "canvas.h"
4#include "node_info.h"
5
6class StructureCanvas : public Canvas
7{
8 Q_OBJECT
9public:
10 StructureCanvas(const QString& canvasId, std::shared_ptr<EdgeRouter> router, QObject* parent = nullptr);
11
12 Types::LibraryTypes type() const override;
13
14 QString requestCreateNode(NodeSaveInfo info, NodeCreation creation) override;
15 void requestRemoveNode(NodeSaveInfo info) override;
16
17 void addedItemNode(NodeItem* node, std::shared_ptr<NodeSaveInfo> info) override;
18 void suggestCapability(NodeItem* node) override;
19};
Canvas(const QString &canvasId, std::shared_ptr< EdgeRouter > router, QObject *parent=nullptr)
Constructs a new Canvas object.
Definition canvas.cpp:52
Represents a graphical node item in a flowchart.
Definition node.h:28
Represents a node that can be saved and loaded.
Definition node_info.h:16
Types::LibraryTypes type() const override
Returns the type of library this canvas belongs to.
Definition structure_canvas.cpp:17