diff --git a/README.md b/README.md index 00b53367..e7af1fe6 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing. - finished the Minimum Distance Tool in case of using it at the object level (not in Editors) - completed the Minimum Distance Tool by adding the usage in Editors - made the Minimum Distance Tool more precise for the Excellon Editor since in the Excellon Editor the holes shape are represented as a cross line but in reality they should be evaluated as circles +- small change in the UI layout for Check Rules Tool by adding a new rule (Check trace size) 29.09.2019 diff --git a/flatcamTools/ToolRulesCheck.py b/flatcamTools/ToolRulesCheck.py index 1dd1ca55..ec5470da 100644 --- a/flatcamTools/ToolRulesCheck.py +++ b/flatcamTools/ToolRulesCheck.py @@ -253,6 +253,23 @@ class RulesCheck(FlatCAMTool): self.form_layout_1.addRow(QtWidgets.QLabel("")) + # Trace size + self.trace_size_cb = FCCheckBox('%s:' % _("Trace Size")) + self.trace_size_cb.setToolTip( + _("This checks if the minimum size for traces is met.") + ) + self.form_layout_1.addRow(self.trace_size_cb) + + # Copper2copper clearance value + self.trace_size_entry = FCEntry() + self.trace_size_lbl = QtWidgets.QLabel('%s:' % _("Min value")) + self.trace_size_lbl.setToolTip( + _("Minimum acceptable clearance value.") + ) + self.form_layout_1.addRow(self.trace_size_lbl, self.trace_size_entry) + + self.ts = OptionalInputSection(self.trace_size_cb, [self.trace_size_lbl, self.trace_size_entry]) + # Copper2copper clearance self.clearance_copper2copper_cb = FCCheckBox('%s:' % _("Copper to copper clearance")) self.clearance_copper2copper_cb.setToolTip(