Module implementing a minimalistic editor for simple editing tasks.
None |
MiniEditor | Class implementing a minimalistic editor for simple editing tasks. |
MiniScintilla | Class implementing a QsciScintillaCompat subclass for handling focus events. |
None |
Class implementing a minimalistic editor for simple editing tasks.
None |
None |
MiniEditor | Constructor |
__about | Private slot to show a little About message. |
__aboutQt | Private slot to handle the About Qt dialog. |
__bindLexer | Private slot to set the correct lexer depending on language. |
__bindName | Private method to generate a dummy filename for binding a lexer. |
__checkActions | Private slot to check some actions for their enable/disable status and set the statusbar info. |
__checkLanguage | Private method to check the selected language of the language submenu. |
__contextMenuRequested | Private slot to show the context menu. |
__convertTabs | Private slot to convert tabulators to spaces. |
__createActions | Private method to create the actions. |
__createEditActions | Private method to create the Edit actions. |
__createFileActions | Private method to create the File actions. |
__createHelpActions | Private method to create the Help actions. |
__createMenus | Private method to create the menus of the menu bar. |
__createSearchActions | Private method defining the user interface actions for the search commands. |
__createStatusBar | Private method to initialize the status bar. |
__createToolBars | Private method to create the various toolbars. |
__cursorPositionChanged | Private slot to handle the cursorPositionChanged signal. |
__deselectAll | Private slot handling the deselect all context menu action. |
__documentWasModified | Private slot to handle a change in the documents modification status. |
__getCurrentWord | Private method to get the word at the current position. |
__getEditorConfig | Private method to get the requested option via EditorConfig. |
__getOverrideValue | Private method to get an override value for the current file type. |
__getWord | Private method to get the word at a position. |
__initContextMenu | Private method used to setup the context menu. |
__initContextMenuLanguages | Private method used to setup the Languages context sub menu. |
__languageMenuTriggered | Private method to handle the selection of a lexer language. |
__loadEditorConfig | Private method to load the EditorConfig properties. |
__loadEditorConfigObject | Private method to load the EditorConfig properties for the given file name. |
__loadFile | Private method to load the given file. |
__markOccurrences | Private method to mark all occurrences of the current word. |
__maybeSave | Private method to ask the user to save the file, if it was modified. |
__modificationChanged | Private slot to handle the modificationChanged signal. |
__newFile | Private slot to create a new file. |
__open | Private slot to open a file. |
__printFile | Private slot to print the text. |
__printPreview | Private slot to generate a print preview. |
__printPreviewFile | Private slot to show a print preview of the text. |
__readSettings | Private method to read the settings remembered last time. |
__readShortcut | Private function to read a single keyboard shortcut from the settings. |
__redo | Private method to redo the last recorded change. |
__resetLanguage | Private method used to reset the language selection. |
__resizeLinenoMargin | Private slot to resize the line numbers margin. |
__save | Private slot to save a file. |
__saveAs | Private slot to save a file with a new name. |
__saveCopy | Private slot to save a copy of the file with a new name. |
__saveFile | Private method to save to the given file. |
__searchClearMarkers | Private method to clear the search markers of the active window. |
__searchNext | Private slot to handle the search next action. |
__searchPrev | Private slot to handle the search previous action. |
__selectAll | Private slot handling the select all context menu action. |
__selectPygmentsLexer | Private method to select a specific pygments lexer. |
__setCurrentFile | Private method to register the file name of the current file. |
__setEolMode | Private method to configure the eol mode of the editor. |
__setMargins | Private method to configure the margins. |
__setMonospaced | Private method to set/reset a monospaced font. |
__setSbFile | Private method to set the file info in the status bar. |
__setTabAndIndent | Private method to set indentation size and style and tab width. |
__setTextDisplay | Private method to configure the text display. |
__showContextMenuLanguages | Private slot handling the aboutToShow signal of the languages context menu. |
__strippedName | Private method to return the filename part of the given path. |
__styleNeeded | Private slot to handle the need for more styling. |
__undo | Private method to undo the last recorded change. |
__whatsThis | Private slot called in to enter Whats This mode. |
__writeFile | Private method to write the current editor text to a file. |
__writeSettings | Private method to write the settings for reuse. |
activeWindow | Public method to fulfill the ViewManager interface. |
clearSearchIndicators | Public method to clear all search indicators. |
closeEvent | Protected method to handle the close event. |
getFileName | Public method to return the name of the file being displayed. |
getLanguage | Public method to retrieve the language of the editor. |
getSRHistory | Public method to get the search or replace history list. |
gotoLine | Public slot to jump to the beginning of a line. |
setLanguage | Public method to set a lexer language. |
setSearchIndicator | Public method to set a search indicator for the given range. |
setText | Public method to set the text programatically. |
setWindowModified | Public method to set the window modification status. |
showReplaceWidget | Public method to show the replace widget. |
showSearchWidget | Public method to show the search widget. |
textForFind | Public method to determine the selection or the current word for the next find operation. |
None |
Constructor
Private slot to show a little About message.
Private slot to handle the About Qt dialog.
Private slot to set the correct lexer depending on language.
Private method to generate a dummy filename for binding a lexer.
Private slot to check some actions for their enable/disable status and set the statusbar info.
Private method to check the selected language of the language submenu.
Private slot to show the context menu.
Private slot to convert tabulators to spaces.
Private method to create the actions.
Private method to create the Edit actions.
Private method to create the File actions.
Private method to create the Help actions.
Private method to create the menus of the menu bar.
Private method defining the user interface actions for the search commands.
Private method to initialize the status bar.
Private method to create the various toolbars.
Private slot to handle the cursorPositionChanged signal.
Private slot handling the deselect all context menu action.
Private slot to handle a change in the documents modification status.
Private method to get the word at the current position.
Private method to get the requested option via EditorConfig.
If there is no EditorConfig defined, the equivalent built-in option will be used (Preferences.getEditor(). The option must be given as the Preferences option key. The mapping to the EditorConfig option name will be done within this method.
Private method to get an override value for the current file type.
Private method to get the word at a position.
Private method used to setup the context menu.
Private method used to setup the Languages context sub menu.
Private method to handle the selection of a lexer language.
Private method to load the EditorConfig properties.
Private method to load the EditorConfig properties for the given file name.
Private method to load the given file.
Private method to mark all occurrences of the current word.
Private method to ask the user to save the file, if it was modified.
Private slot to handle the modificationChanged signal.
Private slot to create a new file.
Private slot to open a file.
Private slot to print the text.
Private slot to generate a print preview.
Private slot to show a print preview of the text.
Private method to read the settings remembered last time.
Private function to read a single keyboard shortcut from the settings.
Private method to redo the last recorded change.
Private method used to reset the language selection.
Private slot to resize the line numbers margin.
Private slot to save a file.
Private slot to save a file with a new name.
Private slot to save a copy of the file with a new name.
Private method to save to the given file.
Private method to clear the search markers of the active window.
Private slot to handle the search next action.
Private slot to handle the search previous action.
Private slot handling the select all context menu action.
Private method to select a specific pygments lexer.
Private method to register the file name of the current file.
Private method to configure the eol mode of the editor.
Private method to configure the margins.
Private method to set/reset a monospaced font.
Private method to set the file info in the status bar.
Private method to set indentation size and style and tab width.
Private method to configure the text display.
Private slot handling the aboutToShow signal of the languages context menu.
Private method to return the filename part of the given path.
Private slot to handle the need for more styling.
Private method to undo the last recorded change.
Private slot called in to enter Whats This mode.
Private method to write the current editor text to a file.
Private method to write the settings for reuse.
Public method to fulfill the ViewManager interface.
Public method to clear all search indicators.
Protected method to handle the close event.
Public method to return the name of the file being displayed.
Public method to retrieve the language of the editor.
Public method to get the search or replace history list.
Public slot to jump to the beginning of a line.
Public method to set a lexer language.
Public method to set a search indicator for the given range.
Public method to set the text programatically.
Public method to set the window modification status.
Public method to show the replace widget.
Public method to show the search widget.
Public method to determine the selection or the current word for the next find operation.
Class implementing a QsciScintillaCompat subclass for handling focus events.
None |
None |
MiniScintilla | Constructor |
focusInEvent | Protected method called when the editor receives focus. |
focusOutEvent | Protected method called when the editor loses focus. |
getFileName | Public method to return the name of the file being displayed. |
removeTrailingWhitespace | Public method to remove trailing whitespace. |
None |
Constructor
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.
Protected method called when the editor loses focus.
Public method to return the name of the file being displayed.
Public method to remove trailing whitespace.