- added shortcut key 'J' (jump to location) in Editors and added an icon to the dialog popup window

This commit is contained in:
Marius Stanciu
2019-02-15 00:23:29 +02:00
committed by Marius S
parent fffdd6db97
commit 098de7f030
4 changed files with 28 additions and 4 deletions

View File

@@ -1047,6 +1047,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
<td height="20"><strong>I</strong></td>
<td>&nbsp;Paint Tool</td>
</tr>
<tr height="20">
<td height="20"><strong>J</strong></td>
<td>&nbsp;Jump to Location (x, y)</td>
</tr>
<tr height="20">
<td height="20"><strong>K</strong></td>
<td>&nbsp;Toggle Corner Snap</td>
@@ -1068,7 +1072,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
<td>&nbsp;Draw a Path</td>
</tr>
<tr height="20">
<td height="20">R</td>
<td height="20"><strong>R</strong></td>
<td>&nbsp;Draw Rectangle</td>
</tr>
<tr height="20">
@@ -1134,6 +1138,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
<td height="20"><strong>D</strong></td>
<td>&nbsp;Add Drill</td>
</tr>
<tr height="20">
<td height="20"><strong>J</strong></td>
<td>&nbsp;Jump to Location (x, y)</td>
</tr>
<tr height="20">
<td height="20"><strong>M</strong></td>
<td>&nbsp;Move Drill(s)</td>
@@ -1940,6 +1948,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
if key == QtCore.Qt.Key_I or key == 'I':
self.app.geo_editor.select_tool('paint')
# Jump to coords
if key == QtCore.Qt.Key_J or key == 'J':
self.app.on_jump_to()
# Corner Snap
if key == QtCore.Qt.Key_K or key == 'K':
self.app.geo_editor.on_corner_snap()
@@ -2162,6 +2174,10 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.app.ui.grid_snap_btn.trigger()
return
# Jump to coords
if key == QtCore.Qt.Key_J or key == 'J':
self.app.on_jump_to()
# Corner Snap
if key == QtCore.Qt.Key_K or key == 'K':
self.app.exc_editor.launched_from_shortcuts = True