seq  4.0.0-pre3
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
sequencerStdModel.SequencerModel Class Reference

Representation of a Sequence state. More...

Inheritance diagram for sequencerStdModel.SequencerModel:

Public Member Functions

def __init__ (self, state_client, parent=None)
 Initializator for the SequencerModel class. More...
 
def clear_model (self)
 
def create_model (self, node)
 
def index (self, row, column, parent)
 QAbstractItemModel Interface implementation. More...
 
def parent (self, child)
 
def columnCount (self, parent)
 
def rowCount (self, parent)
 
def data (self, index, role)
 
def flags (self, index)
 
def headerData (self, section, orientation, role)
 
def process_tree_update (self, dict_tree)
 Methods of this class. More...
 
def process_state_update (self, update_dict)
 Process a single state change. More...
 
def findItemFromSerialNumber (self, sn)
 
def considerCheckbox (self, index)
 
def considerDialog (self, index, dialog_result)
 
def children (self, index)
 

Public Attributes

 domnode
 
 rootItem
 
 icon
 

Static Public Attributes

 checkbox = Signal(object)
 
 continue_seq = Signal(object)
 
 node_skip = Signal(object)
 
dictionary column_order
 
dictionary state_to_string
 
dictionary flag_to_string
 

Detailed Description

Representation of a Sequence state.

This class allows Views from the Qt Model-View framework to access throught he QAbstractItemModel interface the contents of a backend.

In this case, the Deserialization of a JSON String into a python object.

Constructor & Destructor Documentation

◆ __init__()

def sequencerStdModel.SequencerModel.__init__ (   self,
  state_client,
  parent = None 
)

Initializator for the SequencerModel class.

It uses the :param:node to setup the storage backend.

Member Function Documentation

◆ children()

def sequencerStdModel.SequencerModel.children (   self,
  index 
)

◆ clear_model()

def sequencerStdModel.SequencerModel.clear_model (   self)

◆ columnCount()

def sequencerStdModel.SequencerModel.columnCount (   self,
  parent 
)

◆ considerCheckbox()

def sequencerStdModel.SequencerModel.considerCheckbox (   self,
  index 
)

◆ considerDialog()

def sequencerStdModel.SequencerModel.considerDialog (   self,
  index,
  dialog_result 
)

◆ create_model()

def sequencerStdModel.SequencerModel.create_model (   self,
  node 
)

◆ data()

def sequencerStdModel.SequencerModel.data (   self,
  index,
  role 
)

◆ findItemFromSerialNumber()

def sequencerStdModel.SequencerModel.findItemFromSerialNumber (   self,
  sn 
)

◆ flags()

def sequencerStdModel.SequencerModel.flags (   self,
  index 
)

◆ headerData()

def sequencerStdModel.SequencerModel.headerData (   self,
  section,
  orientation,
  role 
)

◆ index()

def sequencerStdModel.SequencerModel.index (   self,
  row,
  column,
  parent 
)

QAbstractItemModel Interface implementation.

◆ parent()

def sequencerStdModel.SequencerModel.parent (   self,
  child 
)

◆ process_state_update()

def sequencerStdModel.SequencerModel.process_state_update (   self,
  update_dict 
)

Process a single state change.

◆ process_tree_update()

def sequencerStdModel.SequencerModel.process_tree_update (   self,
  dict_tree 
)

Methods of this class.

Updates the complete tree. Commonly executed after a template is loaded.

◆ rowCount()

def sequencerStdModel.SequencerModel.rowCount (   self,
  parent 
)

Member Data Documentation

◆ checkbox

sequencerStdModel.SequencerModel.checkbox = Signal(object)
static

◆ column_order

dictionary sequencerStdModel.SequencerModel.column_order
static
Initial value:
= {
"name": 0,
"serial_number": 1,
"state": 2,
"description": 3,
}

◆ continue_seq

sequencerStdModel.SequencerModel.continue_seq = Signal(object)
static

◆ domnode

sequencerStdModel.SequencerModel.domnode

◆ flag_to_string

dictionary sequencerStdModel.SequencerModel.flag_to_string
static
Initial value:
= {
RTFLAG.BREAKPOINT: "Breakpoint",
RTFLAG.SKIP: "Skip",
RTFLAG.PAUSE: "Pause",
}

◆ icon

sequencerStdModel.SequencerModel.icon

◆ node_skip

sequencerStdModel.SequencerModel.node_skip = Signal(object)
static

◆ rootItem

sequencerStdModel.SequencerModel.rootItem

◆ state_to_string

dictionary sequencerStdModel.SequencerModel.state_to_string
static
Initial value:
= {
T_STATE.NOT_STARTED: "Not Started",
T_STATE.SCHEDULED: "Scheduled",
T_STATE.RUNNING: "Running",
T_STATE.PAUSED: "Paused",
T_STATE.FINISHED: "Finished",
T_STATE.CANCELLED: "Cancelled",
T_STATE.ABORTED: "Aborted",
T_STATE.ERROR: "Error",
T_STATE.SKIP: "Skip",
}

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