Public Member Functions | |
def | __init__ |
def | AddItem |
def | IsEditable |
def | RemoveItem |
def | AddGradientToInfo |
def | LoadGradientFromInfo |
def | GetGradient |
def | GetLastRow |
def | GetIcon |
def | NameIsValid |
def | rowCount |
def | data |
def | setData |
def | flags |
def | insertRow |
def | removeRow |
Data Fields | |
data_ | |
immutable_infoh_ | |
infoh_ | |
Static Public Attributes | |
tuple | IMMUTABLE_GRADIENTS_PATH |
string | MUTABLE_GRADIENTS_PATH = "user_gradients.xml" |
Definition at line 9 of file gradient_list_model.py.
def __init__ | ( | self, | ||
parent = None , |
||||
args | ||||
) |
Definition at line 15 of file gradient_list_model.py.
def AddGradientToInfo | ( | self, | ||
gradient, | ||||
name | ||||
) |
Definition at line 52 of file gradient_list_model.py.
def AddItem | ( | self, | ||
name, | ||||
gradient, | ||||
row, | ||||
editable, | ||||
save | ||||
) |
Definition at line 25 of file gradient_list_model.py.
def data | ( | self, | ||
index, | ||||
role | ||||
) |
Definition at line 99 of file gradient_list_model.py.
def flags | ( | self, | ||
index | ||||
) |
Definition at line 126 of file gradient_list_model.py.
def GetGradient | ( | self, | ||
model_index | ||||
) |
Definition at line 65 of file gradient_list_model.py.
def GetIcon | ( | self, | ||
gradient | ||||
) |
Definition at line 73 of file gradient_list_model.py.
def GetLastRow | ( | self | ) |
Definition at line 69 of file gradient_list_model.py.
def insertRow | ( | self, | ||
position, | ||||
index | ||||
) |
Definition at line 135 of file gradient_list_model.py.
def IsEditable | ( | self, | ||
row | ||||
) |
Definition at line 39 of file gradient_list_model.py.
def LoadGradientFromInfo | ( | self | ) |
Definition at line 55 of file gradient_list_model.py.
def NameIsValid | ( | self, | ||
string | ||||
) |
Definition at line 87 of file gradient_list_model.py.
def RemoveItem | ( | self, | ||
row | ||||
) |
Definition at line 42 of file gradient_list_model.py.
def removeRow | ( | self, | ||
position, | ||||
index | ||||
) |
Definition at line 141 of file gradient_list_model.py.
def rowCount | ( | self, | ||
parent = QtCore.QModelIndex() | ||||
) |
Definition at line 96 of file gradient_list_model.py.
def setData | ( | self, | ||
index, | ||||
value, | ||||
role | ||||
) |
Definition at line 108 of file gradient_list_model.py.
Definition at line 18 of file gradient_list_model.py.
tuple IMMUTABLE_GRADIENTS_PATH [static] |
os.path.join(ost.GetSharedDataPath(),"scene", "gradients.xml")
Definition at line 11 of file gradient_list_model.py.
Definition at line 21 of file gradient_list_model.py.
Definition at line 22 of file gradient_list_model.py.
string MUTABLE_GRADIENTS_PATH = "user_gradients.xml" [static] |
Definition at line 13 of file gradient_list_model.py.