On Sunday 12 October 2003 7:35 pm, Guillaume Laurent wrote:
> Basically, in the XML .rc file you have <Menu name="foo"> and in the
> code factory()->container("foo", client) will return that menu.
> 'client' is a KXMLGUIClient which needs to be added to the factory
> with
> KXMLGUIFactory::addClient() prior to calling container(). In the case
> of a KMainWindow, it is already a client, so if the 'this' in your
> code snippet above is a KMainWindow, it should work.
Hm, _where_ seems to be my problem. If I want to add a popup to a menu
element in matrixview and notationview then I have to add the XML element to
both rc files and then connect up hopefully a common slot (in editview
say) to that recovered menu item in the view specific code. Hence I
have to addClient() and recover the popup menu in the specialised view
and connect up to that common slot? Tried something like that and it
doesn't work.
Does KMainWindow::guiFactory() have anything to do with this? I dunno -
I'm confused all to fuck.
R
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Rosegarden-devel mailing list
[EMAIL PROTECTED] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel