Add status column to outline
This commit is contained in:
@@ -318,6 +318,7 @@ class GuiOutlineTree(QTreeWidget):
|
||||
nwOutline.LEVEL: 40,
|
||||
nwOutline.LABEL: 150,
|
||||
nwOutline.LINE: 40,
|
||||
nwOutline.STATUS: 100,
|
||||
nwOutline.CCOUNT: 50,
|
||||
nwOutline.WCOUNT: 50,
|
||||
nwOutline.PCOUNT: 50,
|
||||
@@ -340,6 +341,7 @@ class GuiOutlineTree(QTreeWidget):
|
||||
nwOutline.LEVEL: True,
|
||||
nwOutline.LABEL: False,
|
||||
nwOutline.LINE: True,
|
||||
nwOutline.STATUS: True,
|
||||
nwOutline.CCOUNT: True,
|
||||
nwOutline.WCOUNT: False,
|
||||
nwOutline.PCOUNT: False,
|
||||
@@ -691,6 +693,7 @@ class GuiOutlineTree(QTreeWidget):
|
||||
nwItem = SHARED.project.tree[tHandle]
|
||||
if iLevel == 0 or nwItem is None:
|
||||
continue
|
||||
sLabel, sIcon = nwItem.getImportStatus()
|
||||
|
||||
item = QTreeWidgetItem()
|
||||
hDec = SHARED.theme.getHeaderDecoration(iLevel)
|
||||
@@ -704,6 +707,8 @@ class GuiOutlineTree(QTreeWidget):
|
||||
item.setIcon(self._colIdx[nwOutline.LABEL], self._dIcon[nwItem.mainHeading])
|
||||
item.setText(self._colIdx[nwOutline.LABEL], nwItem.itemName)
|
||||
item.setText(self._colIdx[nwOutline.LINE], f"{novIdx.line:n}")
|
||||
item.setText(self._colIdx[nwOutline.STATUS], sLabel)
|
||||
item.setIcon(self._colIdx[nwOutline.STATUS], sIcon)
|
||||
item.setText(self._colIdx[nwOutline.SYNOP], novIdx.synopsis)
|
||||
item.setText(self._colIdx[nwOutline.CCOUNT], f"{novIdx.charCount:n}")
|
||||
item.setText(self._colIdx[nwOutline.WCOUNT], f"{novIdx.wordCount:n}")
|
||||
|
||||
Reference in New Issue
Block a user