Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Module reaction_tab :: Class ParticipantView
[hide private]
[frames] | no frames]

Class ParticipantView

   PyQt4.QtGui.QGraphicsView --+    
                               |    
ui.qt.structure2d.structure_view --+
                                   |
                                  ParticipantView

This class is a subclass of a QGraphicsView that holds a single structure_item, to display a single 2D structure. This handles all interactions with the widget displayed in the panel.

Instance Methods [hide private]
 
__init__(self, parent, scene, item)
 
mousePressEvent(self, event)
Override default Qt function to show context menu
 
addToWorkspace(self)
This includes the entry for this participant, leaving other current entries in the workspace as well (used with tiling).
 
setAsWorkspace(self)
This replaces the current workspace with only the entry for this participant.
 
_setStructure(self, structure)
Set a Structure object for the structure_item and generate its picture.
 
_importStructureFromFile(self)
Load first structure from structure file
 
_importStructureFromPT(self)
Load currently current single selected PT entry
 
processContextAction(self, action)
This loads data from the context menu, if requested

Inherited from ui.qt.structure2d.structure_view: resizeEvent, wheelEvent

Class Variables [hide private]
  PT_IMPORT_TXT = "Import from Project Table..."
  FILE_IMPORT_TXT = "Import from file..."
  DRAW_TXT = "Sketch..."
  DELETE_TXT = "Delete structure"
  structureChanged = QtCore.pyqtSignal(str, structure.Structure)
  deleteParticipant = QtCore.pyqtSignal(ReactionParticipant)
  error = QtCore.pyqtSignal(str)

Inherited from ui.qt.structure2d.structure_view: atom_clicked, bond_clicked

Method Details [hide private]

__init__(self, parent, scene, item)
(Constructor)

 
Overrides: ui.qt.structure2d.structure_view.__init__

_setStructure(self, structure)

 

Set a Structure object for the structure_item and generate its picture.

Parameters:
  • structure (structure.Structure) - The structure to be loaded

processContextAction(self, action)

 

This loads data from the context menu, if requested

Parameters:
  • action (QAction) - The action clicked on from the menu