Add build setting for story story structure comments
This commit is contained in:
@@ -629,7 +629,7 @@ class _DetailsWidget(QWidget):
|
||||
item.setText(1, "")
|
||||
self.listView.addTopLevelItem(item)
|
||||
for key in [
|
||||
"text.includeSynopsis", "text.includeComments",
|
||||
"text.includeSynopsis", "text.includeComments", "text.includeStory",
|
||||
"text.includeKeywords", "text.includeBodyText",
|
||||
]:
|
||||
sub = QTreeWidgetItem()
|
||||
|
||||
@@ -951,11 +951,13 @@ class _FormattingTab(NScrollableForm):
|
||||
self.incBodyText = NSwitch(self, height=iPx)
|
||||
self.incSynopsis = NSwitch(self, height=iPx)
|
||||
self.incComments = NSwitch(self, height=iPx)
|
||||
self.incStory = NSwitch(self, height=iPx)
|
||||
self.incKeywords = NSwitch(self, height=iPx)
|
||||
|
||||
self.addRow(self._build.getLabel("text.includeBodyText"), self.incBodyText)
|
||||
self.addRow(self._build.getLabel("text.includeSynopsis"), self.incSynopsis)
|
||||
self.addRow(self._build.getLabel("text.includeComments"), self.incComments)
|
||||
self.addRow(self._build.getLabel("text.includeStory"), self.incStory)
|
||||
self.addRow(self._build.getLabel("text.includeKeywords"), self.incKeywords)
|
||||
|
||||
# Ignored Keywords
|
||||
@@ -1264,6 +1266,7 @@ class _FormattingTab(NScrollableForm):
|
||||
self.incBodyText.setChecked(self._build.getBool("text.includeBodyText"))
|
||||
self.incSynopsis.setChecked(self._build.getBool("text.includeSynopsis"))
|
||||
self.incComments.setChecked(self._build.getBool("text.includeComments"))
|
||||
self.incStory.setChecked(self._build.getBool("text.includeStory"))
|
||||
self.incKeywords.setChecked(self._build.getBool("text.includeKeywords"))
|
||||
self.ignoredKeywords.setText(self._build.getStr("text.ignoredKeywords"))
|
||||
self.addNoteHead.setChecked(self._build.getBool("text.addNoteHeadings"))
|
||||
@@ -1362,6 +1365,7 @@ class _FormattingTab(NScrollableForm):
|
||||
self._build.setValue("text.includeBodyText", self.incBodyText.isChecked())
|
||||
self._build.setValue("text.includeSynopsis", self.incSynopsis.isChecked())
|
||||
self._build.setValue("text.includeComments", self.incComments.isChecked())
|
||||
self._build.setValue("text.includeStory", self.incStory.isChecked())
|
||||
self._build.setValue("text.includeKeywords", self.incKeywords.isChecked())
|
||||
self._build.setValue("text.ignoredKeywords", self.ignoredKeywords.text())
|
||||
self._build.setValue("text.addNoteHeadings", self.addNoteHead.isChecked())
|
||||
|
||||
Reference in New Issue
Block a user