Package schrodinger :: Package application :: Package msv :: Package gui :: Module view :: Class GroupExpansionViewMixin
[hide private]
[frames] | no frames]

Class GroupExpansionViewMixin

object --+
         |
        GroupExpansionViewMixin
Known Subclasses:

A mixin for views that synchronize group expansion via the model.

Instance Methods [hide private]
 
_ignoreExpansion(*args, **kwds)
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setModel(self, model)
 
_groupExpansionChangedInView(self, expanded, index)
Respond to an expansion change coming from this view.
 
_groupExpansionChangedInModel(self, indices, expanded)
Respond to an expansion change coming from the model.
 
_groupByChanged(self, group_by)
Respond to row groups being changed between group-by-sequence and group-by-annotation.
 
_rowsInserted(self, parent, start, end)
When a new group is created or when rows are inserted into an empty group, expand that group.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_groupExpansionChangedInView(self, expanded, index)

 

Respond to an expansion change coming from this view.

Parameters:
  • expanded (bool) - True if the index was expanded. False if it was collapsed.
  • index (QtCore.QModelIndex) - The index that was expanded or collapsed.

_groupExpansionChangedInModel(self, indices, expanded)

 

Respond to an expansion change coming from the model.

Parameters:
  • indices (list) - A list of all indices (QtCore.QModelIndex) that should be expanded or collapsed.
  • expanded (bool) - True if the indices was expanded. False if they were collapsed.

_groupByChanged(self, group_by)

 

Respond to row groups being changed between group-by-sequence and group-by-annotation.

Parameters:

_rowsInserted(self, parent, start, end)

 

When a new group is created or when rows are inserted into an empty group, expand that group. (QTreeView always defaults new groups to collapsed.)

For argument documentation, see QAbstractItemModel.rowsInserted signal documentation.