Преглед изворни кода

- small change in the UI layout for Check Rules Tool by adding a new rule (Check trace size)

Marius Stanciu пре 6 година
родитељ
комит
35ca487122
2 измењених фајлова са 18 додато и 0 уклоњено
  1. 1 0
      README.md
  2. 17 0
      flatcamTools/ToolRulesCheck.py

+ 1 - 0
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)
 - 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
 - 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
 - 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
 29.09.2019
 
 

+ 17 - 0
flatcamTools/ToolRulesCheck.py

@@ -253,6 +253,23 @@ class RulesCheck(FlatCAMTool):
 
 
         self.form_layout_1.addRow(QtWidgets.QLabel(""))
         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
         # Copper2copper clearance
         self.clearance_copper2copper_cb = FCCheckBox('%s:' % _("Copper to copper clearance"))
         self.clearance_copper2copper_cb = FCCheckBox('%s:' % _("Copper to copper clearance"))
         self.clearance_copper2copper_cb.setToolTip(
         self.clearance_copper2copper_cb.setToolTip(