Package node_manager_fkie :: Module service_list_model :: Class ServiceModel
[frames] | no frames]

Class ServiceModel

source code

PySide.QtGui.QStandardItemModel --+
                                  |
                                 ServiceModel

The model to manage the list with services in ROS network.

Instance Methods
 
__init__(self)
Creates a new list model.
source code
PySide.QtCore.Qt.ItemFlag
flags(self, index)
Returns: Flag or the requestet item
source code
 
updateModelData(self, services)
Updates the service list model.
source code
Instance Variables
  header = [('Name', 300), ('Type',-1)]
the list with columns [(name, width), ...]
Method Details

flags(self, index)

source code 
Parameters:
  • index (PySide.QtCore.QModelIndex) - parent of the list
Returns: PySide.QtCore.Qt.ItemFlag
Flag or the requestet item

updateModelData(self, services)

source code 

Updates the service list model. New services will be inserted in sorting order. Not available services removed from the model.

Parameters:
  • services (dict(service name : master_discovery_fkie.ServiceInfo)) - The dictionary with services