BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The NodeEditor class implement for QGraphicsScene an editable schematic of the dependency graph, displaying nodes and the connections between their attributes. More...
Signals | |
void | connectionIsEstablished (NodeEditorConnection *) |
void | selectionModeChangeRequest (int) |
Public Member Functions | |
NodeEditor (QObject *parent=0) | |
bool | eventFilter (QObject *object, QEvent *event) |
void | install (QGraphicsScene *scene) |
Private Member Functions | |
QGraphicsItem * | itemAt (const QPointF &) |
bool | processMouseMove (QGraphicsSceneMouseEvent *event) |
bool | processMousePress (QGraphicsSceneMouseEvent *event) |
bool | processMouseRelease (QGraphicsSceneMouseEvent *event) |
Private Attributes | |
NodeEditorConnection * | m_conn |
QGraphicsScene * | m_scene |
The NodeEditor class implement for QGraphicsScene an editable schematic of the dependency graph, displaying nodes and the connections between their attributes.
Definition at line 35 of file NodeEditor.h.
|
explicit |
Definition at line 23 of file NodeEditor.cpp.
|
signal |
Referenced by DesignerScene::DesignerScene(), and processMouseRelease().
bool NodeEditor::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) |
Definition at line 42 of file NodeEditor.cpp.
References processMouseMove(), processMousePress(), and processMouseRelease().
void NodeEditor::install | ( | QGraphicsScene * | scene | ) |
Definition at line 25 of file NodeEditor.cpp.
References m_scene.
Referenced by DesignerScene::DesignerScene().
|
private |
Definition at line 31 of file NodeEditor.cpp.
References m_scene.
Referenced by processMousePress(), and processMouseRelease().
|
private |
Definition at line 80 of file NodeEditor.cpp.
References m_conn, NodeEditorConnection::setPos2(), and NodeEditorConnection::updatePath().
Referenced by eventFilter().
|
private |
Definition at line 60 of file NodeEditor.cpp.
References itemAt(), m_conn, m_scene, ViewTypes::NODE_EDITOR_PORT, selectionModeChangeRequest(), NodeEditorConnection::setPort1(), NodeEditorConnection::setPos1(), NodeEditorConnection::setPos2(), DesignerView::SIMPLE_SELECTION, and NodeEditorConnection::updatePath().
Referenced by eventFilter().
|
private |
Definition at line 92 of file NodeEditor.cpp.
References connectionIsEstablished(), NodeEditorPort::getPortType(), NodeEditorPort::isConnected(), NodeEditorPort::isOutput(), itemAt(), m_conn, ViewTypes::NODE_EDITOR_PORT, NodeEditorConnection::port1(), DesignerView::RUBBER_SELECTION, selectionModeChangeRequest(), NodeEditorConnection::setPort2(), NodeEditorConnection::setPos2(), and NodeEditorConnection::updatePath().
Referenced by eventFilter().
|
signal |
Referenced by DesignerScene::DesignerScene(), processMousePress(), and processMouseRelease().
|
private |
Definition at line 58 of file NodeEditor.h.
Referenced by processMouseMove(), processMousePress(), and processMouseRelease().
|
private |
Definition at line 57 of file NodeEditor.h.
Referenced by install(), itemAt(), and processMousePress().