Commit 1ee8ce42 authored by sumpfralle's avatar sumpfralle

added keyboard shortcuts for view templates (3D visualization)

added help link for keyboard shortcuts


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@609 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 3721bac4
......@@ -344,7 +344,12 @@ class ModelViewWindowGL:
return chr(value)
else:
return None
if get_char(keyval) in ('i', 'm', 's'):
if get_char(keyval) and (get_char(keyval) in '1234567'):
names = ["reset", "front", "back", "left", "right", "top", "bottom"]
index = '1234567'.index(get_char(keyval))
self.rotate_view(view=VIEWS[names[index]])
self._paint_ignore_busy()
elif get_char(keyval) in ('i', 'm', 's'):
if (chr(keyval) == 'i'):
key = "view_light"
elif (chr(keyval) == 'm'):
......
......@@ -185,6 +185,7 @@ class ProjectGui:
("HelpGCodeExport", self.show_help, "GCodeExport", None),
("HelpSimulation", self.show_help, "Simulation", None),
("HelpCommandLine", self.show_help, "CommandLine", None),
("HelpHotkeys", self.show_help, "KeyboardShortcuts", None),
("ProjectWebsite", self.show_help, "http://sourceforge.net/projects/pycam", None),
("Forum", self.show_help, "http://sourceforge.net/projects/pycam/forums", None),
("BugTracker", self.show_help, "http://sourceforge.net/tracker/?group_id=237831&atid=1104176", None),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment