<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Ok, <BR>
<BR>
Here's what I have so far:<BR>
<BR>
The filters for the new menu are given a different ProxyGroup name&nbsp; (&quot;myfiltergroup&quot; ) in the XML i.e <BR>
&lt;ServerManagerConfiguration&gt;<BR>
&nbsp; &lt;ProxyGroup name=&quot;myfiltergroup&quot;&gt;<BR>
&nbsp;&nbsp; &lt;SourceProxy name=&quot;MyCellDerivatives&quot; class=&quot;vtkCellDerivatives&quot; label=&quot;My Cell Derivatives&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;Documentation<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long_help=&quot;Create point attribute array by projecting points onto an elevation vector.&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; short_help=&quot;Create a point array representing elevation.&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Documentation&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;InputProperty<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=&quot;Input&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; command=&quot;SetInputConnection&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ProxyGroupDomain name=&quot;filters&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Group name=&quot;sources&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Group name=&quot;filters&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ProxyGroupDomain&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataTypeDomain name=&quot;input_type&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataType value=&quot;vtkDataSet&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DataTypeDomain&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/InputProperty&gt;<BR>
&nbsp;&nbsp; &lt;/SourceProxy&gt;<BR>
&lt;/ProxyGroup&gt;<BR>
&lt;/ServerManagerConfiguration&gt;<BR>
<BR>
<BR>
Then I define a menu builder function which is called from the MainWindow app.<BR>
<BR>
void MyMenuBuilders::buildSecondFiltersMenu(QMenu* menu, QMainWindow* mainWindow)<BR>
{<BR>
&nbsp; pqProxyGroupMenuManager* mgr =<BR>
&nbsp;&nbsp;&nbsp; new pqProxyGroupMenuManager(menu, &quot;mysetfilters&quot;);<BR>
&nbsp; mgr-&gt;setRecentlyUsedMenuSize(10);<BR>
&nbsp; new RosieProcessingMenuReactions(mgr);<BR>
<BR>
&nbsp; new pqUpdateProxyDefinitionsBehavior(<BR>
&nbsp;&nbsp;&nbsp; pqUpdateProxyDefinitionsBehavior::ANY, &quot;myfiltergroup&quot;, mgr);<BR>
&nbsp; pqPVApplicationCore::instance()-&gt;registerForQuicklaunch(menu);<BR>
<BR>
&nbsp; if (mainWindow)<BR>
&nbsp; {<BR>
&nbsp;&nbsp;&nbsp; // create toolbars for categories as needed.<BR>
&nbsp;&nbsp;&nbsp; new pqCategoryToolbarsBehavior(mgr, mainWindow);<BR>
&nbsp; }<BR>
}<BR>
<BR>
<BR>
I can specify various filters to be loaded at startup by putting them inside the mysetfilters XML&nbsp; (i.e. just like the ParaViewFilters XML object). However, The when the above server manager XML is used a plugin it doesn't come up in the menu.<BR>
<BR>
Any ideas as to what I'm missing here? Any guidance is welcome.<BR>
<BR>
Kit<BR>
<BR>
<BR>
<BR>
<BR>
On Mon, 2011-06-13 at 16:27 -0400, Utkarsh Ayachit wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">You are on the right track. Any proxy registered in the &quot;filters&quot; group from the plugins will automatically end up in the &quot;Filters&quot; menu, there's no way around it. The solution would be create a new group for your filters that's being shown in your menu. Theoretically, it should work, but I don't think we test it, but definitely worth a try.</FONT><BR>
    <BR>
    <BR>
    <FONT COLOR="#000000">Utkarsh</FONT><BR>
    <BR>
    <FONT COLOR="#000000">On Mon, Jun 13, 2011 at 3:43 PM, Kit Chambers &lt;<A HREF="mailto:kit.chambers@rocktalkimaging.com">kit.chambers@rocktalkimaging.com</A>&gt; wrote:</FONT><BR>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">Dear all </FONT><BR>
        <BR>
        <FONT COLOR="#000000">Is it possible to create a second filters menu which I specify plugin filters to be added to?</FONT><BR>
        <BR>
        <FONT COLOR="#000000">I can create a static menu from the main application using pqProxyGroupMenuManager() with the appropriate XML but cannot work out how to specify make filters from plugins go to the new menu rather than the filters menu. I guess I would like to be able to do something like specify a ProxyGroup (i.e. &lt;ProxyGroup name=&quot;MyGroup&quot;&gt; ... )&nbsp; in the plugin XML which puts filters in the new menu rather than in with the filters as a normal &lt;ProxyGroup name=&quot;filters&quot;&gt; does.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Any suggestions and or help is welcome.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Kit</FONT><BR>
        <BR>
        <BR>
        <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<BR>
<BR>
<B>Kit Chambers</B><BR>
<BR>
<I>Principal Geophysicist</I><BR>
Office: <A HREF="tel:%2B33%209%206418%207790">+33 9 6418 7790</A><BR>
Direct: <A HREF="tel:%2B44%201872%20879%20007">+44 1872 879 007</A><BR>
Mobile: <A HREF="tel:%2B44%207816506558">+44 7816506558</A><BR>
Email:&nbsp; <U><FONT COLOR="#0000ff"><A HREF="mailto:kit.chambers@reservoirrocktalk.com">kit.chambers@rocktalkimaging.com</A></FONT></U><BR>
<BR>
<B>NOTE: OUR WEBSITE AND EMAIL ADDRESSES HAVE CHANGED. TO ENSURE WE RECEIVE YOUR COMMUNICATION, PLEASE UPDATE YOUR RECORDS.</B>
</TD>
</TR>
</TABLE>
        <BR>
        <FONT COLOR="#000000">_______________________________________________</FONT><BR>
        <FONT COLOR="#000000">Powered by <A HREF="http://www.kitware.com">www.kitware.com</A></FONT><BR>
        <BR>
        <FONT COLOR="#000000">Visit other Kitware open-source projects at <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A></FONT><BR>
        <BR>
        <FONT COLOR="#000000">Please keep messages on-topic and check the ParaView Wiki at: <A HREF="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</A></FONT><BR>
        <BR>
        <FONT COLOR="#000000">Follow this link to subscribe/unsubscribe:</FONT><BR>
        <FONT COLOR="#000000"><A HREF="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</A></FONT><BR>
        <BR>
    </BLOCKQUOTE>
    <BR>
    <BR>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<IMG SRC="cid:1308040528.23035.0.camel@cribber" ALIGN="bottom" BORDER="0"><BR>
<BR>
<BR>
<B>Kit Chambers</B><BR>
<BR>
<I>Principal Geophysicist</I><BR>
Office: +33 9 6418 7790<BR>
Direct: +44 1872 879 007<BR>
Mobile: +44 7816506558<BR>
Email:&nbsp; <U><FONT COLOR="#0000ff"><A HREF="mailto:kit.chambers@reservoirrocktalk.com">kit.chambers@rocktalkimaging.com</A></FONT></U><BR>
<BR>
<B>NOTE: OUR WEBSITE AND EMAIL ADDRESSES HAVE CHANGED. TO ENSURE WE RECEIVE YOUR COMMUNICATION, PLEASE UPDATE YOUR RECORDS.</B>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>