From 7e7f6a30be8f679b3748180f61fd9a020110b6db Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 17:48:59 +0100
Subject: [PATCH 1/7] Some minor changes to the about dialog
---
nw/gui/mainmenu.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py
index bf20c126..e2f5775d 100644
--- a/nw/gui/mainmenu.py
+++ b/nw/gui/mainmenu.py
@@ -110,7 +110,7 @@ class GuiMainMenu(QMenuBar):
"
About {name:s}
"
"Version: {version:s}
Release Date: {date:s}
"
"{name:s} is a markdown-like text editor designed for organising and writing novels. "
- "It is written in Python 3 with a Qt5 GUI. The Python and Qt layers are connected with PyQt5
"
+ "It is written in Python 3 with a Qt5 GUI, using PyQt5"
"{name:s} is licensed under GPL v3.0
"
"{copyright:s}
"
"Website: {website:s}
"
@@ -129,11 +129,11 @@ class GuiMainMenu(QMenuBar):
aboutMsg += "GUI Theme and Syntax Highlighting
"
aboutMsg += ""
if theTheme.themeCredit != "":
- aboutMsg += "%s%s by %s
" % (
+ aboutMsg += "%s\"%s\" by %s
" % (
listPrefix, theTheme.themeName, theTheme.themeCredit
)
if theTheme.syntaxCredit != "":
- aboutMsg += "%s%s by %s
" % (
+ aboutMsg += "%s\"%s\" by %s
" % (
listPrefix, theTheme.syntaxName, theTheme.syntaxCredit
)
aboutMsg += "
"
From e2b8ce1f89340dd8bde1ebdc40634cd5af69c040 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 17:53:13 +0100
Subject: [PATCH 2/7] Disable the Ctrl+Enter shortcuts again
---
nw/gui/doceditor.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py
index 1d0c35ac..1e0039c5 100644
--- a/nw/gui/doceditor.py
+++ b/nw/gui/doceditor.py
@@ -81,8 +81,8 @@ class GuiDocEditor(QTextEdit):
# Custom Shortcuts
QShortcut(QKeySequence("Ctrl+."), self, context=Qt.WidgetShortcut, activated=self._openSpellContext)
- QShortcut(Qt.Key_Return | Qt.ControlModifier, self, context=Qt.WidgetShortcut, activated=self._insertHardBreak)
- QShortcut(Qt.Key_Enter | Qt.ControlModifier, self, context=Qt.WidgetShortcut, activated=self._insertHardBreak)
+ # QShortcut(Qt.Key_Return | Qt.ControlModifier, self, context=Qt.WidgetShortcut, activated=self._insertHardBreak)
+ # QShortcut(Qt.Key_Enter | Qt.ControlModifier, self, context=Qt.WidgetShortcut, activated=self._insertHardBreak)
# Set Up Word Count Thread and Timer
self.wcInterval = self.mainConf.wordCountTimer
From 9fb28281f3959a040ba1fa27abb3c6437b69eb72 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 18:38:16 +0100
Subject: [PATCH 3/7] Added the option to show tabs and spaces and line
endings.
---
nw/config.py | 38 +++++++++++---------
nw/gui/configeditor.py | 79 +++++++++++++++++++++++++++---------------
nw/gui/doceditor.py | 9 ++++-
3 files changed, 82 insertions(+), 44 deletions(-)
diff --git a/nw/config.py b/nw/config.py
index e07852c6..bf865b91 100644
--- a/nw/config.py
+++ b/nw/config.py
@@ -86,6 +86,8 @@ class Config:
self.doReplaceDash = True
self.doReplaceDots = True
self.wordCountTimer = 5.0
+ self.showTabsNSpaces = False
+ self.showLineEndings = False
self.fmtSingleQuotes = [nwUnicode.U_LSQUO,nwUnicode.U_RSQUO]
self.fmtDoubleQuotes = [nwUnicode.U_LDQUO,nwUnicode.U_RDQUO]
@@ -233,6 +235,8 @@ class Config:
self.fmtSingleQuotes = self._parseLine(cnfParse, cnfSec, "fmtsinglequote", self.CNF_LIST, self.fmtSingleQuotes)
self.fmtDoubleQuotes = self._parseLine(cnfParse, cnfSec, "fmtdoublequote", self.CNF_LIST, self.fmtDoubleQuotes)
self.spellLanguage = self._parseLine(cnfParse, cnfSec, "spellcheck", self.CNF_STR, self.spellLanguage)
+ self.showTabsNSpaces = self._parseLine(cnfParse, cnfSec, "showtabsnspaces", self.CNF_BOOL, self.showTabsNSpaces)
+ self.showLineEndings = self._parseLine(cnfParse, cnfSec, "showlineendings", self.CNF_BOOL, self.showLineEndings)
## Backup
cnfSec = "Backup"
@@ -282,22 +286,24 @@ class Config:
## Editor
cnfSec = "Editor"
cnfParse.add_section(cnfSec)
- cnfParse.set(cnfSec,"textfont", str(self.textFont))
- cnfParse.set(cnfSec,"textsize", str(self.textSize))
- cnfParse.set(cnfSec,"fixedwidth", str(self.textFixedW))
- cnfParse.set(cnfSec,"width", str(self.textWidth))
- cnfParse.set(cnfSec,"margin", str(self.textMargin))
- cnfParse.set(cnfSec,"tabwidth", str(self.tabWidth))
- cnfParse.set(cnfSec,"justify", str(self.doJustify))
- cnfParse.set(cnfSec,"autoselect", str(self.autoSelect))
- cnfParse.set(cnfSec,"autoreplace", str(self.doReplace))
- cnfParse.set(cnfSec,"repsquotes", str(self.doReplaceSQuote))
- cnfParse.set(cnfSec,"repdquotes", str(self.doReplaceDQuote))
- cnfParse.set(cnfSec,"repdash", str(self.doReplaceDash))
- cnfParse.set(cnfSec,"repdots", str(self.doReplaceDots))
- cnfParse.set(cnfSec,"fmtsinglequote",self._packList(self.fmtSingleQuotes))
- cnfParse.set(cnfSec,"fmtdoublequote",self._packList(self.fmtDoubleQuotes))
- cnfParse.set(cnfSec,"spellcheck", str(self.spellLanguage))
+ cnfParse.set(cnfSec,"textfont", str(self.textFont))
+ cnfParse.set(cnfSec,"textsize", str(self.textSize))
+ cnfParse.set(cnfSec,"fixedwidth", str(self.textFixedW))
+ cnfParse.set(cnfSec,"width", str(self.textWidth))
+ cnfParse.set(cnfSec,"margin", str(self.textMargin))
+ cnfParse.set(cnfSec,"tabwidth", str(self.tabWidth))
+ cnfParse.set(cnfSec,"justify", str(self.doJustify))
+ cnfParse.set(cnfSec,"autoselect", str(self.autoSelect))
+ cnfParse.set(cnfSec,"autoreplace", str(self.doReplace))
+ cnfParse.set(cnfSec,"repsquotes", str(self.doReplaceSQuote))
+ cnfParse.set(cnfSec,"repdquotes", str(self.doReplaceDQuote))
+ cnfParse.set(cnfSec,"repdash", str(self.doReplaceDash))
+ cnfParse.set(cnfSec,"repdots", str(self.doReplaceDots))
+ cnfParse.set(cnfSec,"fmtsinglequote", self._packList(self.fmtSingleQuotes))
+ cnfParse.set(cnfSec,"fmtdoublequote", self._packList(self.fmtDoubleQuotes))
+ cnfParse.set(cnfSec,"spellcheck", str(self.spellLanguage))
+ cnfParse.set(cnfSec,"showtabsnspaces", str(self.showTabsNSpaces))
+ cnfParse.set(cnfSec,"showlineendings", str(self.showLineEndings))
## Backup
cnfSec = "Backup"
diff --git a/nw/gui/configeditor.py b/nw/gui/configeditor.py
index 30f600fb..3eb75c5c 100644
--- a/nw/gui/configeditor.py
+++ b/nw/gui/configeditor.py
@@ -200,27 +200,25 @@ class GuiConfigEditGeneral(QWidget):
self.projBackupGetPath = QPushButton(self.theTheme.getIcon("folder"),"")
self.projBackupGetPath.clicked.connect(self._backupFolder)
- self.projBackupClose = QCheckBox(self)
+ self.projBackupClose = QCheckBox("Run on close",self)
self.projBackupClose.setToolTip("Backup automatically on project close.")
if self.mainConf.backupOnClose:
self.projBackupClose.setCheckState(Qt.Checked)
else:
self.projBackupClose.setCheckState(Qt.Unchecked)
- self.projBackupAsk = QCheckBox(self)
+ self.projBackupAsk = QCheckBox("Ask before backup",self)
self.projBackupAsk.setToolTip("Ask before backup.")
if self.mainConf.askBeforeBackup:
self.projBackupAsk.setCheckState(Qt.Checked)
else:
self.projBackupAsk.setCheckState(Qt.Unchecked)
- self.projBackupForm.addWidget(QLabel("Backup Folder"), 0, 0)
- self.projBackupForm.addWidget(self.projBackupPath, 0, 1, 1, 3)
- self.projBackupForm.addWidget(self.projBackupGetPath, 0, 4)
- self.projBackupForm.addWidget(QLabel("Run on Close"), 1, 0)
- self.projBackupForm.addWidget(self.projBackupClose, 1, 1)
- self.projBackupForm.addWidget(QLabel("Ask Before Backuo"), 1, 2)
- self.projBackupForm.addWidget(self.projBackupAsk, 1, 3)
+ self.projBackupForm.addWidget(QLabel("Backup folder"), 0, 0)
+ self.projBackupForm.addWidget(self.projBackupPath, 0, 1)
+ self.projBackupForm.addWidget(self.projBackupGetPath, 0, 2)
+ self.projBackupForm.addWidget(self.projBackupClose, 1, 0)
+ self.projBackupForm.addWidget(self.projBackupAsk, 1, 1, 1, 2)
# Assemble
self.outerBox.addWidget(self.guiLook, 0, 0)
@@ -311,7 +309,7 @@ class GuiConfigEditEditor(QWidget):
self.textStyleSize.setSingleStep(1)
self.textStyleSize.setValue(self.mainConf.textSize)
- self.textStyleForm.addWidget(QLabel("Font Family"), 0, 0)
+ self.textStyleForm.addWidget(QLabel("Font family"), 0, 0)
self.textStyleForm.addWidget(self.textStyleFont, 0, 1)
self.textStyleForm.addWidget(QLabel("Size"), 0, 2)
self.textStyleForm.addWidget(self.textStyleSize, 0, 3)
@@ -322,7 +320,7 @@ class GuiConfigEditEditor(QWidget):
self.textFlowForm = QGridLayout(self)
self.textFlow.setLayout(self.textFlowForm)
- self.textFlowFixed = QCheckBox(self)
+ self.textFlowFixed = QCheckBox("Fixed width",self)
self.textFlowFixed.setToolTip("Make text in editor fixed width and scale margins instead.")
if self.mainConf.textFixedW:
self.textFlowFixed.setCheckState(Qt.Checked)
@@ -334,19 +332,17 @@ class GuiConfigEditEditor(QWidget):
self.textFlowWidth.setSingleStep(10)
self.textFlowWidth.setValue(self.mainConf.textWidth)
- self.textFlowJustify = QCheckBox(self)
+ self.textFlowJustify = QCheckBox("Justify text",self)
self.textFlowJustify.setToolTip("Justify text in main document editor.")
if self.mainConf.doJustify:
self.textFlowJustify.setCheckState(Qt.Checked)
else:
self.textFlowJustify.setCheckState(Qt.Unchecked)
- self.textFlowForm.addWidget(QLabel("Fixed Width"), 0, 0)
- self.textFlowForm.addWidget(self.textFlowFixed, 0, 1)
- self.textFlowForm.addWidget(self.textFlowWidth, 0, 2)
- self.textFlowForm.addWidget(QLabel("px"), 0, 3)
- self.textFlowForm.addWidget(QLabel("Justify Text"), 1, 0)
- self.textFlowForm.addWidget(self.textFlowJustify, 1, 1)
+ self.textFlowForm.addWidget(self.textFlowFixed, 0, 0)
+ self.textFlowForm.addWidget(self.textFlowWidth, 0, 1)
+ self.textFlowForm.addWidget(QLabel("px"), 0, 2)
+ self.textFlowForm.addWidget(self.textFlowJustify, 1, 0)
self.textFlowForm.setColumnStretch(4, 1)
# Text Margins
@@ -365,11 +361,12 @@ class GuiConfigEditEditor(QWidget):
self.textMarginTab.setMaximum(200)
self.textMarginTab.setSingleStep(1)
self.textMarginTab.setValue(self.mainConf.tabWidth)
+ self.textMarginTab.setToolTip("Requires Qt 5.9 or later.")
self.textMarginForm.addWidget(QLabel("Document"), 0, 0)
self.textMarginForm.addWidget(self.textMarginDoc, 0, 1)
self.textMarginForm.addWidget(QLabel("px"), 0, 2)
- self.textMarginForm.addWidget(QLabel("Tab Width"), 2, 0)
+ self.textMarginForm.addWidget(QLabel("Tab width"), 2, 0)
self.textMarginForm.addWidget(self.textMarginTab, 2, 1)
self.textMarginForm.addWidget(QLabel("px"), 2, 2)
self.textMarginForm.setColumnStretch(4, 1)
@@ -421,19 +418,20 @@ class GuiConfigEditEditor(QWidget):
else:
self.autoReplaceDots.setCheckState(Qt.Unchecked)
- self.autoReplaceForm.addWidget(QLabel("Auto-Select Text"), 0, 0)
+ self.autoReplaceForm.addWidget(QLabel("Auto-select text"), 0, 0)
self.autoReplaceForm.addWidget(self.autoSelect, 0, 1)
- self.autoReplaceForm.addWidget(QLabel("Auto-Replace:"), 1, 0)
+ self.autoReplaceForm.addWidget(QLabel("Auto-replace:"), 1, 0)
self.autoReplaceForm.addWidget(self.autoReplaceMain, 1, 1)
- self.autoReplaceForm.addWidget(QLabel("\u2192 Single Quotes"), 2, 0)
+ self.autoReplaceForm.addWidget(QLabel("\u2192 Single quotes"), 2, 0)
self.autoReplaceForm.addWidget(self.autoReplaceSQ, 2, 1)
- self.autoReplaceForm.addWidget(QLabel("\u2192 Double Quotes"), 3, 0)
+ self.autoReplaceForm.addWidget(QLabel("\u2192 Double quotes"), 3, 0)
self.autoReplaceForm.addWidget(self.autoReplaceDQ, 3, 1)
- self.autoReplaceForm.addWidget(QLabel("\u2192 Hyphens with Dash"), 4, 0)
+ self.autoReplaceForm.addWidget(QLabel("\u2192 Hyphens with dash"), 4, 0)
self.autoReplaceForm.addWidget(self.autoReplaceDash, 4, 1)
- self.autoReplaceForm.addWidget(QLabel("\u2192 Dots with Ellipsis"), 5, 0)
+ self.autoReplaceForm.addWidget(QLabel("\u2192 Dots with ellipsis"), 5, 0)
self.autoReplaceForm.addWidget(self.autoReplaceDots, 5, 1)
self.autoReplaceForm.setColumnStretch(2, 1)
+ self.autoReplaceForm.setRowStretch(6, 1)
# Quote Style
self.quoteStyle = QGroupBox("Quotation Style", self)
@@ -477,12 +475,33 @@ class GuiConfigEditEditor(QWidget):
self.quoteStyleForm.setColumnStretch(4, 1)
self.quoteStyleForm.setRowStretch(4, 1)
+ # Writing Guides
+ self.showGuides = QGroupBox("Writing Guides", self)
+ self.showGuidesForm = QGridLayout(self)
+ self.showGuides.setLayout(self.showGuidesForm)
+
+ self.showTabsNSpaces = QCheckBox("Show tabs and spaces",self)
+ if self.mainConf.showTabsNSpaces:
+ self.showTabsNSpaces.setCheckState(Qt.Checked)
+ else:
+ self.showTabsNSpaces.setCheckState(Qt.Unchecked)
+
+ self.showLineEndings = QCheckBox("Show line endings",self)
+ if self.mainConf.showTabsNSpaces:
+ self.showLineEndings.setCheckState(Qt.Checked)
+ else:
+ self.showLineEndings.setCheckState(Qt.Unchecked)
+
+ self.showGuidesForm.addWidget(self.showTabsNSpaces, 0, 0)
+ self.showGuidesForm.addWidget(self.showLineEndings, 1, 0)
+
# Assemble
self.outerBox.addWidget(self.textStyle, 0, 0, 1, 2)
self.outerBox.addWidget(self.textFlow, 1, 0)
self.outerBox.addWidget(self.textMargin, 1, 1)
- self.outerBox.addWidget(self.autoReplace, 2, 0)
- self.outerBox.addWidget(self.quoteStyle, 2, 1)
+ self.outerBox.addWidget(self.quoteStyle, 2, 0)
+ self.outerBox.addWidget(self.autoReplace, 2, 1, 2, 1)
+ self.outerBox.addWidget(self.showGuides, 3, 0)
self.outerBox.setColumnStretch(2, 1)
self.setLayout(self.outerBox)
@@ -555,6 +574,12 @@ class GuiConfigEditEditor(QWidget):
self.theParent.makeAlert("Invalid quote symbol: %s" % fmtDoubleQuotesC, nwAlert.ERROR)
validEntries = False
+ showTabsNSpaces = self.showTabsNSpaces.isChecked()
+ showLineEndings = self.showLineEndings.isChecked()
+
+ self.mainConf.showTabsNSpaces = showTabsNSpaces
+ self.mainConf.showLineEndings = showLineEndings
+
self.mainConf.confChanged = True
return validEntries, False
diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py
index 1e0039c5..44238fc5 100644
--- a/nw/gui/doceditor.py
+++ b/nw/gui/doceditor.py
@@ -126,7 +126,7 @@ class GuiDocEditor(QTextEdit):
# Reload dictionaries
self.setDictionaries()
- # Set Font
+ # Set font
theFont = QFont()
if self.mainConf.textFont is None:
# If none is defined, set the default back to config
@@ -145,13 +145,20 @@ class GuiDocEditor(QTextEdit):
# Also set the document text options for the document text flow
theOpt = QTextOption()
+
if self.mainConf.tabWidth is not None:
if self.mainConf.verQtValue >= 51000:
theOpt.setTabStopDistance(self.mainConf.tabWidth)
if self.mainConf.doJustify:
theOpt.setAlignment(Qt.AlignJustify)
+ if self.mainConf.showTabsNSpaces:
+ theOpt.setFlags(theOpt.flags() | QTextOption.ShowTabsAndSpaces)
+ if self.mainConf.showLineEndings:
+ theOpt.setFlags(theOpt.flags() | QTextOption.ShowLineAndParagraphSeparators)
+
self.qDocument.setDefaultTextOption(theOpt)
+ # Initialise the syntax highlighter
self.hLight.initHighlighter()
# If we have a document open, we should reload it in case the font changed
From b0ec7b89296c6e222fa7c529a9097a64d4b1b8b8 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 19:04:26 +0100
Subject: [PATCH 4/7] A bit more tweaking of the config GUI
---
nw/gui/configeditor.py | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/nw/gui/configeditor.py b/nw/gui/configeditor.py
index 3eb75c5c..9c82a2ea 100644
--- a/nw/gui/configeditor.py
+++ b/nw/gui/configeditor.py
@@ -147,6 +147,7 @@ class GuiConfigEditGeneral(QWidget):
self.guiLookForm.addWidget(self.guiLookTheme, 0, 1)
self.guiLookForm.addWidget(QLabel("Syntax"), 1, 0)
self.guiLookForm.addWidget(self.guiLookSyntax, 1, 1)
+ self.guiLookForm.setColumnStretch(2, 1)
# Spell Checking
self.spellLang = QGroupBox("Spell Checker", self)
@@ -162,10 +163,10 @@ class GuiConfigEditGeneral(QWidget):
self.spellLangForm.addWidget(QLabel("Language"), 0, 0)
self.spellLangForm.addWidget(self.spellLangList, 0, 1)
- self.spellLangForm.setColumnStretch(1, 1)
+ self.spellLangForm.setColumnStretch(2, 1)
# AutoSave
- self.autoSave = QGroupBox("Auto-Save", self)
+ self.autoSave = QGroupBox("Automatic Save", self)
self.autoSaveForm = QGridLayout(self)
self.autoSave.setLayout(self.autoSaveForm)
@@ -187,9 +188,10 @@ class GuiConfigEditGeneral(QWidget):
self.autoSaveForm.addWidget(QLabel("Project"), 1, 0)
self.autoSaveForm.addWidget(self.autoSaveProj, 1, 1)
self.autoSaveForm.addWidget(QLabel("seconds"), 1, 2)
+ self.autoSaveForm.setColumnStretch(3, 1)
# Backup
- self.projBackup = QGroupBox("Backup", self)
+ self.projBackup = QGroupBox("Backup Folder", self)
self.projBackupForm = QGridLayout(self)
self.projBackup.setLayout(self.projBackupForm)
@@ -214,11 +216,11 @@ class GuiConfigEditGeneral(QWidget):
else:
self.projBackupAsk.setCheckState(Qt.Unchecked)
- self.projBackupForm.addWidget(QLabel("Backup folder"), 0, 0)
- self.projBackupForm.addWidget(self.projBackupPath, 0, 1)
- self.projBackupForm.addWidget(self.projBackupGetPath, 0, 2)
- self.projBackupForm.addWidget(self.projBackupClose, 1, 0)
- self.projBackupForm.addWidget(self.projBackupAsk, 1, 1, 1, 2)
+ self.projBackupForm.addWidget(self.projBackupPath, 0, 0, 1, 2)
+ self.projBackupForm.addWidget(self.projBackupGetPath, 0, 2)
+ self.projBackupForm.addWidget(self.projBackupClose, 1, 0)
+ self.projBackupForm.addWidget(self.projBackupAsk, 1, 1, 1, 2)
+ self.projBackupForm.setColumnStretch(1, 1)
# Assemble
self.outerBox.addWidget(self.guiLook, 0, 0)
From eb068eec830afd48a5ceb6856adac5002f1ccef7 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 19:06:47 +0100
Subject: [PATCH 5/7] Some minor changes to sample project
---
sample/sampleNovel/data_6/36b6aa9b697b_main.nwd | 2 --
sample/sampleNovel/nwProject.nwx | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd b/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd
index 4b2e8607..a3966923 100644
--- a/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd
+++ b/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd
@@ -1,10 +1,8 @@
### Making a Scene
-% Begin Meta
@pov: Jane
@char: John
@location: Space
-% End Meta
Some text here would look good as well, and maybe some "dialogue"?
diff --git a/sample/sampleNovel/nwProject.nwx b/sample/sampleNovel/nwProject.nwx
index c551ad8d..da5d657f 100644
--- a/sample/sampleNovel/nwProject.nwx
+++ b/sample/sampleNovel/nwProject.nwx
@@ -1,5 +1,5 @@
-
+
Sample Project
Sample Project
@@ -9,7 +9,7 @@
True
- ba8a28a246524
+ 636b6aa9b697b
ba8a28a246524
873
@@ -82,7 +82,7 @@
787
146
7
- 152
+ 60
-
Another Scene
From a61f39fbd5763bf4400862c6efccc106f72ba434 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 19:18:26 +0100
Subject: [PATCH 6/7] The first column header of the tree view should be
'Label', not 'Name', for consistency.
---
nw/gui/doctree.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nw/gui/doctree.py b/nw/gui/doctree.py
index 600e8fee..cdef8d3f 100644
--- a/nw/gui/doctree.py
+++ b/nw/gui/doctree.py
@@ -51,7 +51,7 @@ class GuiDocTree(QTreeWidget):
self.setExpandsOnDoubleClick(True)
self.setIndentation(13)
self.setColumnCount(4)
- self.setHeaderLabels(["Name","Words","Flags","Handle"])
+ self.setHeaderLabels(["Label","Words","Flags","Handle"])
if not self.debugGUI:
self.hideColumn(self.C_HANDLE)
From b6d095fc85cf1aeb6b0799df905369bff4c90263 Mon Sep 17 00:00:00 2001
From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com>
Date: Tue, 29 Oct 2019 19:21:09 +0100
Subject: [PATCH 7/7] Fix test
---
tests/reference/novelwriter.conf | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/reference/novelwriter.conf b/tests/reference/novelwriter.conf
index 8f1d1ea7..0ba36f1a 100644
--- a/tests/reference/novelwriter.conf
+++ b/tests/reference/novelwriter.conf
@@ -1,5 +1,5 @@
[Main]
-timestamp = 2019-10-29 10:40:19
+timestamp = 2019-10-29 19:20:27
theme = default
syntax = default_light
@@ -30,6 +30,8 @@ repdots = True
fmtsinglequote = ‘, ’
fmtdoublequote = “, ”
spellcheck = en_GB
+showtabsnspaces = False
+showlineendings = False
[Backup]
backuppath =