88 is passed as a parameter. |
88 is passed as a parameter. |
89 </dd><dt>languageChanged(str)</dt> |
89 </dd><dt>languageChanged(str)</dt> |
90 <dd> |
90 <dd> |
91 emitted when the editors language was set. The |
91 emitted when the editors language was set. The |
92 language is passed as a parameter. |
92 language is passed as a parameter. |
|
93 </dd><dt>lastEditPositionAvailable()</dt> |
|
94 <dd> |
|
95 emitted when a last edit position is available |
93 </dd><dt>modificationStatusChanged(bool, QsciScintillaCompat)</dt> |
96 </dd><dt>modificationStatusChanged(bool, QsciScintillaCompat)</dt> |
94 <dd> |
97 <dd> |
95 emitted when the |
98 emitted when the |
96 modification status has changed |
99 modification status has changed |
97 </dd><dt>redoAvailable(bool)</dt> |
100 </dd><dt>redoAvailable(bool)</dt> |
398 <td>Private method used to reset the language selection.</td> |
401 <td>Private method used to reset the language selection.</td> |
399 </tr><tr> |
402 </tr><tr> |
400 <td><a href="#Editor.__restoreBreakpoints">__restoreBreakpoints</a></td> |
403 <td><a href="#Editor.__restoreBreakpoints">__restoreBreakpoints</a></td> |
401 <td>Private method to restore the breakpoints.</td> |
404 <td>Private method to restore the breakpoints.</td> |
402 </tr><tr> |
405 </tr><tr> |
|
406 <td><a href="#Editor.__saveLastEditPosition">__saveLastEditPosition</a></td> |
|
407 <td>Private slot to record the last edit position.</td> |
|
408 </tr><tr> |
403 <td><a href="#Editor.__selectAll">__selectAll</a></td> |
409 <td><a href="#Editor.__selectAll">__selectAll</a></td> |
404 <td>Private slot handling the select all context menu action.</td> |
410 <td>Private slot handling the select all context menu action.</td> |
405 </tr><tr> |
411 </tr><tr> |
406 <td><a href="#Editor.__selectPygmentsLexer">__selectPygmentsLexer</a></td> |
412 <td><a href="#Editor.__selectPygmentsLexer">__selectPygmentsLexer</a></td> |
407 <td>Private method to select a specific pygments lexer.</td> |
413 <td>Private method to select a specific pygments lexer.</td> |
503 <td>Public slot called to handle the user entering a character.</td> |
509 <td>Public slot called to handle the user entering a character.</td> |
504 </tr><tr> |
510 </tr><tr> |
505 <td><a href="#Editor.__styleNeeded">__styleNeeded</a></td> |
511 <td><a href="#Editor.__styleNeeded">__styleNeeded</a></td> |
506 <td>Private slot to handle the need for more styling.</td> |
512 <td>Private slot to handle the need for more styling.</td> |
507 </tr><tr> |
513 </tr><tr> |
|
514 <td><a href="#Editor.__textChanged">__textChanged</a></td> |
|
515 <td>Private slot to handle a change of the editor text.</td> |
|
516 </tr><tr> |
508 <td><a href="#Editor.__toggleAutoCompletionEnable">__toggleAutoCompletionEnable</a></td> |
517 <td><a href="#Editor.__toggleAutoCompletionEnable">__toggleAutoCompletionEnable</a></td> |
509 <td>Private slot to handle the Enable Autocompletion context menu entry.</td> |
518 <td>Private slot to handle the Enable Autocompletion context menu entry.</td> |
510 </tr><tr> |
519 </tr><tr> |
511 <td><a href="#Editor.__toggleBreakpoint">__toggleBreakpoint</a></td> |
520 <td><a href="#Editor.__toggleBreakpoint">__toggleBreakpoint</a></td> |
512 <td>Private method to toggle a breakpoint.</td> |
521 <td>Private method to toggle a breakpoint.</td> |
698 <td>Public method to get the word to the left of a position.</td> |
707 <td>Public method to get the word to the left of a position.</td> |
699 </tr><tr> |
708 </tr><tr> |
700 <td><a href="#Editor.getWordRight">getWordRight</a></td> |
709 <td><a href="#Editor.getWordRight">getWordRight</a></td> |
701 <td>Public method to get the word to the right of a position.</td> |
710 <td>Public method to get the word to the right of a position.</td> |
702 </tr><tr> |
711 </tr><tr> |
|
712 <td><a href="#Editor.gotoLastEditPosition">gotoLastEditPosition</a></td> |
|
713 <td>Public method to move the cursor to the last edit position.</td> |
|
714 </tr><tr> |
703 <td><a href="#Editor.gotoLine">gotoLine</a></td> |
715 <td><a href="#Editor.gotoLine">gotoLine</a></td> |
704 <td>Public slot to jump to the beginning of a line.</td> |
716 <td>Public slot to jump to the beginning of a line.</td> |
705 </tr><tr> |
717 </tr><tr> |
|
718 <td><a href="#Editor.gotoMethodClass">gotoMethodClass</a></td> |
|
719 <td>Public method to go to the next Python method or class definition.</td> |
|
720 </tr><tr> |
706 <td><a href="#Editor.gotoSyntaxError">gotoSyntaxError</a></td> |
721 <td><a href="#Editor.gotoSyntaxError">gotoSyntaxError</a></td> |
707 <td>Public slot to handle the 'Goto syntax error' context menu action.</td> |
722 <td>Public slot to handle the 'Goto syntax error' context menu action.</td> |
708 </tr><tr> |
723 </tr><tr> |
709 <td><a href="#Editor.handleMonospacedEnable">handleMonospacedEnable</a></td> |
724 <td><a href="#Editor.handleMonospacedEnable">handleMonospacedEnable</a></td> |
710 <td>Private slot to handle the Use Monospaced Font context menu entry.</td> |
725 <td>Private slot to handle the Use Monospaced Font context menu entry.</td> |
739 <td><a href="#Editor.highlightVisible">highlightVisible</a></td> |
754 <td><a href="#Editor.highlightVisible">highlightVisible</a></td> |
740 <td>Public method to make sure that the highlight is visible.</td> |
755 <td>Public method to make sure that the highlight is visible.</td> |
741 </tr><tr> |
756 </tr><tr> |
742 <td><a href="#Editor.indentLineOrSelection">indentLineOrSelection</a></td> |
757 <td><a href="#Editor.indentLineOrSelection">indentLineOrSelection</a></td> |
743 <td>Public slot to indent the current line or current selection</td> |
758 <td>Public slot to indent the current line or current selection</td> |
|
759 </tr><tr> |
|
760 <td><a href="#Editor.isLastEditPositionAvailable">isLastEditPositionAvailable</a></td> |
|
761 <td>Public method to check, if a last edit position is available.</td> |
744 </tr><tr> |
762 </tr><tr> |
745 <td><a href="#Editor.isPy2File">isPy2File</a></td> |
763 <td><a href="#Editor.isPy2File">isPy2File</a></td> |
746 <td>Public method to return a flag indicating a Python file.</td> |
764 <td>Public method to return a flag indicating a Python file.</td> |
747 </tr><tr> |
765 </tr><tr> |
748 <td><a href="#Editor.isPy3File">isPy3File</a></td> |
766 <td><a href="#Editor.isPy3File">isPy3File</a></td> |
1714 </dl><a NAME="Editor.__restoreBreakpoints" ID="Editor.__restoreBreakpoints"></a> |
1732 </dl><a NAME="Editor.__restoreBreakpoints" ID="Editor.__restoreBreakpoints"></a> |
1715 <h4>Editor.__restoreBreakpoints</h4> |
1733 <h4>Editor.__restoreBreakpoints</h4> |
1716 <b>__restoreBreakpoints</b>(<i></i>) |
1734 <b>__restoreBreakpoints</b>(<i></i>) |
1717 <p> |
1735 <p> |
1718 Private method to restore the breakpoints. |
1736 Private method to restore the breakpoints. |
|
1737 </p><a NAME="Editor.__saveLastEditPosition" ID="Editor.__saveLastEditPosition"></a> |
|
1738 <h4>Editor.__saveLastEditPosition</h4> |
|
1739 <b>__saveLastEditPosition</b>(<i></i>) |
|
1740 <p> |
|
1741 Private slot to record the last edit position. |
1719 </p><a NAME="Editor.__selectAll" ID="Editor.__selectAll"></a> |
1742 </p><a NAME="Editor.__selectAll" ID="Editor.__selectAll"></a> |
1720 <h4>Editor.__selectAll</h4> |
1743 <h4>Editor.__selectAll</h4> |
1721 <b>__selectAll</b>(<i></i>) |
1744 <b>__selectAll</b>(<i></i>) |
1722 <p> |
1745 <p> |
1723 Private slot handling the select all context menu action. |
1746 Private slot handling the select all context menu action. |
1939 </p><dl> |
1962 </p><dl> |
1940 <dt><i>position</i></dt> |
1963 <dt><i>position</i></dt> |
1941 <dd> |
1964 <dd> |
1942 end position, that needs styling (integer) |
1965 end position, that needs styling (integer) |
1943 </dd> |
1966 </dd> |
1944 </dl><a NAME="Editor.__toggleAutoCompletionEnable" ID="Editor.__toggleAutoCompletionEnable"></a> |
1967 </dl><a NAME="Editor.__textChanged" ID="Editor.__textChanged"></a> |
|
1968 <h4>Editor.__textChanged</h4> |
|
1969 <b>__textChanged</b>(<i></i>) |
|
1970 <p> |
|
1971 Private slot to handle a change of the editor text. |
|
1972 </p><p> |
|
1973 This slot defers the handling to the next time the event loop |
|
1974 is run in order to ensure, that cursor position has been updated |
|
1975 by the underlying Scintilla editor. |
|
1976 </p><a NAME="Editor.__toggleAutoCompletionEnable" ID="Editor.__toggleAutoCompletionEnable"></a> |
1945 <h4>Editor.__toggleAutoCompletionEnable</h4> |
1977 <h4>Editor.__toggleAutoCompletionEnable</h4> |
1946 <b>__toggleAutoCompletionEnable</b>(<i></i>) |
1978 <b>__toggleAutoCompletionEnable</b>(<i></i>) |
1947 <p> |
1979 <p> |
1948 Private slot to handle the Enable Autocompletion context menu entry. |
1980 Private slot to handle the Enable Autocompletion context menu entry. |
1949 </p><a NAME="Editor.__toggleBreakpoint" ID="Editor.__toggleBreakpoint"></a> |
1981 </p><a NAME="Editor.__toggleBreakpoint" ID="Editor.__toggleBreakpoint"></a> |
2603 </dl><dl> |
2635 </dl><dl> |
2604 <dt>Returns:</dt> |
2636 <dt>Returns:</dt> |
2605 <dd> |
2637 <dd> |
2606 the word to the right of that position (string) |
2638 the word to the right of that position (string) |
2607 </dd> |
2639 </dd> |
2608 </dl><a NAME="Editor.gotoLine" ID="Editor.gotoLine"></a> |
2640 </dl><a NAME="Editor.gotoLastEditPosition" ID="Editor.gotoLastEditPosition"></a> |
|
2641 <h4>Editor.gotoLastEditPosition</h4> |
|
2642 <b>gotoLastEditPosition</b>(<i></i>) |
|
2643 <p> |
|
2644 Public method to move the cursor to the last edit position. |
|
2645 </p><a NAME="Editor.gotoLine" ID="Editor.gotoLine"></a> |
2609 <h4>Editor.gotoLine</h4> |
2646 <h4>Editor.gotoLine</h4> |
2610 <b>gotoLine</b>(<i>line, pos=1</i>) |
2647 <b>gotoLine</b>(<i>line, pos=1</i>) |
2611 <p> |
2648 <p> |
2612 Public slot to jump to the beginning of a line. |
2649 Public slot to jump to the beginning of a line. |
2613 </p><dl> |
2650 </p><dl> |
2616 line number to go to (integer) |
2653 line number to go to (integer) |
2617 </dd><dt><i>pos=</i></dt> |
2654 </dd><dt><i>pos=</i></dt> |
2618 <dd> |
2655 <dd> |
2619 position in line to go to (integer) |
2656 position in line to go to (integer) |
2620 </dd> |
2657 </dd> |
2621 </dl><a NAME="Editor.gotoSyntaxError" ID="Editor.gotoSyntaxError"></a> |
2658 </dl><a NAME="Editor.gotoMethodClass" ID="Editor.gotoMethodClass"></a> |
|
2659 <h4>Editor.gotoMethodClass</h4> |
|
2660 <b>gotoMethodClass</b>(<i>goUp=False</i>) |
|
2661 <p> |
|
2662 Public method to go to the next Python method or class definition. |
|
2663 </p><a NAME="Editor.gotoSyntaxError" ID="Editor.gotoSyntaxError"></a> |
2622 <h4>Editor.gotoSyntaxError</h4> |
2664 <h4>Editor.gotoSyntaxError</h4> |
2623 <b>gotoSyntaxError</b>(<i></i>) |
2665 <b>gotoSyntaxError</b>(<i></i>) |
2624 <p> |
2666 <p> |
2625 Public slot to handle the 'Goto syntax error' context menu action. |
2667 Public slot to handle the 'Goto syntax error' context menu action. |
2626 </p><a NAME="Editor.handleMonospacedEnable" ID="Editor.handleMonospacedEnable"></a> |
2668 </p><a NAME="Editor.handleMonospacedEnable" ID="Editor.handleMonospacedEnable"></a> |
2727 </p><a NAME="Editor.indentLineOrSelection" ID="Editor.indentLineOrSelection"></a> |
2769 </p><a NAME="Editor.indentLineOrSelection" ID="Editor.indentLineOrSelection"></a> |
2728 <h4>Editor.indentLineOrSelection</h4> |
2770 <h4>Editor.indentLineOrSelection</h4> |
2729 <b>indentLineOrSelection</b>(<i></i>) |
2771 <b>indentLineOrSelection</b>(<i></i>) |
2730 <p> |
2772 <p> |
2731 Public slot to indent the current line or current selection |
2773 Public slot to indent the current line or current selection |
2732 </p><a NAME="Editor.isPy2File" ID="Editor.isPy2File"></a> |
2774 </p><a NAME="Editor.isLastEditPositionAvailable" ID="Editor.isLastEditPositionAvailable"></a> |
|
2775 <h4>Editor.isLastEditPositionAvailable</h4> |
|
2776 <b>isLastEditPositionAvailable</b>(<i></i>) |
|
2777 <p> |
|
2778 Public method to check, if a last edit position is available. |
|
2779 </p><dl> |
|
2780 <dt>Returns:</dt> |
|
2781 <dd> |
|
2782 flag indicating availability (boolean) |
|
2783 </dd> |
|
2784 </dl><a NAME="Editor.isPy2File" ID="Editor.isPy2File"></a> |
2733 <h4>Editor.isPy2File</h4> |
2785 <h4>Editor.isPy2File</h4> |
2734 <b>isPy2File</b>(<i></i>) |
2786 <b>isPy2File</b>(<i></i>) |
2735 <p> |
2787 <p> |
2736 Public method to return a flag indicating a Python file. |
2788 Public method to return a flag indicating a Python file. |
2737 </p><dl> |
2789 </p><dl> |