src/eric7/Documentation/Source/eric7.QScintilla.DocstringGenerator.BaseDocstringGenerator.html

branch
eric7
changeset 10070
9f5758c0fec1
parent 9503
ae9232bf4854
child 10259
b51dfacef37f
equal deleted inserted replaced
10069:435cc5875135 10070:9f5758c0fec1
78 <td><a href="#BaseDocstringGenerator.getDocstringType">getDocstringType</a></td> 78 <td><a href="#BaseDocstringGenerator.getDocstringType">getDocstringType</a></td>
79 <td>Public method to determine the docstring type to be generated.</td> 79 <td>Public method to determine the docstring type to be generated.</td>
80 </tr> 80 </tr>
81 <tr> 81 <tr>
82 <td><a href="#BaseDocstringGenerator.hasFunctionDefinition">hasFunctionDefinition</a></td> 82 <td><a href="#BaseDocstringGenerator.hasFunctionDefinition">hasFunctionDefinition</a></td>
83 <td>Public method to test, if the cursor is right below a function definition.</td> 83 <td></td>
84 </tr> 84 </tr>
85 <tr> 85 <tr>
86 <td><a href="#BaseDocstringGenerator.insertDocstring">insertDocstring</a></td> 86 <td><a href="#BaseDocstringGenerator.insertDocstring">insertDocstring</a></td>
87 <td>Public method to insert a docstring for the function at the cursor position.</td> 87 <td></td>
88 </tr> 88 </tr>
89 <tr> 89 <tr>
90 <td><a href="#BaseDocstringGenerator.insertDocstringFromShortcut">insertDocstringFromShortcut</a></td> 90 <td><a href="#BaseDocstringGenerator.insertDocstringFromShortcut">insertDocstringFromShortcut</a></td>
91 <td>Public method to insert a docstring for the function at the cursor position initiated via a keyboard shortcut.</td> 91 <td></td>
92 </tr> 92 </tr>
93 <tr> 93 <tr>
94 <td><a href="#BaseDocstringGenerator.isDocstringIntro">isDocstringIntro</a></td> 94 <td><a href="#BaseDocstringGenerator.isDocstringIntro">isDocstringIntro</a></td>
95 <td>Public function to test, if the line up to the cursor position might be introducing a docstring.</td> 95 <td></td>
96 </tr> 96 </tr>
97 <tr> 97 <tr>
98 <td><a href="#BaseDocstringGenerator.isFunctionStart">isFunctionStart</a></td> 98 <td><a href="#BaseDocstringGenerator.isFunctionStart">isFunctionStart</a></td>
99 <td>Public method to test, if a text is the start of a function or method definition.</td> 99 <td></td>
100 </tr> 100 </tr>
101 </table> 101 </table>
102 <h3>Static Methods</h3> 102 <h3>Static Methods</h3>
103 103
104 <table> 104 <table>
172 </dl> 172 </dl>
173 <a NAME="BaseDocstringGenerator.hasFunctionDefinition" ID="BaseDocstringGenerator.hasFunctionDefinition"></a> 173 <a NAME="BaseDocstringGenerator.hasFunctionDefinition" ID="BaseDocstringGenerator.hasFunctionDefinition"></a>
174 <h4>BaseDocstringGenerator.hasFunctionDefinition</h4> 174 <h4>BaseDocstringGenerator.hasFunctionDefinition</h4>
175 <b>hasFunctionDefinition</b>(<i>cursorPosition</i>) 175 <b>hasFunctionDefinition</b>(<i>cursorPosition</i>)
176 176
177 <p>
178 Public method to test, if the cursor is right below a function
179 definition.
180 </p>
181 <dl>
182
183 <dt><i>cursorPosition</i> (tuple of (int, int))</dt>
184 <dd>
185 current cursor position (line and column)
186 </dd>
187 </dl>
188 <dl>
189 <dt>Return:</dt>
190 <dd>
191 flag indicating cursor is right below a function definition
192 </dd>
193 </dl>
194 <dl>
195 <dt>Return Type:</dt>
196 <dd>
197 bool
198 </dd>
199 </dl>
200 <a NAME="BaseDocstringGenerator.insertDocstring" ID="BaseDocstringGenerator.insertDocstring"></a> 177 <a NAME="BaseDocstringGenerator.insertDocstring" ID="BaseDocstringGenerator.insertDocstring"></a>
201 <h4>BaseDocstringGenerator.insertDocstring</h4> 178 <h4>BaseDocstringGenerator.insertDocstring</h4>
202 <b>insertDocstring</b>(<i>cursorPosition, fromStart=True</i>) 179 <b>insertDocstring</b>(<i>cursorPosition, fromStart=True</i>)
203 180
204 <p>
205 Public method to insert a docstring for the function at the cursor
206 position.
207 </p>
208 <dl>
209
210 <dt><i>cursorPosition</i> (tuple of (int, int))</dt>
211 <dd>
212 position of the cursor (line and index)
213 </dd>
214 <dt><i>fromStart</i> (bool)</dt>
215 <dd>
216 flag indicating that the editor text cursor is placed
217 on the line starting the function definition
218 </dd>
219 </dl>
220 <a NAME="BaseDocstringGenerator.insertDocstringFromShortcut" ID="BaseDocstringGenerator.insertDocstringFromShortcut"></a> 181 <a NAME="BaseDocstringGenerator.insertDocstringFromShortcut" ID="BaseDocstringGenerator.insertDocstringFromShortcut"></a>
221 <h4>BaseDocstringGenerator.insertDocstringFromShortcut</h4> 182 <h4>BaseDocstringGenerator.insertDocstringFromShortcut</h4>
222 <b>insertDocstringFromShortcut</b>(<i>cursorPosition</i>) 183 <b>insertDocstringFromShortcut</b>(<i>cursorPosition</i>)
223 184
224 <p>
225 Public method to insert a docstring for the function at the cursor
226 position initiated via a keyboard shortcut.
227 </p>
228 <dl>
229
230 <dt><i>cursorPosition</i> (tuple of (int, int))</dt>
231 <dd>
232 position of the cursor (line and index)
233 </dd>
234 </dl>
235 <a NAME="BaseDocstringGenerator.isDocstringIntro" ID="BaseDocstringGenerator.isDocstringIntro"></a> 185 <a NAME="BaseDocstringGenerator.isDocstringIntro" ID="BaseDocstringGenerator.isDocstringIntro"></a>
236 <h4>BaseDocstringGenerator.isDocstringIntro</h4> 186 <h4>BaseDocstringGenerator.isDocstringIntro</h4>
237 <b>isDocstringIntro</b>(<i>cursorPosition</i>) 187 <b>isDocstringIntro</b>(<i>cursorPosition</i>)
238 188
239 <p>
240 Public function to test, if the line up to the cursor position might be
241 introducing a docstring.
242 </p>
243 <dl>
244
245 <dt><i>cursorPosition</i> (tuple of (int, int))</dt>
246 <dd>
247 current cursor position (line and column)
248 </dd>
249 </dl>
250 <dl>
251 <dt>Return:</dt>
252 <dd>
253 flag indicating a potential start of a docstring
254 </dd>
255 </dl>
256 <dl>
257 <dt>Return Type:</dt>
258 <dd>
259 bool
260 </dd>
261 </dl>
262 <a NAME="BaseDocstringGenerator.isFunctionStart" ID="BaseDocstringGenerator.isFunctionStart"></a> 189 <a NAME="BaseDocstringGenerator.isFunctionStart" ID="BaseDocstringGenerator.isFunctionStart"></a>
263 <h4>BaseDocstringGenerator.isFunctionStart</h4> 190 <h4>BaseDocstringGenerator.isFunctionStart</h4>
264 <b>isFunctionStart</b>(<i>text</i>) 191 <b>isFunctionStart</b>(<i>text</i>)
265 192
266 <p>
267 Public method to test, if a text is the start of a function or method
268 definition.
269 </p>
270 <dl>
271
272 <dt><i>text</i> (str)</dt>
273 <dd>
274 line of text to be tested
275 </dd>
276 </dl>
277 <dl>
278 <dt>Return:</dt>
279 <dd>
280 flag indicating that the given text starts a function or
281 method definition (always False)
282 </dd>
283 </dl>
284 <dl>
285 <dt>Return Type:</dt>
286 <dd>
287 bool
288 </dd>
289 </dl>
290 <div align="right"><a href="#top">Up</a></div> 193 <div align="right"><a href="#top">Up</a></div>
291 <hr /> 194 <hr />
292 <hr /> 195 <hr />
293 <a NAME="DocstringMenuForEnterOnly" ID="DocstringMenuForEnterOnly"></a> 196 <a NAME="DocstringMenuForEnterOnly" ID="DocstringMenuForEnterOnly"></a>
294 <h2>DocstringMenuForEnterOnly</h2> 197 <h2>DocstringMenuForEnterOnly</h2>

eric ide

mercurial