Skip to content

Commit 0e68001

Browse files
committed
updated docs and clean up
1 parent 7bebbaf commit 0e68001

File tree

15 files changed

+118
-51
lines changed

15 files changed

+118
-51
lines changed

NodeGraphQt/base/graph_actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ def _expand_group_node(graph):
230230
Expand selected group node.
231231
"""
232232
selected_nodes = graph.selected_nodes()
233-
if len(selected_nodes) > 1:
234-
graph.message_dialog('Please select a single "GroupNode" to expand.')
233+
if not selected_nodes:
234+
graph.message_dialog('Please select a "GroupNode" to expand.')
235235
return
236236
graph.expand_group_node(selected_nodes[0])
237237

420 KB
Loading

docs/examples/ex_menu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Menu Examples
1+
Menu Overview
22
#############
33

44
Examples for customizing context menus in NodeGraphQt.

docs/examples/ex_node.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Node Examples
1+
Node Overview
22
#############
33

44
Creating Nodes
@@ -77,7 +77,7 @@ To you update the widget you can call the :meth:`NodeGraphQt.NodeObject.set_prop
7777
- ``QCheckBox``: :meth:`NodeGraphQt.BaseNode.add_checkbox`
7878
- ``QLineEdit``: :meth:`NodeGraphQt.BaseNode.add_text_input`
7979

80-
See: :ref:`Node Embedded Widgets` for more node widget types.
80+
See: :ref:`Embedded Node Widgets` for more node widget types.
8181

8282
Embedding Custom Widgets
8383
************************

docs/examples/ex_overview.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Basic Overview
2-
##############
1+
General Overview
2+
################
33

44
User interface overview for the node graph.
55

@@ -54,8 +54,8 @@ Connection pipes can be disconnected easily with the built in slice tool.
5454
+---------------------+----------------------------+
5555

5656

57-
Simple Example
58-
**************
57+
Getting Started
58+
***************
5959

6060
Here's a basic example snippet for creating two nodes and connecting them together.
6161

docs/examples/ex_pipe.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Pipe Examples
1+
Pipe Overview
22
#############
33

4-
Example Pipe Layouts
5-
********************
4+
Pipe Layouts
5+
************
66

77
.. image:: ../_images/pipe_layout_types.gif
88
:width: 650px

docs/examples/ex_port.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Port Examples
1+
Port Overview
22
#############
33

44
Creating Custom Shapes

docs/graph.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Graphs
44
NodeGraph
55
*********
66

7-
`See` :ref:`Simple Example` `from the NodeGraph overview.`
7+
`See` :ref:`Getting Started` `from the overview section.`
88

99
----
1010

docs/host_apps/_index_apps.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Host Application Examples
2+
#########################
3+
4+
| Examples for implementing the NodeGraphQt framework in a host application.
5+
6+
.. toctree::
7+
:caption: Applications
8+
:name: appstoc
9+
:maxdepth: 2
10+
11+
ex_app_nuke
12+
ex_app_silhouette
13+

docs/examples/ex_app_nuke.rst renamed to docs/host_apps/ex_app_nuke.rst

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
NodeGraphQt in Nuke
2-
###################
1+
Nuke
2+
####
33

4-
Creating a custom node graph panel in NUKE
4+
Creating a node graph widget in Nuke.
55

66
.. image:: ../_images/app_nuke_example.png
77
:width: 800px
88

9-
Here is an example where the :attr:`NodeGraph.widget` can be registered as a
10-
panel in the compositing application NUKE.
11-
12-
---
9+
| Here is an example where the :attr:`NodeGraph.widget` can be registered as a
10+
panel in the compositing application NUKE.
1311
1412
.. code-block:: python
1513
:linenos:
@@ -22,9 +20,6 @@ panel in the compositing application NUKE.
2220
2321
# create a simple test node class.
2422
class TestNode(BaseNode):
25-
"""
26-
Simple test node object.
27-
"""
2823
2924
__identifier__ = 'nodes.nuke'
3025
NODE_NAME = 'test node'
@@ -59,9 +54,6 @@ panel in the compositing application NUKE.
5954
6055
# create the wrapper widget.
6156
class CustomNodeGraph(QtWidgets.QWidget):
62-
"""
63-
Custom node graph widget to be registered as a panel in Nuke.
64-
"""
6557
6658
def __init__(self, parent=None):
6759
super(CustomNodeGraph, self).__init__(parent)

0 commit comments

Comments
 (0)