- updated all the FlatCAM Tools and the Gerber UI FCComboBoxes to update the box value with the latest object loaded in the App
- some fixes in the NCC Tool - modified some strings
This commit is contained in:
@@ -72,7 +72,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.copper_t_object = FCComboBox()
|
||||
self.copper_t_object.setModel(self.app.collection)
|
||||
self.copper_t_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.copper_t_object.set_last = True
|
||||
self.copper_t_object.is_last = True
|
||||
self.copper_t_object.obj_type = "Gerber"
|
||||
|
||||
self.copper_t_object_lbl = QtWidgets.QLabel('%s:' % _("Top"))
|
||||
self.copper_t_object_lbl.setToolTip(
|
||||
@@ -89,7 +90,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.copper_b_object = FCComboBox()
|
||||
self.copper_b_object.setModel(self.app.collection)
|
||||
self.copper_b_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.copper_b_object.set_last = True
|
||||
self.copper_b_object.is_last = True
|
||||
self.copper_b_object.obj_type = "Gerber"
|
||||
|
||||
self.copper_b_object_lbl = QtWidgets.QLabel('%s:' % _("Bottom"))
|
||||
self.copper_b_object_lbl.setToolTip(
|
||||
@@ -106,7 +108,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.sm_t_object = FCComboBox()
|
||||
self.sm_t_object.setModel(self.app.collection)
|
||||
self.sm_t_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.sm_t_object.set_last = True
|
||||
self.sm_t_object.is_last = True
|
||||
self.sm_t_object.obj_type = "Gerber"
|
||||
|
||||
self.sm_t_object_lbl = QtWidgets.QLabel('%s:' % _("SM Top"))
|
||||
self.sm_t_object_lbl.setToolTip(
|
||||
@@ -123,7 +126,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.sm_b_object = FCComboBox()
|
||||
self.sm_b_object.setModel(self.app.collection)
|
||||
self.sm_b_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.sm_b_object.set_last = True
|
||||
self.sm_b_object.is_last = True
|
||||
self.sm_b_object.obj_type = "Gerber"
|
||||
|
||||
self.sm_b_object_lbl = QtWidgets.QLabel('%s:' % _("SM Bottom"))
|
||||
self.sm_b_object_lbl.setToolTip(
|
||||
@@ -140,7 +144,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.ss_t_object = FCComboBox()
|
||||
self.ss_t_object.setModel(self.app.collection)
|
||||
self.ss_t_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.ss_t_object.set_last = True
|
||||
self.ss_t_object.is_last = True
|
||||
self.ss_t_object.obj_type = "Gerber"
|
||||
|
||||
self.ss_t_object_lbl = QtWidgets.QLabel('%s:' % _("Silk Top"))
|
||||
self.ss_t_object_lbl.setToolTip(
|
||||
@@ -157,7 +162,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.ss_b_object = FCComboBox()
|
||||
self.ss_b_object.setModel(self.app.collection)
|
||||
self.ss_b_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.ss_b_object.set_last = True
|
||||
self.ss_b_object.is_last = True
|
||||
self.ss_b_object.obj_type = "Gerber"
|
||||
|
||||
self.ss_b_object_lbl = QtWidgets.QLabel('%s:' % _("Silk Bottom"))
|
||||
self.ss_b_object_lbl.setToolTip(
|
||||
@@ -174,7 +180,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.outline_object = FCComboBox()
|
||||
self.outline_object.setModel(self.app.collection)
|
||||
self.outline_object.setRootModelIndex(self.app.collection.index(0, 0, QtCore.QModelIndex()))
|
||||
self.outline_object.set_last = True
|
||||
self.outline_object.is_last = True
|
||||
self.outline_object.obj_type = "Gerber"
|
||||
|
||||
self.outline_object_lbl = QtWidgets.QLabel('%s:' % _("Outline"))
|
||||
self.outline_object_lbl.setToolTip(
|
||||
@@ -200,7 +207,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.e1_object = FCComboBox()
|
||||
self.e1_object.setModel(self.app.collection)
|
||||
self.e1_object.setRootModelIndex(self.app.collection.index(1, 0, QtCore.QModelIndex()))
|
||||
self.e1_object.set_last = True
|
||||
self.e1_object.is_last = True
|
||||
self.e1_object.obj_type = "Excellon"
|
||||
|
||||
self.e1_object_lbl = QtWidgets.QLabel('%s:' % _("Excellon 1"))
|
||||
self.e1_object_lbl.setToolTip(
|
||||
@@ -218,7 +226,8 @@ class RulesCheck(FlatCAMTool):
|
||||
self.e2_object = FCComboBox()
|
||||
self.e2_object.setModel(self.app.collection)
|
||||
self.e2_object.setRootModelIndex(self.app.collection.index(1, 0, QtCore.QModelIndex()))
|
||||
self.e2_object.set_last = True
|
||||
self.e2_object.is_last = True
|
||||
self.e2_object.obj_type = "Excellon"
|
||||
|
||||
self.e2_object_lbl = QtWidgets.QLabel('%s:' % _("Excellon 2"))
|
||||
self.e2_object_lbl.setToolTip(
|
||||
|
||||
Reference in New Issue
Block a user