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

List:       kde-devel
Subject:    Re: newbie... mixing kactions and kstdactions
From:       Pupeno <pupeno () pupeno ! com ! ar>
Date:       2001-02-16 15:04:57
[Download RAW message or body]

On Friday 16 February 2001 11:18, Michael Jarrett wrote:
> Yes it's perfectly possible - go ahead and mix them - the standard
> actions will be merged in with yours, if you use the same menu names.
>
> Using the XML rc file the <Merge/> tag will allow you to add the
> stdactions at a specific point in the menu, or you can just accept the
> default behavior.
How can I do it ?
I have this kactions:
---------
fileNew = KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
fileOpen = KStdAction::open(this, SLOT(slotFileOpen()), actionCollection());
fileOpenInNew = new KAction(i18n("Open in a New &Window"), 0, this, 
SLOT(slotFileOpenInNew()), actionCollection(), "open_in_new");
fileOpenLocation = new KAction(i18n("Open Location"), 0, this, 
SLOT(slotFileOpenLocation()), actionCollection(), "open_location");
fileOpenLocationInNew = new KAction(i18n("Open Location in a New &Window"), 
0, this, SLOT(slotFileOpenLocationInNew()), actionCollection(), 
"open_location_in_new");
fileSave = KStdAction::save(this, SLOT(slotFileSave()), actionCollection());
fileSaveEverything = new KAction(i18n("Save everything"), 0, this, 
SLOT(slotFileSaveEverything()), actionCollection(), "save_everything");
fileClose = KStdAction::close(this, SLOT(slotFileClose()), 
actionCollection());
-----------
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>

Thank you.
-- 
Pupeno: pupeno@pupeno.com.ar  www.pupeno.com.ar

 
>> 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