Package schrodinger :: Package application :: Package matsci :: Module reordergui :: Class ComparisonListWidget
[hide private]
[frames] | no frames]

Class ComparisonListWidget

PyQt4.QtGui.QListWidget --+        
                          |        
 ui.qt.swidgets.SListWidget --+    
                              |    
            StructureListWidget --+
                                  |
                                 ComparisonListWidget

The list widget for the Comparison structure.

Instance Methods [hide private]
str
getAtomText(self, atom)
Get the text to display in a row of the ListWidget
QListWidgetItem
markAtomMapped(self, index, guess=False)
Mark the row for the given atom index as mapped

Inherited from StructureListWidget: __init__, fill, itemSelected, markAtomUnmapped, parseAtomText, selectAtom, setStructure

Inherited from ui.qt.swidgets.SListWidget: allItems, removeItem, removeItemByText, rowByText, selectedText, setTextSelected

Class Variables [hide private]

Inherited from StructureListWidget: atom_clicked

Method Details [hide private]

getAtomText(self, atom)

 

Get the text to display in a row of the ListWidget

The atom text for an item is just the atom element plus index

Parameters:
  • atom (int or _StructureAtom) - A reference to the atom to create text for
Returns: str
The text to display for this atom

markAtomMapped(self, index, guess=False)

 

Mark the row for the given atom index as mapped

Adds to the parent method by deselecting the row

Parameters:
  • index (int) - Atom to mark
  • guess (bool) - True if this mark results from a guess, False if not. The background color used depends on this parameter.
Returns: QListWidgetItem
The list widget item for the affected atom
Overrides: StructureListWidget.markAtomMapped