[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How do I control the actions generated by a part ?
From:       Christoph <chris () inferno ! nadir ! org>
Date:       2004-04-22 15:33:25
Message-ID: 200404221733.25480.chris () inferno ! nadir ! org
[Download RAW message or body]

Hello again,

Sorry, i think i didn't explain enough what I want to do .
So here it is.

I have a little app, and I am using a KGhostviePart to show a preview. 
This is embedded in a QTabWidget. So whenever the tab with the part becomes 
visible, I call createGUI(myKPart) in order to have the zoomIn and zoomOut 
buttons of the kghostviewpart merged into my toolbar, and I call 
createGUI(0L) to have them removed again when the part can't be seen. 
But, when I merge the kghostviev stuff, ALL the menuitems from the 
kghostviepart get merged into my menu.
But since I already have a saveAs menuItem, there are two when 
the kghostviewpart is visible ( mine AND the one from the part).
So my problem is: I want some Items from the part to be merged with my 
Menu/Toolbar, but not all of them. Is this possible, and if, how ?

On Wednesday 21 April 2004 00:23, Aaron Seigo wrote:
> On April 20, 2004 12:56, Christoph Klünter wrote:
> > I am writing a little app a ReadOnlyPart for application/postscript.
> > But whenever I call createGUI(myGVPart), there are lots of menuentries
> > generated.  How do I get rid of SOME of them ?
> > For example I don't want the "SaveAs" action to appear in my menu.
> > Is there a way to do this ?
>
> don't create a SaveAs action? alternatively you can tell the menu not to
> merge in the ui_standards stuff with a noMerge="1" in the <Menu> tag, but
> then you have to define all the items that appear and you also lose
> consistency with other KDE apps via the use of ui_standards.
I tried to set noMerge="1"  in the <Menu> tag, but that didn't do anything.
And I want to keep some items, like the "Document Info". So this wouldn't be 
very nice anyway.

Regards,
	Christoph

-- 
GPG-Fingerprint: 88DA B106 D973 B2AF 7CCB  725A F76C 803C 758F 71C0
GPG-Key: http://www.kluenter.de/chris.gpg
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic