[lazarus] CVS Changes

Curtis White cwhite at aracnet.com
Wed Jan 31 00:59:12 EST 2001


> 
> I think we should do it the right way now. Otherwise, we might end up
> with a mess later that will be much more difficult to fix. I will try to
> combine TProjectUnitInfo and TUnitInfo into a single class called
> TUnitInfo tonight. That class will be included in the TProject where
> TProjectUnitInfo is now.
> 
> It seems to me that it shouldn't be all that difficult to fix
> TSourceEditor to just call the proper functions in the TUnitInfo and
> TProject classes to load and save the units. If you want, I can take a
> look at TSourceEditor as soon as I get TProjectUnitInfo and TUnitInfo
> combined into a single class (probably not until tomorrow evening).
> 

I just now took a look at the TUnitInfo class. I don't understand what
its purpose is/was. It looks like it has methods to actually manage
editing the source code (like adding lines of code, etc.). Is all that
still necessary? Are we using it any more? I don't see any place where
we are "actually" using it. It exists in TMainIDE, but it doesn't look
like it is being used. If we are not using it, then I suggest we dump
it.

I would still like to rename the TProjectUnitInfo class to TUnitInfo. I
think that describes the class better. I also need to add a Source
property to it and to the TProject class. I will add these for now until
I hear from someone more about what all those methods are in the current
TUnitInfo class.


Curtis






More information about the Lazarus mailing list