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

List:       kde-devel
Subject:    Re: newbie... mixing kactions and kstdactions
From:       Michael Jarrett <gexcfxyy () umail ! corel ! com>
Date:       2001-02-16 18:32:46
[Download RAW message or body]

Cool! I was doing SO many hack jobs to get around that.

Is this stuff documented anywhere?

Kurt Granroth wrote:
> 
> Pupeno wrote:
> > and I want to them to appear in the File menu in this order:
> > File
> > -New
> > -Open
> > -Open in a New Window
> > -Open Location
> > -Open Location in a New Window
> > -Save
> > -Save Everything
> > -Close
> >
> > How can I do it ?
> > this is my actual ui.rc file:
> > <!DOCTYPE kpartgui>
> > <kpartgui name="komand" version="0.1">
> > <MenuBar>
> >   <Menu name="file"><text>&amp;File</text>
> >     <Action name="open_in_new"/>
> >     <Action name="open_location"/>
> >     <Action name="open_location_in_new"/>
> >     <Action name="save_everything"/>
> >   </Menu>
> >   <Action name="window_menu"/>
> > </MenuBar>
> > </kpartgui>
> 
> The "trick" is that you need to append the non standard actions into
> the standard places.  If you look at the global XML resource file:
> $KDEDIR/share/config/ui/ui_standards.rc, you'll see several items like
> <MergeLocal name="new_merge"/>.  There are "merge points".. they allow
> you to merge in your custom actions into the standard menu.
> 
> So you in your case, your komandui.rc file would look *something* like
> so:
> 
> <!DOCTYPE kpartgui>
> <kpartgui name="komand" version="0.1">
> <MenuBar>
>   <Menu name="file"><text>&amp;File</text>
>     <Action name="open_in_new" append="new_merge"/>
>     <Action name="open_location" append="new_merge"/>
>     <Action name="open_location_in_new" append="new_merge"/>
>     <Action name="save_everything" append="save_merge"/>
>   </Menu>
>   <Action name="window_menu"/>
> </MenuBar>
> </kpartgui>
> --
> Kurt Granroth            | http://www.granroth.org
> KDE Developer/Evangelist | SuSE Labs Open Source Developer
> granroth@kde.org         | granroth@suse.com
>             KDE -- Conquer Your Desktop
> 
> >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
-- 
The address in the headers is not the poster's real email address.  Do not send
private mail to the poster using your mailer's "reply" feature.  CC's of mail 
to mailing lists are OK.  Problem reports to "postmaster@umail.corel.com".  
The poster's email address is "michaelj@corel.com".
 
>> Visit http://master.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