<HTML>
<HEAD></HEAD>
<BODY BGCOLOR="white">
<FONT SIZE=2>
Sorry, I didn't know XML file don't be seen on html ;-)<BR>
<BR>
I attached it with this letter<BR>
<BR>
originally, we don't need KAction and KStdAction implementation, KDE does it,<BR>
but if we need additional menu and tool bars, we declare them and just connect it, but as I know, we should edit gui file generated by KDevelop by any text editor. its name will be "**ui.rc" in the project directory..it defines some menu and toolbar, but might not standard menu (StdAction), standard action will be implemented inside of KDE, simply KDE does it, in stead of us<BR>
<BR>
thanks, happy linuxing!!<BR>
<BR>
<BR>
from Korea,, so far from you..<BR>
> <BR>
> <BR>
> -----¿øº»¸Þ½ÃÁö-----<BR>
> º¸³½»ç¶÷: "EricSorensen" <esorensen@arcormail.de><BR>
> ¹Þ´Â»ç¶÷: kdevelop@kdevelop.org<BR>
> ³¯Â¥: 2001/04/13(±Ý)11:37<BR>
> Á¦¸ñ: Re: Menu Hell !<BR>
> <BR>
> <BR>
> > <BR>
> <BR>
> > for example, if you want to add "view" menu with "zoomIn, zoomOut" actions<BR>
> > on menubar<BR>
>  <BR>
> > add belows in *App class <BR>
> <BR>
> > ----------------------------<BR>
> <BR>
> >  void slotZoomIn();<BR>
> <BR>
> >  void slotZoomOut();<BR>
> <BR>
> > <BR>
> <BR>
> >   KAction *zoomIn;<BR>
> <BR>
> >   KAction *zoomOut;<BR>
> <BR>
> >   KActionMenu *viewMenu;<BR>
> <BR>
> <BR>
> DONE !<BR>
> <BR>
> > -----------------------------<BR>
> <BR>
> > <BR>
> <BR>
> > and initiate them before createGUI() in initView() in the .cpp<BR>
> <BR>
> <BR>
> createGUI is at the bottom of *App::initActions(), but I inserted the <BR>
> code above it.<BR>
> <BR>
> > -------------------------------- <BR>
> <BR>
> >  zoomIn = new KAction( i18n( "Zoom in 10%" ), "viewmag+", 0, this, SLOT(slotZoomIn() ), actionCollection(), 0 );<BR>
>  <BR>
> >  zoomOut = new KAction( i18n(> "Zoom out 10%" ), "viewmag-", 0, this, SLOT(slotZoomOut() ), actionCollection(), 0 );<BR>
> > <BR>
> >   viewMenu = new KActionMenu(i18n("&View"), actionCollection(),<BR>
> > "view_menu");<BR>
>  viewMenu->insert(zoomIn);<BR>
> >   viewMenu->insert(zoomOut);<BR>
> <BR>
> <BR>
> This is also done.  and it compiles quite nicely and does<BR>
> absolutely nothing (that I can see)<BR>
> <BR>
> <BR>
> What do you say that I should do with my XML file.  I use QDesigner (Qt 2.3.0)<BR>
> and KDevelop 1.4<BR>
> > ---------------------------------------<BR>
> <BR>
> > and edit "*ui.rc" XML gui file<BR>
> <BR>
> > <BR>
> <BR>
> > -*ui.rc--------------------------------------<BR>
> <BR>
> > <BR>
> <BR>
> > <BR>
> <BR>
> > <BR>
> <BR>
> >      <----------- add it<BR>
> <BR>
> >   <BR>
> <BR>
> > <BR>
> <BR>
> > <BR>
> <BR>
> > ------------------------------------<BR>
> <BR>
> > <BR>
> <BR>
> > then compile it, it may help you<BR>
> <BR>
> at least the project compiles again.<BR>
> <BR>
> My project was initially created with the new project wizzard (KDE 2 Normal - Project).<BR>
> The problem may be that I don't see where the 'Top' menubar is defined.  I suspect that I <BR>
> never get around to adding menu entries to THAT menubar.  The default KDE 2<BR>
> project inserts a dozen or so 'KStdAction' in *App::initActions() but never defines the<BR>
> MenuBar itself.  Obviously I don't know where to look or what to do.  I get the feeling that I <BR>
> missed someting here :-)<BR>
> <BR>
> Any further advice for me?  Thank you for you efforts.<BR>
> <BR>
> Eric Sorensen - an American lost some where in Germany<BR>
> <BR>
> <BR>
> > <BR>
> <BR>
> > <BR>
> <BR>
> > from Korea <BR>
> <BR>
> ><BR>
> ><BR>
> > <BR>
> <BR>
> > <BR>
> <BR>
> > -------------<BR>
> <BR>
> > <BR>
> <BR>
> > Not so special, just a little different.<BR>
> <BR>
> > <BR>
> <BR>
> > from Dalsoogie.<BR>
> <BR>
> <BR>
> <BR>
> <BR>
> -<BR>
> to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:<BR>
> unsubscribe 퍈our-email-address?> <BR>
> <BR>
<BR>
<BR>
<BR>
<BR>
-------------<BR>
<BR>
Not so special, just a little different.<BR>
<BR>
from Dalsoogie.<BR>
<BR>
<BR><BR>
<IMG SRC="http://mail.sogang.ac.kr:80/cgi-auth/mailrcpt.cgi?userid=dalsoogie&maildomainname=sogang.ac.kr&msgid=20010414.AAA987236015@sogang.ac.kr">
</FONT>
</BODY></HTML>