PyFlex  1.0
Riser cross section analysis
ui_mainwindow.GenericTreeModel Class Reference
Inheritance diagram for ui_mainwindow.GenericTreeModel:
Collaboration diagram for ui_mainwindow.GenericTreeModel:

Public Member Functions

def __init__ (self, parent=None)
 
def columnCount (self, parent)
 
def getItem (self, index)
 
def data (self, index, role)
 
def setData (self, index, value, role=QtCore.Qt.EditRole)
 
def supportedDropActions (self)
 
def headerData (self, section, orientation, role)
 
def index (self, row, column, parent)
 
def parent (self, index)
 
def removeRows (self, position, rows, parent=QtCore.QModelIndex())
 
def rowCount (self, parent)
 
def insertRows (self, position, rows, parent=QtCore.QModelIndex())
 

Detailed Description

Superclass for all tree models in the project

List of methods that needs to be implemented when inherting this class:
flags, 

Definition at line 113 of file ui_mainwindow.py.

Constructor & Destructor Documentation

def ui_mainwindow.GenericTreeModel.__init__ (   self,
  parent = None 
)

Definition at line 119 of file ui_mainwindow.py.

Member Function Documentation

def ui_mainwindow.GenericTreeModel.columnCount (   self,
  parent 
)

Definition at line 122 of file ui_mainwindow.py.

def ui_mainwindow.GenericTreeModel.data (   self,
  index,
  role 
)
Do not know. called by the view to get hold of the data I believe
:param index: the index
:param role: the role
:return:the data in display friendly mode

Definition at line 141 of file ui_mainwindow.py.

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.getItem (   self,
  index 
)
Method for getting hold of the item from its index
:param index: the index of the item
:return:the pointer to the item itself

Definition at line 128 of file ui_mainwindow.py.

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.headerData (   self,
  section,
  orientation,
  role 
)
:param section: do not know
:param orientation: no idea
:param role: in which context the view queries info
:return:headers mode

Definition at line 179 of file ui_mainwindow.py.

def ui_mainwindow.GenericTreeModel.index (   self,
  row,
  column,
  parent 
)
:param row: the row of the tree model
:param column: which column of the tree model
:param parent: the parent of the item
:return:the index of the item

Definition at line 190 of file ui_mainwindow.py.

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.insertRows (   self,
  position,
  rows,
  parent = QtCore.QModelIndex() 
)

Definition at line 244 of file ui_mainwindow.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.parent (   self,
  index 
)
:param index: the index oof the item
:return: the index of the parent of the item

Definition at line 209 of file ui_mainwindow.py.

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.removeRows (   self,
  position,
  rows,
  parent = QtCore.QModelIndex() 
)

Definition at line 222 of file ui_mainwindow.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.rowCount (   self,
  parent 
)
returns the number of children of the parent. sounds like it should return the number of rows in total...
:param parent: the parent of something.
:return:

Definition at line 231 of file ui_mainwindow.py.

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.setData (   self,
  index,
  value,
  role = QtCore.Qt.EditRole 
)
:param index: the index of the item queried
:param value: the new value of the data
:param role: which role the view queries. only EditRole relevant
:return: returns the result. Should be the data put into some item.

Definition at line 157 of file ui_mainwindow.py.

Here is the call graph for this function:

Here is the caller graph for this function:

def ui_mainwindow.GenericTreeModel.supportedDropActions (   self)

Definition at line 176 of file ui_mainwindow.py.


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