Skip to content

Commit 233efb7

Browse files
committed
hotkey json config #254
1 parent ffcd74d commit 233efb7

File tree

2 files changed

+269
-1
lines changed

2 files changed

+269
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ build
2121
tests/*
2222

2323
*.egg-info
24-
*.json

examples/hotkeys/hotkeys.json

Lines changed: 269 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,269 @@
1+
[
2+
{
3+
"type":"menu",
4+
"label":"&File",
5+
"items":[
6+
{
7+
"type":"command",
8+
"label":"Open...",
9+
"file":"../examples/hotkeys/hotkey_functions.py",
10+
"function_name":"open_session",
11+
"shortcut":"QtGui.QKeySequence.Open"
12+
},
13+
{
14+
"type":"command",
15+
"label":"Import...",
16+
"file":"../examples/hotkeys/hotkey_functions.py",
17+
"function_name":"import_session",
18+
"shortcut":""
19+
},
20+
{
21+
"type":"command",
22+
"label":"Save...",
23+
"file":"../examples/hotkeys/hotkey_functions.py",
24+
"function_name":"save_session",
25+
"shortcut":"QtGui.QKeySequence.Save"
26+
},
27+
{
28+
"type":"command",
29+
"label":"Save As...",
30+
"file":"../examples/hotkeys/hotkey_functions.py",
31+
"function_name":"save_session_as",
32+
"shortcut":"Ctrl+Shift+S"
33+
}
34+
]
35+
},
36+
{
37+
"type":"menu",
38+
"label":"&Edit",
39+
"items":[
40+
{
41+
"type":"command",
42+
"label":"Clear Undo History",
43+
"file":"../examples/hotkeys/hotkey_functions.py",
44+
"function_name":"clear_undo",
45+
"shortcut":""
46+
},
47+
{
48+
"type":"command",
49+
"label":"Show Undo History",
50+
"file":"../examples/hotkeys/hotkey_functions.py",
51+
"function_name":"show_undo_view",
52+
"shortcut":""
53+
},
54+
{
55+
"type":"command",
56+
"label":"Copy",
57+
"file":"../examples/hotkeys/hotkey_functions.py",
58+
"function_name":"copy_nodes",
59+
"shortcut":"QtGui.QKeySequence.Copy"
60+
},
61+
{
62+
"type":"command",
63+
"label":"Cut",
64+
"file":"../examples/hotkeys/hotkey_functions.py",
65+
"function_name":"cut_nodes",
66+
"shortcut":"QtGui.QKeySequence.Cut"
67+
},
68+
{
69+
"type":"command",
70+
"label":"Paste",
71+
"file":"../examples/hotkeys/hotkey_functions.py",
72+
"function_name":"paste_nodes",
73+
"shortcut":"QtGui.QKeySequence.Paste"
74+
},
75+
{
76+
"type":"command",
77+
"label":"Delete",
78+
"file":"../examples/hotkeys/hotkey_functions.py",
79+
"function_name":"delete_nodes",
80+
"shortcut":"QtGui.QKeySequence.Delete"
81+
},
82+
{
83+
"type":"separator"
84+
},
85+
{
86+
"type":"command",
87+
"label":"Select All",
88+
"file":"../examples/hotkeys/hotkey_functions.py",
89+
"function_name":"select_all_nodes",
90+
"shortcut":"Ctrl+A"
91+
},
92+
{
93+
"type":"command",
94+
"label":"Unselect All",
95+
"file":"../examples/hotkeys/hotkey_functions.py",
96+
"function_name":"clear_node_selection",
97+
"shortcut":"Ctrl+Shift+A"
98+
},
99+
{
100+
"type":"command",
101+
"label":"Enable/Disable",
102+
"file":"../examples/hotkeys/hotkey_functions.py",
103+
"function_name":"disable_nodes",
104+
"shortcut":"D"
105+
},
106+
{
107+
"type":"command",
108+
"label":"Duplicate",
109+
"file":"../examples/hotkeys/hotkey_functions.py",
110+
"function_name":"duplicate_nodes",
111+
"shortcut":"Alt+C"
112+
},
113+
{
114+
"type":"command",
115+
"label":"Center Selection",
116+
"file":"../examples/hotkeys/hotkey_functions.py",
117+
"function_name":"fit_to_selection",
118+
"shortcut":"F"
119+
},
120+
{
121+
"type":"separator"
122+
},
123+
{
124+
"type":"command",
125+
"label":"Zoom In",
126+
"file":"../examples/hotkeys/hotkey_functions.py",
127+
"function_name":"zoom_in",
128+
"shortcut":"="
129+
},
130+
{
131+
"type":"command",
132+
"label":"Zoom Out",
133+
"file":"../examples/hotkeys/hotkey_functions.py",
134+
"function_name":"zoom_out",
135+
"shortcut":"-"
136+
},
137+
{
138+
"type":"command",
139+
"label":"Reset Zoom",
140+
"file":"../examples/hotkeys/hotkey_functions.py",
141+
"function_name":"reset_zoom",
142+
"shortcut":"H"
143+
}
144+
]
145+
},
146+
{
147+
"type":"separator"
148+
},
149+
{
150+
"type":"menu",
151+
"label":"&Graph",
152+
"items":[
153+
{
154+
"type":"menu",
155+
"label":"&Background",
156+
"items":[
157+
{
158+
"type":"command",
159+
"label":"None",
160+
"file":"../examples/hotkeys/hotkey_functions.py",
161+
"function_name":"bg_grid_none",
162+
"shortcut":"Alt+1"
163+
},
164+
{
165+
"type":"command",
166+
"label":"Lines",
167+
"file":"../examples/hotkeys/hotkey_functions.py",
168+
"function_name":"bg_grid_lines",
169+
"shortcut":"Alt+2"
170+
},
171+
{
172+
"type":"command",
173+
"label":"Dots",
174+
"file":"../examples/hotkeys/hotkey_functions.py",
175+
"function_name":"bg_grid_dots",
176+
"shortcut":"Alt+3"
177+
}
178+
]
179+
},
180+
{
181+
"type":"menu",
182+
"label":"&Layout",
183+
"items":[
184+
{
185+
"type":"command",
186+
"label":"Horizontal",
187+
"file":"../examples/hotkeys/hotkey_functions.py",
188+
"function_name":"layout_h_mode",
189+
"shortcut":"Shift+1"
190+
},
191+
{
192+
"type":"command",
193+
"label":"Vertical",
194+
"file":"../examples/hotkeys/hotkey_functions.py",
195+
"function_name":"layout_v_mode",
196+
"shortcut":"Shift+2"
197+
}
198+
]
199+
}
200+
]
201+
},
202+
{
203+
"type":"menu",
204+
"label":"&Nodes",
205+
"items":[
206+
{
207+
"type":"command",
208+
"label":"Node Search",
209+
"file":"../examples/hotkeys/hotkey_functions.py",
210+
"function_name":"toggle_node_search",
211+
"shortcut":"Tab"
212+
},
213+
{
214+
"type":"separator"
215+
},
216+
{
217+
"type":"command",
218+
"label":"Auto Layout Up Stream",
219+
"file":"../examples/hotkeys/hotkey_functions.py",
220+
"function_name":"layout_graph_up",
221+
"shortcut":"L"
222+
},
223+
{
224+
"type":"command",
225+
"label":"Auto Layout Down Stream",
226+
"file":"../examples/hotkeys/hotkey_functions.py",
227+
"function_name":"layout_graph_down",
228+
"shortcut":"Ctrl+L"
229+
},
230+
{
231+
"type":"separator"
232+
},
233+
{
234+
"type":"command",
235+
"label":"Expand Group Node",
236+
"file":"../examples/hotkeys/hotkey_functions.py",
237+
"function_name":"expand_group_node",
238+
"shortcut":"Alt+Enter"
239+
}
240+
]
241+
},
242+
{
243+
"type":"menu",
244+
"label":"&Pipes",
245+
"items":[
246+
{
247+
"type":"command",
248+
"label":"Curved",
249+
"file":"../examples/hotkeys/hotkey_functions.py",
250+
"function_name":"curved_pipe",
251+
"shortcut":""
252+
},
253+
{
254+
"type":"command",
255+
"label":"Straight",
256+
"file":"../examples/hotkeys/hotkey_functions.py",
257+
"function_name":"straight_pipe",
258+
"shortcut":""
259+
},
260+
{
261+
"type":"command",
262+
"label":"Angle",
263+
"file":"../examples/hotkeys/hotkey_functions.py",
264+
"function_name":"angle_pipe",
265+
"shortcut":""
266+
}
267+
]
268+
}
269+
]

0 commit comments

Comments
 (0)