Package schrodinger :: Package application :: Package combiglide :: Module combenumdock :: Class collectionViewerModel
[hide private]
[frames] | no frames]

Class collectionViewerModel

PyQt4.QtCore.QAbstractTableModel --+        
                                   |        
             ui.qt.table.ViewerModel --+    
                                       |    
           ui.qt.structtable.ViewerModel --+
                                           |
                                          collectionViewerModel

Instance Methods [hide private]
 
__init__(self, parent_panel, rowcount=0, columncount=4, unique=False)
 
removeStruct(self, row, column)
 
appendStruct(self, struct)
 
clearStructs(self)
int
getStructureCount(self)
Return the current number of structures in the model
str
getUniqueTitle(self, beginning)
Adds a number to the beginning string in order to create a title that is unique in the current set of titles.
set
uniquifyTitles(self)
Modify any duplicate and blank titles in the Fragment Collection so that all titles are unique
bool
doesTitleExist(self, title)
Check if the given title already exists in the fragment library

Inherited from ui.qt.table.ViewerModel: columnCount, data, getStruct, insertColumns, insertRows, removeColumns, removeRows, resize, resizeColumns, resizeRows, rowCount, setTable, structCount

Method Details [hide private]

__init__(self, parent_panel, rowcount=0, columncount=4, unique=False)
(Constructor)

 
Overrides: ui.qt.table.ViewerModel.__init__

removeStruct(self, row, column)

 
Overrides: ui.qt.table.ViewerModel.removeStruct

appendStruct(self, struct)

 
Overrides: ui.qt.table.ViewerModel.appendStruct

clearStructs(self)

 
Overrides: ui.qt.table.ViewerModel.clearStructs

getStructureCount(self)

 

Return the current number of structures in the model

Returns: int
The number of structures in the model

getUniqueTitle(self, beginning)

 

Adds a number to the beginning string in order to create a title that is unique in the current set of titles.

Parameters:
  • beginning (str) - The string that will begin the title and have an integer appended to it to be unique
Returns: str
A title unlike any currently found in the table

uniquifyTitles(self)

 

Modify any duplicate and blank titles in the Fragment Collection so that all titles are unique

Returns: set
set of modified structure titles

doesTitleExist(self, title)

 

Check if the given title already exists in the fragment library

Returns: bool
True if title already exists, False if not