- 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

@@ -94,7 +94,7 @@ class App(QtCore.QObject):
# Version
version = 8.910
version_date = "2019/02/22"
version_date = "2019/02/23"
beta = True
# current date now
@@ -158,9 +158,9 @@ class App(QtCore.QObject):
# Calls 'on_zoom_fit' method to fit object in scene view in main thread to prevent drawing glitches.
object_plotted = QtCore.pyqtSignal(object)
# Emitted when a new object has been added to the collection
# and is ready to be used.
new_object_available = QtCore.pyqtSignal(object)
# Emitted when a new object has been added or deleted from/to the collection
object_status_changed = QtCore.pyqtSignal(object, str)
message = QtCore.pyqtSignal(str, str, str)
# Emmited when shell command is finished(one command only)
@@ -2456,7 +2456,6 @@ class App(QtCore.QObject):
elif obj.kind == 'geometry':
self.inform.emit('[selected]%s created/selected: <span style="color:%s;">%s</span>' %
(obj.kind.capitalize(), 'red', str(obj.options['name'])))
# self.new_object_available.emit(obj)
# update the SHELL auto-completer model with the name of the new object
self.myKeywords.append(obj.options['name'])