RefactoringRope/Documentation/source/Plugin_Refactoring_Rope.RefactoringRope.Refactoring.html

changeset 44
8aa985c8dee5
parent 31
0389d4a924cc
child 55
d501156be247
equal deleted inserted replaced
43:39924831c795 44:8aa985c8dee5
1 <?xml version="1.0" encoding="utf-8"?> 1 <!DOCTYPE html>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head> 2 <html><head>
5 <title>Plugin_Refactoring_Rope.RefactoringRope.Refactoring</title> 3 <title>Plugin_Refactoring_Rope.RefactoringRope.Refactoring</title>
4 <meta charset="UTF-8">
6 <style> 5 <style>
7 body { 6 body {
8 background: #EDECE6; 7 background: #EDECE6;
9 margin: 0em 1em 10em 1em; 8 margin: 0em 1em 10em 1em;
10 color: black; 9 color: black;
49 QObject 48 QObject
50 <h3>Class Attributes</h3> 49 <h3>Class Attributes</h3>
51 <table> 50 <table>
52 <tr><td>None</td></tr> 51 <tr><td>None</td></tr>
53 </table> 52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
54 <h3>Methods</h3> 57 <h3>Methods</h3>
55 <table> 58 <table>
56 <tr> 59 <tr>
57 <td><a href="#Refactoring.__init__">Refactoring</a></td> 60 <td><a href="#Refactoring.__init__">Refactoring</a></td>
58 <td>Constructor</td> 61 <td>Constructor</td>
112 <td>Private slot to get a list of redoable changes.</td> 115 <td>Private slot to get a list of redoable changes.</td>
113 </tr><tr> 116 </tr><tr>
114 <td><a href="#Refactoring.__getFileUndoList">__getFileUndoList</a></td> 117 <td><a href="#Refactoring.__getFileUndoList">__getFileUndoList</a></td>
115 <td>Private slot to get a list of undoable changes.</td> 118 <td>Private slot to get a list of undoable changes.</td>
116 </tr><tr> 119 </tr><tr>
120 <td><a href="#Refactoring.__getOffset">__getOffset</a></td>
121 <td>Private method to get the offset into the text treating CRLF as ONE character.</td>
122 </tr><tr>
117 <td><a href="#Refactoring.__importsExpandStar">__importsExpandStar</a></td> 123 <td><a href="#Refactoring.__importsExpandStar">__importsExpandStar</a></td>
118 <td>Private slot to expand star imports.</td> 124 <td>Private slot to expand star imports.</td>
119 </tr><tr> 125 </tr><tr>
120 <td><a href="#Refactoring.__importsFromToImport">__importsFromToImport</a></td> 126 <td><a href="#Refactoring.__importsFromToImport">__importsFromToImport</a></td>
121 <td>Private slot to transform from imports to plain imports.</td> 127 <td>Private slot to transform from imports to plain imports.</td>
245 </tr><tr> 251 </tr><tr>
246 <td><a href="#Refactoring.refreshEditors">refreshEditors</a></td> 252 <td><a href="#Refactoring.refreshEditors">refreshEditors</a></td>
247 <td>Public method to refresh modified editors.</td> 253 <td>Public method to refresh modified editors.</td>
248 </tr> 254 </tr>
249 </table> 255 </table>
256 <h3>Static Methods</h3>
257 <table>
258 <tr><td>None</td></tr>
259 </table>
250 <a NAME="Refactoring.__init__" ID="Refactoring.__init__"></a> 260 <a NAME="Refactoring.__init__" ID="Refactoring.__init__"></a>
251 <h4>Refactoring (Constructor)</h4> 261 <h4>Refactoring (Constructor)</h4>
252 <b>Refactoring</b>(<i>plugin, parent=None</i>) 262 <b>Refactoring</b>(<i>plugin, parent=None</i>)
253 <p> 263 <p>
254 Constructor 264 Constructor
434 </dd> 444 </dd>
435 </dl><dl> 445 </dl><dl>
436 <dt>Returns:</dt> 446 <dt>Returns:</dt>
437 <dd> 447 <dd>
438 list of change objects (list of rope.base.change.Change) 448 list of change objects (list of rope.base.change.Change)
449 </dd>
450 </dl><a NAME="Refactoring.__getOffset" ID="Refactoring.__getOffset"></a>
451 <h4>Refactoring.__getOffset</h4>
452 <b>__getOffset</b>(<i>editor, line, index</i>)
453 <p>
454 Private method to get the offset into the text treating CRLF as ONE character.
455 </p><p>
456 Note: rope seems to convert all EOL styles to just \n.
457 </p><dl>
458 <dt><i>editor</i></dt>
459 <dd>
460 reference to the editor (Editor)
461 </dd><dt><i>line</i></dt>
462 <dd>
463 line for the offset (integer)
464 </dd><dt><i>index</i></dt>
465 <dd>
466 index into line for the offset (integer)
467 </dd>
468 </dl><dl>
469 <dt>Returns:</dt>
470 <dd>
471 rope compliant offset into the file (integer)
439 </dd> 472 </dd>
440 </dl><a NAME="Refactoring.__importsExpandStar" ID="Refactoring.__importsExpandStar"></a> 473 </dl><a NAME="Refactoring.__importsExpandStar" ID="Refactoring.__importsExpandStar"></a>
441 <h4>Refactoring.__importsExpandStar</h4> 474 <h4>Refactoring.__importsExpandStar</h4>
442 <b>__importsExpandStar</b>(<i></i>) 475 <b>__importsExpandStar</b>(<i></i>)
443 <p> 476 <p>

eric ide

mercurial