- in Autolevelling Plugin, preventing the add of a probe point on Excellon hole checkbox is not disabled except for the Manual mode
- in Autolevelling Plugin, the status of soem checkoxes (avoid Excellon holes and plot points) is stored between app restarts - in Isolation Plugin, added an convenience shortcut button to launch the Milling Plugin.
This commit is contained in:
@@ -3964,6 +3964,9 @@ class IsoUI:
|
||||
# #############################################################################################################
|
||||
# Generate Geometry object
|
||||
# #############################################################################################################
|
||||
gen_hlay = QtWidgets.QHBoxLayout()
|
||||
self.tools_box.addLayout(gen_hlay)
|
||||
|
||||
self.generate_iso_button = FCButton("%s" % _("Generate Geometry"), bold=True)
|
||||
self.generate_iso_button.setIcon(QtGui.QIcon(self.app.resource_location + '/geometry32.png'))
|
||||
self.generate_iso_button.setToolTip(
|
||||
@@ -3977,7 +3980,15 @@ class IsoUI:
|
||||
"inside the actual Gerber feature, use a negative tool\n"
|
||||
"diameter above.")
|
||||
)
|
||||
self.tools_box.addWidget(self.generate_iso_button)
|
||||
gen_hlay.addWidget(self.generate_iso_button, stretch=1)
|
||||
|
||||
# Milling Plugin shortcut
|
||||
self.milling_button = QtWidgets.QToolButton()
|
||||
self.milling_button.setIcon(QtGui.QIcon(self.app.resource_location + '/milling_tool32.png'))
|
||||
self.milling_button.setToolTip(
|
||||
_("Generate a CNCJob by milling a Geometry.")
|
||||
)
|
||||
gen_hlay.addWidget(self.milling_button)
|
||||
|
||||
self.create_buffer_button = FCButton(_('Buffer Solid Geometry'))
|
||||
self.create_buffer_button.setToolTip(
|
||||
@@ -4000,6 +4011,8 @@ class IsoUI:
|
||||
# ############################ FINSIHED GUI ###################################
|
||||
# #############################################################################
|
||||
|
||||
self.milling_button.clicked.connect(lambda: self.app.milling_tool.run())
|
||||
|
||||
def confirmation_message(self, accepted, minval, maxval):
|
||||
if accepted is False:
|
||||
self.app.inform[str, bool].emit('[WARNING_NOTCL] %s: [%.*f, %.*f]' % (_("Edited value is out of range"),
|
||||
|
||||
Reference in New Issue
Block a user