You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

vdboor

Beginner

  • "vdboor" started this thread

Posts: 30

Location: The Netherlands

Occupation: Software developer

  • Send private message

1

Sunday, October 17th 2004, 3:22pm

KDevelop doesn't re-generate my dialog code...

I have a weird problem with my KDevelop project I can't seam to fix. The project has some .ui files, but KDevelop doesn't use "uic" to update the cpp files when I change the .ui file.. Those .ui files are also listed as "non-project" files in my project, so that could be the reason. How can I solve this?

I've tried to add the .ui files to the automake manager, but it resulted in all sorts of linking errors.
Working on KMess, a MSN Messenger client for Linux/KDE.

This post has been edited 1 times, last edit by "vdboor" (Oct 20th 2004, 9:24am)


vdboor

Beginner

  • "vdboor" started this thread

Posts: 30

Location: The Netherlands

Occupation: Software developer

  • Send private message

2

Wednesday, October 20th 2004, 3:04pm

RE: KDevelop doesn't re-generate my dialog code...

*bump* anyone?? :(
Working on KMess, a MSN Messenger client for Linux/KDE.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

3

Wednesday, October 20th 2004, 6:33pm

Which version of KDevelop?

Older versions (<3.0) could be tricked into doing that by hand generating the .h and .cpp file using uic and then adding the generated files to the project source files.

Cheers,
_
Qt/KDE Developer
Debian User

wysota

Trainee

Posts: 65

Location: Warsaw, POLAND

  • Send private message

4

Wednesday, October 20th 2004, 6:56pm

Newer, on the other hand, has support for qmake projects. If you use it, kdevelop will keep track of the ui changes.
Live and let live - use the search engine.
"Use the docs Luke, use the docs!"

vdboor

Beginner

  • "vdboor" started this thread

Posts: 30

Location: The Netherlands

Occupation: Software developer

  • Send private message

5

Thursday, October 21st 2004, 9:40am

I'm using KDevelop 3.1.1.

I also added a dialog file to the project myself, and this is updated perfectly. Other dialogs in the project are somehow to connected to the project, and therefore ignored.

This is the small sumarized output of KDevelop:

Source code

1
2
3
4
Entering directory /home/diederik/development/kmess/build-debug/kmess/dialogs
generating downloadmanagerinterface.h (uic)
generating downloadmanagerinterface.moc (moc)
compiling downloadmanagerinterface.cpp (g++)


But given the commands it really executes, I don't think I should generate those dialogs manually :P

Quoted

gmake[3]: Entering directory `/home/diederik/development/kmess/build-debug/kmess/dialogs'

/usr/qt/3/bin/uic -L /usr/kde/3.3/lib/kde3/plugins/designer -nounload -o downloadmanagerinterface.h /home/diederik/development/kmess/kmess/dialogs/downloadmanagerinterface.ui
/usr/qt/3/bin/moc downloadmanagerinterface.h -o downloadmanagerinterface.moc

rm -f downloadmanagerinterface.cpp

echo '#include <klocale.h>' > downloadmanagerinterface.cpp

/usr/qt/3/bin/uic -L /usr/kde/3.3/lib/kde3/plugins/designer -nounload -tr tr2i18n -i downloadmanagerinterface.h /home/diederik/development/kmess/kmess/dialogs/downloadmanagerinterface.ui > downloadmanagerinterface.cpp.temp
ret=$?
sed -e "s,tr2i18n( \"\" ),QString::null,g" downloadmanagerinterface.cpp.temp | sed -e "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | sed -e "s,image\([0-9][0-9]*\)_data,img\1_downloadmanagerinterface,g" >> downloadmanagerinterface.cpp
rm -f downloadmanagerinterface.cpp.temp
if test "$ret" = 0; then
echo '#include "downloadmanagerinterface.moc"' >> downloadmanagerinterface.cpp
else rm -f downloadmanagerinterface.cpp
exit $ret
fi
source='downloadmanagerinterface.cpp' object='downloadmanagerinterface.o' libtool=no depfile='.deps/downloadmanagerinterface.Po' tmpdepfile='.deps/downloadmanagerinterface.TPo' depmode=gcc3 /bin/sh /home/diederik/development/kmess/admin/depcomp g++ -DHAVE_CONFIG_H -I. -I/home/diederik/development/kmess/kmess/dialogs -I../.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -g3 -g -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o downloadmanagerinterface.o `test -f 'downloadmanagerinterface.cpp' || echo '/home/diederik/development/kmess/kmess/dialogs/'`downloadmanagerinterface.cpp


Quoted

Originally posted by wysota
Newer, on the other hand, has support for qmake projects. If you use it, kdevelop will keep track of the ui changes.

Unfortunately, this is not my project, I'm just contributing. Besides, KDE Applications are supposed to use Automake.
Working on KMess, a MSN Messenger client for Linux/KDE.

This post has been edited 4 times, last edit by "vdboor" (Oct 21st 2004, 9:44am)