OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Data Fields | Static Public Attributes
GradientListModel Class Reference

Inherits QAbstractListModel.

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"
 
tuple dataChanged = QtCore.pyqtSignal(int, int, name="dataChanged")
 

Detailed Description

Definition at line 9 of file gradient_list_model.py.

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None,
  args 
)

Definition at line 17 of file gradient_list_model.py.

Member Function Documentation

def AddGradientToInfo (   self,
  gradient,
  name 
)

Definition at line 54 of file gradient_list_model.py.

def AddItem (   self,
  name,
  gradient,
  row,
  editable,
  save 
)

Definition at line 27 of file gradient_list_model.py.

def data (   self,
  index,
  role 
)

Definition at line 101 of file gradient_list_model.py.

def flags (   self,
  index 
)

Definition at line 128 of file gradient_list_model.py.

def GetGradient (   self,
  model_index 
)

Definition at line 67 of file gradient_list_model.py.

def GetIcon (   self,
  gradient 
)

Definition at line 75 of file gradient_list_model.py.

def GetLastRow (   self)

Definition at line 71 of file gradient_list_model.py.

def insertRow (   self,
  position,
  index 
)

Definition at line 137 of file gradient_list_model.py.

def IsEditable (   self,
  row 
)

Definition at line 41 of file gradient_list_model.py.

def LoadGradientFromInfo (   self)

Definition at line 57 of file gradient_list_model.py.

def NameIsValid (   self,
  string 
)

Definition at line 89 of file gradient_list_model.py.

def RemoveItem (   self,
  row 
)

Definition at line 44 of file gradient_list_model.py.

def removeRow (   self,
  position,
  index 
)

Definition at line 143 of file gradient_list_model.py.

def rowCount (   self,
  parent = QtCore.QModelIndex() 
)

Definition at line 98 of file gradient_list_model.py.

def setData (   self,
  index,
  value,
  role 
)

Definition at line 110 of file gradient_list_model.py.

Field Documentation

data_

Definition at line 20 of file gradient_list_model.py.

tuple dataChanged = QtCore.pyqtSignal(int, int, name="dataChanged")
static

Definition at line 15 of file gradient_list_model.py.

tuple IMMUTABLE_GRADIENTS_PATH
static
Initial value:
1 = os.path.join(ost.GetSharedDataPath(),"scene",
2  "gradients.xml")

Definition at line 11 of file gradient_list_model.py.

immutable_infoh_

Definition at line 23 of file gradient_list_model.py.

infoh_

Definition at line 24 of file gradient_list_model.py.

string MUTABLE_GRADIENTS_PATH = "user_gradients.xml"
static

Definition at line 13 of file gradient_list_model.py.


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