ParaView
Public Member Functions | Protected Slots
pqTreeWidgetSelectionHelper Class Reference

pqTreeWidgetSelectionHelper enables multiple element selection and the toggling on then changing the checked state of the selected elements. More...

#include <pqTreeWidgetSelectionHelper.h>

List of all members.

Public Member Functions

 pqTreeWidgetSelectionHelper (QTreeWidget *treeWidget)
 ~pqTreeWidgetSelectionHelper ()

Protected Slots

void onItemClicked (QTreeWidgetItem *item, int column)
void onItemPressed (QTreeWidgetItem *item, int column)
void showContextMenu (const QPoint &)

Detailed Description

pqTreeWidgetSelectionHelper enables multiple element selection and the toggling on then changing the checked state of the selected elements.

Hence, the user can do things like selecting a subset of nodes and then (un)checking all of them etc. This cannot work in parallel with pqTreeWidgetCheckHelper, hence only once of the two must be used on the same tree widget. CAVEATS: This helper currently assumes that the 0-th column is checkable (if at all). This can be fixed if needed.

Definition at line 49 of file pqTreeWidgetSelectionHelper.h.


Constructor & Destructor Documentation

pqTreeWidgetSelectionHelper::pqTreeWidgetSelectionHelper ( QTreeWidget *  treeWidget)
pqTreeWidgetSelectionHelper::~pqTreeWidgetSelectionHelper ( )

Member Function Documentation

void pqTreeWidgetSelectionHelper::onItemClicked ( QTreeWidgetItem *  item,
int  column 
) [protected, slot]
void pqTreeWidgetSelectionHelper::onItemPressed ( QTreeWidgetItem *  item,
int  column 
) [protected, slot]
void pqTreeWidgetSelectionHelper::showContextMenu ( const QPoint &  ) [protected, slot]

The documentation for this class was generated from the following file: