Changeset 16 for trunk/StudioModules/LDModulePascal
- Timestamp:
- Aug 6, 2012, 3:16:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StudioModules/LDModulePascal/ULDModulePascal.pas
r15 r16 37 37 end; 38 38 39 { TPascalSourceType } 40 41 TPascalSourceType = class(TSourceType) 42 constructor Create; override; 43 end; 44 39 45 { TLDModulePascal } 40 46 41 47 TLDModulePascal = class(TModule) 42 48 private 43 PasFileType: T SourceType;49 PasFileType: TPascalSourceType; 44 50 ProjectTemplateConsoleApp: TProjectTemplateConsoleApp; 45 51 ProjectTemplateGUIApp: TProjectTemplateGUIApp; … … 55 61 56 62 uses 57 ULDStudioAPI ;63 ULDStudioAPI, ULDModuleBasic; 58 64 59 65 resourcestring 60 66 SPascal = 'Pascal'; 67 68 { TPascalSourceType } 69 70 constructor TPascalSourceType.Create; 71 begin 72 inherited Create; 73 Extension := '.pas'; 74 Title := 'Pascal source'; 75 end; 61 76 62 77 { TLDModulePascal } … … 74 89 begin 75 90 with TLDStudioAPI(API) do begin 76 PasFileType := TSourceType.Create; 77 PasFileType.Extension := '.pas'; 78 PasFileType.Title := 'Pascal source'; 91 PasFileType := TPascalSourceType.Create; 79 92 RegisterFileType(PasFileType); 80 93 ProjectTemplateConsoleApp := TProjectTemplateConsoleApp.Create; … … 125 138 Result := TSourceText.Create; 126 139 Result.Name := 'Unit1.pas'; 127 with TSourceText(Result) .Content do begin140 with TSourceText(Result), Content do begin 128 141 Add('unit Unit1;'); 129 142 Add(''); … … 133 146 Add(''); 134 147 Add('end.'); 148 Loaded := True; 135 149 end; 136 150 end;
Note:
See TracChangeset
for help on using the changeset viewer.