Moved writing guides settings to Editor tab in Preferences
This commit is contained in:
+46
-46
@@ -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")
|
||||||
@@ -541,33 +521,29 @@ class GuiConfigEditLayoutTab(QWidget):
|
|||||||
validEntries = True
|
validEntries = True
|
||||||
needsRestart = False
|
needsRestart = False
|
||||||
|
|
||||||
textFont = self.textStyleFont.text()
|
textFont = self.textStyleFont.text()
|
||||||
textSize = self.textStyleSize.value()
|
textSize = self.textStyleSize.value()
|
||||||
textWidth = self.textFlowMax.value()
|
textWidth = self.textFlowMax.value()
|
||||||
zenWidth = self.zenDocWidth.value()
|
zenWidth = self.zenDocWidth.value()
|
||||||
textFixedW = not self.textFlowFixed.isChecked()
|
textFixedW = not self.textFlowFixed.isChecked()
|
||||||
hideZenFooter = self.hideZenFooter.isChecked()
|
hideZenFooter = self.hideZenFooter.isChecked()
|
||||||
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()
|
viewComments = self.viewComments.isChecked()
|
||||||
showLineEndings = self.showLineEndings.isChecked()
|
viewSynopsis = self.viewSynopsis.isChecked()
|
||||||
viewComments = self.viewComments.isChecked()
|
|
||||||
viewSynopsis = self.viewSynopsis.isChecked()
|
|
||||||
|
|
||||||
self.mainConf.textFont = textFont
|
self.mainConf.textFont = textFont
|
||||||
self.mainConf.textSize = textSize
|
self.mainConf.textSize = textSize
|
||||||
self.mainConf.textWidth = textWidth
|
self.mainConf.textWidth = textWidth
|
||||||
self.mainConf.zenWidth = zenWidth
|
self.mainConf.zenWidth = zenWidth
|
||||||
self.mainConf.textFixedW = textFixedW
|
self.mainConf.textFixedW = textFixedW
|
||||||
self.mainConf.hideZenFooter = hideZenFooter
|
self.mainConf.hideZenFooter = hideZenFooter
|
||||||
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.viewComments = viewComments
|
||||||
self.mainConf.showLineEndings = showLineEndings
|
self.mainConf.viewSynopsis = viewSynopsis
|
||||||
self.mainConf.viewComments = viewComments
|
|
||||||
self.mainConf.viewSynopsis = viewSynopsis
|
|
||||||
|
|
||||||
self.mainConf.confChanged = True
|
self.mainConf.confChanged = True
|
||||||
|
|
||||||
@@ -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