- Timestamp:
- Mar 28, 2011, 9:11:05 AM (14 years ago)
- Location:
- Generics/TemplateGenerics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo/Demo.lpi
r219 r220 55 55 <ResourceBaseClass Value="Form"/> 56 56 <UnitName Value="UMainForm"/> 57 <IsVisibleTab Value="True"/>58 57 <EditorIndex Value="0"/> 59 58 <WindowIndex Value="0"/> 60 <TopLine Value="6 45"/>61 <CursorPos X=" 28" Y="663"/>59 <TopLine Value="624"/> 60 <CursorPos X="39" Y="628"/> 62 61 <UsageCount Value="233"/> 63 62 <Bookmarks Count="1"> … … 419 418 <Unit46> 420 419 <Filename Value="../Generic/GenericMatrix.inc"/> 420 <IsVisibleTab Value="True"/> 421 421 <EditorIndex Value="7"/> 422 422 <WindowIndex Value="0"/> 423 <TopLine Value=" 311"/>424 <CursorPos X=" 48" Y="331"/>423 <TopLine Value="9"/> 424 <CursorPos X="31" Y="19"/> 425 425 <UsageCount Value="103"/> 426 426 <Loaded Value="True"/> … … 504 504 <EditorIndex Value="8"/> 505 505 <WindowIndex Value="0"/> 506 <TopLine Value=" 31"/>507 <CursorPos X=" 38" Y="62"/>506 <TopLine Value="1"/> 507 <CursorPos X="25" Y="41"/> 508 508 <UsageCount Value="19"/> 509 509 <Loaded Value="True"/> -
Generics/TemplateGenerics/Generic/GenericListObject.inc
r112 r220 17 17 public 18 18 OwnsObjects: Boolean; 19 function AddNew: TGListItem; 20 function AddInsertNew(Index: TGListIndex): TGListItem; 19 21 procedure Delete(Index: TGListObjectIndex); override; 20 22 procedure Clear; override; … … 48 50 49 51 { TGListObject } 52 53 function TGListObject.AddNew: TGListItem; 54 begin 55 Result := TGListItem.Create; 56 Add(Result); 57 end; 58 59 function TGListObject.AddInsertNew(Index: TGListIndex): TGListItem; 60 begin 61 Result := TGListItem.Create; 62 Insert(Index, Result); 63 end; 50 64 51 65 procedure TGListObject.Assign(Source: TGList); -
Generics/TemplateGenerics/TemplateGenerics.lpk
r219 r220 4 4 <PathDelim Value="\"/> 5 5 <Name Value="TemplateGenerics"/> 6 <Author Value="Chronos "/>6 <Author Value="Chronos (robie@centrum.cz)"/> 7 7 <CompilerOptions> 8 8 <Version Value="10"/>
Note:
See TracChangeset
for help on using the changeset viewer.