Module implementing QTextEdit and QPlainTextEdit widgets with embedded spell checking.
ENCHANT_AVAILABLE |
app |
dictPath |
spellEdit |
EnchantHighlighter | Class implementing a QSyntaxHighlighter subclass that consults a pyEnchant dictionary to highlight misspelled words. |
EricSpellCheckedPlainTextEdit | Class implementing a QPlainTextEdit with built-in spell checker. |
EricSpellCheckedTextEdit | Class implementing a QTextEdit with built-in spell checker. |
SpellCheckMixin | Class implementing the spell-check mixin for the widget classes. |
SpellCheckMixin | Class implementing the spell-check mixin for the widget classes. |
None |
Class implementing a QSyntaxHighlighter subclass that consults a pyEnchant dictionary to highlight misspelled words.
ErrorFormat |
TokenFilters |
None |
EnchantHighlighter | Constructor |
chunkers | Public method to get the chunkers in use. |
dict | Public method to get the spelling dictionary in use. |
highlightBlock | Public method to apply the text highlight. |
setChunkers | Public method to set the chunkers to be used. |
setDict | Public method to set the spelling dictionary to be used. |
None |
Constructor
Public method to get the chunkers in use.
Public method to get the spelling dictionary in use.
Public method to apply the text highlight.
Public method to set the chunkers to be used.
Public method to set the spelling dictionary to be used.
Class implementing a QPlainTextEdit with built-in spell checker.
None |
None |
EricSpellCheckedPlainTextEdit | Constructor |
None |
Constructor
Class implementing a QTextEdit with built-in spell checker.
None |
None |
EricSpellCheckedTextEdit | Constructor |
setAcceptRichText | Public method to set the text edit mode. |
None |
Constructor
Public method to set the text edit mode.
Class implementing the spell-check mixin for the widget classes.
DefaultLanguage |
DefaultUserExceptionList |
DefaultUserWordList |
MaxSuggestions |
setDefaultLanguage | Class method to set the default spell-check language. |
SpellCheckMixin | Constructor |
__addRemoveEntry | Private method to create a menu entry to remove the word at the menu position. |
__addToUserDict | Private method to add a word to the user word or exclude list. |
__correctWord | Private method to replace some misspelled text. |
__createCorrectionsMenu | Private method to create a menu for corrections of the selected word. |
__createFormatsMenu | Private method to create a menu for selecting the document format. |
__createLanguagesMenu | Private method to create a menu for selecting the spell-check language. |
__createSpellcheckContextMenu | Private method to create the spell-check context menu. |
__cursorForMisspelling | Private method to create a text cursor selecting the misspelled word. |
__cursorForPosition | Private method to create a text cursor selecting the word at the given position. |
__setFormat | Private slot to set the selected document format. |
__setLanguage | Private slot to set the selected language. |
__spellMenuTriggered | Private slot to handle a selection of the spell menu. |
_showContextMenu | Protected slot to show a context menu. |
dict | Public method to get a reference to the dictionary in use. |
setDict | Public method to set the dictionary to be used. |
setFormat | Public method to set the document format. |
setLanguage | Public slot to set the spellchecker language. |
setLanguageWithPWL | Public slot to set the spellchecker language and associated user word lists. |
None |
Class method to set the default spell-check language.
Constructor
Private method to create a menu entry to remove the word at the menu position.
Private method to add a word to the user word or exclude list.
Private method to replace some misspelled text.
Private method to create a menu for corrections of the selected word.
Private method to create a menu for selecting the document format.
Private method to create a menu for selecting the spell-check language.
Private method to create the spell-check context menu.
Private method to create a text cursor selecting the misspelled word.
Private method to create a text cursor selecting the word at the given position.
Private slot to set the selected document format.
Private slot to set the selected language.
Private slot to handle a selection of the spell menu.
Protected slot to show a context menu.
Public method to get a reference to the dictionary in use.
Public method to set the dictionary to be used.
Public method to set the document format.
Public slot to set the spellchecker language.
Public slot to set the spellchecker language and associated user word lists.
Class implementing the spell-check mixin for the widget classes.
None |
setDefaultLanguage | Class method to set the default spell-check language. |
SpellCheckMixin | Constructor |
_showContextMenu | Protected slot to show a context menu. |
dict | Public method to get a reference to the dictionary in use. |
setDict | Public method to set the dictionary to be used. |
setFormat | Public method to set the document format. |
setLanguage | Public slot to set the spellchecker language. |
setLanguageWithPWL | Public slot to set the spellchecker language and associated user word lists. |
None |
Class method to set the default spell-check language.
Constructor
Protected slot to show a context menu.
Public method to get a reference to the dictionary in use.
Public method to set the dictionary to be used.
Public method to set the document format.
Public slot to set the spellchecker language.
Public slot to set the spellchecker language and associated user word lists.