Dear Paraview users,
I found an unexpected behavior in Paraview 4.2.
When I set separated panels or other options except the combined one, I
don't get what it is expected and 6 grayed button (restore, update) appear.
I think I fixed it by adding the following lines to pqPropertiesPanel.cxx
in the setPanelMode method:
// added to avoid unwanted update restore buttons
this->Internals->Ui.PropertiesSaveAsDefaults->setVisible(has_source);
this->Internals->Ui.PropertiesRestoreDefaults->setVisible(has_source);
this->Internals->Ui.DisplaySaveAsDefaults->setVisible(has_display);
this->Internals->Ui.DisplayRestoreDefaults->setVisible(has_display);
this->Internals->Ui.ViewSaveAsDefaults->setVisible(has_view);
this->Internals->Ui.ViewRestoreDefaults->setVisible(has_view);
Moreover I modified the paraview main window to setup the panels. i.e.
for ALL_SEPARATE:
case vtkPVGeneralSettings::ALL_SEPARATE:
this->Internals->propertiesPanel->setPanelMode(
pqPropertiesPanel::SOURCE_PROPERTIES);
// added
this->Internals->viewPropertiesPanel->setPanelMode(
pqPropertiesPanel::VIEW_PROPERTIES);
this->Internals->displayPropertiesPanel->setPanelMode(pqPropertiesPanel::DISPLAY_PROPERTIES);
It works at start up, but when I use more than one source the display
panel doesn't show any property when switching from one source to
another.
Do you know what can cause this behavior and how to possibly solve it?
Thank you
Federico
P.S. sorry if I sent this mail previously on paraview-developers, but
may be it was the wrong list.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview