Changeset 17 for trunk/StudioModules/LDModuleBasic/ULDModuleBasic.pas
- Timestamp:
- Aug 7, 2012, 2:57:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StudioModules/LDModuleBasic/ULDModuleBasic.pas
r16 r17 20 20 end; 21 21 22 { T TextFileType}22 { TSourceTypeText } 23 23 24 T TextFileType= class(TSourceType)24 TSourceTypeText = class(TSourceType) 25 25 constructor Create; override; 26 26 end; 27 27 28 { TTe xtTemplate}28 { TTemplateText } 29 29 30 TTe xtTemplate= class(TFileTemplate)30 TTemplateText = class(TFileTemplate) 31 31 constructor Create; override; 32 32 function Execute: TSource; override; … … 44 44 TLDModuleBasic = class(TModule) 45 45 TextFileType: TSourceType; 46 TextFileTemplate: TTe xtTemplate;46 TextFileTemplate: TTemplateText; 47 47 constructor Create; override; 48 48 procedure Install; override; … … 64 64 65 65 66 { TTe xtTemplate}66 { TTemplateText } 67 67 68 constructor TTe xtTemplate.Create;68 constructor TTemplateText.Create; 69 69 begin 70 70 inherited Create; … … 72 72 end; 73 73 74 function TTe xtTemplate.Execute: TSource;74 function TTemplateText.Execute: TSource; 75 75 begin 76 76 Result := TSourceText.Create; 77 77 Result.Name := STextFile; 78 Result.FileType := TSourceTypeText.Create; 78 79 end; 79 80 80 { T TextFileType}81 { TSourceTypeText } 81 82 82 constructor T TextFileType.Create;83 constructor TSourceTypeText.Create; 83 84 begin 84 85 inherited Create; 85 86 Extension := '.txt'; 86 87 Title := STextFile; 87 // Form := TSour; 88 Form := TFormSourceCode; 89 SourceClass := TSourceText; 88 90 end; 89 91 … … 119 121 FormSourceCode := TFormSourceCode.Create(nil); 120 122 RegisterForm(FormSourceCode); 121 TextFileType := T TextFileType.Create;123 TextFileType := TSourceTypeText.Create; 122 124 RegisterFileType(TextFileType); 123 TextFileTemplate := TTe xtTemplate.Create;125 TextFileTemplate := TTemplateText.Create; 124 126 RegisterFileTemplate(TextFileTemplate); 125 127 end;
Note:
See TracChangeset
for help on using the changeset viewer.