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

Class MasterItem

source code

python_qt_binding.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
 
master(self, value) source code
 
quality(self, value) source code
 
updateMasterErrors(self, error_list) source code
 
updateTimeDiff(self, timediff) 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
Class Variables
  ITEM_TYPE = QStandardItem.UserType+ 34
Method Details

master(self, value)

source code 
Decorators:
  • @master.setter

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 (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