Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, parent=None) | |
setFilter (self, filter_dict) | |
filter (self) | |
Public Member Functions inherited from UM.Qt.ListModel.ListModel | |
None | __init__ (self, parent=None) |
int | count (self) |
int | rowCount (self, parent=None) |
addRoleName (self, int role, str name) | |
roleNames (self) | |
data (self, index, role) | |
Dict[str, Any] | getItem (self, int index) |
List[Dict[str, Any]] | items (self) |
None | setItems (self, List[Dict[str, Any]] items) |
appendItem (self, Dict[str, Any] item) | |
None | insertItem (self, int index, Dict[str, Any] item) |
None | removeItem (self, int index) |
None | clear (self) |
None | setProperty (self, int index, str property, Any value) |
None | sort (self, Callable[[Any], float] fun, Optional[str] key=None, reverse=False) |
int | find (self, str key, Any value) |
Static Public Attributes | |
int | NameRole = Qt.ItemDataRole.UserRole + 1 |
int | IdRole = Qt.ItemDataRole.UserRole + 2 |
int | MetaDataRole = Qt.ItemDataRole.UserRole + 3 |
filterChanged = pyqtSignal() | |
Static Public Attributes inherited from UM.Qt.ListModel.ListModel | |
itemsChanged = pyqtSignal() |
Protected Member Functions | |
_onContainerChanged (self, container) | |
_onContainerNameChanged (self) | |
_update (self) |
Protected Attributes | |
list | _container_stacks = [] |
_onContainerChanged | |
dict | _filter_dict = {} |
_onContainerNameChanged | |
Protected Attributes inherited from UM.Qt.ListModel.ListModel | |
list | _items = [] |
dict | _role_names = {} |
Model that holds container stacks. By setting the filter property the stacks held by this model can be changed.
|
protected |
Handler for container added/removed events from registry
|
protected |
Handler for container name change events.
|
protected |
Private convenience function to reset & repopulate the model.
UM.Settings.Models.ContainerStacksModel.ContainerStacksModel.setFilter | ( | self, | |
filter_dict ) |
Set the filter of this model based on a string. :param filter_dict: Dictionary to do the filtering by.