|
Uranium
Application Framework
|
Public Member Functions | |
| None | __init__ (self, parent=None) |
| None | setSectionProperty (self, str property_name) |
| str | sectionProperty (self) |
| None | setFilter (self, Dict[str, str] filter_dict) |
| Dict[str, str] | filter (self) |
| None | setFilterList (self, List[Dict[str, str]] filter_list) |
| List[Dict[str, str]] | filterList (self) |
| List[str] | getFileNameFilters (self, str io_type) |
| QUrl | getDefaultPath (self) |
Public Member Functions inherited from UM.Qt.ListModel.ListModel | |
| int | count (self) |
| int | rowCount (self, parent=None) |
| def | addRoleName (self, int role, str name) |
| def | roleNames (self) |
| def | 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) |
| def | 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) |
| int | find (self, str key, Any value) |
Static Public Attributes | |
| int | NameRole = Qt.UserRole + 1 |
| int | IdRole = Qt.UserRole + 2 |
| int | MetaDataRole = Qt.UserRole + 3 |
| int | ReadOnlyRole = Qt.UserRole + 4 |
| int | SectionRole = Qt.UserRole + 5 |
| sectionPropertyChanged = pyqtSignal() | |
| str | |
| fset | |
| setSectionProperty | |
| notify | |
| filterChanged = pyqtSignal() | |
| setFilter | |
| setFilterList | |
| result | |
Static Public Attributes inherited from UM.Qt.ListModel.ListModel | |
| itemsChanged = pyqtSignal() | |
| int | |
| notify | |
| result | |
| str | |
| QVariant | |
Model that holds instance containers. By setting the filter property the instances held by this model can be changed.
| List[str] UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.getFileNameFilters | ( | self, | |
| str | io_type | ||
| ) |
Gets a list of the possible file filters that the plugins have registered they can read or write. The convenience meta-filters "All Supported Types" and "All Files" are added when listing readers, but not when listing writers. :param io_type: Name of the needed IO type :return: A list of strings indicating file name filters for a file dialog.
| None UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilter | ( | self, | |
| Dict[str, str] | filter_dict | ||
| ) |
Set the filter of this model based on a string.
:param filter_dict: :type{Dict} Dictionary to do the filtering by.
| None UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilterList | ( | self, | |
| List[Dict[str, str]] | filter_list | ||
| ) |
Set a list of filters to use when fetching containers. :param filter_list: List of filter dicts to fetch multiple sets of containers. The final result is the union of these sets.