- Geometry UI - moved the UI for polishing from Isolation Tool to Geometry UI (actually in the future Milling Tool) where it belongs
This commit is contained in:
@@ -3170,79 +3170,6 @@ class IsoUI:
|
||||
self.exc_obj_combo
|
||||
])
|
||||
|
||||
# Add Polish
|
||||
self.polish_cb = FCCheckBox(label=_('Add Polish'))
|
||||
self.polish_cb.setToolTip(_(
|
||||
"Will add a Paint section at the end of the GCode.\n"
|
||||
"It will clean the material after milling."))
|
||||
self.polish_cb.setObjectName("i_polish")
|
||||
self.grid3.addWidget(self.polish_cb, 29, 0, 1, 2)
|
||||
|
||||
# Polish Tool Diameter
|
||||
self.polish_dia_lbl = QtWidgets.QLabel('%s:' % _('Tool Dia'))
|
||||
self.polish_dia_lbl.setToolTip(
|
||||
_("Diameter for the polishing tool.")
|
||||
)
|
||||
self.polish_dia_entry = FCDoubleSpinner(callback=self.confirmation_message)
|
||||
self.polish_dia_entry.set_precision(self.decimals)
|
||||
self.polish_dia_entry.set_range(0.000, 9999.9999)
|
||||
self.polish_dia_entry.setObjectName("i_polish_dia")
|
||||
|
||||
self.grid3.addWidget(self.polish_dia_lbl, 30, 0)
|
||||
self.grid3.addWidget(self.polish_dia_entry, 30, 1)
|
||||
|
||||
# Polish Overlap
|
||||
self.polish_over_lbl = QtWidgets.QLabel('%s:' % _('Overlap'))
|
||||
self.polish_over_lbl.setToolTip(
|
||||
_("How much (percentage) of the tool width to overlap each tool pass.")
|
||||
)
|
||||
self.polish_over_entry = FCDoubleSpinner(suffix='%', callback=self.confirmation_message)
|
||||
self.polish_over_entry.set_precision(self.decimals)
|
||||
self.polish_over_entry.setWrapping(True)
|
||||
self.polish_over_entry.set_range(0.0000, 99.9999)
|
||||
self.polish_over_entry.setSingleStep(0.1)
|
||||
self.polish_over_entry.setObjectName("i_polish_overlap")
|
||||
|
||||
self.grid3.addWidget(self.polish_over_lbl, 31, 0)
|
||||
self.grid3.addWidget(self.polish_over_entry, 31, 1)
|
||||
|
||||
# Polish Method
|
||||
self.polish_method_lbl = QtWidgets.QLabel('%s:' % _('Method'))
|
||||
self.polish_method_lbl.setToolTip(
|
||||
_("Algorithm for polishing:\n"
|
||||
"- Standard: Fixed step inwards.\n"
|
||||
"- Seed-based: Outwards from seed.\n"
|
||||
"- Line-based: Parallel lines.")
|
||||
)
|
||||
|
||||
self.polish_method_combo = FCComboBox()
|
||||
self.polish_method_combo.addItems(
|
||||
[_("Standard"), _("Seed"), _("Lines")]
|
||||
)
|
||||
self.polish_method_combo.setObjectName('i_polish_method')
|
||||
|
||||
self.grid3.addWidget(self.polish_method_lbl, 32, 0)
|
||||
self.grid3.addWidget(self.polish_method_combo, 32, 1)
|
||||
|
||||
self.polish_dia_lbl.hide()
|
||||
self.polish_dia_entry.hide()
|
||||
self.polish_over_lbl.hide()
|
||||
self.polish_over_entry.hide()
|
||||
self.polish_method_lbl.hide()
|
||||
self.polish_method_combo.hide()
|
||||
|
||||
self.ois_polish = OptionalHideInputSection(
|
||||
self.polish_cb,
|
||||
[
|
||||
self.polish_dia_lbl,
|
||||
self.polish_dia_entry,
|
||||
self.polish_over_lbl,
|
||||
self.polish_over_entry,
|
||||
self.polish_method_lbl,
|
||||
self.polish_method_combo
|
||||
]
|
||||
)
|
||||
|
||||
# Isolation Scope
|
||||
self.select_label = QtWidgets.QLabel('%s:' % _("Selection"))
|
||||
self.select_label.setToolTip(
|
||||
|
||||
Reference in New Issue
Block a user