- finished adding in Geometry Editor a TreeWidget with the geometry shapes found in the edited object
This commit is contained in:
@@ -3444,6 +3444,13 @@ class App(QtCore.QObject):
|
||||
self.inform.emit('[WARNING] %s' %
|
||||
_("Object empty after edit."))
|
||||
log.debug("App.editor2object() --> Geometry --> %s" % str(e))
|
||||
|
||||
# restore GUI to the Selected TAB
|
||||
# Remove anything else in the GUI
|
||||
self.ui.tool_scroll_area.takeWidget()
|
||||
# Switch notebook to Selected page
|
||||
self.ui.notebook.setCurrentWidget(self.ui.selected_tab)
|
||||
|
||||
elif isinstance(edited_obj, FlatCAMGerber):
|
||||
obj_type = "Gerber"
|
||||
if cleanup is None:
|
||||
@@ -3494,8 +3501,7 @@ class App(QtCore.QObject):
|
||||
_("Select a Gerber, Geometry or Excellon Object to update."))
|
||||
return
|
||||
|
||||
self.inform.emit('[selected] %s %s' %
|
||||
(obj_type, _("is updated, returning to App...")))
|
||||
self.inform.emit('[selected] %s %s' % (obj_type, _("is updated, returning to App...")))
|
||||
elif response == bt_no:
|
||||
# clean the Tools Tab
|
||||
self.ui.tool_scroll_area.takeWidget()
|
||||
@@ -3514,6 +3520,7 @@ class App(QtCore.QObject):
|
||||
_("Select a Gerber, Geometry or Excellon Object to update."))
|
||||
return
|
||||
edited_obj.set_ui(edited_obj.ui_type(decimals=self.decimals))
|
||||
edited_obj.build_ui()
|
||||
self.ui.notebook.setCurrentWidget(self.ui.selected_tab)
|
||||
elif response == bt_cancel:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user