pqShowWidgetDecorator can be used to show/hide a widget based on the status of another property not directly controlled by the widget. More...
#include <pqShowWidgetDecorator.h>
Public Member Functions | |
pqShowWidgetDecorator (vtkPVXMLElement *config, pqPropertyWidget *parent) | |
bool | canShowWidget (bool show_advanced) const override |
Override this method to override the visibility of the widget in the panel. More... | |
![]() | |
pqBoolPropertyWidgetDecorator (vtkPVXMLElement *config, pqPropertyWidget *parent) | |
~pqBoolPropertyWidgetDecorator () override | |
bool | isBoolProperty () const |
![]() | |
pqPropertyWidgetDecorator (vtkPVXMLElement *xml, pqPropertyWidget *parent) | |
Constructor. More... | |
~pqPropertyWidgetDecorator () override | |
pqPropertyWidget * | parentWidget () const |
Returns the pqPropertyWidget parent. More... | |
virtual bool | enableWidget () const |
Override this method to override the enable state of the widget in the panel. More... | |
Additional Inherited Members | |
![]() | |
void | boolPropertyChanged () |
![]() | |
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 () |
![]() | |
static pqPropertyWidgetDecorator * | create (vtkPVXMLElement *xml, pqPropertyWidget *parent) |
Creates a new decorator, given the xml config and the parent pqPropertyWidget for the decorator. More... | |
![]() | |
vtkPVXMLElement * | xml () const |
![]() | |
vtkWeakPointer< vtkSMProperty > | Property |
QString | Function |
int | Index |
unsigned long | ObserverId |
bool | BoolProperty |
QString | Value |
pqShowWidgetDecorator can be used to show/hide a widget based on the status of another property not directly controlled by the widget.
Definition at line 15 of file pqShowWidgetDecorator.h.
pqShowWidgetDecorator::pqShowWidgetDecorator | ( | vtkPVXMLElement * | config, |
pqPropertyWidget * | parent | ||
) |
|
inlineoverridevirtual |
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 from pqPropertyWidgetDecorator.
Definition at line 23 of file pqShowWidgetDecorator.h.