- activated the 'View Source' option in the project menu context menu for the Geometry objects

- in Image Import plugin now the created objects have the 'source_file' attribute with content
- working in the Excellon Editor - wip
This commit is contained in:
Marius Stanciu
2022-04-26 14:29:23 +03:00
committed by Marius
parent 060c52e47a
commit 779a8ccc9f
8 changed files with 392 additions and 79 deletions

View File

@@ -428,9 +428,8 @@ class ObjectCollection(QtCore.QAbstractItemModel):
if obj.kind == 'gerber' or obj.kind == 'excellon':
self.app.ui.menuprojectcolor.setEnabled(True)
if obj.kind != 'gerber' and obj.kind != 'excellon' and obj.kind != 'cncjob':
if obj.kind not in ['geometry', 'gerber', 'excellon', 'cncjob']:
self.app.ui.menuprojectviewsource.setVisible(False)
if obj.kind != 'gerber' and obj.kind != 'geometry' and obj.kind != 'excellon' and obj.kind != 'cncjob':
# meaning for Scripts and for Document type of FlatCAM object
self.app.ui.menuprojectenable.setVisible(False)
self.app.ui.menuprojectdisable.setVisible(False)