Table of Contents

Class: Listspace eric3/ViewManager/Listspace.py

Class implementing the listspace viewmanager class.

Signals

lastEditorClosed
emitted after the last editor window was closed
editorOpened
emitted after an editor window was opened
editorSaved
emitted after an editor window was saved
Base Classes   
QSplitter
ViewManager
Methods   
__init__
__showViewByIndex
activeWindow
addSplit
addView
canCascade
canSplit
canTile
cascade
eventFilter
handleCaptionChange
handleModificationStatusChanged
handleShowWindowMenu
initWindowActions
removeAllViews
removeSplit
removeView
setEditorName
setSplitOrientation
showView
tile
  __init__ 
__init__ (
        self,
        parent,
        ui,
        dbs,
        )

Constructor

Arguments

parent
parent widget (QWidget)
ui
reference to the main user interface
dbs
reference to the debug server object
  __showViewByIndex 
__showViewByIndex ( self,  index )

Internal slot called to show a view (i.e. window) selected in the list.

Arguments

index
index of the selected entry (int)
  activeWindow 
activeWindow ( self )

Private method to return the active (i.e. current) window.

Returns

reference to the active editor

  addSplit 
addSplit ( self )

Public method used to split the current view.

  addView 
addView (
        self,
        win,
        fn=None,
        )

Private method to add a view (i.e. window)

Arguments

win
editor window to be added
fn
filename of this editor
  canCascade 
canCascade ( self )

Public method to signal if cascading of managed windows is available.

Returns

flag indicating cascading of windows is available

  canSplit 
canSplit ( self )

public method to signal if splitting of the view is available.

Returns

flag indicating splitting of the view is available.

  canTile 
canTile ( self )

Public method to signal if tiling of managed windows is available.

Returns

flag indicating tiling of windows is available

  cascade 
cascade ( self )

Public method to cascade the managed windows.

  eventFilter 
eventFilter (
        self,
        watched,
        event,
        )

  handleCaptionChange 
handleCaptionChange (
        self,
        cap,
        editor,
        )

Private method to handle Caption change signals from the editor.

Updates the listview text to reflect the new caption information.

Arguments

cap
Caption for the editor
editor
Editor to update the caption for
  handleModificationStatusChanged 
handleModificationStatusChanged (
        self,
        m,
        editor,
        )

Private slot to handle the modificationStatusChanged signal.

Arguments

m
flag indicating the modification status (boolean)
editor
editor window changed
  handleShowWindowMenu 
handleShowWindowMenu ( self,  windowMenu )

Private method to set up the viewmanager part of the Window menu.

Arguments

windowMenu
reference to the window menu
  initWindowActions 
initWindowActions ( self )

Define the user interface actions for window handling.

  removeAllViews 
removeAllViews ( self )

Private method to remove all views (i.e. windows)

  removeSplit 
removeSplit ( self )

Public method used to remove the current split view.

  removeView 
removeView ( self,  win )

Private method to remove a view (i.e. window)

Arguments

win
editor window to be removed
  setEditorName 
setEditorName (
        self,
        editor,
        newName,
        )

Change the displayed name of the editor.

Arguments

editor
editor window to be changed
newName
new name to be shown (string or QString)
  setSplitOrientation 
setSplitOrientation ( self,  orientation )

Public method used to set the orientation of the split view.

Arguments

orientation
orientation of the split (QSplitter.Horizontal or QSplitter.Vertical)
  showView 
showView (
        self,
        win,
        fn=None,
        )

Private method to show a view (i.e. window)

Arguments

win
editor window to be shown
fn
filename of this editor
  tile 
tile ( self )

Public method to tile the managed windows.


Table of Contents

This document was automatically generated by HappyDoc version 2.1