|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.QScintilla.SpellCheckingDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.QScintilla.SpellCheckingDialog</h1> |
|
23 <p> |
|
24 Module implementing the spell checking dialog. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#SpellCheckingDialog">SpellCheckingDialog</a></td> |
|
34 <td>Class implementing the spell checking dialog.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="SpellCheckingDialog" ID="SpellCheckingDialog"></a> |
|
43 <h2>SpellCheckingDialog</h2> |
|
44 <p> |
|
45 Class implementing the spell checking dialog. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_SpellCheckingDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#SpellCheckingDialog.__init__">SpellCheckingDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#SpellCheckingDialog.__advance">__advance</a></td> |
|
64 <td>Private method to advance to the next error.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#SpellCheckingDialog.__enableButtons">__enableButtons</a></td> |
|
67 <td>Private method to set the buttons enabled state.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#SpellCheckingDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
70 <td>Private slot to add the current word to the personal word list.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#SpellCheckingDialog.on_changeEdit_textChanged">on_changeEdit_textChanged</a></td> |
|
73 <td>Private method to handle a change of the replacement text.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#SpellCheckingDialog.on_ignoreAllButton_clicked">on_ignoreAllButton_clicked</a></td> |
|
76 <td>Private slot to always ignore the found error.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#SpellCheckingDialog.on_ignoreButton_clicked">on_ignoreButton_clicked</a></td> |
|
79 <td>Private slot to ignore the found error.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#SpellCheckingDialog.on_replaceAllButton_clicked">on_replaceAllButton_clicked</a></td> |
|
82 <td>Private slot to replace the current word with the given replacement.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#SpellCheckingDialog.on_replaceButton_clicked">on_replaceButton_clicked</a></td> |
|
85 <td>Private slot to replace the current word with the given replacement.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#SpellCheckingDialog.on_suggestionsList_currentTextChanged">on_suggestionsList_currentTextChanged</a></td> |
|
88 <td>Private method to handle the selection of a suggestion.</td> |
|
89 </tr> |
|
90 </table> |
|
91 <h3>Static Methods</h3> |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 <a NAME="SpellCheckingDialog.__init__" ID="SpellCheckingDialog.__init__"></a> |
|
96 <h4>SpellCheckingDialog (Constructor)</h4> |
|
97 <b>SpellCheckingDialog</b>(<i>spellChecker, startPos, endPos, parent=None</i>) |
|
98 <p> |
|
99 Constructor |
|
100 </p><dl> |
|
101 <dt><i>spellChecker</i></dt> |
|
102 <dd> |
|
103 reference to the spell checker (SpellChecker) |
|
104 </dd><dt><i>startPos</i></dt> |
|
105 <dd> |
|
106 position to start spell checking (integer) |
|
107 </dd><dt><i>endPos</i></dt> |
|
108 <dd> |
|
109 end position for spell checking (integer) |
|
110 </dd><dt><i>parent</i></dt> |
|
111 <dd> |
|
112 reference to the parent widget (QWidget) |
|
113 </dd> |
|
114 </dl><a NAME="SpellCheckingDialog.__advance" ID="SpellCheckingDialog.__advance"></a> |
|
115 <h4>SpellCheckingDialog.__advance</h4> |
|
116 <b>__advance</b>(<i></i>) |
|
117 <p> |
|
118 Private method to advance to the next error. |
|
119 </p><a NAME="SpellCheckingDialog.__enableButtons" ID="SpellCheckingDialog.__enableButtons"></a> |
|
120 <h4>SpellCheckingDialog.__enableButtons</h4> |
|
121 <b>__enableButtons</b>(<i>enable</i>) |
|
122 <p> |
|
123 Private method to set the buttons enabled state. |
|
124 </p><dl> |
|
125 <dt><i>enable</i></dt> |
|
126 <dd> |
|
127 enable state (boolean) |
|
128 </dd> |
|
129 </dl><a NAME="SpellCheckingDialog.on_addButton_clicked" ID="SpellCheckingDialog.on_addButton_clicked"></a> |
|
130 <h4>SpellCheckingDialog.on_addButton_clicked</h4> |
|
131 <b>on_addButton_clicked</b>(<i></i>) |
|
132 <p> |
|
133 Private slot to add the current word to the personal word list. |
|
134 </p><a NAME="SpellCheckingDialog.on_changeEdit_textChanged" ID="SpellCheckingDialog.on_changeEdit_textChanged"></a> |
|
135 <h4>SpellCheckingDialog.on_changeEdit_textChanged</h4> |
|
136 <b>on_changeEdit_textChanged</b>(<i>text</i>) |
|
137 <p> |
|
138 Private method to handle a change of the replacement text. |
|
139 </p><dl> |
|
140 <dt><i>text</i></dt> |
|
141 <dd> |
|
142 contents of the line edit (string) |
|
143 </dd> |
|
144 </dl><a NAME="SpellCheckingDialog.on_ignoreAllButton_clicked" ID="SpellCheckingDialog.on_ignoreAllButton_clicked"></a> |
|
145 <h4>SpellCheckingDialog.on_ignoreAllButton_clicked</h4> |
|
146 <b>on_ignoreAllButton_clicked</b>(<i></i>) |
|
147 <p> |
|
148 Private slot to always ignore the found error. |
|
149 </p><a NAME="SpellCheckingDialog.on_ignoreButton_clicked" ID="SpellCheckingDialog.on_ignoreButton_clicked"></a> |
|
150 <h4>SpellCheckingDialog.on_ignoreButton_clicked</h4> |
|
151 <b>on_ignoreButton_clicked</b>(<i></i>) |
|
152 <p> |
|
153 Private slot to ignore the found error. |
|
154 </p><a NAME="SpellCheckingDialog.on_replaceAllButton_clicked" ID="SpellCheckingDialog.on_replaceAllButton_clicked"></a> |
|
155 <h4>SpellCheckingDialog.on_replaceAllButton_clicked</h4> |
|
156 <b>on_replaceAllButton_clicked</b>(<i></i>) |
|
157 <p> |
|
158 Private slot to replace the current word with the given replacement. |
|
159 </p><a NAME="SpellCheckingDialog.on_replaceButton_clicked" ID="SpellCheckingDialog.on_replaceButton_clicked"></a> |
|
160 <h4>SpellCheckingDialog.on_replaceButton_clicked</h4> |
|
161 <b>on_replaceButton_clicked</b>(<i></i>) |
|
162 <p> |
|
163 Private slot to replace the current word with the given replacement. |
|
164 </p><a NAME="SpellCheckingDialog.on_suggestionsList_currentTextChanged" ID="SpellCheckingDialog.on_suggestionsList_currentTextChanged"></a> |
|
165 <h4>SpellCheckingDialog.on_suggestionsList_currentTextChanged</h4> |
|
166 <b>on_suggestionsList_currentTextChanged</b>(<i>currentText</i>) |
|
167 <p> |
|
168 Private method to handle the selection of a suggestion. |
|
169 </p><dl> |
|
170 <dt><i>currentText</i></dt> |
|
171 <dd> |
|
172 the currently selected text (string) |
|
173 </dd> |
|
174 </dl> |
|
175 <div align="right"><a href="#top">Up</a></div> |
|
176 <hr /> |
|
177 </body></html> |