5#include <QLoggingCategory>
73 void createNode(
const QString &name,
const QPoint position_hint = QPoint(0, 0));
78 const QMap<QString, std::function<
Node *()>> m_node_factories
79 = {{
"Label", [
this]() {
return new Label(
this); }},
80 {
"Slider", [
this]() {
return new Slider(
this); }},
81 {
"SerialSend", [
this]() {
return new SerialSend(
this); }},
82 {
"LineEdit", [
this]() {
return new LineEdit(
this); }},
83 {
"TextCombine", [
this]() {
return new TextCombine(
this); }}};
85 Panel *m_panel =
nullptr;
86 NodeEditor *m_nodeeditor =
nullptr;
NodeEditor * nodeEditor() const
Returns the node editor of the document.
Definition document.hpp:55
Panel * panel() const
Returns the panel of the document.
Definition document.hpp:46
void deleteNode(Node *node)
Definition document.cpp:41
QList< QString > availableNodes() const
Returns the list of available node types.
Definition document.cpp:22
void createNode(const QString &name, const QPoint position_hint=QPoint(0, 0))
Creates a node of the specified type.
Definition document.cpp:27
~Document()
Definition document.cpp:16
Document(QObject *parent=nullptr)
Definition document.cpp:8
static Document * activeDocument()
Returns the active document.
Definition document.hpp:37
Definition nodeeditor.hpp:12