<div dir="ltr">Dear Paraview-developers,<div><br></div><div>I found an unexpected behavior in Paraview 4.2.</div><div>When I set separated panel or other options except the combined one, I don't get what it is expected and 6 grayed button (restore, update) appears.</div><div><br></div><div>I think I fixed it by adding the following lines to pqPropertiesPanel.cxx in the setPanelMode method:</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(0,128,0)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">added</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">to</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">avoid</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">unwanted</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">update</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">restore</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">buttons</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">PropertiesSaveAsDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_source</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">PropertiesRestoreDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_source</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">DisplaySaveAsDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_display</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">DisplayRestoreDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_display</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">ViewSaveAsDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_view</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Ui</span><span style="color:rgb(0,0,0)">.</span><span style="color:rgb(128,0,0)">ViewRestoreDefaults</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">setVisible</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">has_view</span><span style="color:rgb(0,0,0)">);</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)">Moreover I modified the paraview main window to setup the panels. i.e. for ALL_SEPARATE:</span></pre><pre style="margin-top:0px;margin-bottom:0px">
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span><span style="color:rgb(128,128,0)">case</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkPVGeneralSettings</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">ALL_SEPARATE</span><span style="color:rgb(0,0,0)">:</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">propertiesPanel</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">setPanelMode</span><span style="color:rgb(0,0,0)">(</span><span style="font-family:arial;color:rgb(192,192,192)">  </span><span style="font-family:arial;color:rgb(128,0,128)">pqPropertiesPanel</span><span style="font-family:arial;color:rgb(0,0,0)">::</span><span style="font-family:arial;color:rgb(128,0,128)">SOURCE_PROPERTIES</span><span style="font-family:arial;color:rgb(0,0,0)">);</span></pre>// added
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">viewPropertiesPanel</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">setPanelMode</span><span style="color:rgb(0,0,0)">(</span><span style="font-family:arial;color:rgb(192,192,192)"> </span><span style="font-family:arial;color:rgb(128,0,128)">pqPropertiesPanel</span><span style="font-family:arial;color:rgb(0,0,0)">::</span><span style="font-family:arial;color:rgb(128,0,128)">VIEW_PROPERTIES</span><span style="font-family:arial;color:rgb(0,0,0)">);</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">this</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">Internals</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(128,0,0)">displayPropertiesPanel</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">setPanelMode</span><span style="color:rgb(0,0,0)">(</span><span style="font-family:arial;color:rgb(128,0,128)">pqPropertiesPanel</span><span style="font-family:arial;color:rgb(0,0,0)">::</span><span style="font-family:arial;color:rgb(128,0,128)">DISPLAY_PROPERTIES</span><span style="font-family:arial;color:rgb(0,0,0)">);</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000" face="arial">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?</font></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)">Thank you</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)">Federico</span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre></pre><div><div><div dir="ltr"></div></div></div>
</div></div>