ParaView
Public Slots | Signals | Public Member Functions | Properties
pqSignalAdaptorSelectionTreeWidget Class Reference

pqSignalAdaptorSelectionTreeWidget has two roles. More...

#include <pqSignalAdaptorSelectionTreeWidget.h>

List of all members.

Public Slots

void setValues (const QList< QList< QVariant > > &values)
 Set the selected value on the widget.

Signals

void valuesChanged ()
 Fired whenever the values change.

Public Member Functions

 pqSignalAdaptorSelectionTreeWidget (QTreeWidget *treeWidget, vtkSMProperty *property)
 Constructor.
virtual ~pqSignalAdaptorSelectionTreeWidget ()
QList< QList< QVariant > > values () const
 Returns a list of strings which correspond to the currently selected values.
void setItemCreatorFunction (QTreeWidgetItem *(fptr)(QTreeWidget *, const QStringList &))
 This adaptor create QTreeWidgetItem instances by default when new entries are to be shown in the widget.

Properties

QList QList

Detailed Description

pqSignalAdaptorSelectionTreeWidget has two roles.

Definition at line 56 of file pqSignalAdaptorSelectionTreeWidget.h.


Constructor & Destructor Documentation

pqSignalAdaptorSelectionTreeWidget::pqSignalAdaptorSelectionTreeWidget ( QTreeWidget *  treeWidget,
vtkSMProperty property 
)

Constructor.

Parameters:
domainThe StringListDomain from which the adaptor can obtain the list of possible values for this widget.
treeWidgetThe QTreeWidget controlled by this adaptor.
virtual pqSignalAdaptorSelectionTreeWidget::~pqSignalAdaptorSelectionTreeWidget ( ) [virtual]

Member Function Documentation

QList<QList<QVariant> > pqSignalAdaptorSelectionTreeWidget::values ( ) const

Returns a list of strings which correspond to the currently selected values.

i.e. only the strings for items currently selected by the user are returned.

void pqSignalAdaptorSelectionTreeWidget::setItemCreatorFunction ( QTreeWidgetItem *  fptr)(QTreeWidget *, const QStringList &) [inline]

This adaptor create QTreeWidgetItem instances by default when new entries are to be shown in the widget.

To change the type of QTreeWidgetItem subclass created, simply set a function pointer to a callback which will be called every time a new item is needed. The signature for the callback is: QTreeWidgetItem* callback(QTreeWidget* parent, const QStringList& val)

Definition at line 81 of file pqSignalAdaptorSelectionTreeWidget.h.

void pqSignalAdaptorSelectionTreeWidget::valuesChanged ( ) [signal]

Fired whenever the values change.

void pqSignalAdaptorSelectionTreeWidget::setValues ( const QList< QList< QVariant > > &  values) [slot]

Set the selected value on the widget.

All the strings in the are set as selected in the tree widget. If a string is present that is not in the domain, it will be ignored.


Property Documentation

QList pqSignalAdaptorSelectionTreeWidget::QList [read, write]

Definition at line 59 of file pqSignalAdaptorSelectionTreeWidget.h.


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