The menus are built from the same actions used for shortcuts, so the code
you've found is the first step.  Then, to add the menu itself, see:

https://github.com/musescore/MuseScore/blob/8911cdd6c94faf8a0d569829fb885fa2ddcd0f7d/mscore/musescore.cpp#L618

Then you add a handler for the action (eg, search for "explode", the name
of the action).  Generally, actions that can be handled in libmscore are
handled in cmp.cpp, ones that require ScoreView are handled in
scoreview.cpp.

On Sat, May 16, 2015 at 8:32 AM, Jim Newton <[email protected]> wrote:

> I'm looking into the Musescore code trying to figure out how the pulldown
> menu items are created.
> I searched for "Explode" for example because that's a menu item in the
> Edit->Tools submenu.
> But the only places I found in the code were dealing with the shortcut.
>
>
> https://github.com/musescore/MuseScore/blob/8911cdd6c94faf8a0d569829fb885fa2ddcd0f7d/mscore/shortcut.cpp#L3201-L3211
>
> Is there something which converts some of the shortcuts to menu items, or
> is
> the menu code somewhere I'm not finding?
>
>
>
>
>
> --
> View this message in context:
> http://dev-list.musescore.org/How-to-create-a-menu-item-tp7579356.html
> Sent from the MuseScore Developer mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> Mscore-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>



-- 
Marc Sabatella
[email protected]
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

Reply via email to