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

Class TopicItem

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
PyQt5.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 PyQt5.QtGui.QStandardItem: ItemType

Instance Methods
 
__init__(self, name, topic=None, parent=None)
Initialize the topic item.
source code
 
update_view(self, topic_info=None)
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
 
__eq__(self, item)
Compares the name of topic.
source code

Inherited from PyQt5.QtGui.QStandardItem: __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
 
create_item_list(self, topic, root)
Creates the list of the items from topic.
source code
Class Variables
  ITEM_TYPE = 1036
  NAME_ROLE = 257
  NODENAMES_ROLE = 258
  COL_PUB = 1
  COL_SUB = 2
  COL_TYPE = 3

Inherited from PyQt5.QtGui.QStandardItem: Type, UserType

Instance Variables
  topic
topic as master_discovery_fkie.TopicInfo.
Properties
  name
  topic_type_str
  parent_item
  with_namespace
Returns `True` if the topic name contains a '/' in his name

Inherited from object: __class__

Method Details

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

source code 

Initialize the topic item. :param str name: the topic name :param topic: the topic info :type topic: master_discovery_fkie.TopicInfo

Overrides: object.__init__

type(self)

source code 
Overrides: PyQt5.QtGui.QStandardItem.type

data(self, role)

source code 
Overrides: PyQt5.QtGui.QStandardItem.data

create_item_list(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. :param str topic: the topic name :param root: The parent QStandardItem :type root: QStandardItem :return: the list for the representation as a row :rtype: [TopicItem or QStandardItem, ...]

__eq__(self, item)
(Equality operator)

source code 

Compares the name of topic.

Overrides: PyQt5.QtGui.QStandardItem.__eq__

Property Details

name

Get Method:
unreachable.name(self)
Set Method:
unreachable.name(self, new_name)

topic_type_str

Get Method:
unreachable.topic_type_str(self)

parent_item

Get Method:
unreachable.parent_item(self)
Set Method:
unreachable.parent_item(self, parent_item)

with_namespace

Returns `True` if the topic name contains a '/' in his name

:rtype: bool

Get Method:
unreachable.with_namespace(self) - Returns `True` if the topic name contains a '/' in his name