Changeset 15 for trunk/UKConfig.pas
- Timestamp:
- May 21, 2014, 5:33:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UKConfig.pas
r14 r15 72 72 RangeMax: string; 73 73 MenuConfig: Boolean; 74 Optional: Boolean; 74 75 constructor Create; virtual; 75 76 destructor Destroy; override; … … 98 99 CurrentMenu: TMenuNode; 99 100 ConditionStack: TStringList; 100 Arch: string;101 FArch: string; 101 102 FOnLog: TOnLogEvent; 102 103 ParseFileName: string; … … 117 118 procedure ParseMakeFile; 118 119 function GetLog: string; 120 procedure SetArch(AValue: string); 119 121 public 120 122 TopNode: TMenuNode; … … 129 131 constructor Create; 130 132 destructor Destroy; override; 133 property Arch: string read FArch write SetArch; 131 134 end; 132 135 … … 609 612 begin 610 613 Result := ' ' + ParseFileName + ':' + IntToStr(LineNumber); 614 end; 615 616 procedure TConfigMenu.SetArch(AValue: string); 617 begin 618 if FArch = AValue then Exit; 619 FArch := AValue; 620 LoadFromDir(BaseDir); 611 621 end; 612 622 … … 895 905 //VisibleCondition := GetNextToken(Line); 896 906 end else 907 if Command = 'optional' then begin 908 NewItem.Optional := True; 909 end else 897 910 if Command = 'endif' then begin 898 911 ConditionStack.Delete(ConditionStack.Count - 1); … … 1018 1031 I: Integer; 1019 1032 begin 1020 Self.Arch := 'x86';1021 1033 BaseDir := Dir; 1022 1034 ParseMakeFile; … … 1038 1050 begin 1039 1051 ConditionStack := TStringList.Create; 1052 Self.FArch := 'x86'; 1040 1053 end; 1041 1054
Note:
See TracChangeset
for help on using the changeset viewer.