Move around the class methods a bit
This commit is contained in:
+16
-8
@@ -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
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user