Project template creation
Falk Brettschneider
gigafalk at yahoo.com
Tue Feb 8 22:21:54 GMT 2000
Hi,
Dan Pilone wrote:
>
> Previously written in blue crayon:
> > at the files cproject.cpp and ckappwizard.cpp. 80% of the handling is
> > hardcoded in these files.
>
> Ok, I started hacking on the CVS version but it's not an easy
> fix.
I made the QextMDI template within 3 hours. And I think it´s easy to add
a new template since there´s already stuff you just can copy´n´rename.
> Are there any plans to rework the handling of
> creating new projects?
Look out for KDevelop2 where many things become basically rewritten.
> The methods I've needed to edit are pretty
> large and have a lot of if/elses going on based on project type. I'm
> afraid I've missed some, or something like that.
I think it´s clear what to do. You only must create your
XYZtemplate.tar.gz for kdevelop/template (by using other templates as
template :-)
Second you must hack ckappwizard.h|cpp.
That file is big but clear to understand. Logically you just go through
the wizard tabs and add the demanded things for each tab page. Again and
again there are about 10 equal lines, each one for one kind of project.
Don´t hesitate to add the 11th line for your template (by copy the 10th
and replace the names and strings for your stuff).
> Also I had to edit processes.pl to have it create the right
> template.
The same procedure as from above... It´s not C++ but that shouldn´t
matter.
> which is why I want to get
> this stupid part stuff working.. :))
You will get it! :-)
> but I'm wondering if there are
> any plans to work on the makefile/project building stuff. -- Dan
If you want (and have got an idea for a much easier solution), you can
rewrite it and patch it with KDevelop2 (the cvs HEAD branch).
In my opinion, every effort for basic changes and feature addition
should be done on KDevelop2 and not on 1.1.
Tschuess,
Falk
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
More information about the KDevelop
mailing list