<div dir="ltr">Hi Chris,<div><br></div><div>The pqPropertiesPanel fires off applied() and applied(pqProxy *) signals when the "Apply" button is clicked. Would it work for you to connect one of these signals to a slot in a custom Qt-side class in your plugin? If so, can make your plugin an autostart plugin (see [1]) to instantiate your Qt class, and connect it to signals fired from the pqPropertiesPanel. You should be able to do this by looping over all the pqPropertiesPanels like this in your plugin's custom Qt class onStart() slot:</div><div><br></div><div><div>foreach (pqPropertiesPanel* ppanel, mainWindow->findChildren<pqPropertiesPanel*>())</div><div>{</div></div><div> connect(ppanel, SIGNAL(applied()), myCustomQtObject, SLOT(onApplied()));</div><div>}</div><div><br></div><div>where you do your additional actions in the onApplied() slot.</div><div><br></div><div>Please let me know if that wasn't clear.</div><div><br></div><div>Cory</div><div><br></div><div>[1] <a href="http://www.paraview.org/Wiki/Plugin_HowTo#Autostart_Plugins" target="_blank">http://www.paraview.org/Wiki/Plugin_HowTo#Autostart_Plugins</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 5:37 PM, cunrein <span dir="ltr"><<a href="mailto:cunrein@micron.com" target="_blank">cunrein@micron.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello List,<br>
<br>
In a [much much] older version of ParaView, I have a working filter/objectPanel pair that inherits from pqAutoGeneratedObjectPanel and overloads the accept method. I want to update this to work with PV4.3. ObjectPanels have been replaced with the PropertyPanel. Do I want to inherit from pqPropertyPanel and overload the apply method? If so, is there a CMake macro to add this? It doesn't look like ADD_PARAVIEW_OBJECT_PANEL will work with the new panel philosophy. If creating a new panel is not the right thing to do anymore, how do I add functionality to the apply event?<br>
<br>
Thanks, Chris<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>