Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Settings.Models.InstanceContainersModel.InstanceContainersModel Class Reference

Model that holds instance containers. More...

Inheritance diagram for UM.Settings.Models.InstanceContainersModel.InstanceContainersModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__
 
def setSectionProperty
 
def sectionProperty
 
def setFilter
 Set the filter of this model based on a string. More...
 
def filter
 
def setFilterList
 Set a list of filters to use when fetching containers. More...
 
def filterList
 
def rename
 
def getFileNameFilters
 Gets a list of the possible file filters that the plugins have registered they can read or write. More...
 
def getDefaultPath
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
def __init__
 
def rowCount
 Reimplemented from QAbstractListModel.
 
def addRoleName
 
def roleNames
 
def data
 Reimplemented from QAbstractListModel.
 
def getItem
 Get an item from the list.
 
def items
 The list of items in this model. More...
 
def setItems
 Replace all items at once. More...
 
def appendItem
 Add an item to the list. More...
 
def insertItem
 Insert an item into the list at an index. More...
 
def removeItem
 Remove an item from the list. More...
 
def clear
 Clear the list. More...
 
def setProperty
 
def sort
 Sort the list. More...
 
def find
 Find a entry by key value pair. More...
 

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
 
tuple sectionPropertyChanged = pyqtSignal()
 
tuple filterChanged = pyqtSignal()
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
tuple itemsChanged = pyqtSignal()
 

Detailed Description

Model that holds instance containers.

By setting the filter property the instances held by this model can be changed.

Member Function Documentation

def UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.getFileNameFilters (   self,
  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.

Parameters
io_typeName of the needed IO type
Returns
A list of strings indicating file name filters for a file dialog.
def UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilter (   self,
  filter_dict 
)

Set the filter of this model based on a string.

Parameters
filter_dictDict Dictionary to do the filtering by.
def UM.Settings.Models.InstanceContainersModel.InstanceContainersModel.setFilterList (   self,
  filter_list 
)

Set a list of filters to use when fetching containers.

Parameters
filter_listList of filter dicts to fetch multiple sets of containers. The final result is the union of these sets.

The documentation for this class was generated from the following file: