Ignore:
Timestamp:
Aug 6, 2012, 3:16:26 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Definition of text source file moved to new package Basic.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioModules/LDModulePascal/ULDModulePascal.pas

    r15 r16  
    3737  end;
    3838
     39  { TPascalSourceType }
     40
     41  TPascalSourceType = class(TSourceType)
     42    constructor Create; override;
     43  end;
     44
    3945  { TLDModulePascal }
    4046
    4147  TLDModulePascal = class(TModule)
    4248  private
    43     PasFileType: TSourceType;
     49    PasFileType: TPascalSourceType;
    4450    ProjectTemplateConsoleApp: TProjectTemplateConsoleApp;
    4551    ProjectTemplateGUIApp: TProjectTemplateGUIApp;
     
    5561
    5662uses
    57   ULDStudioAPI;
     63  ULDStudioAPI, ULDModuleBasic;
    5864
    5965resourcestring
    6066  SPascal = 'Pascal';
     67
     68{ TPascalSourceType }
     69
     70constructor TPascalSourceType.Create;
     71begin
     72  inherited Create;
     73  Extension := '.pas';
     74  Title := 'Pascal source';
     75end;
    6176
    6277{ TLDModulePascal }
     
    7489begin
    7590  with TLDStudioAPI(API) do begin
    76     PasFileType := TSourceType.Create;
    77     PasFileType.Extension := '.pas';
    78     PasFileType.Title := 'Pascal source';
     91    PasFileType := TPascalSourceType.Create;
    7992    RegisterFileType(PasFileType);
    8093    ProjectTemplateConsoleApp := TProjectTemplateConsoleApp.Create;
     
    125138  Result := TSourceText.Create;
    126139  Result.Name := 'Unit1.pas';
    127   with TSourceText(Result).Content do begin
     140  with TSourceText(Result), Content do begin
    128141    Add('unit Unit1;');
    129142    Add('');
     
    133146    Add('');
    134147    Add('end.');
     148    Loaded := True;
    135149  end;
    136150end;
Note: See TracChangeset for help on using the changeset viewer.