324 <td>Private method used to setup the Languages context sub menu.</td> |
324 <td>Private method used to setup the Languages context sub menu.</td> |
325 </tr><tr> |
325 </tr><tr> |
326 <td><a href="#Editor.__initContextMenuMargins">__initContextMenuMargins</a></td> |
326 <td><a href="#Editor.__initContextMenuMargins">__initContextMenuMargins</a></td> |
327 <td>Private method used to setup the context menu for the margins.</td> |
327 <td>Private method used to setup the context menu for the margins.</td> |
328 </tr><tr> |
328 </tr><tr> |
|
329 <td><a href="#Editor.__initContextMenuReopenWithEncoding">__initContextMenuReopenWithEncoding</a></td> |
|
330 <td>Private method used to setup the Reopen With Encoding context sub menu.</td> |
|
331 </tr><tr> |
329 <td><a href="#Editor.__initContextMenuResources">__initContextMenuResources</a></td> |
332 <td><a href="#Editor.__initContextMenuResources">__initContextMenuResources</a></td> |
330 <td>Private method used to setup the Resources context sub menu.</td> |
333 <td>Private method used to setup the Resources context sub menu.</td> |
331 </tr><tr> |
334 </tr><tr> |
332 <td><a href="#Editor.__initContextMenuSeparateMargins">__initContextMenuSeparateMargins</a></td> |
335 <td><a href="#Editor.__initContextMenuSeparateMargins">__initContextMenuSeparateMargins</a></td> |
333 <td>Private method used to setup the context menu for the separated margins.</td> |
336 <td>Private method used to setup the context menu for the separated margins.</td> |
440 <td><a href="#Editor.__removeFromSpellingDictionary">__removeFromSpellingDictionary</a></td> |
443 <td><a href="#Editor.__removeFromSpellingDictionary">__removeFromSpellingDictionary</a></td> |
441 <td>Private slot to remove the word below the context menu to the dictionary.</td> |
444 <td>Private slot to remove the word below the context menu to the dictionary.</td> |
442 </tr><tr> |
445 </tr><tr> |
443 <td><a href="#Editor.__removeTrailingWhitespace">__removeTrailingWhitespace</a></td> |
446 <td><a href="#Editor.__removeTrailingWhitespace">__removeTrailingWhitespace</a></td> |
444 <td>Private method to remove trailing whitespace.</td> |
447 <td>Private method to remove trailing whitespace.</td> |
|
448 </tr><tr> |
|
449 <td><a href="#Editor.__reopenWithEncodingMenuTriggered">__reopenWithEncodingMenuTriggered</a></td> |
|
450 <td>Private method to handle the rereading of the file with a selected encoding.</td> |
445 </tr><tr> |
451 </tr><tr> |
446 <td><a href="#Editor.__resetLanguage">__resetLanguage</a></td> |
452 <td><a href="#Editor.__resetLanguage">__resetLanguage</a></td> |
447 <td>Private method used to reset the language selection.</td> |
453 <td>Private method used to reset the language selection.</td> |
448 </tr><tr> |
454 </tr><tr> |
449 <td><a href="#Editor.__resetOnlineChangeTraceInfo">__resetOnlineChangeTraceInfo</a></td> |
455 <td><a href="#Editor.__resetOnlineChangeTraceInfo">__resetOnlineChangeTraceInfo</a></td> |
1732 </dl><a NAME="Editor.__initContextMenuMargins" ID="Editor.__initContextMenuMargins"></a> |
1738 </dl><a NAME="Editor.__initContextMenuMargins" ID="Editor.__initContextMenuMargins"></a> |
1733 <h4>Editor.__initContextMenuMargins</h4> |
1739 <h4>Editor.__initContextMenuMargins</h4> |
1734 <b>__initContextMenuMargins</b>(<i></i>) |
1740 <b>__initContextMenuMargins</b>(<i></i>) |
1735 <p> |
1741 <p> |
1736 Private method used to setup the context menu for the margins. |
1742 Private method used to setup the context menu for the margins. |
1737 </p><a NAME="Editor.__initContextMenuResources" ID="Editor.__initContextMenuResources"></a> |
1743 </p><a NAME="Editor.__initContextMenuReopenWithEncoding" ID="Editor.__initContextMenuReopenWithEncoding"></a> |
|
1744 <h4>Editor.__initContextMenuReopenWithEncoding</h4> |
|
1745 <b>__initContextMenuReopenWithEncoding</b>(<i></i>) |
|
1746 <p> |
|
1747 Private method used to setup the Reopen With Encoding context sub menu. |
|
1748 </p><dl> |
|
1749 <dt>Returns:</dt> |
|
1750 <dd> |
|
1751 reference to the generated menu (QMenu) |
|
1752 </dd> |
|
1753 </dl><a NAME="Editor.__initContextMenuResources" ID="Editor.__initContextMenuResources"></a> |
1738 <h4>Editor.__initContextMenuResources</h4> |
1754 <h4>Editor.__initContextMenuResources</h4> |
1739 <b>__initContextMenuResources</b>(<i></i>) |
1755 <b>__initContextMenuResources</b>(<i></i>) |
1740 <p> |
1756 <p> |
1741 Private method used to setup the Resources context sub menu. |
1757 Private method used to setup the Resources context sub menu. |
1742 </p><dl> |
1758 </p><dl> |
2089 </p><a NAME="Editor.__removeTrailingWhitespace" ID="Editor.__removeTrailingWhitespace"></a> |
2105 </p><a NAME="Editor.__removeTrailingWhitespace" ID="Editor.__removeTrailingWhitespace"></a> |
2090 <h4>Editor.__removeTrailingWhitespace</h4> |
2106 <h4>Editor.__removeTrailingWhitespace</h4> |
2091 <b>__removeTrailingWhitespace</b>(<i></i>) |
2107 <b>__removeTrailingWhitespace</b>(<i></i>) |
2092 <p> |
2108 <p> |
2093 Private method to remove trailing whitespace. |
2109 Private method to remove trailing whitespace. |
2094 </p><a NAME="Editor.__resetLanguage" ID="Editor.__resetLanguage"></a> |
2110 </p><a NAME="Editor.__reopenWithEncodingMenuTriggered" ID="Editor.__reopenWithEncodingMenuTriggered"></a> |
|
2111 <h4>Editor.__reopenWithEncodingMenuTriggered</h4> |
|
2112 <b>__reopenWithEncodingMenuTriggered</b>(<i>act</i>) |
|
2113 <p> |
|
2114 Private method to handle the rereading of the file with a selected |
|
2115 encoding. |
|
2116 </p><dl> |
|
2117 <dt><i>act</i></dt> |
|
2118 <dd> |
|
2119 reference to the action that was triggered (QAction) |
|
2120 </dd> |
|
2121 </dl><a NAME="Editor.__resetLanguage" ID="Editor.__resetLanguage"></a> |
2095 <h4>Editor.__resetLanguage</h4> |
2122 <h4>Editor.__resetLanguage</h4> |
2096 <b>__resetLanguage</b>(<i>propagate=True</i>) |
2123 <b>__resetLanguage</b>(<i>propagate=True</i>) |
2097 <p> |
2124 <p> |
2098 Private method used to reset the language selection. |
2125 Private method used to reset the language selection. |
2099 </p><dl> |
2126 </p><dl> |
3582 <b>projectOpened</b>(<i></i>) |
3609 <b>projectOpened</b>(<i></i>) |
3583 <p> |
3610 <p> |
3584 Public slot to handle the opening of a project. |
3611 Public slot to handle the opening of a project. |
3585 </p><a NAME="Editor.readFile" ID="Editor.readFile"></a> |
3612 </p><a NAME="Editor.readFile" ID="Editor.readFile"></a> |
3586 <h4>Editor.readFile</h4> |
3613 <h4>Editor.readFile</h4> |
3587 <b>readFile</b>(<i>fn, createIt=False</i>) |
3614 <b>readFile</b>(<i>fn, createIt=False, encoding=""</i>) |
3588 <p> |
3615 <p> |
3589 Public slot to read the text from a file. |
3616 Public slot to read the text from a file. |
3590 </p><dl> |
3617 </p><dl> |
3591 <dt><i>fn</i></dt> |
3618 <dt><i>fn</i></dt> |
3592 <dd> |
3619 <dd> |
3593 filename to read from (string) |
3620 filename to read from (string) |
3594 </dd><dt><i>createIt</i></dt> |
3621 </dd><dt><i>createIt=</i></dt> |
3595 <dd> |
3622 <dd> |
3596 flag indicating the creation of a new file, if the |
3623 flag indicating the creation of a new file, if the |
3597 given one doesn't exist (boolean) |
3624 given one doesn't exist (boolean) |
|
3625 </dd><dt><i>encoding=</i></dt> |
|
3626 <dd> |
|
3627 encoding to be used to read the file (string) |
|
3628 (Note: this parameter overrides encoding detection) |
3598 </dd> |
3629 </dd> |
3599 </dl><a NAME="Editor.readSettings" ID="Editor.readSettings"></a> |
3630 </dl><a NAME="Editor.readSettings" ID="Editor.readSettings"></a> |
3600 <h4>Editor.readSettings</h4> |
3631 <h4>Editor.readSettings</h4> |
3601 <b>readSettings</b>(<i></i>) |
3632 <b>readSettings</b>(<i></i>) |
3602 <p> |
3633 <p> |