On Sat, 28 Jan 2006 12:55:48 +0200
Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> We are using Include files in our current project to split a single
> large unit into smaller parts.
> [I love the way Lazarus handles include files compared to Delphi]
> 
> We have a Model.pas unit, which contains all our Business Objects. 
> Inside the Model unit we have created a $I line for every business
> object in the Interface and Implementation section, so we have a nice
> small Model.pas file.
> 
> Example:
> --------------------------------------------------------
> unit Model;
> Interface
> type
>   {$I ObjectA_Intf.inc}
>   {$I ObjectB_Intf.inc}
> 
> 
> Implementation
> 
> {$I ObjectA_Impl.inc}
> {$I ObjectB_Impl.inc}
> 
> end.
> --------------------------------------------------------
> 
> When we create the include files we go File -> New... -> Text
> Lazarus automatically adds the text file as part of the project in the
> .lpi file.  Should include files (as we used them above) be part of
> the Lazarus Project in the .lpi file.  I tend to think it shouldn't
> be... only the Model.pas file should be.  Is my thinking correct?

No. Part of project means, it belongs to the project and the IDE checks if
this file has changed before build.

 
> The reason why I think it shouldn't be is because they mean nothing on
> there own, and form the body of the Model unit, which is the important
> unit.
> 
> Possible bug:
> If I now go to View -> Units, it always shows those include files as
> "Text" in the View Units dialog, and not the name I saved them under.

Fixed.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to