Package node_manager_fkie :: Module master_list_model :: Class MasterItem
[frames] | no frames]

Class MasterItem

source code

PySide.QtGui.QStandardItem --+
                             |
                            MasterItem

The master item stored in the master model. This class stores the master as master_discovery_fkie.ROSMaster.

Instance Methods
 
__init__(self, master, local=False, quality=None, parent=None) source code
 
quality(self, value) source code
 
updateMasterView(self, parent)
This method is called after the master state is changed to update the representation of the master.
source code
 
updateNameView(self, master, quality, item)
Updates the representation of the column contains the name state.
source code
 
updateDescription(self, descr) source code
 
type(self) source code
 
__eq__(self, item) source code
 
__gt__(self, item) source code
Class Methods
str
toHTML(cls, text)
Returns: the HTML representation of the name of the text
source code
[MasterItem or PySide.QtGui.QStandardItem, ...]
getItemList(self, master, local)
Creates the list of the items from master.
source code
Class Variables
  ITEM_TYPE = QtGui.QStandardItem.UserType+ 34
Method Details

quality(self, value)

source code 
Decorators:
  • @quality.setter

updateMasterView(self, parent)

source code 

This method is called after the master state is changed to update the representation of the master. The name will not be changed, but all other data.

Parameters:
  • parent (PySide.QtGui.QStandardItem) - Item which contains this master item. This is needed to update other columns of this master.

updateNameView(self, master, quality, item)

source code 

Updates the representation of the column contains the name state.

Parameters:
  • master (master_discovery_fkie.TopicInfo) - the topic data
  • item (TopicItem) - corresponding item in the model

toHTML(cls, text)
Class Method

source code 
Parameters:
  • text (str) - the text
Returns: str
the HTML representation of the name of the text

getItemList(self, master, local)
Class Method

source code 

Creates the list of the items from master. This list is used for the visualization of master data as a table row. @param master the master data @type master master_discovery_fkie.ROSMaster

Parameters:
  • local (bool) - whether the master is local or not
Returns: [MasterItem or PySide.QtGui.QStandardItem, ...]
the list for the representation as a row