This class is used for visualization of robots or capabilities in
header of the capability table. It is also used to manage the displayed
robots or capabilities. Furthermore QtGui.QHeaderView.paintSection() method is overridden
to paint the images in background of the cell.
|
|
int
|
index(self,
name)
Returns the index of the object stored with given name |
source code
|
|
|
paintSection(self,
painter,
rect,
logicalIndex)
The method paint the robot or capability images in the backgroud of
the cell. |
source code
|
|
|
mousePressEvent(self,
event)
Interpret the mouse events to send the description of a robot or
capability if the user click on the header. |
source code
|
|
|
setDescription(self,
index,
cfg,
name,
displayed_name,
robot_type,
description,
images)
Sets the values of an existing item to the given items. |
source code
|
|
|
updateDescription(self,
index,
cfg,
name,
displayed_name,
robot_type,
description,
images)
Sets the values of an existing item to the given items only if the
current value is empty. |
source code
|
|
|
|
|
|
int
|
insertSortedItem(self,
name,
displayed_name)
Insert the new item with given name at the sorted position and return
the index of the item. |
source code
|
|
[int]
|
removeCfg(self,
cfg)
Removes the configuration entries from objects and returns the list
with indexes, where the configuration was removed. |
source code
|
|
int
|
|
str
|
|