- finished the Objects menu by adding the ability of actions to be checked so they will show the selected status of the objects and by adding to actions to (de)select all objects

- fixed and optimized the click selection on canvas
- fixed Gerber parsing for very simple Gerber files that have only one Polygon but many LPC zones
This commit is contained in:
Marius Stanciu
2019-10-19 00:29:29 +03:00
committed by Marius
parent 7eca6085be
commit b058f65108
6 changed files with 127 additions and 102 deletions

View File

@@ -724,6 +724,16 @@ class ObjectCollection(QtCore.QAbstractItemModel):
log.error("[ERROR] Cause: %s" % str(e))
raise
def set_all_active(self):
"""
Select all objects from the project list. This triggers the
list_selection_changed event and call on_list_selection_changed.
:return: None
"""
for name in self.get_names():
self.set_active(name)
def set_exclusive_active(self, name):
"""
Make the object with the name in parameters the only selected object