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

Class MasterItem

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
PyQt4.QtGui.QStandardItem --+
                            |
                           MasterItem

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

Nested Classes

Inherited from PyQt4.QtGui.QStandardItem: ItemType

Instance Methods
 
__init__(self, master, local=False, quality=None, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
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)
x==y
source code
 
__gt__(self, item)
x>y
source code

Inherited from PyQt4.QtGui.QStandardItem: __ge__, __le__, __lt__, __ne__, accessibleDescription, accessibleText, appendColumn, appendRow, appendRows, background, checkState, child, clone, column, columnCount, data, emitDataChanged, flags, font, foreground, hasChildren, icon, index, insertColumn, insertColumns, insertRow, insertRows, isCheckable, isDragEnabled, isDropEnabled, isEditable, isEnabled, isSelectable, isTristate, model, parent, read, removeColumn, removeColumns, removeRow, removeRows, row, rowCount, setAccessibleDescription, setAccessibleText, setBackground, setCheckState, setCheckable, setChild, setColumnCount, setData, setDragEnabled, setDropEnabled, setEditable, setEnabled, setFlags, setFont, setForeground, setIcon, setRowCount, setSelectable, setSizeHint, setStatusTip, setText, setTextAlignment, setToolTip, setTristate, setWhatsThis, sizeHint, sortChildren, statusTip, takeChild, takeColumn, takeRow, text, textAlignment, toolTip, whatsThis, write

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

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 = 1034

Inherited from PyQt4.QtGui.QStandardItem: Type, UserType

Properties
  master
  quality

Inherited from object: __class__

Method Details

__init__(self, master, local=False, quality=None, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

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

type(self)

source code 
Overrides: PyQt4.QtGui.QStandardItem.type

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

__eq__(self, item)
(Equality operator)

source code 

x==y

Overrides: PyQt4.QtGui.QStandardItem.__eq__
(inherited documentation)

__gt__(self, item)
(Greater-than operator)

source code 

x>y

Overrides: PyQt4.QtGui.QStandardItem.__gt__
(inherited documentation)

Property Details

master

Get Method:
unreachable.master(self)
Set Method:
unreachable.master(self, value)

quality

Get Method:
unreachable.quality(self)
Set Method:
unreachable.quality(self, value)