Skip to content

Commit 7e5c721

Browse files
committed
updated docs with inheritance diagram.
1 parent f789919 commit 7e5c721

File tree

18 files changed

+58
-20
lines changed

18 files changed

+58
-20
lines changed

NodeGraphQt/base/graph.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class NodeGraph(QtCore.QObject):
3939
The ``NodeGraph`` class is the main controller for managing all nodes
4040
and the node graph.
4141
42-
Inherited from: :class:`PySide2.QtCore.QObject`
42+
.. inheritance-diagram:: NodeGraphQt.NodeGraph
43+
:top-classes: PySide2.QtCore.QObject
4344
4445
.. image:: _images/graph.png
4546
:width: 60%
@@ -2226,7 +2227,8 @@ class SubGraph(NodeGraph):
22262227
The ``SubGraph`` class is just like the ``NodeGraph`` but is the main
22272228
controller for managing the expanded node graph for a group node.
22282229
2229-
Inherited from: :class:`NodeGraphQt.NodeGraph`
2230+
.. inheritance-diagram:: NodeGraphQt.SubGraph
2231+
:top-classes: PySide2.QtCore.QObject
22302232
22312233
.. image:: _images/sub_graph.png
22322234
:width: 70%

NodeGraphQt/base/node.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class NodeObject(object):
1818
The ``NodeGraphQt.NodeObject`` class is the main base class that all
1919
nodes inherit from.
2020
21-
**Inherited by:**
22-
:class:`NodeGraphQt.BaseNode`,
23-
:class:`NodeGraphQt.BackdropNode`
21+
.. inheritance-diagram:: NodeGraphQt.NodeObject
2422
2523
Args:
2624
qgraphics_item (AbstractNodeItem): QGraphicsItem item used for drawing.

NodeGraphQt/base/port.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class Port(object):
1717
"""
1818
The ``Port`` class is used for connecting one node to another.
1919
20+
.. inheritance-diagram:: NodeGraphQt.Port
21+
2022
.. image:: ../_images/port.png
2123
:width: 50%
2224

NodeGraphQt/custom_widgets/nodes_palette.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ class NodesPaletteWidget(QtWidgets.QWidget):
168168
169169
| *Implemented on NodeGraphQt:* ``v0.1.7``
170170
171+
.. inheritance-diagram:: NodeGraphQt.NodesPaletteWidget
172+
:parts: 1
173+
171174
.. image:: _images/nodes_palette.png
172175
:width: 400px
173176

NodeGraphQt/custom_widgets/nodes_tree.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class NodesTreeWidget(QtWidgets.QTreeWidget):
2424
registered nodes from the node graph with this widget a user can create
2525
nodes by dragging and dropping.
2626
27+
.. inheritance-diagram:: NodeGraphQt.NodesTreeWidget
28+
:parts: 1
29+
:top-classes: PySide2.QtWidgets.QWidget
30+
2731
.. image:: _images/nodes_tree.png
2832
:width: 300px
2933

NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ class PropertiesBinWidget(QtWidgets.QWidget):
331331
The :class:`NodeGraphQt.PropertiesBinWidget` is a list widget for displaying
332332
and editing a nodes properties.
333333
334+
.. inheritance-diagram:: NodeGraphQt.PropertiesBinWidget
335+
:parts: 1
336+
334337
.. image:: _images/prop_bin.png
335338
:width: 950px
336339

NodeGraphQt/nodes/backdrop_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BackdropNode(NodeObject):
99
The ``NodeGraphQt.BackdropNode`` class allows other node object to be
1010
nested inside, it's mainly good for grouping nodes together.
1111
12-
**Inherited from:** :class:`NodeGraphQt.NodeObject`
12+
.. inheritance-diagram:: NodeGraphQt.BackdropNode
1313
1414
.. image:: ../_images/backdrop.png
1515
:width: 250px

NodeGraphQt/nodes/base_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BaseNode(NodeObject):
2020
The ``NodeGraphQt.BaseNode`` class is the base class for nodes that allows
2121
port connections from one node to another.
2222
23-
**Inherited from:** :class:`NodeGraphQt.NodeObject`
23+
.. inheritance-diagram:: NodeGraphQt.BaseNode
2424
2525
.. image:: ../_images/node.png
2626
:width: 250px

NodeGraphQt/nodes/base_node_circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BaseNodeCircle(BaseNode):
1010
The ``NodeGraphQt.BaseNodeCircle`` is pretty much the same class as the
1111
:class:`NodeGraphQt.BaseNode` except with a different design.
1212
13-
**Inherited from:** :class:`NodeGraphQt.BaseNode`
13+
.. inheritance-diagram:: NodeGraphQt.BaseNodeCircle
1414
1515
.. image:: ../_images/node_circle.png
1616
:width: 250px

NodeGraphQt/nodes/group_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class GroupNode(BaseNode):
1111
The ``NodeGraphQt.GroupNode`` class extends from the :class:``NodeGraphQt.BaseNode``
1212
class with the ability to nest other nodes inside of it.
1313
14-
**Inherited from:** :class:`NodeGraphQt.BaseNode`
14+
.. inheritance-diagram:: NodeGraphQt.GroupNode
1515
1616
.. image:: ../_images/group_node.png
1717
:width: 250px

0 commit comments

Comments
 (0)