File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
Menu Overview
2
2
#############
3
3
4
- Examples for customizing context menus in NodeGraphQt.
4
+ .. currentmodule :: NodeGraphQt
5
+
6
+ | Examples for customizing context menus in NodeGraphQt.
5
7
6
8
Default Context Menu
7
9
********************
8
10
9
- The ``NodeGraphQt.NodeGraph `` has a default context menu with a few essential
10
- menu commands built when initialized it can be accessed with the
11
- :meth: `NodeGraph.context_menu ` function.
11
+ The ``NodeGraphQt.NodeGraph `` has a context menu can be accessed with
12
+ :meth: `NodeGraph.context_menu `.
13
+
14
+
15
+ It can also be populated it with a config file in ``JSON `` format by using
16
+ :meth: `NodeGraph.set_context_menu_from_file `.
12
17
13
18
.. image :: ../_images/menu_hotkeys.png
14
19
:width: 300px
15
20
21
+ | Here's a link to the example config file with a few essential menu commands.
22
+ | https://github.com/jchanvfx/NodeGraphQt/blob/master/examples/hotkeys/hotkeys.json
23
+
16
24
Adding to the Graph Menu
17
25
************************
18
26
@@ -49,7 +57,7 @@ Adding to the Nodes Menu
49
57
Aside from the main context menu, the NodeGraph also has a nodes menu where you
50
58
can override context menus on a per node type basis.
51
59
52
- Below is an example for overriding a context menu for the node type ``"com.chantasticvfx.FooNode" ``
60
+ | Below is an example for overriding a context menu for the node type ``"com.chantasticvfx.FooNode"``
53
61
54
62
.. code-block :: python
55
63
:linenos:
Original file line number Diff line number Diff line change 3
3
4
4
.. currentmodule :: NodeGraphQt
5
5
6
+ .. seealso ::
7
+
8
+ Context menus can also be set from a config file or a dictionary with:
9
+ :meth: `NodeGraph.set_context_menu_from_file `, :meth: `NodeGraph.set_context_menu `
10
+
11
+
6
12
Graph Menu
7
13
**********
8
14
9
- The context menu triggered from the node graph.
15
+ | The context menu triggered from the node graph.
10
16
11
17
.. autoclass :: NodeGraphMenu
12
18
:members:
@@ -16,7 +22,7 @@ The context menu triggered from the node graph.
16
22
Nodes Menu
17
23
**********
18
24
19
- The context menu triggered from a node.
25
+ | The context menu triggered from a node.
20
26
21
27
.. autoclass :: NodesMenu
22
28
:members:
You can’t perform that action at this time.
0 commit comments