Module implementing the editor component of the eric3 IDE.
Editor | Class implementing the editor component of the eric3 IDE. |
None |
Class implementing the editor component of the eric3 IDE.
Editor | Constructor |
_updateReadOnly | Private method to update the readOnly information for this editor. |
autoComplete | Public method to perform an autocompletion. |
bindLexer | Private slot to set the correct lexer depending on language. |
boxCommentLine | Public slot to box comment the current line. |
boxCommentLineOrSelection | Public slot to box comment the current line or current selection. |
boxCommentSelection | Public slot to box comment the current selection. |
checkDirty | Private method to check dirty status and open a message window. |
clearBreakpoint | Public method to clear a breakpoint. |
close | Public method called when the window gets closed. |
closeIt | Public method called by the viewmanager to finally get rid of us. |
colourise | Public method to recolourise the given region. |
colouriseAll | Public method to recolourise the whole document. |
commentLine | Public slot to comment the current line. |
commentLineOrSelection | Public slot to comment the current line or current selection. |
commentSelection | Public slot to comment the current selection. |
contextMenuEvent | Private method implementing the context menu event. |
curLineHasBreakpoint | Public method to check for the presence of a breakpoint at the current line. |
ensureVisible | Public slot to ensure, that the specified line is visible. |
eventFilter | Private method called to filter an event. |
focusInEvent | Public method called when the editor receives focus. |
focusOutEvent | Public method called when the editor loses focus. |
getBookmarks | Public method to retrieve the bookmarks. |
getBreakpoints | Public method to retrieve all breakpoints. |
getExtension | Private method to get the fileextension without a leading '.'. |
getFileName | Public method to return the name of the file being displayed. |
getHighlightPosition | Public method to return the position of the highlight bar. |
getLexer | Public method to retrieve a reference to the lexer object. |
getMacroName | Private method to select a macro name from the list of macros. |
getZoom | Public method used to retrieve the current zoom factor. |
gotoLine | Public slot to jump to the beginning of a line. |
handleAutoCompletionEnable | Private slot to handle the Enable Autocompletion context menu entry. |
handleBookmark | Public method to toggle a bookmark. |
handleClearBookmarks | Private slot to handle the 'Clear all bookmarks' context menu action. |
handleClearBreakpoints | Private slot to handle the 'Clear all breakpoints' context menu action. |
handleCodeCoverage | Private method to handle the code coverage context menu action. |
handleCodeMetrics | Private method to handle the code metrics context menu action. |
handleContextClose | Private slot handling the close context menu entry. |
handleContextSave | Private slot handling the save context menu entry. |
handleContextSaveAs | Private slot handling the save as context menu entry. |
handleCursorPositionChanged | Private slot to handle the cursorPositionChanged signal. |
handleCyclopsReport | Private method to handle the Cyclops report context menu action. |
handleDeleteMacro | Public method to delete a macro. |
handleDeselectAll | Private slot handling the deselect all context menu action. |
handleEditBreakpoint | Private slot to handle the 'Edit breakpoint' context menu action. |
handleLMBbookmarks | Private method to handle the 'LMB toggles bookmark' context menu action. |
handleLMBbreakpoints | Private method to handle the 'LMB toggles breakpoint' context menu action. |
handleLanguage | Private method to handle the selection of a lexer language. |
handleLoadMacro | Public method to load a macro from a file. |
handleMarginClicked | Private slot to handle the marginClicked signal. |
handleModificationChanged | Private slot to handle the modificationChanged signal. |
handleModificationReadOnly | Private slot to handle the modificationAttempted signal. |
handleMonospacedEnable | Private slot to handle the Use Monospaced Font context menu entry. |
handleNextBookmark | Private slot to handle the 'Next bookmark' context menu action. |
handleNextBreakpoint | Private slot to handle the 'Next breakpoint' context menu action. |
handlePreviousBookmark | Private slot to handle the 'Previous bookmark' context menu action. |
handlePreviousBreakpoint | Private slot to handle the 'Previous breakpoint' context menu action. |
handleProfileData | Private method to handle the show profile data context menu action. |
handleRunMacro | Public method to execute a macro. |
handleSaveMacro | Public method to save a macro to a file. |
handleSelectAll | Private slot handling the select all context menu action. |
handleShowContextMenu | Private slot handling the aboutToShow signal of the context menu. |
handleShowMarginContextMenu | Private slot handling the aboutToShow signal of the margins context menu. |
handleShowShowMenu | Private slot called before the show menu is shown. |
handleStartMacroRecording | Public method to start macro recording. |
handleStopMacroRecording | Public method to stop macro recording. |
handleSyntaxCheck | Private method to handle the syntax check context menu action. |
handleTabnanny | Private method to handle the tabnanny context menu action. |
handleTemporaryBreakpoint | |
handleToggleBookmark | Private slot to handle the 'Toggle bookmark' context menu action. |
handleToggleBreakpoint | Private slot to handle the 'Toggle breakpoint' context menu action. |
handleToggleBreakpointEnabled | Private slot to handle the 'Enable/Disable breakpoint' context menu action. |
hasBookmarks | Public method to check for the presence of bookmarks. |
hasBreakpoints | Public method to check for the presence of breakpoints. |
highlight | Public method to highlight (or de-highlight) a particular line. |
highlightVisible | Public method to make sure that the highlight is visible. |
indentLine | Private method to indent or unindent the current line. |
indentLineOrSelection | Public slot to indent the current line or current selection |
indentSelection | Private method to indent or unindent the current selection. |
initContextMenu | Private method used to setup the context menu |
initContextMenuChecks | Private method used to setup the Checks context sub menu. |
initContextMenuLanguages | Private method used to setup the Languages context sub menu. |
initContextMenuShow | Private method used to setup the Show context sub menu. |
initMarginContextMenu | Private method used to setup the context menu for the margins |
isPyFile | Public method to return a flag indicating a Python file. |
lineAt | Public method to calculate the line at a position. |
marginsWidth | Private method to determin the width of all margins. |
newBreakpointWithProperties | Public method to set a new breakpoint and its properties. |
printFile | Public slot to print the text. |
printSelection | Public slot to print the selected text. |
readFile | Public slot to read the text from a file. |
readSettings | Public slot to read the settings into our lexer. |
refresh | Public slot to refresh the editor contents. |
revertToUnmodified | Private method to revert back to the last saved state. |
saveFile | Public slot to save the text to a file. |
saveFileAs | Public slot to save a file with a new name. |
setAutoCompletion | Private method to configure the autocompletion function. |
setAutoCompletionEnabled | Public method to enable/disable autocompletion. |
setBreakpointIgnoreCount | Public method to set a breakpoints ignore count. |
setBreakpointProperties | Public method to set a breakpoints properties. |
setCallTips | Private method to configure the calltips function. |
setCaretForegroundColour | Public method to set the foreground color of the caret. |
setCaretLineBackgroundColour | Public method to set the background color of the caret line. |
setCaretLineVisible | Public method to enable the highlighting of the caret line. |
setCaretWidth | Public method to enable the highlighting of the caret line. |
setLanguage | Private method to set a lexer language. |
setLineMarkerColours | Private method to set the line marker colours. |
setMargin0and2 | Private method to configure margins 0 and 2. |
setMonospaced | Public method to set/reset a monospaced font. |
setSelectionBackgroundColour | Public method to set the background color of the selection. |
setTextDisplay | Private method to configure the text display. |
streamCommentLine | Public slot to stream comment the current line. |
streamCommentLineOrSelection | Public slot to stream comment the current line or current selection. |
streamCommentSelection | Public slot to comment the current selection. |
toggleBreakpoint | Public method to toggle a breakpoint. |
toggleBreakpointEnabled | Public method to toggle a breakpoints enabled status. |
uncommentLine | Public slot to uncomment the current line. |
uncommentLineOrSelection | Public slot to uncomment the current line or current selection. |
uncommentSelection | Public slot to uncomment the current selection. |
unindentLineOrSelection | Public slot to unindent the current line or current selection. |
writeFile | Public slot to write the text to a file. |
zoomIn | Public method used to increase the zoom factor. |
zoomOut | Public method used to decrease the zoom factor. |
zoomTo | Public method used to zoom to a specific zoom factor. |
Constructor
Private method to update the readOnly information for this editor.
If bForce is True, then updates everything regardless if the attributes have actually changed, such as during initialization time. A signal is emitted after the caption change.
Public method to perform an autocompletion.
Private slot to set the correct lexer depending on language.
Public slot to box comment the current line.
Public slot to box comment the current line or current selection.
Public slot to box comment the current selection.
Private method to check dirty status and open a message window.
Public method to clear a breakpoint.
Note: This doesn't clear the breakpoint in the debugger, it just deletes it from the editor internal list of breakpoints.
Public method called when the window gets closed.
This overwritten method redirects the action to our ViewManager.closeEditor, which in turn calls our closeIt method.
Public method called by the viewmanager to finally get rid of us.
Public method to recolourise the given region.
Public method to recolourise the whole document.
Public slot to comment the current line.
Public slot to comment the current line or current selection.
Public slot to comment the current selection.
Private method implementing the context menu event.
Public method to check for the presence of a breakpoint at the current line.
Public slot to ensure, that the specified line is visible.
Private method called to filter an event.
Public method called when the editor receives focus.
Public method called when the editor loses focus.
Public method to retrieve the bookmarks.
Public method to retrieve all breakpoints.
This method will update the internal list of breakpoints before the list is returned.
Private method to get the fileextension without a leading '.'.
Public method to return the name of the file being displayed.
Public method to return the position of the highlight bar.
Public method to retrieve a reference to the lexer object.
Private method to select a macro name from the list of macros.
Public method used to retrieve the current zoom factor.
Public slot to jump to the beginning of a line.
Private slot to handle the Enable Autocompletion context menu entry.
Public method to toggle a bookmark.
Private slot to handle the 'Clear all bookmarks' context menu action.
Private slot to handle the 'Clear all breakpoints' context menu action.
Private method to handle the code coverage context menu action.
Private method to handle the code metrics context menu action.
Private slot handling the close context menu entry.
Private slot handling the save context menu entry.
Private slot handling the save as context menu entry.
Private slot to handle the cursorPositionChanged signal.
It emits the signal cursorChanged with parameters fileName, line and pos.
Private method to handle the Cyclops report context menu action.
Public method to delete a macro.
Private slot handling the deselect all context menu action.
Private slot to handle the 'Edit breakpoint' context menu action.
Private method to handle the 'LMB toggles bookmark' context menu action.
Private method to handle the 'LMB toggles breakpoint' context menu action.
Private method to handle the selection of a lexer language.
Public method to load a macro from a file.
Private slot to handle the marginClicked signal.
Private slot to handle the modificationChanged signal.
It emits the signal modificationStatusChanged with parameters m and self.
Private slot to handle the modificationAttempted signal.
Private slot to handle the Use Monospaced Font context menu entry.
Private slot to handle the 'Next bookmark' context menu action.
Private slot to handle the 'Next breakpoint' context menu action.
Private slot to handle the 'Previous bookmark' context menu action.
Private slot to handle the 'Previous breakpoint' context menu action.
Private method to handle the show profile data context menu action.
Public method to execute a macro.
Public method to save a macro to a file.
Private slot handling the select all context menu action.
Private slot handling the aboutToShow signal of the context menu.
Private slot handling the aboutToShow signal of the margins context menu.
Private slot called before the show menu is shown.
Public method to start macro recording.
Public method to stop macro recording.
Private method to handle the syntax check context menu action.
Private method to handle the tabnanny context menu action.
Private slot to handle the 'Toggle bookmark' context menu action.
Private slot to handle the 'Toggle breakpoint' context menu action.
Private slot to handle the 'Enable/Disable breakpoint' context menu action.
Public method to check for the presence of bookmarks.
Public method to check for the presence of breakpoints.
Public method to highlight (or de-highlight) a particular line.
Public method to make sure that the highlight is visible.
Private method to indent or unindent the current line.
Public slot to indent the current line or current selection
Private method to indent or unindent the current selection.
Private method used to setup the context menu
Private method used to setup the Checks context sub menu.
Private method used to setup the Languages context sub menu.
Private method used to setup the Show context sub menu.
Private method used to setup the context menu for the margins
Public method to return a flag indicating a Python file.
Public method to calculate the line at a position.
This variant is able to calculate the line for positions in the margins and for empty lines.
Private method to determin the width of all margins.
Public method to set a new breakpoint and its properties.
Public slot to print the text.
Public slot to print the selected text.
Public slot to read the text from a file.
Public slot to read the settings into our lexer.
Public slot to refresh the editor contents.
Private method to revert back to the last saved state.
Public slot to save the text to a file.
Public slot to save a file with a new name.
Private method to configure the autocompletion function.
Public method to enable/disable autocompletion.
Public method to set a breakpoints ignore count.
Public method to set a breakpoints properties.
Private method to configure the calltips function.
Public method to set the foreground color of the caret.
Public method to set the background color of the caret line.
Public method to enable the highlighting of the caret line.
Public method to enable the highlighting of the caret line.
Private method to set a lexer language.
Private method to set the line marker colours.
Private method to configure margins 0 and 2.
Public method to set/reset a monospaced font.
Public method to set the background color of the selection.
Private method to configure the text display.
Public slot to stream comment the current line.
Public slot to stream comment the current line or current selection.
Public slot to comment the current selection.
Public method to toggle a breakpoint.
Public method to toggle a breakpoints enabled status.
Public slot to uncomment the current line.
This happens only, if it was commented by using the commentLine() or commentSelection() slots
Public slot to uncomment the current line or current selection.
This happens only, if it was commented by using the commentLine() or commentSelection() slots
Public slot to uncomment the current selection.
This happens only, if it was commented by using the commentLine() or commentSelection() slots
Public slot to unindent the current line or current selection.
Public slot to write the text to a file.
Public method used to increase the zoom factor.
Public method used to decrease the zoom factor.
Public method used to zoom to a specific zoom factor.