Package node_manager_fkie :: Module topic_list_model :: Class TopicItem
[frames] | no frames]

Class TopicItem

source code

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

The topic item stored in the topic model. This class stores the topic as master_discovery_fkie.TopicInfo. The name of the topic represented in HTML.

Nested Classes

Inherited from PyQt4.QtGui.QStandardItem: ItemType

Instance Methods
 
__init__(self, name, topic=None, parent=None)
Initialize the topic item.
source code
 
updateView(self)
Updates the view
source code
 
updatePublisherView(self)
Updates the representation of the column contains the publisher state.
source code
 
updateSubscriberView(self)
Updates the representation of the column contains the subscriber state.
source code
 
updateTypeView(self)
Updates the representation of the column contains the type of the topic.
source code
 
show_error_msg(self, msg) source code
 
type(self) source code
 
data(self, role) source code

Inherited from PyQt4.QtGui.QStandardItem: __eq__, __ge__, __gt__, __le__, __lt__, __ne__, accessibleDescription, accessibleText, appendColumn, appendRow, appendRows, background, checkState, child, clone, column, columnCount, 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
[TopicItem or PySide.QtGui.QStandardItem, ...]
getItemList(self, topic, root)
Creates the list of the items from topic.
source code
Class Variables
  ITEM_TYPE = 1036
  NAME_ROLE = 33
  NODENAMES_ROLE = 34
  COL_PUB = 1
  COL_SUB = 2
  COL_TYPE = 3

Inherited from PyQt4.QtGui.QStandardItem: Type, UserType

Instance Variables
  parent_item
service info as master_discovery_fkie.ServiceInfo.
Properties

Inherited from object: __class__

Method Details

__init__(self, name, topic=None, parent=None)
(Constructor)

source code 

Initialize the topic item.

Parameters:
  • name (str) - the topic name
Overrides: object.__init__

type(self)

source code 
Overrides: PyQt4.QtGui.QStandardItem.type

data(self, role)

source code 
Overrides: PyQt4.QtGui.QStandardItem.data

getItemList(self, topic, root)
Class Method

source code 

Creates the list of the items from topic. This list is used for the visualization of topic data as a table row.

Parameters:
  • name (str) - the topic name
  • root (PySide.QtGui.QStandardItem) - The parent QStandardItem
Returns: [TopicItem or PySide.QtGui.QStandardItem, ...]
the list for the representation as a row