Moved writing guides settings to Editor tab in Preferences
This commit is contained in:
+24
-24
@@ -494,26 +494,6 @@ class GuiConfigEditLayoutTab(QWidget):
|
|||||||
theUnit="px"
|
theUnit="px"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Writing Guides
|
|
||||||
# ==============
|
|
||||||
self.mainForm.addGroupLabel("Writing Guides")
|
|
||||||
|
|
||||||
## Show Tabs and Spaces
|
|
||||||
self.showTabsNSpaces = QSwitch()
|
|
||||||
self.showTabsNSpaces.setChecked(self.mainConf.showTabsNSpaces)
|
|
||||||
self.mainForm.addRow(
|
|
||||||
"Show tabs and spaces",
|
|
||||||
self.showTabsNSpaces
|
|
||||||
)
|
|
||||||
|
|
||||||
## Show Line Endings
|
|
||||||
self.showLineEndings = QSwitch()
|
|
||||||
self.showLineEndings.setChecked(self.mainConf.showLineEndings)
|
|
||||||
self.mainForm.addRow(
|
|
||||||
"Show line endings",
|
|
||||||
self.showLineEndings
|
|
||||||
)
|
|
||||||
|
|
||||||
# Render Options
|
# Render Options
|
||||||
# ==============
|
# ==============
|
||||||
self.mainForm.addGroupLabel("Render Text")
|
self.mainForm.addGroupLabel("Render Text")
|
||||||
@@ -550,8 +530,6 @@ class GuiConfigEditLayoutTab(QWidget):
|
|||||||
doJustify = self.textJustify.isChecked()
|
doJustify = self.textJustify.isChecked()
|
||||||
textMargin = self.textMargin.value()
|
textMargin = self.textMargin.value()
|
||||||
tabWidth = self.tabWidth.value()
|
tabWidth = self.tabWidth.value()
|
||||||
showTabsNSpaces = self.showTabsNSpaces.isChecked()
|
|
||||||
showLineEndings = self.showLineEndings.isChecked()
|
|
||||||
viewComments = self.viewComments.isChecked()
|
viewComments = self.viewComments.isChecked()
|
||||||
viewSynopsis = self.viewSynopsis.isChecked()
|
viewSynopsis = self.viewSynopsis.isChecked()
|
||||||
|
|
||||||
@@ -564,8 +542,6 @@ class GuiConfigEditLayoutTab(QWidget):
|
|||||||
self.mainConf.doJustify = doJustify
|
self.mainConf.doJustify = doJustify
|
||||||
self.mainConf.textMargin = textMargin
|
self.mainConf.textMargin = textMargin
|
||||||
self.mainConf.tabWidth = tabWidth
|
self.mainConf.tabWidth = tabWidth
|
||||||
self.mainConf.showTabsNSpaces = showTabsNSpaces
|
|
||||||
self.mainConf.showLineEndings = showLineEndings
|
|
||||||
self.mainConf.viewComments = viewComments
|
self.mainConf.viewComments = viewComments
|
||||||
self.mainConf.viewSynopsis = viewSynopsis
|
self.mainConf.viewSynopsis = viewSynopsis
|
||||||
|
|
||||||
@@ -687,6 +663,26 @@ class GuiConfigEditEditingTab(QWidget):
|
|||||||
theUnit="kB"
|
theUnit="kB"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Writing Guides
|
||||||
|
# ==============
|
||||||
|
self.mainForm.addGroupLabel("Writing Guides")
|
||||||
|
|
||||||
|
## Show Tabs and Spaces
|
||||||
|
self.showTabsNSpaces = QSwitch()
|
||||||
|
self.showTabsNSpaces.setChecked(self.mainConf.showTabsNSpaces)
|
||||||
|
self.mainForm.addRow(
|
||||||
|
"Show tabs and spaces",
|
||||||
|
self.showTabsNSpaces
|
||||||
|
)
|
||||||
|
|
||||||
|
## Show Line Endings
|
||||||
|
self.showLineEndings = QSwitch()
|
||||||
|
self.showLineEndings.setChecked(self.mainConf.showLineEndings)
|
||||||
|
self.mainForm.addRow(
|
||||||
|
"Show line endings",
|
||||||
|
self.showLineEndings
|
||||||
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def saveValues(self):
|
def saveValues(self):
|
||||||
@@ -700,6 +696,8 @@ class GuiConfigEditEditingTab(QWidget):
|
|||||||
spellTool = self.spellToolList.currentData()
|
spellTool = self.spellToolList.currentData()
|
||||||
spellLanguage = self.spellLangList.currentData()
|
spellLanguage = self.spellLangList.currentData()
|
||||||
bigDocLimit = self.bigDocLimit.value()
|
bigDocLimit = self.bigDocLimit.value()
|
||||||
|
showTabsNSpaces = self.showTabsNSpaces.isChecked()
|
||||||
|
showLineEndings = self.showLineEndings.isChecked()
|
||||||
|
|
||||||
self.mainConf.guiSyntax = guiSyntax
|
self.mainConf.guiSyntax = guiSyntax
|
||||||
self.mainConf.highlightQuotes = highlightQuotes
|
self.mainConf.highlightQuotes = highlightQuotes
|
||||||
@@ -707,6 +705,8 @@ class GuiConfigEditEditingTab(QWidget):
|
|||||||
self.mainConf.spellTool = spellTool
|
self.mainConf.spellTool = spellTool
|
||||||
self.mainConf.spellLanguage = spellLanguage
|
self.mainConf.spellLanguage = spellLanguage
|
||||||
self.mainConf.bigDocLimit = bigDocLimit
|
self.mainConf.bigDocLimit = bigDocLimit
|
||||||
|
self.mainConf.showTabsNSpaces = showTabsNSpaces
|
||||||
|
self.mainConf.showLineEndings = showLineEndings
|
||||||
|
|
||||||
self.mainConf.confChanged = True
|
self.mainConf.confChanged = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user