Visual editor for clusters, nodes, and connections.
More...
#include <network_canvas.hpp>
Inherits QGraphicsView.
|
| void | nodeActivated (const QString &name) |
| | Emitted to open a node's subnetwork (e.g.
|
| |
|
void | selectionChanged (const QString &cluster, const QString &node) |
| | Emitted when the user selects a cluster or node on the canvas.
|
| |
|
| | NetworkCanvas (Document *doc, QWidget *parent=nullptr) |
| |
|
void | rebuild () |
| | Rebuilds scene items from the current network.
|
| |
|
void | setConnectMode (bool on) |
| | Enables or disables click-to-connect link mode.
|
| |
| bool | connectMode () const |
| |
|
void | select (const QString &cluster, const QString &node) |
| | Highlights a cluster/node from Document selection.
|
| |
|
|
void | contextMenuEvent (QContextMenuEvent *event) override |
| | Shows context menu for add/connect operations.
|
| |
|
void | mousePressEvent (QMouseEvent *event) override |
| | Handles node selection and connect-mode clicks.
|
| |
Visual editor for clusters, nodes, and connections.
Supports connect mode for drawing links and persists layout positions back to the Document model.
◆ NetworkCanvas()
| NetworkCanvas::NetworkCanvas |
( |
Document * |
doc, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
- Parameters
-
| doc | Document whose network is displayed. |
| parent | Optional parent widget. |
◆ connectMode()
| bool NetworkCanvas::connectMode |
( |
| ) |
const |
|
inline |
- Returns
- True when connect mode is active.
◆ nodeActivated
| void NetworkCanvas::nodeActivated |
( |
const QString & |
name | ) |
|
|
signal |
Emitted to open a node's subnetwork (e.g.
from context menu).
The documentation for this class was generated from the following file: