Changeset 84 for Generics/TemplateGenerics/Generic/GenericTree.inc
- Timestamp:
- Oct 31, 2010, 3:14:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericTree.inc
r83 r84 3 3 TGTreeNode = class; 4 4 5 TListIndex = TTreeIndex; 6 TListItem = TGTreeNode; 7 {$DEFINE INTERFACE} 8 {$INCLUDE 'GenericList.inc'} 5 {$DEFINE TGListIndex := TGTreeIndex} 6 {$DEFINE TGListItem := TGTreeNode} 7 {$DEFINE TGList := TGTreeNodeList} 8 {$DEFINE TGListSortCompare := TGTreeSortCompare} 9 {$DEFINE TGListStringConverter := TGTreeStringConverter} 10 {$DEFINE INTERFACE} 11 {$INCLUDE 'GenericList.inc'} 9 12 10 TTreeNodeList = class(TGList) 11 end; 12 13 // TGTreeNode<TTreeIndex, TTreeItem> = class 13 // TGTreeNode<TGTreeIndex, TGTreeItem> = class 14 14 TGTreeNode = class 15 Childs: T TreeNodeList;16 Value: T TreeItem;15 Childs: TGTreeNodeList; 16 Value: TGTreeItem; 17 17 procedure Clear; 18 18 end; 19 19 20 // TGTree<T TreeIndex, TTreeItem> = class20 // TGTree<TGTreeIndex, TGTreeItem> = class 21 21 TGTree = class 22 22 TopItem: TGTreeNode; … … 27 27 {$ENDIF} 28 28 29 {$IFDEF IMPLEMENTATION_USES} 30 31 {$DEFINE IMPLEMENTATION_USES} 32 {$INCLUDE 'GenericList.inc'} 33 34 {$UNDEF INTERFACE_USES} 35 {$ENDIF} 36 37 29 38 {$IFDEF IMPLEMENTATION} 39 {$UNDEF IMPLEMENTATION} 30 40 41 {$DEFINE TGListIndex := TGTreeIndex} 42 {$DEFINE TGListItem := TGTreeNode} 43 {$DEFINE TGList := TGTreeNodeList} 44 {$DEFINE TGListSortCompare := TGTreeSortCompare} 45 {$DEFINE TGListStringConverter := TGTreeStringConverter} 31 46 {$DEFINE IMPLEMENTATION} 32 47 {$INCLUDE 'GenericList.inc'} … … 46 61 end; 47 62 63 {$UNDEF IMPLEMENTATION} 48 64 {$ENDIF}
Note:
See TracChangeset
for help on using the changeset viewer.