- minor changes in the Tool Transform and Tool Calculators UI to bring them up2date with the other tools

This commit is contained in:
Marius Stanciu
2020-02-13 21:22:21 +02:00
committed by Marius
parent 9417049eef
commit 8ff3248c25
3 changed files with 30 additions and 0 deletions

View File

@@ -242,6 +242,19 @@ class ToolCalculator(FlatCAMTool):
self.layout.addStretch()
# ## Reset Tool
self.reset_button = QtWidgets.QPushButton(_("Reset Tool"))
self.reset_button.setToolTip(
_("Will reset the tool parameters.")
)
self.reset_button.setStyleSheet("""
QPushButton
{
font-weight: bold;
}
""")
self.layout.addWidget(self.reset_button)
self.units = ''
# ## Signals
@@ -255,6 +268,7 @@ class ToolCalculator(FlatCAMTool):
self.inch_entry.editingFinished.connect(self.on_calculate_mm_units)
self.calculate_plate_button.clicked.connect(self.on_calculate_eplate)
self.reset_button.clicked.connect(self.set_tool_ui)
def run(self, toggle=True):
self.app.report_usage("ToolCalculators()")