Changeset 290 for trunk/UNation.pas
- Timestamp:
- Mar 25, 2019, 12:51:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UNation.pas
r285 r290 14 14 TNation = class(TItem) 15 15 Color: TColor; 16 function GetFields: TItemFields; override;16 class function GetFields: TItemFields; override; 17 17 procedure GetValue(Index: Integer; out Value); override; 18 18 procedure SetValue(Index: Integer; var Value); override; 19 19 class function GetClassSysName: string; override; 20 class function GetClassName: string; override; 20 21 end; 21 22 … … 28 29 resourcestring 29 30 SNation = 'Nation'; 31 SColor = 'Color'; 30 32 31 33 … … 37 39 { TNation } 38 40 39 function TNation.GetFields: TItemFields;41 class function TNation.GetFields: TItemFields; 40 42 begin 41 43 Result := inherited; 42 Result.AddField(2, 'Color', 'Color', dtColor);44 Result.AddField(2, 'Color', SColor, dtColor); 43 45 end; 44 46 … … 62 64 end; 63 65 66 class function TNation.GetClassName: string; 67 begin 68 Result := SNation; 69 end; 70 64 71 { TNations } 65 72
Note:
See TracChangeset
for help on using the changeset viewer.