Home | Trees | Indices | Help |
---|
|
python_qt_binding.QtGui.QStandardItem --+ | TopicGroupItem
The TopicGroupItem stores the information about a group of nodes.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Class Methods | |||
|
Class Variables | |
ITEM_TYPE = Qt.UserRole+ 35
|
Method Details |
Initialize the TopicGroupItem object with given values. :param str name: the name of the group :param parent: the parent item. In most cases this is the HostItem. The variable is used to determine the different columns of the NodeItem. :type parent: :class:`QtGui.QStandardItem` <https://srinikom.github.io/pyside-docs/PySide/QtGui/QStandardItem.html> :param bool is_group: True if this is a capability group. In other case it is a namespace group. |
Set the new name of this group and updates the displayed name of the item. :param str new_name: The new name of the group. Used also to identify the group.
|
|
:retrun: Returns count of nodes inside this group. :rtype: int |
Since the same node can be included by different groups, this method searches for all nodes with given name and returns these items. :param str topic_name: The name of the topic :param bool recursive: Searches in (sub) groups :return: The list with node items. :rtype: list(:class:`QtGui.QStandardItem` <https://srinikom.github.io/pyside-docs/PySide/QtGui/QStandardItem.html>) |
Returns all nodes in this group and subgroups. :param bool recursive: returns the nodes of the subgroups :return: The list with node items. :rtype: list(:class:`QtGui.QStandardItem` <https://srinikom.github.io/pyside-docs/PySide/QtGui/QStandardItem.html>) |
Creates the list of the items for this group. This list is used for the visualization of group data as a table row. :param str name: the group name :return: the list for the
representation as a row :rtype: |
Returns a TopicGroupItem with given name. If no group with this name exists, a new one will be created. The given name will be split by slashes if exists and subgroups are created. :param str group_name: the name of the group :param bool is_group: True if it is a capability group. False if a namespace group. (Default: True) :param bool nocreate: avoid creation of new group if not exists. (Default: False) :return: The group with given name of None if `nocreate` is True and group not exists. :rtype: :class:`TopicGroupItem` |
Adds a new topic with given name. :param topic: the TopicInfo of the node to create :type topic: :class:`TopicInfo` |
Removes not running and not configured nodes. :param list(str) fixed_node_names: If the list is not None, the node not in the list are set to not running! |
Returns for given topics the list of QModelIndex in this model. :param [str] publisher: the list of publisher topics :param [str] subscriber: the list of subscriber topics :return: the list of QModelIndex :rtype: [QtCore.QModelIndex] |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Mar 1 06:56:10 2022 | http://epydoc.sourceforge.net |