6#include "elements/transition.h"
30 Flow(
const QString& flowName, std::shared_ptr<FlowSaveInfo> storage);
80 QVector<std::shared_ptr<NodeSaveInfo>>
getNodes()
const;
103 std::shared_ptr<FlowSaveInfo> config()
const;
119typedef std::shared_ptr<Flow> PFlow;
int type() const
Returns the type of the flow.
Definition flow.cpp:22
QVector< TransitionItem * > transitions() const
Returns a list of transitions connected to this node.
Definition flow.cpp:62
std::shared_ptr< FlowSaveInfo > mStorage
Storage for flow save information.
Definition flow.h:113
void removeNode(const NodeItem *node)
Removes a node from the flow.
Definition flow.cpp:37
QString mName
Name of the flow.
Definition flow.h:110
Flow(const QString &flowName, std::shared_ptr< FlowSaveInfo > storage)
Constructs a new Flow object.
Definition flow.cpp:8
QVector< TransitionItem * > mTransitions
List of transitions in this flow.
Definition flow.h:116
QVector< std::shared_ptr< NodeSaveInfo > > getNodes() const
Retrieves a list of all nodes in the flow.
Definition flow.cpp:53
QString name() const
Returns the name of the flow.
Definition flow.cpp:27
void addTransition(TransitionItem *transition)
Adds a transition to the node.
Definition flow.cpp:68
void updateFlow(NodeItem *node, std::shared_ptr< NodeSaveInfo > storage)
Updates a node in the flow with new save information.
Definition flow.cpp:42
const QString mId
Unique identifier for the flow.
Definition flow.h:107
QString id() const
Returns the unique identifier of the flow.
Definition flow.cpp:17
void removeTransition(TransitionItem *transition)
Removes a transition from the node.
Definition flow.cpp:81
bool modifiable() const
Checks if the flow is modifiable.
Definition flow.cpp:32
Represents a graphical node item in a flowchart.
Definition node.h:28
Represents a transition between two nodes in a graphical representation.
Definition transition.h:16