--- a/eric7/Documentation/Source/eric7.EricWidgets.EricSpellCheckedTextEdit.html Tue Jun 15 19:42:36 2021 +0200 +++ b/eric7/Documentation/Source/eric7.EricWidgets.EricSpellCheckedTextEdit.html Wed Jun 16 17:47:50 2021 +0200 @@ -63,8 +63,8 @@ <h2>EnchantHighlighter</h2> <p> - Class implementing a QSyntaxHighlighter subclass that consults a - pyEnchant dictionary to highlight misspelled words. + Class implementing a QSyntaxHighlighter subclass that consults a + pyEnchant dictionary to highlight misspelled words. </p> <h3>Derived from</h3> QSyntaxHighlighter @@ -118,7 +118,7 @@ <b>EnchantHighlighter</b>(<i>*args</i>) <p> - Constructor + Constructor </p> <dl> @@ -132,7 +132,7 @@ <b>chunkers</b>(<i></i>) <p> - Public method to get the chunkers in use. + Public method to get the chunkers in use. </p> <dl> <dt>Return:</dt> @@ -151,7 +151,7 @@ <b>dict</b>(<i></i>) <p> - Public method to get the spelling dictionary in use. + Public method to get the spelling dictionary in use. </p> <dl> <dt>Return:</dt> @@ -170,7 +170,7 @@ <b>highlightBlock</b>(<i>text</i>) <p> - Public method to apply the text highlight. + Public method to apply the text highlight. </p> <dl> @@ -184,7 +184,7 @@ <b>setChunkers</b>(<i>chunkers</i>) <p> - Public method to set the chunkers to be used. + Public method to set the chunkers to be used. </p> <dl> @@ -198,7 +198,7 @@ <b>setDict</b>(<i>spellDict</i>) <p> - Public method to set the spelling dictionary to be used. + Public method to set the spelling dictionary to be used. </p> <dl> @@ -214,7 +214,7 @@ <h2>EricSpellCheckedPlainTextEdit</h2> <p> - Class implementing a QPlainTextEdit with built-in spell checker. + Class implementing a QPlainTextEdit with built-in spell checker. </p> <h3>Derived from</h3> QPlainTextEdit, SpellCheckMixin @@ -248,7 +248,7 @@ <b>EricSpellCheckedPlainTextEdit</b>(<i>*args</i>) <p> - Constructor + Constructor </p> <dl> @@ -264,7 +264,7 @@ <h2>EricSpellCheckedTextEdit</h2> <p> - Class implementing a QTextEdit with built-in spell checker. + Class implementing a QTextEdit with built-in spell checker. </p> <h3>Derived from</h3> QTextEdit, SpellCheckMixin @@ -302,7 +302,7 @@ <b>EricSpellCheckedTextEdit</b>(<i>*args</i>) <p> - Constructor + Constructor </p> <dl> @@ -316,7 +316,7 @@ <b>setAcceptRichText</b>(<i>accept</i>) <p> - Public method to set the text edit mode. + Public method to set the text edit mode. </p> <dl> @@ -332,19 +332,23 @@ <h2>SpellCheckMixin</h2> <p> - Class implementing the spell-check mixin for the widget classes. + Class implementing the spell-check mixin for the widget classes. </p> <h3>Derived from</h3> None <h3>Class Attributes</h3> <table> -<tr><td>MaxSuggestions</td></tr> +<tr><td>DefaultLanguage</td></tr><tr><td>MaxSuggestions</td></tr> </table> <h3>Class Methods</h3> <table> -<tr><td>None</td></tr> + +<tr> +<td><a href="#SpellCheckMixin.setDefaultLanguage">setDefaultLanguage</a></td> +<td>Class method to set the default spell-check language.</td> +</tr> </table> <h3>Methods</h3> @@ -409,20 +413,34 @@ <tr><td>None</td></tr> </table> +<a NAME="SpellCheckMixin.setDefaultLanguage" ID="SpellCheckMixin.setDefaultLanguage"></a> +<h4>SpellCheckMixin.setDefaultLanguage (class method)</h4> +<b>setDefaultLanguage</b>(<i>language</i>) + +<p> + Class method to set the default spell-check language. +</p> +<dl> + +<dt><i>language</i> (str)</dt> +<dd> +language to be set as default +</dd> +</dl> <a NAME="SpellCheckMixin.__init__" ID="SpellCheckMixin.__init__"></a> <h4>SpellCheckMixin (Constructor)</h4> <b>SpellCheckMixin</b>(<i></i>) <p> - Constructor + Constructor </p> <a NAME="SpellCheckMixin.__correctWord" ID="SpellCheckMixin.__correctWord"></a> <h4>SpellCheckMixin.__correctWord</h4> <b>__correctWord</b>(<i>act</i>) <p> - Private slot to correct the misspelled word with the selected - correction. + Private slot to correct the misspelled word with the selected + correction. </p> <dl> @@ -436,7 +454,8 @@ <b>__createCorrectionsMenu</b>(<i>cursor, parent=None</i>) <p> - Private method to create a menu for corrections of the selected word. + Private method to create a menu for corrections of the selected + word. </p> <dl> @@ -466,7 +485,7 @@ <b>__createFormatsMenu</b>(<i>parent=None</i>) <p> - Private method to create a menu for selecting the document format. + Private method to create a menu for selecting the document format. </p> <dl> @@ -492,7 +511,8 @@ <b>__createLanguagesMenu</b>(<i>parent=None</i>) <p> - Private method to create a menu for selecting the spell-check language. + Private method to create a menu for selecting the spell-check + language. </p> <dl> @@ -518,7 +538,7 @@ <b>__createSpellcheckContextMenu</b>(<i>pos</i>) <p> - Private method to create the spell-check context menu. + Private method to create the spell-check context menu. </p> <dl> @@ -544,7 +564,8 @@ <b>__cursorForMisspelling</b>(<i>pos</i>) <p> - Private method to create a text cursor selecting the misspelled word. + Private method to create a text cursor selecting the misspelled + word. </p> <dl> @@ -570,7 +591,7 @@ <b>__setFormat</b>(<i>act</i>) <p> - Private slot to set the selected document format. + Private slot to set the selected document format. </p> <dl> @@ -584,7 +605,7 @@ <b>__setLanguage</b>(<i>act</i>) <p> - Private slot to set the selected language. + Private slot to set the selected language. </p> <dl> @@ -598,8 +619,8 @@ <b>contextMenuEvent</b>(<i>evt</i>) <p> - Protected method to handle context menu events to add a spelling - suggestions submenu. + Protected method to handle context menu events to add a spelling + suggestions submenu. </p> <dl> @@ -613,7 +634,7 @@ <b>dict</b>(<i></i>) <p> - Public method to get a reference to the dictionary in use. + Public method to get a reference to the dictionary in use. </p> <dl> <dt>Return:</dt> @@ -632,7 +653,7 @@ <b>setDict</b>(<i>spellDict</i>) <p> - Public method to set the dictionary to be used. + Public method to set the dictionary to be used. </p> <dl> @@ -646,7 +667,7 @@ <b>setFormat</b>(<i>formatName</i>) <p> - Public method to set the document format. + Public method to set the document format. </p> <dl>