Changeset 135 for trunk/UProject.pas


Ignore:
Timestamp:
Mar 5, 2022, 9:44:18 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
  • Modified: More translated strings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UProject.pas

    r68 r135  
    66
    77uses
    8   Classes, SysUtils;
     8  Classes, SysUtils, fgl;
    99
    1010type
     11  TProjectItem = class
     12    Name: string;
     13  end;
     14
     15  TProjectItems = class(TFPGObjectList<TProjectItem>)
     16  end;
     17
     18  TProjectFile = class(TProjectItem)
     19  end;
     20
     21  TProjectDirectory = class(TProjectItem)
     22  end;
    1123
    1224  { TProject }
     
    1729    procedure SetOpenned(AValue: Boolean);
    1830  public
     31    Items: TProjectItems;
    1932    Modified: Boolean;
    2033    FileName: string;
     34    constructor Create;
     35    destructor Destroy; override;
    2136    property Openned: Boolean read FOpenned write SetOpenned;
    2237  end;
     38
     39const
     40  LazFuckProjectExt = '.lfp';
     41
    2342
    2443implementation
     
    3756end;
    3857
     58constructor TProject.Create;
     59begin
     60  Items := TProjectItems.Create;
     61end;
     62
     63destructor TProject.Destroy;
     64begin
     65  FreeAndNil(Items);
     66  inherited;
     67end;
     68
    3969end.
    4070
Note: See TracChangeset for help on using the changeset viewer.