- added the ability of context menu inside the GuiElements.FCCombobox() object.

- remade the UI for ToolSolderPaste. The object comboboxes now have context menu's that allow object deletion. Also the last object created is set as current item in comboboxes.
This commit is contained in:
Marius Stanciu
2019-02-23 03:38:39 +02:00
committed by Marius S
parent a67e31bda3
commit 21f970204e
5 changed files with 242 additions and 74 deletions

View File

@@ -686,6 +686,8 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.app.should_we_save = True
self.app.object_status_changed.emit(obj, 'append')
# decide if to show or hide the Notebook side of the screen
if self.app.defaults["global_project_autohide"] is True:
# always open the notebook on object added to collection
@@ -761,6 +763,9 @@ class ObjectCollection(QtCore.QAbstractItemModel):
active = selections[0].internalPointer()
group = active.parent_item
# send signal with the object that is deleted
# self.app.object_status_changed.emit(active.obj, 'delete')
# update the SHELL auto-completer model data
name = active.obj.options['name']
try: