Changeset 15 for trunk/UKConfig.pas


Ignore:
Timestamp:
May 21, 2014, 5:33:14 PM (10 years ago)
Author:
chronos
Message:
  • Added: Architecture selection through main menu item Architecture.
  • Added: In comparison show also full ID list for both configuration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UKConfig.pas

    r14 r15  
    7272    RangeMax: string;
    7373    MenuConfig: Boolean;
     74    Optional: Boolean;
    7475    constructor Create; virtual;
    7576    destructor Destroy; override;
     
    9899    CurrentMenu: TMenuNode;
    99100    ConditionStack: TStringList;
    100     Arch: string;
     101    FArch: string;
    101102    FOnLog: TOnLogEvent;
    102103    ParseFileName: string;
     
    117118    procedure ParseMakeFile;
    118119    function GetLog: string;
     120    procedure SetArch(AValue: string);
    119121  public
    120122    TopNode: TMenuNode;
     
    129131    constructor Create;
    130132    destructor Destroy; override;
     133    property Arch: string read FArch write SetArch;
    131134  end;
    132135
     
    609612begin
    610613  Result := ' ' + ParseFileName + ':' + IntToStr(LineNumber);
     614end;
     615
     616procedure TConfigMenu.SetArch(AValue: string);
     617begin
     618  if FArch = AValue then Exit;
     619  FArch := AValue;
     620  LoadFromDir(BaseDir);
    611621end;
    612622
     
    895905        //VisibleCondition := GetNextToken(Line);
    896906      end else
     907      if Command = 'optional' then begin
     908        NewItem.Optional := True;
     909      end else
    897910      if Command = 'endif' then begin
    898911        ConditionStack.Delete(ConditionStack.Count - 1);
     
    10181031  I: Integer;
    10191032begin
    1020   Self.Arch := 'x86';
    10211033  BaseDir := Dir;
    10221034  ParseMakeFile;
     
    10381050begin
    10391051  ConditionStack := TStringList.Create;
     1052  Self.FArch := 'x86';
    10401053end;
    10411054
Note: See TracChangeset for help on using the changeset viewer.