ParaView
Signals | Public Member Functions | Protected Member Functions | List of all members
pqPropertyWidgetDecorator Class Reference

pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to the widget to add additional control logic. More...

#include <pqPropertyWidgetDecorator.h>

Inheritance diagram for pqPropertyWidgetDecorator:
Inheritance graph
[legend]

Signals

void visibilityChanged ()
 This signal is fired whenever the decorator has determined that the panel may need a refresh since the state of the system has changed which would deem changes in the widget visibility or enable state. More...
 
void enableStateChanged ()
 

Public Member Functions

 pqPropertyWidgetDecorator (vtkPVXMLElement *xml, pqPropertyWidget *parent)
 Constructor. More...
 
virtual ~pqPropertyWidgetDecorator ()
 
pqPropertyWidgetparentWidget () const
 Returns the pqPropertyWidget parent. More...
 
virtual bool canShowWidget (bool show_advanced) const
 Override this method to override the visibility of the widget in the panel. More...
 
virtual bool enableWidget () const
 Override this method to override the enable state of the widget in the panel. More...
 

Protected Member Functions

vtkPVXMLElementxml () const
 

Detailed Description

pqPropertyWidgetDecorator provides a mechanism to decorate pqPropertyWidget instances to add logic to the widget to add additional control logic.

Subclasses can be used to logic to control when the widget is enabled/disabled, hidden/visible, etc. based on values of other properties of UI elements.

Definition at line 47 of file pqPropertyWidgetDecorator.h.

Constructor & Destructor Documentation

§ pqPropertyWidgetDecorator()

pqPropertyWidgetDecorator::pqPropertyWidgetDecorator ( vtkPVXMLElement xml,
pqPropertyWidget parent 
)

Constructor.

parent cannot be NULL. xml is the XML element from the <Hints> section for the proxy/property that resulted in the creation of the decorator. Decorators can be provided configuration parameters from the XML.

§ ~pqPropertyWidgetDecorator()

virtual pqPropertyWidgetDecorator::~pqPropertyWidgetDecorator ( )
virtual

Member Function Documentation

§ parentWidget()

pqPropertyWidget* pqPropertyWidgetDecorator::parentWidget ( ) const

Returns the pqPropertyWidget parent.

§ canShowWidget()

virtual bool pqPropertyWidgetDecorator::canShowWidget ( bool  show_advanced) const
inlinevirtual

Override this method to override the visibility of the widget in the panel.

This is called after the generic tests for advanced and text filtering are passed. Since there can be multiple decorators, the first decorator that returns 'false' wins. Default implementation returns true. Thus subclasses typically override this method only to force the widget invisible given the current state.

Reimplemented in pqGenericPropertyWidgetDecorator, pqOSPRayHidingDecorator, and pqShowWidgetDecorator.

Definition at line 75 of file pqPropertyWidgetDecorator.h.

§ enableWidget()

virtual bool pqPropertyWidgetDecorator::enableWidget ( ) const
inlinevirtual

Override this method to override the enable state of the widget in the panel.

This is called after the generic tests for advanced and text filtering are passed. Since there can be multiple decorators, the first decorator that returns 'false' wins. Default implementation returns true. Thus subclasses typically override this method only to force the widget disabled given the current state.

Reimplemented in pqGenericPropertyWidgetDecorator, pqInputDataTypeDecorator, and pqEnableWidgetDecorator.

Definition at line 89 of file pqPropertyWidgetDecorator.h.

§ visibilityChanged

void pqPropertyWidgetDecorator::visibilityChanged ( )
signal

This signal is fired whenever the decorator has determined that the panel may need a refresh since the state of the system has changed which would deem changes in the widget visibility or enable state.

§ enableStateChanged

void pqPropertyWidgetDecorator::enableStateChanged ( )
signal

§ xml()

vtkPVXMLElement* pqPropertyWidgetDecorator::xml ( ) const
protected

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