Package schrodinger :: Package application :: Package bioluminate :: Package ssv :: Module viewer :: Class ViewerWindow
[hide private]
[frames] | no frames]

Class ViewerWindow

PyQt4.QtGui.QMainWindow --+
                          |
                         ViewerWindow

Provides the SimplifiedSequenceViewer with a window to occupy. This has the benefit of adding toolbars and allowing the sequence viewer (which is a QtGui.QSplitter) to be a stand-alone window.

Instance Methods [hide private]
 
__init__(self, parent)
 
removeToolBar(self, objname=None)
Overrides the base class's QtGui.QMainWindow.removeToolBar method to allow for removal of a single toolbar based on the toolbar's object name or, if objname is None, removal of all the window's toolbars.
 
addToolBars(self, toolbars)
Add toolbars to the sequence viewer.
 
setToolBars(self, toolbars)
Deletes all window toolbars and sets them to the new toolbars
 
addImportToolBar(self, area=QtCore.Qt.TopToolBarArea)
Adds an ImportToolBar widget to the area indicated (default: top).
 
addUndoRedoToolBar(self, area=QtCore.Qt.TopToolBarArea)
Adds a widget that handles undo/redo operations to the area indicated (default: top).
 
addFindToolBar(self, area=QtCore.Qt.TopToolBarArea)
Adds a FindToolBar widget to the area indicated (default: top).
 
addAlignToolBar(self, area=QtCore.Qt.BottomToolBarArea)
Adds a toolbar to the area indicated (default: bottom) that contains all of the actions for alignment.
 
addConsensusToolBar(self, area=QtCore.Qt.BottomToolBarArea)
Adds a ConsensusToolBar widget to the area indicated (default: bottom) that contains all of the actions for consensus visualization.
 
addAntibodyNumberingToolBar(self, area=QtCore.Qt.BottomToolBarArea)
Add a AntibodyNumberingToolBar widget to the area indicated (default: bottom).
 
setAntibodyNumberingToolBarVisible(self, show=True)
Class Variables [hide private]
  WINDOW_TITLE = 'Sequence Viewer'
  IMPORT_TOOLBAR = 'import_toolbar'
  UNDO_REDO_TOOLBAR = 'undo_redo_toolbar'
  FIND_TOOLBAR = 'find_toolbar'
  ALIGN_TOOLBAR = 'align_toolbar'
  CONSENSUS_TOOLBAR = 'consensus_toolbar'
  ANTIBODY_NUM_TOOLBAR = 'antibody_numbering_toolbar'
  BREAK_TOOLBAR = 'break_toolbar'
  DEFAULT_TOOLBARS = [IMPORT_TOOLBAR, UNDO_REDO_TOOLBAR, FIND_TO...
Instance Variables [hide private]
  action_factory
The factory to use when creating actions.
Method Details [hide private]

__init__(self, parent)
(Constructor)

 
Parameters:
Raises:
  • RuntimeError - If parent is not correct type

addToolBars(self, toolbars)

 

Add toolbars to the sequence viewer. The toolbars arg should be a list of items taken from the ViewerWindow properties:

addImportToolBar(self, area=QtCore.Qt.TopToolBarArea)

 

Adds an ImportToolBar widget to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addUndoRedoToolBar(self, area=QtCore.Qt.TopToolBarArea)

 

Adds a widget that handles undo/redo operations to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addFindToolBar(self, area=QtCore.Qt.TopToolBarArea)

 

Adds a FindToolBar widget to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addAlignToolBar(self, area=QtCore.Qt.BottomToolBarArea)

 

Adds a toolbar to the area indicated (default: bottom) that contains all of the actions for alignment.

Parameters:
  • area - The area to add the dock widget to

addConsensusToolBar(self, area=QtCore.Qt.BottomToolBarArea)

 

Adds a ConsensusToolBar widget to the area indicated (default: bottom) that contains all of the actions for consensus visualization.

Parameters:
  • area - The area to add the dock widget to

addAntibodyNumberingToolBar(self, area=QtCore.Qt.BottomToolBarArea)

 

Add a AntibodyNumberingToolBar widget to the area indicated (default: bottom).

Parameters:
  • area - The area to add the dock widget to

Class Variable Details [hide private]

DEFAULT_TOOLBARS

Value:
[IMPORT_TOOLBAR, UNDO_REDO_TOOLBAR, FIND_TOOLBAR, ALIGN_TOOLBAR,]

Instance Variable Details [hide private]

action_factory

The factory to use when creating actions. We want to set all the action's parent to the passed in parent, which is a SequenceViewer. All of the actions associated with the viewer are the module, schrodinger.ui.sequencealignment.sequence_viewer.