Merge branch 'release' into dev
This commit is contained in:
@@ -2,9 +2,9 @@ name: flake8
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
checkSyntax:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Linux (3.6)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testLinux36:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Linux (3.7)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testLinux37:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Linux (3.8)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testLinux38:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Linux (3.9)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testLinux39:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: macOS (3.8)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testMac38:
|
||||
|
||||
@@ -2,9 +2,9 @@ name: Windows (3.8)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
pull_request:
|
||||
branches: [ main, dev ]
|
||||
branches: [ main, dev, release ]
|
||||
|
||||
jobs:
|
||||
testWin38:
|
||||
|
||||
@@ -344,6 +344,7 @@ Most features are available as keyboard shortcuts. These are as follows:
|
||||
":kbd:`Alt`:kbd:`1`", "Switch focus to the project tree."
|
||||
":kbd:`Alt`:kbd:`2`", "Switch focus to document editor."
|
||||
":kbd:`Alt`:kbd:`3`", "Switch focus to document viewer."
|
||||
":kbd:`Alt`:kbd:`4`", "Switch focus to outline view."
|
||||
":kbd:`Alt`:kbd:`Left`", "Move backward in the view history of the document viewer."
|
||||
":kbd:`Alt`:kbd:`Right`", "Move forward in the view history of the document viewer."
|
||||
":kbd:`Ctrl`:kbd:`.`", "Open menu to correct word under cursor."
|
||||
|
||||
+2
-1
@@ -641,8 +641,9 @@ class GuiBuildNovel(QDialog):
|
||||
bldObj.setColourHeaders(not noStyling)
|
||||
bldObj.initDocument()
|
||||
|
||||
# Make sure the tree order is correct
|
||||
# Make sure the project and document is up to date
|
||||
self.theParent.treeView.flushTreeOrder()
|
||||
self.theParent.saveDocument()
|
||||
|
||||
self.buildProgress.setMaximum(len(self.theProject.projTree))
|
||||
self.buildProgress.setValue(0)
|
||||
|
||||
@@ -468,6 +468,13 @@ class GuiMainMenu(QMenuBar):
|
||||
self.aFocusView.triggered.connect(lambda: self.theParent.setFocus(3))
|
||||
self.viewMenu.addAction(self.aFocusView)
|
||||
|
||||
# View > Outline
|
||||
self.aFocusOutline = QAction("Focus Outline", self)
|
||||
self.aFocusOutline.setStatusTip("Move focus to outline")
|
||||
self.aFocusOutline.setShortcut("Alt+4")
|
||||
self.aFocusOutline.triggered.connect(lambda: self.theParent.setFocus(4))
|
||||
self.viewMenu.addAction(self.aFocusOutline)
|
||||
|
||||
# View > Separator
|
||||
self.viewMenu.addSeparator()
|
||||
|
||||
|
||||
+6
-1
@@ -1128,14 +1128,19 @@ class GuiMain(QMainWindow):
|
||||
return True
|
||||
|
||||
def setFocus(self, paneNo):
|
||||
"""Switch focus to one of the three main GUI panes.
|
||||
"""Switch focus between main GUI views.
|
||||
"""
|
||||
if paneNo == 1:
|
||||
self.treeView.setFocus()
|
||||
elif paneNo == 2:
|
||||
self.mainTabs.setCurrentWidget(self.splitDocs)
|
||||
self.docEditor.setFocus()
|
||||
elif paneNo == 3:
|
||||
self.mainTabs.setCurrentWidget(self.splitDocs)
|
||||
self.docViewer.setFocus()
|
||||
elif paneNo == 4:
|
||||
self.mainTabs.setCurrentWidget(self.splitOutline)
|
||||
self.projView.setFocus()
|
||||
return
|
||||
|
||||
def closeDocEditor(self):
|
||||
|
||||
Reference in New Issue
Block a user