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. |
autoSyntaxCheck | Private method to perform an automatic syntax check of the file. |
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. |
canAutoCompleteFromAPIs | Public method to check for API availablity. |
checkDirty | Private method to check dirty status and open a message window. |
checkLanguage | Private method to check the selected language of the language submenu. |
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. |
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. |
dragEnterEvent | Protected method to handle the drag enter event. |
dragLeaveEvent | Protected method to handle the drag leave event. |
dragMoveEvent | Protected method to handle the drag move event. |
dropEvent | Protected method to handle the drop event. |
ensureVisible | Public slot to ensure, that the specified line is visible. |
event | Protected method called to process an event. |
eventFilter | Private method called to filter interesting events. |
extractTasks | Public slot to extract all tasks. |
fileRenamed | Public slot to handle the editorRenamed signal. |
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. |
getCodeCoverageFile | Private method to get the filename of the file containing coverage info. |
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. |
getSyntaxErrors | Public method to retrieve the syntax error markers. |
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. |
handleAutosaveEnable | Private slot handling the autosave enable context menu action. |
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. |
handleClearSyntaxError | Private slot to handle the 'Clear all syntax error' context menu action. |
handleCodeCoverage | Private method to handle the code coverage context menu action. |
handleCodeCoverageHideAnnotations | Private method to handle the hide code coverage annotations context menu action. |
handleCodeCoverageShowAnnotations | Private method to handle the show code coverage annotations 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. |
handleGotoSyntaxError | Private slot to handle the 'Goto syntax error' 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. |
handleNewView | Private slot to create a new view to an open document. |
handleNextBookmark | Private slot to handle the 'Next bookmark' context menu action. |
handleNextBreakpoint | Private slot to handle the 'Next breakpoint' context menu action. |
handleNextUncovered | Private slot to handle the 'Next uncovered' 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. |
handlePreviousUncovered | Private slot to handle the 'Previous uncovered' context menu action. |
handleProfileData | Private method to handle the show profile data context menu action. |
handleRemoveCyclopsReport | Private method to handle the Remove Cyclops report context menu action. |
handleRenamed | Public slot to handle the editorRenamed signal. |
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. |
handleShortenEmptyLines | Public slot to compress lines consisting solely of whitespace characters. |
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. |
handleShowSyntaxError | Private slot to handle the 'Show syntax error message' context menu action. |
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. |
handleSyntaxError | Public method to toggle a syntax error indicator. |
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. |
hasCoverageMarkers | Public method to test, if there are coverage markers. |
hasSyntaxErrors | Public method to check for the presence of bookmarks. |
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. |
initContextMenuRefactoring | Private method used to setup the refactoring 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. |
isRubyFile | Public method to return a flag indicating a Ruby 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. |
redo | Public method to redo the last recorded change. |
refresh | Public slot to refresh the editor contents. |
resetLanguage | |
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. |
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. |
setTextDisplay | Private method to configure the text display. |
shouldAutosave | Public slot to check the autosave flags. |
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. |
syntaxCheck | Private method to perform a syntax check of the file. |
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. |
undo | Public method to undo the last recorded change. |
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 method to perform an automatic syntax check of the file.
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.
Public method to check for API availablity.
Private method to check dirty status and open a message window.
Private method to check the selected language of the language submenu.
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 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.
Protected method to handle the drag enter event.
Protected method to handle the drag leave event.
Protected method to handle the drag move event.
Protected method to handle the drop event.
Public slot to ensure, that the specified line is visible.
Protected method called to process an event. This implements special handling for the events showMaximized, showMinimized and showNormal. The windows caption is shortened for the minimized mode and reset to the full filename for the other modes. This is to make the editor windows work nicer with the QWorkspace.
Private method called to filter interesting events.
Public slot to extract all tasks.
Public slot to handle the editorRenamed signal.
Public method called when the editor receives focus. This method checks for modifications of the current file and rereads it upon request. The cursor is placed at the current position assuming, that it is in the vicinity of the old position after the reread.
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 filename of the file containing coverage info.
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 to retrieve the syntax error markers.
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.
Private slot handling the autosave enable context menu action.
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 slot to handle the 'Clear all syntax error' context menu action.
Private method to handle the code coverage context menu action.
Private method to handle the hide code coverage annotations context menu action.
Private method to handle the show code coverage annotations 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 slot to handle the 'Goto syntax error' 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 create a new view to an open document.
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 'Next uncovered' context menu action.
Private slot to handle the 'Previous bookmark' context menu action.
Private slot to handle the 'Previous breakpoint' context menu action.
Private slot to handle the 'Previous uncovered' context menu action.
Private method to handle the show profile data context menu action.
Private method to handle the Remove Cyclops report context menu action.
Public slot to handle the editorRenamed signal.
Public method to execute a macro.
Public method to save a macro to a file.
Private slot handling the select all context menu action.
Public slot to compress lines consisting solely of whitespace characters.
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.
Private slot to handle the 'Show syntax error message' context menu action.
Public method to start macro recording.
Public method to stop macro recording.
Private method to handle the syntax check context menu action.
Public method to toggle a syntax error indicator.
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 test, if there are coverage markers.
Public method to check for the presence of bookmarks.
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 refactoring 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 return a flag indicating a Ruby 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 method to redo the last recorded change.
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.
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.
Private method to configure the text display.
Public slot to check the autosave flags.
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.
Private method to perform a syntax check of the file.
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 method to undo the last recorded change.
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.