Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- editor_area_id
The Id of the editor area. FIXME v3: This is toolkit specific.
editor_area_id = Str
- editor_closed
Fired when an editor has been closed.
editor_closed = Event(IEditor)
- editor_closing
Fired when an editor is about to be closed.
editor_closing = Event(IEditor)
- editor_opened
Fired when an editor has been opened (or restored).
editor_opened = Event(IEditor)
- editor_opening
Fired when an editor is about to be opened (or restored).
editor_opening = Event(IEditor)
- view_closed
Fired when a view has been closed (not hidden!).
view_closed = Event(IView)
- view_closing
Fired when a view is about to be closed (not hidden!).
view_closing = Event(IView)
- view_opened
Fired when a view has been opened (or restored).
view_opened = Event(IView)
- view_opening
Fired when a view is about to be opened (or restored).
view_opening = Event(IView)
- window
The workbench window that this is the layout for.
window = Instance('enthought.pyface.workbench.api.WorkbenchWindow')
Method summary
- activate_editor(self, editor)
- activate_view(self, view)
- add_editor(self, editor, title)
- add_view(self, view, position = None, relative_to = None, size = (-Const(1), -Const(1)))
- close(self)
- close_editor(self, editor)
- close_view(self, view)
- contains_view(self, view)
- create_initial_layout(self, parent)
- get_editor_memento(self)
- get_view_memento(self)
- hide_editor_area(self)
- hide_view(self, view)
- refresh(self)
- reset_editors(self)
- reset_views(self)
- set_editor_memento(self, memento)
- set_view_memento(self, memento)
- show_editor_area(self)
- show_view(self, view)
Methods
- activate_editor(self, editor)
Activate an editor.
- activate_view(self, view)
Activate a view.
- add_editor(self, editor, title)
Add an editor.
- add_view(self, view, position = None, relative_to = None, size = (-Const(1), -Const(1)))
Add a view.
- close(self)
Close the entire window layout.
- close_editor(self, editor)
Close an editor.
- close_view(self, view)
Close a view.
- contains_view(self, view)
Return True if the view exists in the window layout.
- create_initial_layout(self, parent)
Create the initial window layout.
- get_editor_memento(self)
Returns the state of the editors.
- get_view_memento(self)
Returns the state of the views.
- hide_editor_area(self)
Hide the editor area.
- hide_view(self, view)
Hide a view.
- refresh(self)
Refresh the window layout to reflect any changes.
- reset_editors(self)
Activate the first editor in every group.
- reset_views(self)
Activate the first view in every region.
- set_editor_memento(self, memento)
Restores the state of the editors.
- set_view_memento(self, memento)
Restores the state of the views.
- show_editor_area(self)
Show the editor area.
- show_view(self, view)
Show a view.