Table of Contents

Class: Workspace ./ViewManager/Workspace.py

Class implementing the workspace 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   
QWorkspace
ViewManager
Methods   
__init__
activeWindow
addView
canCascade
canTile
cascade
handleModificationStatusChanged
handleSVWindow
handleShowWindowMenu
handleWindowActivated
initWindowActions
removeAllViews
removeView
setEditorName
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
  activeWindow 
activeWindow ( self )

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

Returns

reference to the active editor

  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

  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.

  handleModificationStatusChanged 
handleModificationStatusChanged (
        self,
        m,
        editor,
        )

Private slot to handle the modificationStatusChanged signal.

Arguments

m
flag indicating the modification status (boolean)
editor
editor window changed
  handleSVWindow 
handleSVWindow ( self,  idx )

Private method to handle the toggle of an editor window.

Arguments

idx
index of the editor window to toggle (int)
  handleShowWindowMenu 
handleShowWindowMenu ( self,  windowMenu )

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

Arguments

windowMenu
reference to the window menu
  handleWindowActivated 
handleWindowActivated ( self,  editor )

Private slot to handle the windowActivated signal.

Arguments

editor
the activated editor window
  initWindowActions 
initWindowActions ( self )

Define the user interface actions for window handling.

  removeAllViews 
removeAllViews ( self )

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

  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)
  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 on Fri Mar 14 19:54:38 2003 by HappyDoc version 2.1