#include <TreeView.hxx>
TreeView::TreeView |
( |
QWidget * |
parent = 0 | ) |
|
QString TreeView::_idToName |
( |
int |
actionId | ) |
|
|
private |
You must use this function to create the name of an action object from its id.
int TreeView::_nameToId |
( |
QString |
actionName | ) |
|
|
private |
You must use this function to create the id of an action object from its name (stored in objectName() attribute of the QAction).
int TreeView::addAction |
( |
QString |
label | ) |
|
This function defines a menu item to add in the popup menu associated to this TreeView, and return an integer that corresponds to the unique identifier of this action (identifier used in the signal emitted to notify observers that an action has been selected). Then the caller of this function has to take care of this return id (i.e. has to store it in its internal tables) to be able to process the notifications from this TreeView.
References _idToName(), _lastActionId, and _listActions.
void TreeView::clearActions |
( |
| ) |
|
This function removes all actions previously defined for the popup menu of this TreeView.
References _listActions.
void TreeView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protected |
void TreeView::itemListToProcess |
( |
QStringList |
itemNameIdList, |
|
|
int |
actionId |
|
) |
| |
|
signal |
void TreeView::processMenuAction |
( |
QAction * |
actionSelected | ) |
|
|
privateslot |
int TreeView::_lastActionId |
|
private |
The documentation for this class was generated from the following files: