Ignore:
Timestamp:
Oct 31, 2010, 9:40:18 PM (14 years ago)
Author:
george
Message:
  • Modified: TObjectList replaced by generics templates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/UProject.pas

    r82 r83  
    22
    33{$mode objfpc}{$H+}
     4{$MACRO ON}
    45
    56interface
    67
    78uses
    8   Classes, SysUtils, ListObject, Dialogs, DOM, XMLWrite, XMLRead, FileUtil;
     9  Classes, SysUtils, Dialogs, DOM, XMLWrite, XMLRead, FileUtil;
    910
    1011type
     
    2223  end;
    2324
     25
     26  // TListProjectNode = TGObjectList<Integer, TProjectNode>
     27  {$DEFINE TGObjectListIndex := Integer}
     28  {$DEFINE TGObjectListItem := TProjectNode}
     29  {$DEFINE TGObjectListList := TObjectListProjectNode}
     30  {$DEFINE TGObjectList := TListProjectNode}
     31  {$DEFINE TGObjectListSortCompare := TObjectListSortCompareProjectNode}
     32  {$DEFINE TGObjectListStringConverter := TObjectListStringConverterProjectNode}
     33  {$DEFINE INTERFACE}
     34  {$I 'GenericObjectList.inc'}
     35
    2436  { TProjectFile }
    2537
     
    3749
    3850  TProjectGroup = class(TProjectNode)
    39     Items: TListObject;
     51    Items: TListProjectNode;
    4052    constructor Create;
    4153    destructor Destroy; override;
     
    6173implementation
    6274
     75
     76{$DEFINE IMPLEMENTATION_USES}
     77{$INCLUDE 'GenericObjectList.inc'}
     78
     79// TListProjectNode = TGObjectList<Integer, TProjectNode>
     80{$DEFINE TGObjectListIndex := Integer}
     81{$DEFINE TGObjectListItem := TProjectNode}
     82{$DEFINE TGObjectListList := TObjectListProjectNode}
     83{$DEFINE TGObjectList := TListProjectNode}
     84{$DEFINE TGObjectListSortCompare := TObjectListSortCompareProjectNode}
     85{$DEFINE TGObjectListStringConverter := TObjectListStringConverterProjectNode}
     86{$DEFINE IMPLEMENTATION}
     87{$INCLUDE 'GenericObjectList.inc'}
     88
    6389{ TProjectGroup }
    6490
     
    6692begin
    6793  inherited;
    68   Items := TListObject.Create;
     94  Items := TListProjectNode.Create;
    6995end;
    7096
Note: See TracChangeset for help on using the changeset viewer.