- in Excellon Editor, finished th upgrade work on the Slot Array Plugin

This commit is contained in:
Marius Stanciu
2022-04-30 16:34:22 +03:00
committed by Marius
parent 092451038e
commit 753b6c6d5d
9 changed files with 464 additions and 595 deletions

View File

@@ -4043,15 +4043,15 @@ class MainGUI(QtWidgets.QMainWindow):
if self.app.exc_editor.active_tool.name == 'drill_add' \
and self.app.exc_editor.active_tool.drill_tool.length != 0.0:
pass
elif self.app.exc_editor.active_tool.name == 'drill_array' \
and self.app.exc_editor.active_tool.darray_tool.length != 0.0:
pass
# elif self.app.exc_editor.active_tool.name == 'drill_array' \
# and self.app.exc_editor.active_tool.darray_tool.length != 0.0:
# pass
elif self.app.exc_editor.active_tool.name == 'slot_add' \
and self.app.exc_editor.active_tool.slot_tool.length != 0.0 :
pass
elif self.app.exc_editor.active_tool.name == 'slot_array' \
and self.app.exc_editor.active_tool.sarray_tool.length != 0.0:
pass
# elif self.app.exc_editor.active_tool.name == 'slot_array' \
# and self.app.exc_editor.active_tool.sarray_tool.length != 0.0:
# pass
elif self.app.exc_editor.active_tool.name == 'move' \
and self.app.exc_editor.active_tool.move_tool.length != 0.0 \
and self.app.exc_editor.active_tool.move_tool.width != 0.0:

View File

@@ -249,7 +249,7 @@ class ExcellonEditorPrefGroupUI(OptionsGroupUI):
self.drill_array_size_label.setToolTip(
_("Specify how many slots to be in the array.")
)
# self.slot_array_size_label.setMinimumWidth(100)
# self.array_size_label.setMinimumWidth(100)
self.slot_array_size_entry = FCSpinner()
self.slot_array_size_entry.set_range(0, 999999)