Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-07

New project defaults

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

How can I set new project defaults. When I create a new "Free Pascal Project", it always generates the *.rc file, 8.manifest and includes a resource for the icon etc... I don't want any of that even though my linux project compiles without problems, all those settings are irrelevant to Linux. I have to constantly go into the Project Options and tick those options and then afterwards manually delete the leftover *.rc, *.manifest and *.res files.

I believe Delphi and Kylix had a "Use as default" checkbox in the bottom left corner of the Project Options dialog, which when ticked means the current settings will be used for the next new project - as default settings.

Does Lazarus IDE have something like this? I looked around in the various menus but couldn't see something obvious.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Hess, Philip J
to Graeme Geldenhuys

Graeme,

If you want to control everything that's created for a new project, you will probably want to create a package that adds your own custom application type to File | New. For an example of a package that does that and illustrates how to change just about everything that's set in a new project, see the 3 extp_proj files included in extp_tk_20090525.zip that's downloadable from here (under Files):

http://groups.google.com/group/extpascal

When you create a new project based on the ExtPascal Application, it has completely different default source code in the program and unit files, as well as turning off all the useless Windows related GUI stuff that you list (useless for a CGI app, that is).

This is based primarily on a great deal of trial and error working with the ProjectIntf and other units. I found them to be very solid and eventually could do everything I needed to do, they're just not documented.

Thanks.

-Phil

Earlier message 34 lines
-----Original Message----- From: Graeme Geldenhuys [mailto:] Sent: Thursday, July 16, 2009 5:58 AM To: Lazarus mailing list Subject: [Lazarus] New project defaults Hi, How can I set new project defaults. When I create a new "Free Pascal Project", it always generates the *.rc file, 8.manifest and includes a resource for the icon etc... I don't want any of that even though my linux project compiles without problems, all those settings are irrelevant to Linux. I have to constantly go into the Project Options and tick those options and then afterwards manually delete the leftover *.rc, *.manifest and *.res files. I believe Delphi and Kylix had a "Use as default" checkbox in the bottom left corner of the Project Options dialog, which when ticked means the current settings will be used for the next new project - as default settings. Does Lazarus IDE have something like this? I looked around in the various menus but couldn't see something obvious. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ --

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: How can I set new project defaults. When I create a new "Free Pascal Project", it always…

From Paul Ishenin's reply in the message thread titled "Show compile dialog location", I presume that such a option doesn't exist. Setting gloabl (default) project options for any newly created projects.

I'll add a feature request in Mantis.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Paul Ishenin
to Graeme Geldenhuys
Graeme Geldenhuys wrote
From Paul Ishenin's reply in the message thread titled "Show compile dialog location", I presume that such a option doesn't exist. Setting gloabl (default) project options for any newly created projects.

Just I don't know about it :)

I'll add a feature request in Mantis.

Please do.

Best regards,
Paul Ishenin.

Reply by email