PDA

View Full Version : How to create new project templates the Laz Team way?



WILL
27-03-2007, 04:20 PM
Hey anyone (Vincent, dmantone?) know how I can create new project templates for the New... dialog?

I don't want to install some plug-in, but rather do it the way that the Laz team themselves added the existing options.

Been trying to look this up in the wiki, but found nothing. :?

Legolas
27-03-2007, 05:01 PM
Project templates are hard coded in %lazsrc%/ide/project.pp. Try to look at eg. TProjectApplicationDescriptor :wink:

WILL
27-03-2007, 07:37 PM
Wow... seems kind of like they did it the hard way, no?

WILL
27-03-2007, 08:29 PM
Ok so I see TProjectProgramDescriptor and TProjectApplicationDescriptor and so on...

So whats the best way for me to create and include my own here? :scratch:

This is inside the project.pp file as Legolas explains above.

Vincent
29-03-2007, 08:49 AM
Project templates are hard coded in %lazsrc%/ide/project.pp. Try to look at eg. TProjectApplicationDescriptor :wink:

The defaults are hard code, but you can create new templates. Look at components\cgi\ide and components\fpcunit\ide for examples.