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

List:       kdevelop
Subject:    =?euc-kr?B?UmU6IFJlOiBNZW51IEhlbGwgISwgc2VuZGluZyBhZ2Fpbg==?=
From:       dalsoogie () sogang ! ac ! kr
Date:       2001-04-13 22:27:56
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

missed something.. sorry -_-;;

> 
> 
> for example, if you want to add "view" menu with "zoomIn, zoomOut" actions on \
> menubar 
> add belows in *App class 
> ----------------------------
> void slotZoomIn();
> void slotZoomOut();
> 
> KAction *zoomIn;
> KAction *zoomOut;
> KActionMenu *viewMenu;
> -----------------------------
> 
> and initiate them before createGUI() in initView() in the .cpp
> -------------------------------- 
> zoomIn = new KAction( i18n( "Zoom in 10%" ), "viewmag+", 0, this, SLOT(slotZoomIn() \
> ), actionCollection(), 0 ); zoomOut = new KAction( i18n( "Zoom out 10%" ), \
> "viewmag-", 0, this, SLOT(slotZoomOut() ), actionCollection(), 0 ); 
> viewMenu = new KActionMenu(i18n("&View"), actionCollection(), "view_menu");
> viewMenu->insert(zoomIn);
> viewMenu->insert(zoomOut);
> ---------------------------------------
> and edit "*ui.rc" XML gui file
> 
> -*ui.rc--------------------------------------
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------
> 
> then compile it, it may help you
> 
> 
> from Korea 
> > 
> > -----¿øº»¸Þ½ÃÁö-----
> > º¸³½»ç¶÷: "EricSorensen" 
> > ¹Þ´ »ç¶÷: kdevelop@kdevelop.org
> > ³¯ ¥: 2001/04/13(±Ý)06:41
> > Á¦¸ñ: Menu Hell !
> > 
> > I've looked and looked and looked and just can't seem to find the information 
> > I'm looking for.  Can someone put me on track.  How do I add a menu entry?  
> > Following the online documentation just leads to a dead end.  Hacking through 
> > the KDevelop source code didn't help me much either.  All advice welcome.  
> > 
> > By the way why does the Output-View sometimes show up 'detached' at the top 
> > of my screen when I start KDevelop new.  I suspect it is after I reduce it's 
> > size more than it finds acceptable and then close the program. 
> > 
> > Thanks in advance.
> > 
> > -
> > to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with \
> > the following body: unsubscribe 퍈our-email-address?> 
> > 
> 
> 
> 
> 
> -------------
> 
> Not so special, just a little different.
> 
> from Dalsoogie.
> 
> 
> 




-------------

Not so special, just a little different.

from Dalsoogie.


[Attachment #5 (text/html)]

<HTML>
<HEAD></HEAD>
<BODY BGCOLOR="white">
<FONT SIZE=2>
missed something.. sorry -_-;;<BR>
<BR>
> <BR>
> <BR>
> for example, if you want to add "view" menu with "zoomIn, zoomOut" actions on \
> menubar<BR> <BR>
> add belows in *App class <BR>
> ----------------------------<BR>
> void slotZoomIn();<BR>
> void slotZoomOut();<BR>
> <BR>
> KAction *zoomIn;<BR>
> KAction *zoomOut;<BR>
> KActionMenu *viewMenu;<BR>
> -----------------------------<BR>
> <BR>
> and initiate them before createGUI() in initView() in the .cpp<BR>
> -------------------------------- <BR>
> zoomIn = new KAction( i18n( "Zoom in 10%" ), "viewmag+", 0, this, SLOT(slotZoomIn() \
> ), actionCollection(), 0 );<BR> zoomOut = new KAction( i18n( "Zoom out 10%" ), \
> "viewmag-", 0, this, SLOT(slotZoomOut() ), actionCollection(), 0 );<BR> <BR>
> viewMenu = new KActionMenu(i18n("&View"), actionCollection(), "view_menu");<BR>
> viewMenu->insert(zoomIn);<BR>
> viewMenu->insert(zoomOut);<BR>
> ---------------------------------------<BR>
> and edit "*ui.rc" XML gui file<BR>
> <BR>
> -*ui.rc--------------------------------------<BR>
> <BR>
> <!DOCTYPE kpartgui><BR>
> <kpartgui name="stereostudio" version="0.1"><BR>
> <MenuBar><BR>
> <Action name="view_menu"/>      <- add it<BR>
> <Action name="window_menu"/><BR>
> </MenuBar><BR>
> </kpartgui><BR>
> ------------------------------------<BR>
> <BR>
> then compile it, it may help you<BR>
> <BR>
> <BR>
> from Korea <BR>
> > <BR>
> > -----¿øº»¸Þ½ÃÁö-----<BR>
> > º¸³½»ç¶÷: "EricSorensen" <BR>
> > ¹Þ´ »ç¶÷: kdevelop@kdevelop.org<BR>
> > ³¯ ¥: 2001/04/13(±Ý)06:41<BR>
> > Á¦¸ñ: Menu Hell !<BR>
> > <BR>
> > I've looked and looked and looked and just can't seem to find the information \
> > <BR> I'm looking for.  Can someone put me on track.  How do I add a menu entry?  \
> > <BR> Following the online documentation just leads to a dead end.  Hacking \
> > through <BR> the KDevelop source code didn't help me much either.  All advice \
> > welcome.  <BR> <BR>
> > By the way why does the Output-View sometimes show up 'detached' at the top <BR>
> > of my screen when I start KDevelop new.  I suspect it is after I reduce it's <BR>
> > size more than it finds acceptable and then close the program. <BR>
> > <BR>
> > Thanks in advance.<BR>
> > <BR>
> > -<BR>
> > to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with \
> > the following body:<BR> unsubscribe &#54088;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>
<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.AAA987200755@sogang.ac.kr">
 </FONT>
</BODY></HTML>


-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«


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

Configure | About | News | Add a list | Sponsored by KoreLogic