Module implementing the editor component of the eric4 IDE.
Editor | Class implementing the editor component of the eric4 IDE. |
None |
Class implementing the editor component of the eric4 IDE.
Editor | Constructor |
__addBreakPoints | Private slot to add breakpoints. |
__addFileAliasResource | Private method to handle the Add aliased file context menu action. |
__addFileResource | Private method to handle the Add file context menu action. |
__addFileResources | Private method to handle the Add files context menu action. |
__addLocalizedResource | Private method to handle the Add localized resource context menu action. |
__addResourceFrame | Private method to handle the Add resource frame context menu action. |
__autoSyntaxCheck | Private method to perform an automatic syntax check of the file. |
__autosaveEnable | Private slot handling the autosave enable context menu action. |
__bindCompleter | Private slot to set the correct typing completer depending on language. |
__bindLexer | Private slot to set the correct lexer depending on language. |
__bindName | Private method to generate a dummy filename for binding a lexer. |
__breakPointDataAboutToBeChanged | Private slot to handle the dataAboutToBeChanged signal of the breakpoint model. |
__changeBreakPoints | Private slot to set changed breakpoints. |
__checkLanguage | Private method to check the selected language of the language submenu. |
__codeCoverageHideAnnotations | Private method to handle the hide code coverage annotations context menu action. |
__codeCoverageShowAnnotations | Private method to handle the show code coverage annotations context menu action. |
__contextClose | Private slot handling the close context menu entry. |
__contextSave | Private slot handling the save context menu entry. |
__contextSaveAs | Private slot handling the save as context menu entry. |
__cursorPositionChanged | Private slot to handle the cursorPositionChanged signal. |
__deleteBreakPoints | Private slot to delete breakpoints. |
__deselectAll | Private slot handling the deselect all context menu action. |
__doSyntaxCheck | Private method to handle the syntax check context menu action. |
__doTabnanny | Private method to handle the tabnanny context menu action. |
__getCodeCoverageFile | Private method to get the filename of the file containing coverage info. |
__getExtension | Private method to get the fileextension without a leading '.'. |
__getMacroName | Private method to select a macro name from the list of macros. |
__indentLine | Private method to indent or unindent the current line. |
__indentSelection | Private method to indent or unindent the current selection. |
__initContextMenu | Private method used to setup the context menu |
__initContextMenuAutocompletion | Private method used to setup the Checks context sub menu. |
__initContextMenuChecks | Private method used to setup the Checks context sub menu. |
__initContextMenuGraphics | Private method used to setup the diagrams 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. |
__initContextMenuResources | Private method used to setup the Resources 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 |
__languageMenuTriggered | Private method to handle the selection of a lexer language. |
__linesChanged | Private method to track text changes. |
__lmBbookmarks | Private method to handle the 'LMB toggles bookmark' context menu action. |
__lmBbreakpoints | Private method to handle the 'LMB toggles breakpoint' context menu action. |
__marginClicked | Private slot to handle the marginClicked signal. |
__marginsWidth | Private method to determine the width of all margins. |
__menuClearBreakpoints | Private slot to handle the 'Clear all breakpoints' context menu action. |
__menuToggleBreakpointEnabled | Private slot to handle the 'Enable/Disable breakpoint' context menu action. |
__menuToggleTemporaryBreakpoint | Private slot to handle the 'Toggle temporary breakpoint' context menu action. |
__modificationChanged | Private slot to handle the modificationChanged signal. |
__modificationReadOnly | Private slot to handle the modificationAttempted signal. |
__newView | Private slot to create a new view to an open document. |
__newViewNewSplit | Private slot to create a new view to an open document. |
__removeCyclopsReport | Private method to handle the Remove Cyclops report context menu action. |
__resetLanguage | Private method used to reset the language selection. |
__restoreBreakpoints | Private method to restore the breakpoints. |
__selectAll | Private slot handling the select all context menu action. |
__setAutoCompletion | Private method to configure the autocompletion function. |
__setCallTips | Private method to configure the calltips function. |
__setLineMarkerColours | Private method to set the line marker colours. |
__setMargin0and2 | Private method to configure margins 0 and 2. |
__setTextDisplay | Private method to configure the text display. |
__showApplicationDiagram | Private method to handle the Imports Diagram context menu action. |
__showAutocompletionMenu | Private slot called before the autocompletion menu is shown. |
__showClassDiagram | Private method to handle the Class Diagram context menu action. |
__showCodeCoverage | Private method to handle the code coverage context menu action. |
__showCodeMetrics | Private method to handle the code metrics context menu action. |
__showContextMenu | Private slot handling the aboutToShow signal of the context menu. |
__showContextMenuGraphics | Private slot handling the aboutToShow signal of the diagrams context menu. |
__showCyclopsReport | Private method to handle the Cyclops report context menu action. |
__showImportsDiagram | Private method to handle the Imports Diagram context menu action. |
__showMarginContextMenu | Private slot handling the aboutToShow signal of the margins context menu. |
__showPackageDiagram | Private method to handle the Package Diagram context menu action. |
__showProfileData | Private method to handle the show profile data context menu action. |
__showShowMenu | Private slot called before the show menu is shown. |
__showSyntaxError | Private slot to handle the 'Show syntax error message' context menu action. |
__syntaxCheck | Private method to perform a syntax check of the file. |
__toggleAutoCompletionEnable | Private slot to handle the Enable Autocompletion context menu entry. |
__toggleBreakpoint | Private method to toggle a breakpoint. |
__toggleBreakpointEnabled | Private method to toggle a breakpoints enabled status. |
__updateReadOnly | Private method to update the readOnly information for this editor. |
autoComplete | Public method to perform an autocompletion. |
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. |
changeEvent | Protected method called to process an event. |
checkDirty | Public method to check dirty status and open a message window. |
clearBookmarks | Public slot to handle the 'Clear all bookmarks' context menu action. |
clearBreakpoint | Public method to clear a breakpoint. |
clearSyntaxError | Public slot to handle the 'Clear all syntax error' context menu action. |
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. |
ensureVisibleTop | Public slot to ensure, that the specified line is visible at the top of the editor. |
extractTasks | Public slot to extract all tasks. |
fileRenamed | Public slot to handle the editorRenamed signal. |
focusInEvent | Protected method called when the editor receives focus. |
focusOutEvent | Public method called when the editor loses focus. |
getBookmarks | Public method to retrieve the bookmarks. |
getCompleter | Public method to retrieve a reference to the completer object. |
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. |
getLineSeparator | Public slot to get the line separator for the current eol mode. |
getNoName | Public method to get the display string for an unnamed editor. |
getSyntaxErrors | Public method to retrieve the syntax error markers. |
gotoLine | Public slot to jump to the beginning of a line. |
gotoSyntaxError | Public slot to handle the 'Goto syntax error' context menu action. |
handleMonospacedEnable | Private slot to handle the Use Monospaced Font context menu entry. |
handleRenamed | Public slot to handle the editorRenamed signal. |
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. |
hasTaskMarkers | Public method to determine, if this editor contains any task markers. |
highlight | Public method to highlight (or de-highlight) a particular line. |
highlightVisible | Public method to make sure that the highlight is visible. |
indentLineOrSelection | Public slot to indent the current line or current selection |
isPyFile | Public method to return a flag indicating a Python file. |
isRubyFile | Public method to return a flag indicating a Ruby file. |
macroDelete | Public method to delete a macro. |
macroLoad | Public method to load a macro from a file. |
macroRecordingStart | Public method to start macro recording. |
macroRecordingStop | Public method to stop macro recording. |
macroRun | Public method to execute a macro. |
macroSave | Public method to save a macro to a file. |
menuEditBreakpoint | Public slot to handle the 'Edit breakpoint' context menu action. |
menuNextBreakpoint | Public slot to handle the 'Next breakpoint' context menu action. |
menuPreviousBreakpoint | Public slot to handle the 'Previous breakpoint' context menu action. |
menuToggleBookmark | Public slot to handle the 'Toggle bookmark' context menu action. |
menuToggleBreakpoint | Public slot to handle the 'Toggle breakpoint' context menu action. |
mousePressEvent | Protected method to handle the mouse press event. |
newBreakpointWithProperties | Private method to set a new breakpoint and its properties. |
nextBookmark | Public slot to handle the 'Next bookmark' context menu action. |
nextTask | Public slot to handle the 'Next task' context menu action. |
nextUncovered | Public slot to handle the 'Next uncovered' context menu action. |
previousBookmark | Public slot to handle the 'Previous bookmark' context menu action. |
previousTask | Public slot to handle the 'Previous task' context menu action. |
previousUncovered | Public slot to handle the 'Previous uncovered' context menu action. |
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. |
readLine0 | Public slot to read the first line 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. |
revertToUnmodified | Public 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. |
setAutoCompletionEnabled | Public method to enable/disable autocompletion. |
setLanguage | Public method to set a lexer language. |
setMonospaced | Public method to set/reset a monospaced font. |
setNoName | Public method to set the display string for an unnamed editor. |
shortenEmptyLines | Public slot to compress lines consisting solely of whitespace characters. |
shouldAutosave | Public slot to check the autosave flags. |
smartIndentLineOrSelection | Public slot to indent current line smartly. |
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. |
toggleBookmark | Public method to toggle a bookmark. |
toggleSyntaxError | Public method to toggle a syntax error indicator. |
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. |
Constructor
Private slot to add breakpoints.
Private method to handle the Add aliased file context menu action.
Private method to handle the Add file context menu action.
Private method to handle the Add files context menu action.
Private method to handle the Add localized resource context menu action.
Private method to handle the Add resource frame context menu action.
Private method to perform an automatic syntax check of the file.
Private slot handling the autosave enable context menu action.
Private slot to set the correct typing completer depending on language.
Private slot to set the correct lexer depending on language.
Private method to generate a dummy filename for binding a lexer.
Private slot to handle the dataAboutToBeChanged signal of the breakpoint model.
Private slot to set changed breakpoints.
Private method to check the selected language of the language submenu.
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 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 slot to delete breakpoints.
Private slot handling the deselect all context menu action.
Private method to handle the syntax check context menu action.
Private method to handle the tabnanny context menu action.
Private method to get the filename of the file containing coverage info.
Private method to get the fileextension without a leading '.'.
Private method to select a macro name from the list of macros.
Private method to indent or unindent the current line.
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 Checks context sub menu.
Private method used to setup the diagrams 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 Resources context sub menu.
Private method used to setup the Show context sub menu.
Private method used to setup the context menu for the margins
Private method to handle the selection of a lexer language.
Private method to track text changes.
This method checks, if lines have been inserted or removed in order to update the breakpoints.
Private method to handle the 'LMB toggles bookmark' context menu action.
Private method to handle the 'LMB toggles breakpoint' context menu action.
Private slot to handle the marginClicked signal.
Private method to determine the width of all margins.
Private slot to handle the 'Clear all breakpoints' context menu action.
Private slot to handle the 'Enable/Disable breakpoint' context menu action.
Private slot to handle the 'Toggle temporary breakpoint' context menu action.
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 create a new view to an open document.
Private slot to create a new view to an open document.
Private method to handle the Remove Cyclops report context menu action.
Private method used to reset the language selection.
Private method to restore the breakpoints.
Private slot handling the select all context menu action.
Private method to configure the autocompletion function.
Private method to configure the calltips function.
Private method to set the line marker colours.
Private method to configure margins 0 and 2.
Private method to configure the text display.
Private method to handle the Imports Diagram context menu action.
Private slot called before the autocompletion menu is shown.
Private method to handle the Class Diagram 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 aboutToShow signal of the context menu.
Private slot handling the aboutToShow signal of the diagrams context menu.
Private method to handle the Cyclops report context menu action.
Private method to handle the Imports Diagram context menu action.
Private slot handling the aboutToShow signal of the margins context menu.
Private method to handle the Package Diagram context menu action.
Private method to handle the show profile data context menu action.
Private slot called before the show menu is shown.
Private slot to handle the 'Show syntax error message' context menu action.
Private method to perform a syntax check of the file.
Private slot to handle the Enable Autocompletion context menu entry.
Private method to toggle a breakpoint.
Private method to toggle a breakpoints enabled status.
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.
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.
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.
Public method to check dirty status and open a message window.
Public slot to handle the 'Clear all bookmarks' context menu action.
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 slot to handle the 'Clear all syntax error' context menu action.
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.
Public slot to ensure, that the specified line is visible at the top of the editor.
Public slot to extract all tasks.
Public slot to handle the editorRenamed signal.
Protected 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 a reference to the completer object.
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.
Public slot to get the line separator for the current eol mode.
Public method to get the display string for an unnamed editor.
Public method to retrieve the syntax error markers.
Public slot to jump to the beginning of a line.
Public slot to handle the 'Goto syntax error' context menu action.
Private slot to handle the Use Monospaced Font context menu entry.
Public slot to handle the editorRenamed signal.
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 determine, if this editor contains any task markers.
Public method to highlight (or de-highlight) a particular line.
Public method to make sure that the highlight is visible.
Public slot to indent the current line or current selection
Public method to return a flag indicating a Python file.
Public method to return a flag indicating a Ruby file.
Public method to delete a macro.
Public method to load a macro from a file.
Public method to start macro recording.
Public method to stop macro recording.
Public method to execute a macro.
Public method to save a macro to a file.
Public slot to handle the 'Edit breakpoint' context menu action.
Public slot to handle the 'Next breakpoint' context menu action.
Public slot to handle the 'Previous breakpoint' context menu action.
Public slot to handle the 'Toggle bookmark' context menu action.
Public slot to handle the 'Toggle breakpoint' context menu action.
Protected method to handle the mouse press event.
Private method to set a new breakpoint and its properties.
Public slot to handle the 'Next bookmark' context menu action.
Public slot to handle the 'Next task' context menu action.
Public slot to handle the 'Next uncovered' context menu action.
Public slot to handle the 'Previous bookmark' context menu action.
Public slot to handle the 'Previous task' context menu action.
Public slot to handle the 'Previous uncovered' context menu action.
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 first line 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.
Public 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.
Public method to enable/disable autocompletion.
Public method to set a lexer language.
Public method to set/reset a monospaced font.
Public method to set the display string for an unnamed editor.
Public slot to compress lines consisting solely of whitespace characters.
Public slot to check the autosave flags.
Public slot to indent current line smartly.
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 bookmark.
Public method to toggle a syntax error indicator.
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.