|
Re: KParts question: msg#00334kde-devel
On 28.07.09 15:57:53, Matteo Agostinelli wrote: > Hello! > > I am curently developing a KDE application based on the Kate part. I have > created the template using kapptemplate. Now I would like to customize the > contents of the menu and, while I am able to add new actions, I cannot > remove existing elements, inherited from the Kate part. For example, let's > assume that I want to remove the Save and Save As... actions from the File > menu. > > <MenuBar> > <Menu name="file" noMerge="1"><text>&File</text> > > <Action name="file_open" /> > <Action name="file_open_recent" /> > > <DefineGroup name="save_merge"/> > <Separator/> > > <DefineGroup name="revert_merge" append="revert_merge"/> > <DefineGroup name="print_merge" append="print_merge"/> > <Separator/> > > <Action name="file_quit"/> > </Menu> > > If I remove the line '<DefineGroup name="save_merge"/>', I still get the > Save and Save as elements. They are just shifted to the bottom of the menu > but they are not removed. So, is it possible to remove them at all? You can't. xmlgui doesn't allow to do that as the KPart's xmlgui-file's content is just added to your menu. At least thats what I've seen so far. Andreas -- Your nature demands love and your happiness depends on it. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |