- Tool Drilling - working on the UI

- Tool Drilling - added more tool parameters; laying the ground for adding "Drilling Slots" feature
This commit is contained in:
Marius Stanciu
2020-07-08 15:51:03 +03:00
committed by Marius
parent f0fba5ccd1
commit 6edd7f051a
8 changed files with 152 additions and 28 deletions

View File

@@ -67,6 +67,9 @@ class FlatCAMObj(QtCore.QObject):
# View
self.ui = None
# set True by the collection.append() when the object load is complete
self.load_complete = None
self.options = LoudDict(name=name)
self.options.set_change_callback(self.on_options_change)

View File

@@ -570,6 +570,8 @@ class ObjectCollection(QtCore.QAbstractItemModel):
obj.options["name"] = name
obj.set_ui(obj.ui_type(app=self.app))
# a way to signal that the object was fully loaded
obj.load_complete = True
# Required before appending (Qt MVC)
group = self.group_items[obj.kind]