Documentation of xmlgui stuff ?

Christoph Cullmann crossfire at babylon2k.de
Mon Apr 22 19:41:26 BST 2002


On Monday 22 April 2002 19:03, Simon Hausmann wrote:
> On Mon, Apr 22, 2002 at 06:22:48PM +0200, Christoph Cullmann wrote:
> > Hi,
> > just working on removing the last code duplication between kate app and
> > part, the hardcoded actions. Have just done the most coding work but now
> > it needs some "resort" of the merging of the part actions into kate app.
> > I want to group the actions of the part together to stuff like
> > "file_operations", "edit_operations", ... and merge this groups on
> > specific points in the gui.
> >
> > 2 Questions:
> >
> > 1. Is there any standard how to name these groups of actions to make the
> > grouping stuff useful for other apps ?
> > 2. How do I give a merge location for one group in the xml file ?
>
> What you could do is something like this:
>
> <DefineGroup name="file_operations" />
>
> That 'allocates' a placeholder at the specified location (for
> example in your shell .rc file) .
>
> In your part then you can utilize the group attribute in Actions,
> Separators and Containers (Menu, Toolbar, etc.) to specify that an
> item belongs to a group and therefore should be put at the place
> where the placeholder is defined, much like:
>
> <Action name="foo" group="file_operations" />
>
> Hope this helps :)
This helps much ;)
Now I should be able to drop all duplicated stuff from kate app and use the 
kate part stuff and put it into the right place, thx.

cu
Christoph

>
> Simon

-- 
Christoph "Crossfire" Cullmann
Kate/KDE developer
cullmann at kde.org
http://kate.kde.org




More information about the kde-core-devel mailing list