Module implementing the viewmanager base class.
QuickSearchLineEdit | Class implementing a line edit that reacts to the press of the ESC key. |
ViewManager | Base class inherited by all specific viewmanager classes. |
None |
Class implementing a line edit that reacts to the press of the ESC key.
keyPressEvent | Re-implemented to handle the press of the ESC key. |
Re-implemented to handle the press of the ESC key.
Base class inherited by all specific viewmanager classes.
It defines the interface to be implemented by specific viewmanager classes and all common methods.
ViewManager | Constructor |
_getOpenFileFilter | Protected method to return the active filename filter for a file open dialog. |
_getOpenStartDir | Protected method to return the starting directory for a file open dialog. |
activeWindow | Private method to return the active (i.e. |
addSplit | Public method used to split the current view. |
addToRecentList | Public slot to add a filename to the list of recently opened files. |
addView | Private method to add a view (i.e. |
canCascade | Public method to signal if cascading of managed windows is available. |
canSplit | public method to signal if splitting of the view is available. |
canTile | Public method to signal if tiling of managed windows is available. |
cascade | Public method to cascade the managed windows. |
checkActions | Private slot to check some actions for their enable/disable status and set the statusbar info. |
checkAllDirty | Public method to check the dirty status of all editors. |
checkDirty | Private method to check dirty status and open a message window. |
closeEditor | Private method to close an editor window. |
closeViewManager | Public method to shutdown the viewmanager. |
displayPythonFile | Public slot to display a file in an editor. |
editorCommand | Private method to send an editor command to the active window. |
editorsCheckFocusInEnabled | Public method returning the flag indicating editors should perform focus in checks. |
enableEditorsCheckFocusIn | Public method to set a flag enabling the editors to perform focus in checks. |
eventFilter | Private method called to filter an event. |
focusInEvent | Public method called when the viewmanager receives focus. |
focusOutEvent | Public method called when the viewmanager loses focus. |
getAPIs | Public method to get an apis object for autocompletion/calltips |
getActions | Public method to get a list of all actions. |
getActiveName | Public method to retrieve the filename of the active window. |
getEditor | Private method to return the editor displaying the given file. |
getOpenEditor | Public method to return the editor displaying the given file. |
getOpenEditorCount | Public method to return the count of editors displaying the given file. |
getOpenFilenames | Public method returning a list of the filenames of all editors. |
getProject | Public method to get a reference to the Project object. |
getSRHistory | Private method to get the search or replace history list. |
getWord | Private method to get the word at a position. |
handleAddBookmarked | Private method to add the current file to the list of bookmarked files. |
handleAutosave | Public slot to save the contents of all editors automatically. |
handleBookmarkSelected | Private method to handle the bookmark selected signal. |
handleBookmarkToggled | Private slot to handle the bookmarkToggled signal. |
handleBreakpointEnabledToggled | Private slot to handle the breakpointEnabledToggled signal. |
handleBreakpointToggled | Private slot to handle the breakpointToggled signal. |
handleClearAllBookmarks | Private method to handle the clear all bookmarks action. |
handleClearAllSyntaxErrors | Private method to handle the clear all syntax errors action. |
handleClearBookmarked | Private method to clear the bookmarked files menu. |
handleClearRecent | Private method to clear the recent files menu. |
handleClose | Public method to close the current window. |
handleCloseAll | Private method to close all editor windows via file menu. |
handleCloseEditor | Public method to close an arbitrary source editor. |
handleCloseWindow | Public method to close an arbitrary source editor. |
handleConvertEOL | Private method to handle the convert line end characters action. |
handleCoverageMarkersShown | Private slot to handle the coverageMarkersShown signal. |
handleCursorChanged | Private slot to handle the cursorChanged signal. |
handleEditAutoComplete | Private method to handle the autocomplete action. |
handleEditAutoCompleteFromAPIs | Private method to handle the autocomplete from APIs action. |
handleEditAutoCompleteFromAll | Private method to handle the autocomplete from All action. |
handleEditAutoCompleteFromDoc | Private method to handle the autocomplete from document action. |
handleEditBookmarked | Private method to edit the list of bookmarked files. |
handleEditBoxComment | Private method to handle the box comment action. |
handleEditComment | Private method to handle the comment action. |
handleEditCopy | Private method to handle the copy action. |
handleEditCut | Private method to handle the cut action. |
handleEditDelete | Private method to handle the delete action. |
handleEditDeselectAll | Private method to handle the select all action. |
handleEditIndent | Private method to handle the indent action. |
handleEditPaste | Private method to handle the paste action. |
handleEditRedo | Private method to handle the redo action. |
handleEditRevert | Private method to handle the revert action. |
handleEditSelectAll | Private method to handle the select all action. |
handleEditSelectBrace | Private method to handle the select to brace action. |
handleEditSmartIndent | Private method to handle the smart indent action |
handleEditStreamComment | Private method to handle the stream comment action. |
handleEditUncomment | Private method to handle the uncomment action. |
handleEditUndo | Private method to handle the undo action. |
handleEditUnindent | Private method to handle the unindent action. |
handleEditorOpened | Private slot to handle the editorOpened signal. |
handleEditorSaved | Public slot to handle the editorSaved signal. |
handleEditoracAPIsAvailable | Private method to handle the availability of API autocompletion signal. |
handleExit | Public method to handle the debugged program terminating. |
handleFindFileName | Private method to handle the search for file action. |
handleGoto | Private method to handle the goto action. |
handleGotoBrace | Private method to handle the goto brace action. |
handleGotoSyntaxError | Private method to handle the goto syntax error action. |
handleLastEditorClosed | Private slot to handle the lastEditorClosed signal. |
handleMacroDelete | Private method to handle the delete macro action. |
handleMacroLoad | Private method to handle the load macro action. |
handleMacroRun | Private method to handle the run macro action. |
handleMacroSave | Private method to handle the save macro action. |
handleMacroStartRecording | Private method to handle the start macro recording action. |
handleMacroStopRecording | Private method to handle the stop macro recording action. |
handleModificationStatusChanged | Private slot to handle the modificationStatusChanged signal. |
handleNewProject | Public slot to handle the NewProject signal. |
handleNextBookmark | Private method to handle the next bookmark action. |
handleNextUncovered | Private method to handle the next uncovered action. |
handleOpen | Public slot to open a Python (or other) file. |
handleOpenBookmarked | Private method to open a file from the list of bookmarked files. |
handleOpenRecent | Private method to open a file from the list of rencently opened files. |
handlePreferencesChanged | Public slot to handle the preferencesChanged signal. |
handlePreviousBookmark | Private method to handle the previous bookmark action. |
handlePreviousUncovered | Private method to handle the previous uncovered action. |
handleProjectClosed | Public slot to handle the projectClosed signal. |
handleProjectFileRenamed | Public slot to handle the projectFileRenamed signal. |
handleProjectOpened | Public slot to handle the projectOpened signal. |
handlePythonFile | Public method to handle the user selecting a file for display. |
handleQuickSearch | Private slot to handle the incremental quick search. |
handleQuickSearchEnter | Private slot to handle the incremental quick search return pressed (jump back to text) |
handleQuickSearchEscape | Private slot to handle the incremental quick search escape pressed (jump back to text) |
handleQuickSearchExtend | Private method to handle the quicksearch extend action. |
handleQuickSearchPrev | Private slot to handle the quickFindPrev toolbutton action. |
handleQuickSearchText | Private slot to handle the textChanged signal of the quicksearch edit. |
handleReloadAPIs | Public slot to reload the api information. |
handleReplace | Private method to handle the replace action. |
handleResetUI | Public slot to handle the resetUI signal. |
handleSearch | Private method to handle the search action. |
handleSearchFiles | Private method to handle the search in files action. |
handleShortenEmptyLines | Private method to handle the shorten empty lines action. |
handleShowBookmarkedMenu | Private method to set up bookmarked files menu. |
handleShowBookmarksMenu | Private method to handle the show bookmarks menu signal. |
handleShowRecentMenu | Private method to set up recent files menu. |
handleShowWindowMenu | Private method to set up the viewmanager part of the Window menu. |
handleSplitOrientation | Private method to handle the split orientation action. |
handleSplitView | Private method to handle the split view action. |
handleSyntaxErrorToggled | Private slot to handle the syntaxerrorToggled signal. |
handleToggleAll | Private method to handle the toggle all folds action. |
handleToggleAllChildren | Private method to handle the toggle all folds (including children) action. |
handleToggleBookmark | Private method to handle the toggle bookmark action. |
handleToggleCurrent | Private method to handle the toggle current fold action. |
handleZoom | Private method to handle the zoom action. |
handleZoomIn | Private method to handle the zoom in action. |
handleZoomOut | Private method to handle the zoom out action. |
initActions | Public method defining the user interface actions. |
initBookmarkActions | Private method defining the user interface actions for the bookmarks commands. |
initBookmarkMenu | Public method to create the Bookmark menu |
initBookmarkToolbar | Public method to create the Bookmark toolbar |
initEditActions | Private method defining the user interface actions for the edit commands. |
initEditMenu | Public method to create the Edit menu |
initEditToolbar | Public method to create the Edit toolbar |
initFileActions | Private method defining the user interface actions for file handling. |
initFileFilters | Private method to initialize the lists of supported filename filters. |
initFileMenu | Public method to create the File menu. |
initFileToolbar | Public method to create the File toolbar. |
initMacroActions | Private method defining the user interface actions for the macro commands. |
initMacroMenu | Public method to create the Macro menu |
initSearchActions | Private method defining the user interface actions for the search commands. |
initSearchToolbar | Public method to create the Search toolbar |
initViewActions | Protected method defining the user interface actions for the view commands. |
initViewMenu | Public method to create the View menu |
initViewToolbar | Public method to create the View toolbar |
initWindowActions | Define the user interface actions for window handling. |
newEditor | Public slot to generate a new empty editor. |
newEditorView | Public method to create a new editor displaying the given document. |
nextSplit | Public slot used to move to the next split. |
performQuickSearch | Private slot to perform a quick search. |
prevSplit | Public slot used to move to the previous split. |
printCurrentEditor | Public slot to print the contents of the current editor. |
printCurrentEditorSel | Public slot to print the selection of the current editor. |
printEditor | Public slot to print an editor. |
removeAllViews | Private method to remove all views (i.e. |
removeSplit | Public method used to remove the current split view. |
removeView | Private method to remove a view (i.e. |
saveAllEditors | Public slot to save the contents of all editors. |
saveAsCurrentEditor | Public slot to save the contents of the current editor to a new file. |
saveAsEditorEd | Public slot to save the contents of an editor to a new file. |
saveCurrentEditor | Public slot to save the contents of the current editor. |
saveCurrentEditorToProject | Public slot to save the contents of the current editor to the current project. |
saveEditor | Public method to save a named editor file. |
saveEditorEd | Public slot to save the contents of an editor. |
saveEditorToProjectEd | Public slot to save the contents of an editor the current project. |
saveEditorsList | Public slot to save a list of editors. |
setEditorName | Change the displayed name of the editor. |
setFileLine | Public method to update the user interface when the current program or line changes. |
setSbFile | Private method to set the file info in the status bar. |
setSbInfo | Public method to transfer statusbar info from the user interface to viewmanager. |
setSplitOrientation | Public method used to set the orientation of the split view. |
showView | Private method to show a view (i.e. |
textForFind | Private method to determine the selection or the current word for the next find operation. |
tile | Public method to tile the managed windows. |
toggleWindow | Private method to toggle a workspace window. |
unhighlight | Public method to switch off all highlights. |
Constructor
Protected method to return the active filename filter for a file open dialog.
The appropriate filename filter is determined by file extension of the currently active editor.
Protected method to return the starting directory for a file open dialog.
The appropriate starting directory is calculated
using the following search order, until a match is found:
1: Directory of currently active editor
2: Directory of currently active Project
3: CWD
Private method to return the active (i.e. current) window.
Public method used to split the current view.
Public slot to add a filename to the list of recently opened files.
Private method to add a view (i.e. window)
Public method to signal if cascading of managed windows is available.
public method to signal if splitting of the view is available.
Public method to signal if tiling of managed windows is available.
Public method to cascade the managed windows.
Private slot to check some actions for their enable/disable status and set the statusbar info.
Public method to check the dirty status of all editors.
Private method to check dirty status and open a message window.
Private method to close an editor window.
Public method to shutdown the viewmanager.
If it cannot close all editor windows, it aborts the shutdown process.
Public slot to display a file in an editor.
Private method to send an editor command to the active window.
Public method returning the flag indicating editors should perform focus in checks.
Public method to set a flag enabling the editors to perform focus in checks.
Private method called to filter an event.
Public method called when the viewmanager receives focus.
Public method called when the viewmanager loses focus.
Public method to get an apis object for autocompletion/calltips
This method creates and loads the QextScintillaAPIs object dynamically upon request. This saves memory for languages, that might not be needed at the moment.
Public method to get a list of all actions.
Public method to retrieve the filename of the active window.
Private method to return the editor displaying the given file.
If there is no editor with the given file, a new editor window is created.
Public method to return the editor displaying the given file.
Public method to return the count of editors displaying the given file.
Public method returning a list of the filenames of all editors.
Public method to get a reference to the Project object.
Private method to get the search or replace history list.
Private method to get the word at a position.
Private method to add the current file to the list of bookmarked files.
Public slot to save the contents of all editors automatically.
Only named editors will be saved by the autosave timer.
Private method to handle the bookmark selected signal.
Private slot to handle the bookmarkToggled signal.
It checks some bookmark actions and reemits the signal.
Private slot to handle the breakpointEnabledToggled signal.
It simply reemits the signal.
Private slot to handle the breakpointToggled signal.
It simply reemits the signal.
Private method to handle the clear all bookmarks action.
Private method to handle the clear all syntax errors action.
Private method to clear the bookmarked files menu.
Private method to clear the recent files menu.
Public method to close the current window.
Private method to close all editor windows via file menu.
Public method to close an arbitrary source editor.
Public method to close an arbitrary source editor.
Private method to handle the convert line end characters action.
Private slot to handle the coverageMarkersShown signal.
Private slot to handle the cursorChanged signal.
It emits the signal cursorChanged with parameter editor.
Private method to handle the autocomplete action.
Private method to handle the autocomplete from APIs action.
Private method to handle the autocomplete from All action.
Private method to handle the autocomplete from document action.
Private method to edit the list of bookmarked files.
Private method to handle the box comment action.
Private method to handle the comment action.
Private method to handle the copy action.
Private method to handle the cut action.
Private method to handle the delete action.
Private method to handle the select all action.
Private method to handle the indent action.
Private method to handle the paste action.
Private method to handle the redo action.
Private method to handle the revert action.
Private method to handle the select all action.
Private method to handle the select to brace action.
Private method to handle the smart indent action
Private method to handle the stream comment action.
Private method to handle the uncomment action.
Private method to handle the undo action.
Private method to handle the unindent action.
Private slot to handle the editorOpened signal.
Public slot to handle the editorSaved signal.
It simply reemits the signal.
Private method to handle the availability of API autocompletion signal.
Public method to handle the debugged program terminating.
Private method to handle the search for file action.
Private method to handle the goto action.
Private method to handle the goto brace action.
Private method to handle the goto syntax error action.
Private slot to handle the lastEditorClosed signal.
Private method to handle the delete macro action.
Private method to handle the load macro action.
Private method to handle the run macro action.
Private method to handle the save macro action.
Private method to handle the start macro recording action.
Private method to handle the stop macro recording action.
Private slot to handle the modificationStatusChanged signal.
Public slot to handle the NewProject signal.
Private method to handle the next bookmark action.
Private method to handle the next uncovered action.
Public slot to open a Python (or other) file.
Private method to open a file from the list of bookmarked files.
Private method to open a file from the list of rencently opened files.
Public slot to handle the preferencesChanged signal.
This method performs the following actions
Private method to handle the previous bookmark action.
Private method to handle the previous uncovered action.
Public slot to handle the projectClosed signal.
Public slot to handle the projectFileRenamed signal.
Public slot to handle the projectOpened signal.
Public method to handle the user selecting a file for display.
Private slot to handle the incremental quick search.
Private slot to handle the incremental quick search return pressed (jump back to text)
Private slot to handle the incremental quick search escape pressed (jump back to text)
Private method to handle the quicksearch extend action.
Private slot to handle the quickFindPrev toolbutton action.
Private slot to handle the textChanged signal of the quicksearch edit.
Public slot to reload the api information.
Private method to handle the replace action.
Public slot to handle the resetUI signal.
Private method to handle the search action.
Private method to handle the search in files action.
Private method to handle the shorten empty lines action.
Private method to set up bookmarked files menu.
Private method to handle the show bookmarks menu signal.
Private method to set up recent files menu.
Private method to set up the viewmanager part of the Window menu.
Private method to handle the split orientation action.
Private method to handle the split view action.
Private slot to handle the syntaxerrorToggled signal.
It checks some syntax error actions and reemits the signal.
Private method to handle the toggle all folds action.
Private method to handle the toggle all folds (including children) action.
Private method to handle the toggle bookmark action.
Private method to handle the toggle current fold action.
Private method to handle the zoom action.
Private method to handle the zoom in action.
Private method to handle the zoom out action.
Public method defining the user interface actions.
Private method defining the user interface actions for the bookmarks commands.
Public method to create the Bookmark menu
Public method to create the Bookmark toolbar
Private method defining the user interface actions for the edit commands.
Public method to create the Edit menu
Public method to create the Edit toolbar
Private method defining the user interface actions for file handling.
Private method to initialize the lists of supported filename filters.
Public method to create the File menu.
Public method to create the File toolbar.
Private method defining the user interface actions for the macro commands.
Public method to create the Macro menu
Private method defining the user interface actions for the search commands.
Public method to create the Search toolbar
Protected method defining the user interface actions for the view commands.
Public method to create the View menu
Public method to create the View toolbar
Define the user interface actions for window handling.
Public slot to generate a new empty editor.
Public method to create a new editor displaying the given document.
Public slot used to move to the next split.
Private slot to perform a quick search.
Author(s): Maciek Fijalkowski, 2005-07-23
Public slot used to move to the previous split.
Public slot to print the contents of the current editor.
Public slot to print the selection of the current editor.
Public slot to print an editor.
Private method to remove all views (i.e. windows)
Public method used to remove the current split view.
Private method to remove a view (i.e. window)
Public slot to save the contents of all editors.
Public slot to save the contents of the current editor to a new file.
Public slot to save the contents of an editor to a new file.
Public slot to save the contents of the current editor.
Public slot to save the contents of the current editor to the current project.
Public method to save a named editor file.
Public slot to save the contents of an editor.
Public slot to save the contents of an editor the current project.
Public slot to save a list of editors.
Change the displayed name of the editor.
Public method to update the user interface when the current program or line changes.
Private method to set the file info in the status bar.
Public method to transfer statusbar info from the user interface to viewmanager.
Public method used to set the orientation of the split view.
Private method to show a view (i.e. window)
Private method to determine the selection or the current word for the next find operation.
Public method to tile the managed windows.
Private method to toggle a workspace window.
Public method to switch off all highlights.