Move around the class methods a bit
This commit is contained in:
+16
-8
@@ -100,7 +100,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
# Class Methods
|
# Setters and Getters
|
||||||
##
|
##
|
||||||
|
|
||||||
def setDocumentChanged(self, bValue):
|
def setDocumentChanged(self, bValue):
|
||||||
@@ -116,6 +116,14 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self.setDocumentChanged(False)
|
self.setDocumentChanged(False)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def getText(self):
|
||||||
|
theText = self.toPlainText()
|
||||||
|
return theText
|
||||||
|
|
||||||
|
##
|
||||||
|
# Spell Checking
|
||||||
|
##
|
||||||
|
|
||||||
def setPwl(self, pwlFile):
|
def setPwl(self, pwlFile):
|
||||||
if pwlFile is not None:
|
if pwlFile is not None:
|
||||||
self.pwlFile = pwlFile
|
self.pwlFile = pwlFile
|
||||||
@@ -134,9 +142,13 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self.rehighlightDocument()
|
self.rehighlightDocument()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def getText(self):
|
def rehighlightDocument(self):
|
||||||
theText = self.toPlainText()
|
self.hLight.rehighlight()
|
||||||
return theText
|
return
|
||||||
|
|
||||||
|
##
|
||||||
|
# General Class Methods
|
||||||
|
##
|
||||||
|
|
||||||
def changeWidth(self):
|
def changeWidth(self):
|
||||||
"""Automatically adjust the margins so the text is centred, but only if Config.textFixedW is
|
"""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 False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def rehighlightDocument(self):
|
|
||||||
self.hLight.rehighlight()
|
|
||||||
return
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Document Events and Maintenance
|
# Document Events and Maintenance
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user