Update docs and add menu entries for special titles (#850)
* Update Introduction chapter * Update User Interface chapter * Update Novel Projects chapter * Update Novel Structure chapter * Update Exporting Projects chapter * Drop the asterisk notation for unnumbered chapters * Add menu entries and tests for Novel Title and Unnumbered Chapter block formats
This commit is contained in:
committed by
GitHub
parent
669f013c96
commit
460b350d85
@@ -849,6 +849,21 @@ class GuiMainMenu(QMenuBar):
|
||||
# Format > Separator
|
||||
self.fmtMenu.addSeparator()
|
||||
|
||||
# Format > Novel Title
|
||||
self.aFmtTitle = QAction(self.tr("Novel Title"), self)
|
||||
self.aFmtTitle.setStatusTip(self.tr("Change the block format to Novel Title"))
|
||||
self.aFmtTitle.triggered.connect(lambda: self._docAction(nwDocAction.BLOCK_TTL))
|
||||
self.fmtMenu.addAction(self.aFmtTitle)
|
||||
|
||||
# Format > Unnumbered Chapter
|
||||
self.aFmtUnNum = QAction(self.tr("Unnumbered Chapter"), self)
|
||||
self.aFmtUnNum.setStatusTip(self.tr("Change the block format to Unnumbered Chapter"))
|
||||
self.aFmtUnNum.triggered.connect(lambda: self._docAction(nwDocAction.BLOCK_UNN))
|
||||
self.fmtMenu.addAction(self.aFmtUnNum)
|
||||
|
||||
# Format > Separator
|
||||
self.fmtMenu.addSeparator()
|
||||
|
||||
# Format > Align Left
|
||||
self.aFmtAlignLeft = QAction(self.tr("Align Left"), self)
|
||||
self.aFmtAlignLeft.setStatusTip(self.tr("Change the block alignment to left"))
|
||||
|
||||
Reference in New Issue
Block a user