On Mon, Jul 28, 2008 at 2:27 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: > > About name clashing: > I agree, that the IDE should check if the file exists (unit1.pas) and > automatically use the next unitname (unit2, unit3, ...). > The problem is here: When you create a new project, the IDE has no directory > to > test, so it automatically creates project1 and unit1, because in a new project > there are no name clashes. Ideas? > We could do it the way Visual Studio and the latest Delphi IDEs work. When creating a new project, you get a dialog wich prompts for the project name and project location. The path is relative to a certain directory (by default your /home/my documents directory + /BSDprojects, IIRC), and the final directory name changes as you edit the project name. So the project "MyFirstProject" goes into "c:\documents and settings...\BSDProjects\MyFirstProject", wich is created automatically. You can also specify a name for the directory that doesn't match the project file name.. If the directory already exists, you get a message and have to confirm that you want to use it. That would involve adding new IDE configuration option (the base projects directory path). I think this is a clean, practical way.
Best regards, Gerard. _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
