- added all the tools from Gerber Editor to the the contextual menu

- added the menu entry "Edit" in the Project contextual menu for Gerber objects
This commit is contained in:
Marius Stanciu
2019-08-13 16:15:01 +03:00
committed by Marius
parent 3e339630e6
commit 13a29a229d
4 changed files with 63 additions and 2 deletions

View File

@@ -318,7 +318,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
for obj in self.get_selected():
if type(obj) != FlatCAMGeometry:
self.app.ui.menuprojectgeneratecnc.setVisible(False)
if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon:
if type(obj) != FlatCAMGeometry and type(obj) != FlatCAMExcellon and type(obj) != FlatCAMGerber:
self.app.ui.menuprojectedit.setVisible(False)
if type(obj) != FlatCAMGerber and type(obj) != FlatCAMExcellon:
self.app.ui.menuprojectviewsource.setVisible(False)