- a small change in the Excellon UI
This commit is contained in:
parent
5ffa9b6470
commit
24e01ad518
|
@ -14,6 +14,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- updated/optimized the GUI in Preferences for Paint Tool and for NCC Tool
|
- updated/optimized the GUI in Preferences for Paint Tool and for NCC Tool
|
||||||
- work in Paint Tool to bring it up to date with NCC Tool
|
- work in Paint Tool to bring it up to date with NCC Tool
|
||||||
- updated the GUI in preferences for Calculator Tool
|
- updated the GUI in preferences for Calculator Tool
|
||||||
|
- a small change in the Excellon UI
|
||||||
|
|
||||||
15.01.2020
|
15.01.2020
|
||||||
|
|
||||||
|
|
|
@ -1050,6 +1050,16 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
self.excellon_gcode_type_radio.setVisible(False)
|
self.excellon_gcode_type_radio.setVisible(False)
|
||||||
gcode_type_label.hide()
|
gcode_type_label.hide()
|
||||||
|
|
||||||
|
warning_lbl = QtWidgets.QLabel(
|
||||||
|
_(
|
||||||
|
"Add / Select at least one tool in the tool-table.\n"
|
||||||
|
"Click the header to select all, or Ctrl + LMB\n"
|
||||||
|
"for custom selection of tools."
|
||||||
|
))
|
||||||
|
|
||||||
|
grid2.addWidget(QtWidgets.QLabel(''), 2, 0, 1, 3)
|
||||||
|
grid2.addWidget(warning_lbl, 3, 0, 1, 3)
|
||||||
|
|
||||||
self.generate_cnc_button = QtWidgets.QPushButton(_('Create Drills GCode'))
|
self.generate_cnc_button = QtWidgets.QPushButton(_('Create Drills GCode'))
|
||||||
self.generate_cnc_button.setToolTip(
|
self.generate_cnc_button.setToolTip(
|
||||||
_("Generate the CNC Job.")
|
_("Generate the CNC Job.")
|
||||||
|
@ -1060,7 +1070,7 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
grid2.addWidget(self.generate_cnc_button, 2, 0, 1, 3)
|
grid2.addWidget(self.generate_cnc_button, 4, 0, 1, 3)
|
||||||
|
|
||||||
# ### Milling Holes Drills ####
|
# ### Milling Holes Drills ####
|
||||||
self.mill_hole_label = QtWidgets.QLabel('<b>%s</b>' % _('Mill Holes'))
|
self.mill_hole_label = QtWidgets.QLabel('<b>%s</b>' % _('Mill Holes'))
|
||||||
|
@ -1069,7 +1079,7 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
"Select from the Tools Table above the hole dias to be\n"
|
"Select from the Tools Table above the hole dias to be\n"
|
||||||
"milled. Use the # column to make the selection.")
|
"milled. Use the # column to make the selection.")
|
||||||
)
|
)
|
||||||
grid2.addWidget(self.mill_hole_label, 3, 0, 1, 3)
|
grid2.addWidget(self.mill_hole_label, 5, 0, 1, 3)
|
||||||
|
|
||||||
self.tdlabel = QtWidgets.QLabel('%s:' % _('Drill Tool dia'))
|
self.tdlabel = QtWidgets.QLabel('%s:' % _('Drill Tool dia'))
|
||||||
self.tdlabel.setToolTip(
|
self.tdlabel.setToolTip(
|
||||||
|
@ -1092,9 +1102,9 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
|
|
||||||
grid2.addWidget(self.tdlabel, 4, 0)
|
grid2.addWidget(self.tdlabel, 6, 0)
|
||||||
grid2.addWidget(self.tooldia_entry, 4, 1)
|
grid2.addWidget(self.tooldia_entry, 6, 1)
|
||||||
grid2.addWidget(self.generate_milling_button, 4, 2)
|
grid2.addWidget(self.generate_milling_button, 6, 2)
|
||||||
|
|
||||||
self.stdlabel = QtWidgets.QLabel('%s:' % _('Slot Tool dia'))
|
self.stdlabel = QtWidgets.QLabel('%s:' % _('Slot Tool dia'))
|
||||||
self.stdlabel.setToolTip(
|
self.stdlabel.setToolTip(
|
||||||
|
@ -1119,9 +1129,9 @@ class ExcellonObjectUI(ObjectUI):
|
||||||
}
|
}
|
||||||
""")
|
""")
|
||||||
|
|
||||||
grid2.addWidget(self.stdlabel, 5, 0)
|
grid2.addWidget(self.stdlabel, 7, 0)
|
||||||
grid2.addWidget(self.slot_tooldia_entry, 5, 1)
|
grid2.addWidget(self.slot_tooldia_entry, 7, 1)
|
||||||
grid2.addWidget(self.generate_milling_slots_button, 5, 2)
|
grid2.addWidget(self.generate_milling_slots_button, 7, 2)
|
||||||
|
|
||||||
def hide_drills(self, state=True):
|
def hide_drills(self, state=True):
|
||||||
if state is True:
|
if state is True:
|
||||||
|
@ -1697,7 +1707,7 @@ class GeometryObjectUI(ObjectUI):
|
||||||
|
|
||||||
warning_lbl = QtWidgets.QLabel(
|
warning_lbl = QtWidgets.QLabel(
|
||||||
_(
|
_(
|
||||||
"Add at least one tool in the tool-table.\n"
|
"Add / Select at least one tool in the tool-table.\n"
|
||||||
"Click the header to select all, or Ctrl + LMB\n"
|
"Click the header to select all, or Ctrl + LMB\n"
|
||||||
"for custom selection of tools."
|
"for custom selection of tools."
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue