Added ability for pqPropertyWidget to update when in advanced mode.
authorUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Sat, 2 Aug 2014 17:57:10 +0000 (13:57 -0400)
committerUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Sun, 3 Aug 2014 18:07:15 +0000 (14:07 -0400)
commite80715e5506710f398ddc44613daa9317104a75a
tree4d0f81f938c48ef4f4edc48fac539791426b81e7
parent4837992a35e43e8a93925d72b5130891b19b73db
Added ability for pqPropertyWidget to update when in advanced mode.

We have cases where a pqPropertyWidget need to change itself based on
whether the container pqProxyWidget is showing "advanced" properties or
not. For example, thq pqProxySelectionWidget which is used for
properties with proxy-list-domains, we may want to not show the
properties for the selected proxy in the domain, unless in advanced
view.

To facilitate that pqPropertyWidget now has a new method
"updateWidget()" which is called by pqProxyWidget before showing the
widget. Supclasses (such as pqProxyPropertyWidget) can override this
method to update their appearance based on the panel mode.

pqProxyPropertyWidget (working with pqProxySelectionWidget) overrides
this method to hide/show the widget for the selected proxy.

Change-Id: Ifdbbdfec1828b4eba717d79a9412c206a994bbd8
Qt/Components/pqPropertyWidget.h
Qt/Components/pqProxyPropertyWidget.cxx
Qt/Components/pqProxyPropertyWidget.h
Qt/Components/pqProxySelectionWidget.cxx
Qt/Components/pqProxySelectionWidget.h
Qt/Components/pqProxyWidget.cxx