On Tuesday 27 March 2007 11:49, Chris Cannam wrote:
> On Tuesday 27 Mar 2007 10:03, [EMAIL PROTECTED] wrote:
> > Changed build of TempoRuler RMB menu to use the parent window's
> > KXMLGUIFactory, like everwhere else
>
> Did you ever wonder _why_ the ruler wasn't using its parent's
> KXMLGUIFactory, like everywhere else?
>
> http://sourceforge.net/mailarchive/message.php?msg_id=36382774
Yes, I recall that. However, I had just struggled quite a bit to get a
KXMLGUIFactory built menu work for the MarkerRuler that I figured I could
apply what I had just learned to the TempoRuler. In the mail linked above you
mention the following problem :
> The problem is that the second time a TempoRuler is
> constructed, it fails to load the menu ("No menu TempoRuler in
> temporuler.rc" from temporuler.cpp:151), and I can't immediately see why.
I can't duplicate this problem after my changes. The menu appears and works
correctly from the main window, and from any edit view created afterwards
(even after closing/reopening edit views).
BTW, a comment regarding that other part in your mail :
> The segment tool's right-button menu does work even after it's destroyed
> and recreated. That appears to be because it's extracting the menu from its
> parent's rc file (rosegardenui.rc) instead of using its own.
I also tried moving the menu into its own file for the sake of cleanness, but
quickly realized that since the menu is actually made of actions from the
main window, its definition has to be in the same rc file as the window.
--
Guillaume.
http://telegraph-road.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel