--- a/Documentation/Source/eric6.QScintilla.Editor.html Tue May 01 12:04:30 2018 +0200 +++ b/Documentation/Source/eric6.QScintilla.Editor.html Sat Jun 02 12:44:41 2018 +0200 @@ -213,9 +213,6 @@ <td><a href="#Editor.__charAdded">__charAdded</a></td> <td>Private slot called to handle the user entering a character.</td> </tr><tr> -<td><a href="#Editor.__charAddedPermanent">__charAddedPermanent</a></td> -<td>Private slot called to handle the user entering a character.</td> -</tr><tr> <td><a href="#Editor.__checkEncoding">__checkEncoding</a></td> <td>Private method to check the selected encoding of the encodings submenu.</td> </tr><tr> @@ -249,6 +246,12 @@ <td><a href="#Editor.__contextClose">__contextClose</a></td> <td>Private slot handling the close context menu entry.</td> </tr><tr> +<td><a href="#Editor.__contextMenuCollapseFoldWithChildren">__contextMenuCollapseFoldWithChildren</a></td> +<td>Private slot to handle the context menu collapse with children action.</td> +</tr><tr> +<td><a href="#Editor.__contextMenuExpandFoldWithChildren">__contextMenuExpandFoldWithChildren</a></td> +<td>Private slot to handle the context menu expand with children action.</td> +</tr><tr> <td><a href="#Editor.__contextMenuSpellingTriggered">__contextMenuSpellingTriggered</a></td> <td>Private slot to handle the selection of a suggestion of the spelling context menu.</td> </tr><tr> @@ -360,18 +363,12 @@ <td><a href="#Editor.__initContextMenuResources">__initContextMenuResources</a></td> <td>Private method used to setup the Resources context sub menu.</td> </tr><tr> -<td><a href="#Editor.__initContextMenuSeparateMargins">__initContextMenuSeparateMargins</a></td> -<td>Private method used to setup the context menu for the separated margins.</td> -</tr><tr> <td><a href="#Editor.__initContextMenuShow">__initContextMenuShow</a></td> <td>Private method used to setup the Show context sub menu.</td> </tr><tr> <td><a href="#Editor.__initContextMenuTools">__initContextMenuTools</a></td> <td>Private method used to setup the Tools context sub menu.</td> </tr><tr> -<td><a href="#Editor.__initContextMenuUnifiedMargins">__initContextMenuUnifiedMargins</a></td> -<td>Private method used to setup the context menu for the unified margins.</td> -</tr><tr> <td><a href="#Editor.__initOnlineChangeTrace">__initOnlineChangeTrace</a></td> <td>Private slot to initialize the online change trace.</td> </tr><tr> @@ -738,6 +735,9 @@ <td><a href="#Editor.codeCoverageShowAnnotations">codeCoverageShowAnnotations</a></td> <td>Public method to handle the show code coverage annotations context menu action.</td> </tr><tr> +<td><a href="#Editor.collapseFoldWithChildren">collapseFoldWithChildren</a></td> +<td>Public slot to collapse the current fold including its children.</td> +</tr><tr> <td><a href="#Editor.commentLine">commentLine</a></td> <td>Public slot to comment the current line.</td> </tr><tr> @@ -783,6 +783,9 @@ <td><a href="#Editor.event">event</a></td> <td>Public method handling events.</td> </tr><tr> +<td><a href="#Editor.expandFoldWithChildren">expandFoldWithChildren</a></td> +<td>Public slot to expand the current fold including its children.</td> +</tr><tr> <td><a href="#Editor.exportFile">exportFile</a></td> <td>Public method to export the file.</td> </tr><tr> @@ -1200,6 +1203,9 @@ <td><a href="#Editor.toggleCommentBlock">toggleCommentBlock</a></td> <td>Public slot to toggle the comment of a block.</td> </tr><tr> +<td><a href="#Editor.toggleCurrentFold">toggleCurrentFold</a></td> +<td>Public slot to toggle the fold containing the current line.</td> +</tr><tr> <td><a href="#Editor.toggleSyntaxError">toggleSyntaxError</a></td> <td>Public method to toggle a syntax error indicator.</td> </tr><tr> @@ -1491,19 +1497,6 @@ <dd> value of the character entered (integer) </dd> -</dl><a NAME="Editor.__charAddedPermanent" ID="Editor.__charAddedPermanent"></a> -<h4>Editor.__charAddedPermanent</h4> -<b>__charAddedPermanent</b>(<i>charNumber</i>) -<p> - Private slot called to handle the user entering a character. -</p><p> - Note: This slot is always connected independent of the auto-completion - and calltips handling __charAdded() slot. -</p><dl> -<dt><i>charNumber</i></dt> -<dd> -value of the character entered (integer) -</dd> </dl><a NAME="Editor.__checkEncoding" ID="Editor.__checkEncoding"></a> <h4>Editor.__checkEncoding</h4> <b>__checkEncoding</b>(<i></i>) @@ -1579,6 +1572,16 @@ <b>__contextClose</b>(<i></i>) <p> Private slot handling the close context menu entry. +</p><a NAME="Editor.__contextMenuCollapseFoldWithChildren" ID="Editor.__contextMenuCollapseFoldWithChildren"></a> +<h4>Editor.__contextMenuCollapseFoldWithChildren</h4> +<b>__contextMenuCollapseFoldWithChildren</b>(<i></i>) +<p> + Private slot to handle the context menu collapse with children action. +</p><a NAME="Editor.__contextMenuExpandFoldWithChildren" ID="Editor.__contextMenuExpandFoldWithChildren"></a> +<h4>Editor.__contextMenuExpandFoldWithChildren</h4> +<b>__contextMenuExpandFoldWithChildren</b>(<i></i>) +<p> + Private slot to handle the context menu expand with children action. </p><a NAME="Editor.__contextMenuSpellingTriggered" ID="Editor.__contextMenuSpellingTriggered"></a> <h4>Editor.__contextMenuSpellingTriggered</h4> <b>__contextMenuSpellingTriggered</b>(<i>action</i>) @@ -1963,13 +1966,7 @@ <dd> reference to the generated menu (QMenu) </dd> -</dl><a NAME="Editor.__initContextMenuSeparateMargins" ID="Editor.__initContextMenuSeparateMargins"></a> -<h4>Editor.__initContextMenuSeparateMargins</h4> -<b>__initContextMenuSeparateMargins</b>(<i></i>) -<p> - Private method used to setup the context menu for the separated - margins. -</p><a NAME="Editor.__initContextMenuShow" ID="Editor.__initContextMenuShow"></a> +</dl><a NAME="Editor.__initContextMenuShow" ID="Editor.__initContextMenuShow"></a> <h4>Editor.__initContextMenuShow</h4> <b>__initContextMenuShow</b>(<i></i>) <p> @@ -1989,12 +1986,7 @@ <dd> reference to the generated menu (QMenu) </dd> -</dl><a NAME="Editor.__initContextMenuUnifiedMargins" ID="Editor.__initContextMenuUnifiedMargins"></a> -<h4>Editor.__initContextMenuUnifiedMargins</h4> -<b>__initContextMenuUnifiedMargins</b>(<i></i>) -<p> - Private method used to setup the context menu for the unified margins. -</p><a NAME="Editor.__initOnlineChangeTrace" ID="Editor.__initOnlineChangeTrace"></a> +</dl><a NAME="Editor.__initOnlineChangeTrace" ID="Editor.__initOnlineChangeTrace"></a> <h4>Editor.__initOnlineChangeTrace</h4> <b>__initOnlineChangeTrace</b>(<i></i>) <p> @@ -3024,6 +3016,16 @@ <dd> flag indicating to not show any dialog (boolean) </dd> +</dl><a NAME="Editor.collapseFoldWithChildren" ID="Editor.collapseFoldWithChildren"></a> +<h4>Editor.collapseFoldWithChildren</h4> +<b>collapseFoldWithChildren</b>(<i>line=-1</i>) +<p> + Public slot to collapse the current fold including its children. +</p><dl> +<dt><i>line</i> (int)</dt> +<dd> +number of line to be expanded +</dd> </dl><a NAME="Editor.commentLine" ID="Editor.commentLine"></a> <h4>Editor.commentLine</h4> <b>commentLine</b>(<i></i>) @@ -3136,24 +3138,30 @@ </dd> </dl><a NAME="Editor.ensureVisible" ID="Editor.ensureVisible"></a> <h4>Editor.ensureVisible</h4> -<b>ensureVisible</b>(<i>line</i>) +<b>ensureVisible</b>(<i>line, expand=False</i>) <p> Public slot to ensure, that the specified line is visible. </p><dl> -<dt><i>line</i></dt> +<dt><i>line</i> (int)</dt> <dd> line number to make visible +</dd><dt><i>expand=</i> (bool)</dt> +<dd> +flag indicating to expand all folds </dd> </dl><a NAME="Editor.ensureVisibleTop" ID="Editor.ensureVisibleTop"></a> <h4>Editor.ensureVisibleTop</h4> -<b>ensureVisibleTop</b>(<i>line</i>) +<b>ensureVisibleTop</b>(<i>line, expand=False</i>) <p> Public slot to ensure, that the specified line is visible at the top of the editor. </p><dl> -<dt><i>line</i></dt> +<dt><i>line</i> (int)</dt> <dd> line number to make visible +</dd><dt><i>expand=</i> (bool)</dt> +<dd> +flag indicating to expand all folds </dd> </dl><a NAME="Editor.event" ID="Editor.event"></a> <h4>Editor.event</h4> @@ -3170,6 +3178,16 @@ <dd> flag indicating, if the event was handled (boolean) </dd> +</dl><a NAME="Editor.expandFoldWithChildren" ID="Editor.expandFoldWithChildren"></a> +<h4>Editor.expandFoldWithChildren</h4> +<b>expandFoldWithChildren</b>(<i>line=-1</i>) +<p> + Public slot to expand the current fold including its children. +</p><dl> +<dt><i>line</i> (int)</dt> +<dd> +number of line to be expanded +</dd> </dl><a NAME="Editor.exportFile" ID="Editor.exportFile"></a> <h4>Editor.exportFile</h4> <b>exportFile</b>(<i>exporterFormat</i>) @@ -3738,20 +3756,23 @@ Public method to move the cursor to the last edit position. </p><a NAME="Editor.gotoLine" ID="Editor.gotoLine"></a> <h4>Editor.gotoLine</h4> -<b>gotoLine</b>(<i>line, pos=1, firstVisible=False</i>) +<b>gotoLine</b>(<i>line, pos=1, firstVisible=False, expand=False</i>) <p> Public slot to jump to the beginning of a line. </p><dl> -<dt><i>line</i></dt> -<dd> -line number to go to (integer) -</dd><dt><i>pos=</i></dt> -<dd> -position in line to go to (integer) -</dd><dt><i>firstVisible=</i></dt> +<dt><i>line</i> (int)</dt> +<dd> +line number to go to +</dd><dt><i>pos=</i> (int)</dt> +<dd> +position in line to go to +</dd><dt><i>firstVisible=</i> (bool)</dt> <dd> flag indicating to make the line the first - visible line (boolean) + visible line +</dd><dt><i>expand=</i> (bool)</dt> +<dd> +flag indicating to expand all folds </dd> </dl><a NAME="Editor.gotoMethodClass" ID="Editor.gotoMethodClass"></a> <h4>Editor.gotoMethodClass</h4> @@ -4565,6 +4586,11 @@ If the line of the cursor or the selection is not commented, it will be commented. If it is commented, the comment block will be removed. The later works independent of the current selection. +</p><a NAME="Editor.toggleCurrentFold" ID="Editor.toggleCurrentFold"></a> +<h4>Editor.toggleCurrentFold</h4> +<b>toggleCurrentFold</b>(<i></i>) +<p> + Public slot to toggle the fold containing the current line. </p><a NAME="Editor.toggleSyntaxError" ID="Editor.toggleSyntaxError"></a> <h4>Editor.toggleSyntaxError</h4> <b>toggleSyntaxError</b>(<i>line, index, error, msg="", show=False</i>)