Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- file_name
The name of the user defined perspectives definition file.
file_name = Property(Unicode)
- id_to_perspective
Dictionary mapping perspective id to user defined perspective definition.
id_to_perspective = Property(Dict)
- next_id
Next available user perspective id.
next_id = Property(Int)
- perspectives
The list of user defined perspective definitions.
perspectives = Property(List)
- state_location
A directory on the local file system that we can read and write to at will. This is used to persist window layout information, etc.
state_location = Unicode
Method summary
- add(self, perspective, name = None)
- clone_perspective(self, window, perspective, **traits)
- create_perspective(self, name, show_editor_area = True)
- remove(self, id)
- rename(self, perspective, name)
- save(self)
Methods
- add(self, perspective, name = None)
Add a perspective with an optional name.
- clone_perspective(self, window, perspective, **traits)
Clone a perspective as a user perspective.
- create_perspective(self, name, show_editor_area = True)
Create a new (and empty) user-defined perspective.
- remove(self, id)
Remove the user perspective with the specified id.
This method also updates the persistent data.
- rename(self, perspective, name)
Rename the user perspective with the specified id.
- save(self)
Persist the current state of the user perspectives.