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

List:       kde-devel
Subject:    Re: Beginners Problem: Problem with KPopupMenu*  helpMenu method
From:       Oliver =?ISO-8859-1?Q?D=F6rr?= <oliverd17 () gmx ! de>
Date:       2003-09-01 8:01:45
[Download RAW message or body]

Hi Aaron,

> try:
> 
> 	top->menuBar()->insertItem( i18n("&Help"), help->menu());
> 
> KHeplMenu isn't a menu, it's a QObject, that has a menu as a member. you

sorry that does'nt work either. The error message is now
 
$ make
make  all-recursive
make[1]: Entering directory `/home/doerr/prg/kde/khelloworld231'
Making all in khelloworld231
make[2]: Entering directory
`/home/doerr/prg/kde/khelloworld231/khelloworld231'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/kde/include
-I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT 
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new  -MT khelloworld.o -MD -MP
-MF ".deps/khelloworld.Tpo" \
  -c -o khelloworld.o `test -f 'khelloworld.cpp' || echo
'./'`khelloworld.cpp; \
then mv ".deps/khelloworld.Tpo" ".deps/khelloworld.Po"; \
else rm -f ".deps/khelloworld.Tpo"; exit 1; \
fi
khelloworld.cpp: In function `int main(int, char**)':
khelloworld.cpp:49: error: `menu' undeclared (first use this function)
khelloworld.cpp:49: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
make[2]: *** [khelloworld.o] Fehler 1
make[2]: Leaving directory
`/home/doerr/prg/kde/khelloworld231/khelloworld231'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/doerr/prg/kde/khelloworld231'
make: *** [all] Fehler 2

When i'm taking a look at the include file khelpmenu.h on my system then
i'll see that the method help of KPopupMenu is commented out as old style (like
the book i'm learining with ;-). There seems to be no method that does the
thing i want. What suprises me is that the method is still mentioned at the API
reference
http://developer.kde.org/documentation/library/3.0-api/classref/kdeui/KHelpMenu.html#longdesc

If the method no longer exists, when the API Refernce should be updated. For
a beginner like me the API Reference and the include files are essential.
I'm a bit frustrated that i'll can't get this help menu work and i would be
even more happy if it were a bug in my system setup.

> may 
> also want to try using XMLUI as that'll get you (among other things) a
> help 
> menu for free:
> 
> 	http://developer.kde.org/documentation/tutorials/xmlui/preface.html

I'll have XML UI also on my plan, but not at this eraly learning stage. 

Thanks for your help
Oliver

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

 
>> Visit http://mail.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