- added shortcut key 'L' for creating 'New Excellon'

This commit is contained in:
Marius Stanciu 2019-01-27 05:50:41 +02:00 committed by Marius S
parent 4f7b2bbb34
commit 18fb7c2c1f
4 changed files with 10 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class App(QtCore.QObject):
# Version
version = 8.905
version_date = "2019/01/26"
version_date = "2019/01/28"
beta = True
# URL for update checks and statistics
@ -3716,6 +3716,9 @@ class App(QtCore.QObject):
if event.key == 'J':
self.on_jump_to()
if event.key == 'L':
self.new_excellon_object()
if event.key == 'M':
self.move_tool.toggle()
return

View File

@ -155,7 +155,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
### Edit ###
self.menuedit = self.menu.addMenu('&Edit')
self.menueditnew = self.menuedit.addAction(QtGui.QIcon('share/new_geo16.png'), '&New Geometry\tN')
self.menueditnewexc = self.menuedit.addAction(QtGui.QIcon('share/new_geo16.png'), 'New Excellon\tX')
self.menueditnewexc = self.menuedit.addAction(QtGui.QIcon('share/new_geo16.png'), 'New Excellon\tL')
# Separator
self.menuedit.addSeparator()
self.menueditedit = self.menuedit.addAction(QtGui.QIcon('share/edit16.png'), 'Edit Object\tE')

View File

@ -376,6 +376,10 @@ class ObjectCollection(QtCore.QAbstractItemModel):
if key == QtCore.Qt.Key_J:
self.app.on_jump_to()
# New Excellon
if key == QtCore.Qt.Key_L:
self.app.new_excellon_object()
# Move tool toggle
if key == QtCore.Qt.Key_M:
self.app.move_tool.toggle()

View File

@ -15,6 +15,7 @@ CAD program, and create G-Code for Isolation routing.
- reorganized the Edit -> Preferences -> Global
- redesigned the messagebox that is showed when quiting ot creating a New Project: now it has an option ('Cancel') to abort the process returning to the app
- added options for trace segmentation that can be useful for auto-levelling (code snippet from Lei Zheng from a rejected pull request on FlatCAM https://bitbucket.org/realthunder/ )
- added shortcut key 'L' for creating 'New Excellon'
26.01.2019