Skip to content

Commit

Permalink
Only show essential tool data in the tool table
Browse files Browse the repository at this point in the history
  • Loading branch information
dubstar-04 committed Sep 5, 2019
1 parent 12e92fe commit 3172baa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Mod/Path/PathScripts/PathToolLibraryManager.py
Expand Up @@ -334,7 +334,7 @@ def getTools(self, tablename):
return None

tt = self.getTableFromName(tablename)
headers = ["","Tool Num.","Name","Tool Type","Material","Diameter","Length Offset","Flat Radius","Corner Radius","Cutting Edge Angle","Cutting Edge Height"]
headers = ["","Tool Num.","Name","Tool Type","Diameter"]
model = QtGui.QStandardItemModel()
model.setHorizontalHeaderLabels(headers)

Expand All @@ -353,15 +353,9 @@ def unitconv(ivalue):
itemNumber = QtGui.QStandardItem(str(number))
itemName = QtGui.QStandardItem(t.Name)
itemToolType = QtGui.QStandardItem(t.ToolType)
itemMaterial = QtGui.QStandardItem(t.Material)
itemDiameter = QtGui.QStandardItem(unitconv(t.Diameter))
itemLengthOffset = QtGui.QStandardItem(unitconv(t.LengthOffset))
itemFlatRadius = QtGui.QStandardItem(unitconv(t.FlatRadius))
itemCornerRadius = QtGui.QStandardItem(unitconv(t.CornerRadius))
itemCuttingEdgeAngle = QtGui.QStandardItem(str(t.CuttingEdgeAngle))
itemCuttingEdgeHeight = QtGui.QStandardItem(unitconv(t.CuttingEdgeHeight))

row = [itemcheck, itemNumber, itemName, itemToolType, itemMaterial, itemDiameter, itemLengthOffset, itemFlatRadius, itemCornerRadius, itemCuttingEdgeAngle, itemCuttingEdgeHeight]
row = [itemcheck, itemNumber, itemName, itemToolType, itemDiameter]
model.appendRow(row)

return model
Expand Down

0 comments on commit 3172baa

Please sign in to comment.