Add a summary entry to the insert menu (#1619)
This commit is contained in:
@@ -834,6 +834,10 @@ class GuiDocEditor(QPlainTextEdit):
|
||||
text = "% Synopsis: "
|
||||
newBlock = True
|
||||
goAfter = True
|
||||
elif insert == nwDocInsert.SUMMARY:
|
||||
text = "% Summary: "
|
||||
newBlock = True
|
||||
goAfter = True
|
||||
elif insert == nwDocInsert.NEW_PAGE:
|
||||
text = "[newpage]"
|
||||
newBlock = True
|
||||
|
||||
@@ -564,6 +564,13 @@ class GuiMainMenu(QMenuBar):
|
||||
lambda: self.requestDocInsert.emit(nwDocInsert.SYNOPSIS)
|
||||
)
|
||||
|
||||
# Insert > Summary Comment
|
||||
self.aInsSynopsis = self.mInsComments.addAction(self.tr("Summary Comment"))
|
||||
self.aInsSynopsis.setShortcut("Ctrl+K, U")
|
||||
self.aInsSynopsis.triggered.connect(
|
||||
lambda: self.requestDocInsert.emit(nwDocInsert.SUMMARY)
|
||||
)
|
||||
|
||||
# Insert > Symbols
|
||||
self.mInsBreaks = self.insMenu.addMenu(self.tr("Page Break and Space"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user