Sign in Join

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

Mailing lists / lazarus / 2011-03

Lazarus 0.9.29, Project/New Project/Custom Program?

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Bernd Mueller

Hello,

I tested the latest 0.9.29 snapshot (rev 29671) and I am missing the "Custom Program" creation in the dialog "Project/New Project/Create a new project"

Is this by design now, or is it configurable in the IDE?

Regards, Bernd.

Reply by email

Mattias Gaertner
to Bernd Mueller: I tested the latest 0.9.29 snapshot (rev 29671) and I am missing the "Custom Program"…
Show quoted text 7 lines
Hello, I tested the latest 0.9.29 snapshot (rev 29671) and I am missing the "Custom Program" creation in the dialog "Project/New Project/Create a new project" Is this by design now, or is it configurable in the IDE?

It was removed by design, because it was almost the same as 'Program' and you can configure any item to any other. For example you can you can use 'Program' and disable whatever IDE feature you don't need.

Mattias

Reply by email

Bernd Mueller
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Thu, 03 Mar 2011 17:38:24 +0100 Bernd Mueller wrote: > Hello, > > I tested the latest 0.9.29 snapshot (rev 29671) and I am missing the > "Custom Program" creation in the dialog "Project/New Project/Create a > new project" > > Is this by design now, or is it configurable in the IDE? It was removed by design, because it was almost the same as 'Program' and you can configure any item to any other. For example you can you can use 'Program' and disable whatever IDE feature you don't need.

sorry, I don't get it.

I would like to let the IDE create the extension .pas, when the new project is saved as it was with 0.9.24/28. How can I do this?

Regards, Bernd.

Reply by email

Mattias Gaertner
to Bernd Mueller

?
?

Bernd Mueller hat am 12. Mai 2011 um 15:00 geschrieben:

Show quoted text 10 lines
[...] > It was removed by design, because it was almost the same as 'Program' > and you can configure any item to any other. For example you can you > can use 'Program' and disable whatever IDE feature you don't need. > sorry, I don't get it. I would like to let the IDE create the extension .pas, when the new project is saved as it was with 0.9.24/28. How can I do this?

Create a new project of type "Program".
Press Ctrl-S to get the save dialog. The default is "project1.lpr". Change the filename and the extension to pas.
Click ok.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110512/20a49f12/attachment.html>

Reply by email

Bernd Mueller
to Mattias Gaertner
Mattias Gaertner wrote 17 lines
Bernd Mueller hat am 12. Mai 2011 um 15:00 geschrieben: >[...] > > It was removed by design, because it was almost the same as 'Program' > > and you can configure any item to any other. For example you can you > > can use 'Program' and disable whatever IDE feature you don't need. > > > > sorry, I don't get it. > > I would like to let the IDE create the extension .pas, when the new > project is saved as it was with 0.9.24/28. How can I do this? Create a new project of type "Program". Press Ctrl-S to get the save dialog. The default is "project1.lpr". Change the filename and the extension to pas. Click ok.

yes, thank you, this works. Perhaps the file type .pas could be added to the file type combobox in the save dialog.

Regards.

Reply by email

Graeme Geldenhuys
to Bernd Mueller
Bernd Mueller wrote
Perhaps the file type .pas could be added to the file type combobox in the save dialog.

I have created a patch months (maybe even over a year now) where the IDE has user defined File Dialog filters and file extensions. Usage is exactly for things like you mentioned. For reason beyond me that patch was not accepted, but it is still in the Mantis Bug Tracker. I still use that patch in my local copy of my IDE though.

Regards,
- Graeme -

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

Reply by email

Mattias Gaertner
to Graeme Geldenhuys

?
?

Graeme Geldenhuys hat am 12. Mai 2011 um 17:12
geschrieben:

On 12/05/2011 15:34, Bernd Mueller wrote: > >? Perhaps the file type .pas could be added to > the file type combobox in the save dialog.?

I added a filter list.?
?

?

Show quoted text 5 lines
I have created a patch months (maybe even over a year now) where the IDE has user defined File Dialog filters and file extensions. Usage is exactly for things like you mentioned. For reason beyond me that patch was not accepted, but it is still in the Mantis Bug Tracker.? I still use that patch in my local copy of my IDE though.?

Yes, and it is a nice dialog.?
But as far as I remember it lacks the ability to update defaults. For example the file group "project" was extended from *.lpr to *.lpr;*.dpr. The patch stores the default values to the config file, but a good config file should only contain the non default values.?
Just an idea: Maybe instead of storing a simple list it can store the extensions for each standard item plus the list of custom items. ?

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110512/3102fd18/attachment.html>

Reply by email

Graeme Geldenhuys
to Mattias Gaertner

2011/5/12 Mattias Gaertner:

But as far as I remember it lacks the ability to update defaults.

Simply delete your custom file extensions file, and a new one is created with the latest defaults. Obviously it might be wise to backup your old one first, so you can merge customizations back in.

For example the file group "project" was extended from *.lpr to *.lpr;*.dpr. The patch stores the default values to the config file, but a good config file should only contain the non default values.

That would be that for a "project" I would always have the IDE defaults, which I might not want. In my case, that was exactly so. I don't create LCL based projects, but do use the Lazarus IDE. So my desired defaults are very different. Just what I wanted.

Just an idea: Maybe instead of storing a simple list it can store the extensions for each standard item plus the list of custom items.

This makes a relatively simply feature so much more complicated, with very little benefit for all the efforts required to implement it. As I described above, simply delete or backup your customization file and the IDE will create a new one for you with the latest defaults.

Not to mention... how often does the IDE defaults really chance... in the last 6 years, very little. So is what you describe really needed. The bottom line is, I wanted *new* defaults, hence the feature in the first place - I don't care much for what the IDE considered defaults once upon a time. My filters look very different now, but it suits my needs.

What everybody else proposed in the bug report comments, simply limited the features of what I implemented.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 6 lines
2011/5/12 Mattias Gaertner: > But as far as I remember it lacks the ability to update defaults. Simply delete your custom file extensions file, and a new one is created with the latest defaults. Obviously it might be wise to backup your old one first, so you can merge customizations back in.

Well, for one config item this might be doable. But in general this is a bad solution.

Show quoted text 9 lines
> For > example the file group "project" was extended from *.lpr to *.lpr;*.dpr. The > patch stores the default values to the config file, but a good config file > should only contain the non default values. That would be that for a "project" I would always have the IDE defaults, which I might not want. In my case, that was exactly so. I don't create LCL based projects, but do use the Lazarus IDE. So my desired defaults are very different. Just what I wanted.

Easy solution: If a user clears the extensions of an item it is not shown. Then the item has a non default value, which is saved and kept even when you upgrade.

Show quoted text 7 lines
> Just an idea: Maybe instead of storing a simple list it can store the > extensions for each standard item plus the list of custom items. This makes a relatively simply feature so much more complicated, with very little benefit for all the efforts required to implement it. As I described above, simply delete or backup your customization file and the IDE will create a new one for you with the latest defaults.

Complicated?
You just need to add a simple array.
If I would have the time to maintain your extension I would do that.

Not to mention... how often does the IDE defaults really chance... in the last 6 years, very little. So is what you describe really needed.

There were some feature requests about adding a mechanism to register new file types.

Show quoted text 7 lines
The bottom line is, I wanted *new* defaults, hence the feature in the first place - I don't care much for what the IDE considered defaults once upon a time. My filters look very different now, but it suits my needs. What everybody else proposed in the bug report comments, simply limited the features of what I implemented.

Your patch is a good start.

Mattias

Reply by email