Changeset 6 for trunk/USource.pas


Ignore:
Timestamp:
Feb 4, 2011, 9:45:01 AM (13 years ago)
Author:
chronos
Message:
  • Modified: Source selection separated to single form.
  • Added: Starting compiler and IDE with updated paths in configuration files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/USource.pas

    r5 r6  
    1515
    1616  TSource = class
     17  private
     18    function GetDownloaded: Boolean;
     19  public
    1720    Id: Integer;
    1821    ProjectName: string;
     
    2427    SourceType: TSourceType;
    2528    ExecutableFile: string;
     29    property Downloaded: Boolean read GetDownloaded;
    2630    procedure Assign(Source: TSource);
    2731    procedure Download;
     
    3034    function GetExecutableFile: string;
    3135    function GetPath: string;
     36    function GetName: string;
    3237  end;
    3338
     
    4550
    4651{ TSource }
     52
     53function TSource.GetDownloaded: Boolean;
     54begin
     55  Result := DirectoryExistsUTF8(GetPath);
     56end;
    4757
    4858procedure TSource.Assign(Source: TSource);
     
    94104  Result := ExtractFileDir(Application.ExeName) + DirectorySeparator +
    95105    MainForm.SourceDir + DirectorySeparator + IntToStr(Id);
     106end;
     107
     108function TSource.GetName: string;
     109begin
     110  Result := ProjectShortName + ' ' + VersionNumber +
     111    ' (' + VersionType + ')';
    96112end;
    97113
Note: See TracChangeset for help on using the changeset viewer.