[lazarus] CVS Changes
SMiller1 at stvgb.org
Mon Jan 29 13:35:20 EST 2001
Once I figure out how these classes are to work together, I will look into getting fpcmake involved.
>>> peter at freepascal.org 01/29/01 10:30AM >>>
> 1) I assume there will be a TProjectUnitInfo class for each unit, including the project
file. If so, should the TProjectUnitInfo class hold a reference to a TStringList for the
source or not? See, if the AddUnit function is going to change the Project file then you
will need to hold the source somewhere. You can't be sure that it's ever been saved so
the filename property could be blank. This would mena that you would need to either have
a reference to a stream or a TStringlist that holds the source.
> 2) If we have the projectUnitInfo class hold the source, is it going to do the actual
loading of the source or should the OpenProjectClicked load the details of the project,
then run through all the units in and add them to the editor if they are visible.
> I would guess that MainIDE would call the Project class to load the project. Then it
would run through the UnitList and see how many should be displayed in the editor. While
doing that it could fill in a variable in the Project class that holds each source file.
If the file's loaded into an editor, then the project's TSitrngList would point to the
editor's. That way when the editor's changes the one in TProjectUnitInfo would too.
Can you also take a look at the fpcmake code to integrate that in the TProject and vice
versa. I want also to add source file info and dependency info to the Makefile.fpc.
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus