Ignore:
Timestamp:
Aug 7, 2012, 2:57:19 PM (12 years ago)
Author:
chronos
Message:
  • Modified: Minor opened files and source management enhancement.
  • Added: Included used packages sources.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioModules/LDModuleBasic/ULDModuleBasic.pas

    r16 r17  
    2020  end;
    2121
    22   { TTextFileType }
     22  { TSourceTypeText }
    2323
    24   TTextFileType = class(TSourceType)
     24  TSourceTypeText = class(TSourceType)
    2525    constructor Create; override;
    2626  end;
    2727
    28   { TTextTemplate }
     28  { TTemplateText }
    2929
    30   TTextTemplate = class(TFileTemplate)
     30  TTemplateText = class(TFileTemplate)
    3131    constructor Create; override;
    3232    function Execute: TSource; override;
     
    4444  TLDModuleBasic = class(TModule)
    4545    TextFileType: TSourceType;
    46     TextFileTemplate: TTextTemplate;
     46    TextFileTemplate: TTemplateText;
    4747    constructor Create; override;
    4848    procedure Install; override;
     
    6464
    6565
    66 { TTextTemplate }
     66{ TTemplateText }
    6767
    68 constructor TTextTemplate.Create;
     68constructor TTemplateText.Create;
    6969begin
    7070  inherited Create;
     
    7272end;
    7373
    74 function TTextTemplate.Execute: TSource;
     74function TTemplateText.Execute: TSource;
    7575begin
    7676  Result := TSourceText.Create;
    7777  Result.Name := STextFile;
     78  Result.FileType := TSourceTypeText.Create;
    7879end;
    7980
    80 { TTextFileType }
     81{ TSourceTypeText }
    8182
    82 constructor TTextFileType.Create;
     83constructor TSourceTypeText.Create;
    8384begin
    8485  inherited Create;
    8586  Extension := '.txt';
    8687  Title := STextFile;
    87 //  Form := TSour;
     88  Form := TFormSourceCode;
     89  SourceClass := TSourceText;
    8890end;
    8991
     
    119121    FormSourceCode := TFormSourceCode.Create(nil);
    120122    RegisterForm(FormSourceCode);
    121     TextFileType := TTextFileType.Create;
     123    TextFileType := TSourceTypeText.Create;
    122124    RegisterFileType(TextFileType);
    123     TextFileTemplate := TTextTemplate.Create;
     125    TextFileTemplate := TTemplateText.Create;
    124126    RegisterFileTemplate(TextFileTemplate);
    125127  end;
Note: See TracChangeset for help on using the changeset viewer.