Model that holds instance containers.
More...
|
def | __init__ (self, parent=None) |
|
def | setSectionProperty (self, property_name) |
|
def | sectionProperty (self) |
|
def | setFilter |
| Set the filter of this model based on a string. More...
|
|
def | filter (self) |
|
def | setFilterList (self, filter_list) |
| Set a list of filters to use when fetching containers. More...
|
|
def | filterList (self) |
|
def | rename (self, instance_id, new_name) |
|
def | getFileNameFilters (self, io_type) |
|
def | getDefaultPath (self) |
|
def | exportProfile (self, instance_id, file_url, file_type) |
|
def | importProfile (self, file_url) |
|
def | __init__ (self, parent=None) |
|
def | rowCount (self, parent=None) |
|
def | addRoleName (self, role, name) |
|
def | roleNames (self) |
|
def | data (self, index, role) |
| Reimplemented from QAbstractListModel.
|
|
def | getItem (self, index) |
|
def | items (self) |
|
def | setItems (self, items) |
| Replace all items at once. More...
|
|
def | appendItem (self, item) |
| Add an item to the list. More...
|
|
def | insertItem (self, index, item) |
| Insert an item into the list at an index. More...
|
|
def | removeItem (self, index) |
| Remove an item from the list. More...
|
|
def | clear (self) |
| Clear the list. More...
|
|
def | setProperty (self, index, property, value) |
|
def | sort (self, fun) |
| Sort the list. More...
|
|
def | find (self, key, value) |
|
|
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 |
| Gets a list of the possible file filters that the plugins have registered they can read or write. More...
|
|
| fset |
|
| setSectionProperty |
|
| notify |
|
| filterChanged = pyqtSignal() |
|
| setFilter |
|
| setFilterList |
|
| result |
|
| QUrl |
|
| result |
| Reimplemented from QAbstractListModel.
|
|
| int |
| Get an item from the list.
|
|
| itemsChanged = pyqtSignal() |
|
| notify |
| The list of items in this model. More...
|
|
| str |
| Find a entry by key value pair. More...
|
|
| QVariant |
|
Model that holds instance containers.
By setting the filter property the instances held by this model can be changed.
◆ setFilter()
def UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilter |
( |
|
self, |
|
|
|
filter_dict |
|
) |
| |
Set the filter of this model based on a string.
- Parameters
-
filter_dict | Dict Dictionary to do the filtering by. |
◆ setFilterList()
def UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilterList |
( |
|
self, |
|
|
|
filter_list |
|
) |
| |
Set a list of filters to use when fetching containers.
- Parameters
-
filter_list | List[Dict] List of filter dicts to fetch multiple sets of containers. The final result is the union of these sets. |
◆ str
UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.str |
|
static |
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.
- Parameters
-
io_type | str name of the needed IO type |
- Returns
- A list of strings indicating file name filters for a file dialog.
The documentation for this class was generated from the following file:
- UM/Settings/Models/InstanceContainersModel.py