[Paraview-developers] Plugin: Add a submenu to a menu?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Aug 27 22:45:21 EDT 2014


...and sub-sub menus, alas, are not supported. You can only go 1 level
down the from the Filters or Sources menu currently.

On Wed, Aug 27, 2014 at 10:44 PM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> There's an easier way for this now:
>
> Just add the following for the filter/source proxy's XML.
>
> <Proxy ...>
>
>   <Hints>
>      <ShowInMenu category="My Filters" />
>   <Hints>
> </Proxy>
>
> You can add multiple <ShowInMenu /> elements too.
>
>
> On Fri, Aug 22, 2014 at 8:45 AM, Panos Asproulis
> <panos.asproulis at gmail.com> wrote:
>> Hi all,
>>
>> In the section "Adding a Menu" of the ParaView Wiki regarding the
>> development of plugins there is a note about adding a menu to the ParaView
>> menu bar using the following:
>>
>> ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS
>>                          CLASS_NAME SourceToolbarActions
>>                          GROUP_NAME "MenuBar/MyActions")
>>
>>
>> However, the added element SourceToolbarActions is a QActionGroup and
>> therefore it can only have actions which are displayed as elements of a
>> menu. What if one wants to add a submenu to this new menu which appears as
>> "MyActions" in the ParaView menu bar?
>>
>> Thanks in advance,
>> Panos
>>
>> _______________________________________________
>> Paraview-developers mailing list
>> Paraview-developers at paraview.org
>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>


More information about the Paraview-developers mailing list