313 <p> |
313 <p> |
314 Private slot to set the correct lexer depending on language. |
314 Private slot to set the correct lexer depending on language. |
315 </p><dl> |
315 </p><dl> |
316 <dt><i>filename</i></dt> |
316 <dt><i>filename</i></dt> |
317 <dd> |
317 <dd> |
318 filename used to determine the associated lexer language (string) |
318 filename used to determine the associated lexer |
|
319 language (string) |
319 </dd><dt><i>pyname=</i></dt> |
320 </dd><dt><i>pyname=</i></dt> |
320 <dd> |
321 <dd> |
321 name of the pygments lexer to use (string) |
322 name of the pygments lexer to use (string) |
322 </dd> |
323 </dd> |
323 </dl><a NAME="MiniEditor.__bindName" ID="MiniEditor.__bindName"></a> |
324 </dl><a NAME="MiniEditor.__bindName" ID="MiniEditor.__bindName"></a> |
343 Private slot to check some actions for their enable/disable status |
344 Private slot to check some actions for their enable/disable status |
344 and set the statusbar info. |
345 and set the statusbar info. |
345 </p><dl> |
346 </p><dl> |
346 <dt><i>setSb</i></dt> |
347 <dt><i>setSb</i></dt> |
347 <dd> |
348 <dd> |
348 flag indicating an update of the status bar is wanted (boolean) |
349 flag indicating an update of the status bar is wanted |
|
350 (boolean) |
349 </dd> |
351 </dd> |
350 </dl><a NAME="MiniEditor.__checkLanguage" ID="MiniEditor.__checkLanguage"></a> |
352 </dl><a NAME="MiniEditor.__checkLanguage" ID="MiniEditor.__checkLanguage"></a> |
351 <h4>MiniEditor.__checkLanguage</h4> |
353 <h4>MiniEditor.__checkLanguage</h4> |
352 <b>__checkLanguage</b>(<i></i>) |
354 <b>__checkLanguage</b>(<i></i>) |
353 <p> |
355 <p> |
389 Private method to create the menus of the menu bar. |
391 Private method to create the menus of the menu bar. |
390 </p><a NAME="MiniEditor.__createSearchActions" ID="MiniEditor.__createSearchActions"></a> |
392 </p><a NAME="MiniEditor.__createSearchActions" ID="MiniEditor.__createSearchActions"></a> |
391 <h4>MiniEditor.__createSearchActions</h4> |
393 <h4>MiniEditor.__createSearchActions</h4> |
392 <b>__createSearchActions</b>(<i></i>) |
394 <b>__createSearchActions</b>(<i></i>) |
393 <p> |
395 <p> |
394 Private method defining the user interface actions for the search commands. |
396 Private method defining the user interface actions for the search |
|
397 commands. |
395 </p><a NAME="MiniEditor.__createStatusBar" ID="MiniEditor.__createStatusBar"></a> |
398 </p><a NAME="MiniEditor.__createStatusBar" ID="MiniEditor.__createStatusBar"></a> |
396 <h4>MiniEditor.__createStatusBar</h4> |
399 <h4>MiniEditor.__createStatusBar</h4> |
397 <b>__createStatusBar</b>(<i></i>) |
400 <b>__createStatusBar</b>(<i></i>) |
398 <p> |
401 <p> |
399 Private method to initialize the status bar. |
402 Private method to initialize the status bar. |
547 <p> |
550 <p> |
548 Private slot to generate a print preview. |
551 Private slot to generate a print preview. |
549 </p><dl> |
552 </p><dl> |
550 <dt><i>printer</i></dt> |
553 <dt><i>printer</i></dt> |
551 <dd> |
554 <dd> |
552 reference to the printer object (QScintilla.Printer.Printer) |
555 reference to the printer object |
|
556 (QScintilla.Printer.Printer) |
553 </dd> |
557 </dd> |
554 </dl><a NAME="MiniEditor.__printPreviewFile" ID="MiniEditor.__printPreviewFile"></a> |
558 </dl><a NAME="MiniEditor.__printPreviewFile" ID="MiniEditor.__printPreviewFile"></a> |
555 <h4>MiniEditor.__printPreviewFile</h4> |
559 <h4>MiniEditor.__printPreviewFile</h4> |
556 <b>__printPreviewFile</b>(<i></i>) |
560 <b>__printPreviewFile</b>(<i></i>) |
557 <p> |
561 <p> |
704 Private method to configure the text display. |
708 Private method to configure the text display. |
705 </p><a NAME="MiniEditor.__showContextMenuLanguages" ID="MiniEditor.__showContextMenuLanguages"></a> |
709 </p><a NAME="MiniEditor.__showContextMenuLanguages" ID="MiniEditor.__showContextMenuLanguages"></a> |
706 <h4>MiniEditor.__showContextMenuLanguages</h4> |
710 <h4>MiniEditor.__showContextMenuLanguages</h4> |
707 <b>__showContextMenuLanguages</b>(<i></i>) |
711 <b>__showContextMenuLanguages</b>(<i></i>) |
708 <p> |
712 <p> |
709 Private slot handling the aboutToShow signal of the languages context menu. |
713 Private slot handling the aboutToShow signal of the languages context |
|
714 menu. |
710 </p><a NAME="MiniEditor.__strippedName" ID="MiniEditor.__strippedName"></a> |
715 </p><a NAME="MiniEditor.__strippedName" ID="MiniEditor.__strippedName"></a> |
711 <h4>MiniEditor.__strippedName</h4> |
716 <h4>MiniEditor.__strippedName</h4> |
712 <b>__strippedName</b>(<i>fullFileName</i>) |
717 <b>__strippedName</b>(<i>fullFileName</i>) |
713 <p> |
718 <p> |
714 Private method to return the filename part of the given path. |
719 Private method to return the filename part of the given path. |
813 <p> |
818 <p> |
814 Public method to set a lexer language. |
819 Public method to set a lexer language. |
815 </p><dl> |
820 </p><dl> |
816 <dt><i>filename</i></dt> |
821 <dt><i>filename</i></dt> |
817 <dd> |
822 <dd> |
818 filename used to determine the associated lexer language (string) |
823 filename used to determine the associated lexer |
|
824 language (string) |
819 </dd><dt><i>initTextDisplay</i></dt> |
825 </dd><dt><i>initTextDisplay</i></dt> |
820 <dd> |
826 <dd> |
821 flag indicating an initialization of the text display |
827 flag indicating an initialization of the text |
822 is required as well (boolean) |
828 display is required as well (boolean) |
823 </dd><dt><i>pyname=</i></dt> |
829 </dd><dt><i>pyname=</i></dt> |
824 <dd> |
830 <dd> |
825 name of the pygments lexer to use (string) |
831 name of the pygments lexer to use (string) |
826 </dd> |
832 </dd> |
827 </dl><a NAME="MiniEditor.setSearchIndicator" ID="MiniEditor.setSearchIndicator"></a> |
833 </dl><a NAME="MiniEditor.setSearchIndicator" ID="MiniEditor.setSearchIndicator"></a> |
852 </dd> |
858 </dd> |
853 </dl><a NAME="MiniEditor.textForFind" ID="MiniEditor.textForFind"></a> |
859 </dl><a NAME="MiniEditor.textForFind" ID="MiniEditor.textForFind"></a> |
854 <h4>MiniEditor.textForFind</h4> |
860 <h4>MiniEditor.textForFind</h4> |
855 <b>textForFind</b>(<i></i>) |
861 <b>textForFind</b>(<i></i>) |
856 <p> |
862 <p> |
857 Public method to determine the selection or the current word for the next |
863 Public method to determine the selection or the current word for the |
858 find operation. |
864 next find operation. |
859 </p><dl> |
865 </p><dl> |
860 <dt>Returns:</dt> |
866 <dt>Returns:</dt> |
861 <dd> |
867 <dd> |
862 selection or current word (string) |
868 selection or current word (string) |
863 </dd> |
869 </dd> |
865 <div align="right"><a href="#top">Up</a></div> |
871 <div align="right"><a href="#top">Up</a></div> |
866 <hr /><hr /> |
872 <hr /><hr /> |
867 <a NAME="MiniScintilla" ID="MiniScintilla"></a> |
873 <a NAME="MiniScintilla" ID="MiniScintilla"></a> |
868 <h2>MiniScintilla</h2> |
874 <h2>MiniScintilla</h2> |
869 <p> |
875 <p> |
870 Class implementing a QsciScintillaCompat subclass for handling focus events. |
876 Class implementing a QsciScintillaCompat subclass for handling focus |
|
877 events. |
871 </p> |
878 </p> |
872 <h3>Derived from</h3> |
879 <h3>Derived from</h3> |
873 QsciScintillaCompat |
880 QsciScintillaCompat |
874 <h3>Class Attributes</h3> |
881 <h3>Class Attributes</h3> |
875 <table> |
882 <table> |
915 <p> |
922 <p> |
916 Protected method called when the editor receives focus. |
923 Protected method called when the editor receives focus. |
917 </p><p> |
924 </p><p> |
918 This method checks for modifications of the current file and |
925 This method checks for modifications of the current file and |
919 rereads it upon request. The cursor is placed at the current position |
926 rereads it upon request. The cursor is placed at the current position |
920 assuming, that it is in the vicinity of the old position after the reread. |
927 assuming, that it is in the vicinity of the old position after the |
|
928 reread. |
921 </p><dl> |
929 </p><dl> |
922 <dt><i>event</i></dt> |
930 <dt><i>event</i></dt> |
923 <dd> |
931 <dd> |
924 the event object (QFocusEvent) |
932 the event object (QFocusEvent) |
925 </dd> |
933 </dd> |