- in Gerber and Excellon UI added buttons to start the Editor

- in all Editors Selected Tab added a button to Exit the Editor
This commit is contained in:
Marius Stanciu
2020-07-10 05:03:54 +03:00
parent 0dee41e03c
commit 24192540d7
7 changed files with 83 additions and 2 deletions

View File

@@ -311,6 +311,19 @@ class GerberObjectUI(ObjectUI):
)
self.custom_box.addWidget(self.create_buffer_button)
# Editor
self.editor_button = QtWidgets.QPushButton(_('Gerber Editor'))
self.editor_button.setToolTip(
_("Edit an Gerber object.")
)
self.editor_button.setStyleSheet("""
QPushButton
{
font-weight: bold;
}
""")
self.custom_box.addWidget(self.editor_button)
separator_line = QtWidgets.QFrame()
separator_line.setFrameShape(QtWidgets.QFrame.HLine)
separator_line.setFrameShadow(QtWidgets.QFrame.Sunken)
@@ -584,6 +597,19 @@ class ExcellonObjectUI(ObjectUI):
# this column is not used; reserved for future usage
self.tools_table.setColumnHidden(4, True)
# Editor
self.editor_button = QtWidgets.QPushButton(_('Excellon Editor'))
self.editor_button.setToolTip(
_("Edit an Excellon object.")
)
self.editor_button.setStyleSheet("""
QPushButton
{
font-weight: bold;
}
""")
self.tools_box.addWidget(self.editor_button)
# #################################################################
# ########## TOOLS GRID ###########################################
# #################################################################