Просмотр исходного кода

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

Marius Stanciu 7 лет назад
Родитель
Сommit
18fb7c2c1f
4 измененных файлов с 10 добавлено и 2 удалено
  1. 4 1
      FlatCAMApp.py
  2. 1 1
      FlatCAMGUI.py
  3. 4 0
      ObjectCollection.py
  4. 1 0
      README.md

+ 4 - 1
FlatCAMApp.py

@@ -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

+ 1 - 1
FlatCAMGUI.py

@@ -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')

+ 4 - 0
ObjectCollection.py

@@ -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()

+ 1 - 0
README.md

@@ -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