diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index 0f5ded96..ec1802aa 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -100,7 +100,7 @@ class GuiDocEditor(QTextEdit): return ## - # Class Methods + # Setters and Getters ## def setDocumentChanged(self, bValue): @@ -116,6 +116,14 @@ class GuiDocEditor(QTextEdit): self.setDocumentChanged(False) return True + def getText(self): + theText = self.toPlainText() + return theText + + ## + # Spell Checking + ## + def setPwl(self, pwlFile): if pwlFile is not None: self.pwlFile = pwlFile @@ -134,9 +142,13 @@ class GuiDocEditor(QTextEdit): self.rehighlightDocument() return True - def getText(self): - theText = self.toPlainText() - return theText + def rehighlightDocument(self): + self.hLight.rehighlight() + return + + ## + # General Class Methods + ## def changeWidth(self): """Automatically adjust the margins so the text is centred, but only if Config.textFixedW is @@ -169,10 +181,6 @@ class GuiDocEditor(QTextEdit): return False return True - def rehighlightDocument(self): - self.hLight.rehighlight() - return - ## # Document Events and Maintenance ##