Added release notes from website

This commit is contained in:
Veronica K. B. Olsen
2020-11-23 13:05:53 +01:00
parent 41bbd7b259
commit 12c2d93968
4 changed files with 57 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# novelWriter ChangeLog
# novelWriter Change Log
## Version 1.0 Release Candidate 1 [2020-11-16]
+34
View File
@@ -0,0 +1,34 @@
<!DOCTYPE html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
<h2>Release 1.0 RC1</h2>
<p>This is the first release candidate for the upcoming release of novelWriter 1.0.</p>
<p>Since the fifth beta release about four weeks ago, not much has been changed in novelWriter. A
few minor tweaks have been made to the GUI. A number of features and tools are now automatically
switched off when there is no project or document open for those features to act upon. No serious
bugs have been reported or encountered, and I feel its time to move on to the release candidates.
Most of the minor changes should not be noticeable to most users. However, there are a couple of
noticeable changes.</p>
<h3>Typewriter Mode</h3>
<p>"Typewriter Mode" of the editor has been improved. Essentially, this feature is a sort of smart
scroll. It tries to keep the cursor stationary in the vertical direction, and will try to scroll
the document up when the cursor skips to a new line while typing (or down in case of backspace).
This is similar to the way a typewriter scrolls the paper when hitting the return key. It improves
the writing experience as the current active line will stay at the same eye height level on the
screen.</p>
<p>Previously, the feature would lock the cursor to a given vertical position defined by the user.
Now, instead, the cursor will remain stationary in the vertical direction at any position the user
sets it to by mouse click or keyboard navigation. The user can define a minimum distance from the
top where this feature is activated. It makes it more flexible. The feature can be controlled from
the main Preferences.</p>
<h3>Switching Syntax Theme</h3>
<p>It is now possible to switch syntax highlighting theme without restarting novelWriter.
Previously, changing the theme would only half-way update the document, header and footer
background and text colour. The new settings would not be applied until the application was shut
down and started again. This makes it a bit tedious to look through themes to find the one you
want. This issue has now been resolved.</p>
<p>Switching main GUI theme still requires a restart.</p>
<p><i>The full changelog is available
<a href="https://github.com/vkbo/novelWriter/blob/main/CHANGELOG.md">here</a>.</i></p>
</body>
</html>
+20
View File
@@ -84,10 +84,15 @@ class GuiAbout(QDialog):
self.pageLicense.setOpenExternalLinks(True)
self.pageLicense.document().setDocumentMargin(self.mainConf.pxInt(16))
self.pageNotes = QTextBrowser()
self.pageNotes.setOpenExternalLinks(True)
self.pageNotes.document().setDocumentMargin(self.mainConf.pxInt(16))
# Main Tab Area
self.tabBox = QTabWidget()
self.tabBox.addTab(self.pageAbout, "About")
self.tabBox.addTab(self.pageLicense, "License")
self.tabBox.addTab(self.pageNotes, "Release Notes")
self.innerBox.addWidget(self.tabBox)
# OK Button
@@ -101,6 +106,7 @@ class GuiAbout(QDialog):
self._setStyleSheet()
self._fillAboutPage()
self._fillLicensePage()
self._fillNotesPage()
logger.debug("GuiAbout initialisation complete")
@@ -205,6 +211,19 @@ class GuiAbout(QDialog):
self.pageLicense.setHtml("Error loading license text ...")
return
def _fillNotesPage(self):
"""Load the content for the Release Notes page.
"""
docName = "release_notes_%s.htm" % self.mainConf.guiLang
docPath = os.path.join(self.mainConf.assetPath, "text", docName)
if os.path.isfile(docPath):
with open(docPath, mode="r", encoding="utf8") as inFile:
helpText = inFile.read()
self.pageNotes.setHtml(helpText)
else:
self.pageNotes.setHtml("Error release notes text ...")
return
def _setStyleSheet(self):
"""Set stylesheet for all browser tabs
"""
@@ -222,6 +241,7 @@ class GuiAbout(QDialog):
)
self.pageAbout.document().setDefaultStyleSheet(styleSheet)
self.pageLicense.document().setDefaultStyleSheet(styleSheet)
self.pageNotes.document().setDefaultStyleSheet(styleSheet)
return
+2 -2
View File
@@ -598,8 +598,8 @@ class GuiMainMenu(QMenuBar):
# Insert > Separator
self.insertMenu.addSeparator()
# Insert > Keywords and Tags
self.mInsKeywords = self.insertMenu.addMenu("Keywords and Tags")
# Insert > Tags and References
self.mInsKeywords = self.insertMenu.addMenu("Tags and References")
self.mInsKWItems = {}
self.mInsKWItems[nwKeyWords.TAG_KEY] = (QAction(self.mInsKeywords), "Ctrl+K, G")
self.mInsKWItems[nwKeyWords.POV_KEY] = (QAction(self.mInsKeywords), "Ctrl+K, V")