Changeset 76 for branches/Transpascal/Forms/UMainForm.pas
- Timestamp:
- Oct 21, 2010, 1:20:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.pas
r74 r76 10 10 UProducerC, ComCtrls, ExtCtrls, SynEdit, SynHighlighterPas, UProducerTreeView, 11 11 UProducerPascal, Contnrs, UProject, FileUtil, Menus, ActnList, UCoolDocking, 12 UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo; 12 UCompiledForm, UCodeTreeForm, URegistry, ULastOpenedList, UApplicationInfo, 13 UDebugLog; 13 14 14 15 const … … 58 59 LastOpenedFiles: TLastOpenedList; 59 60 ReopenLastOpenedFile: Boolean; 61 procedure CompilerDebugLog(Text: string); 60 62 procedure OpenRecentClick(Sender: TObject); 61 63 procedure DockInit; … … 208 210 procedure TMainForm.FormCreate(Sender: TObject); 209 211 begin 212 DebugLog.FileName := 'DebugLog.txt'; 213 DeleteFile(DebugLog.FileName); 210 214 Compiler := TCompiler.Create; 215 Compiler.Parser.OnDebugLog := CompilerDebugLog; 211 216 Project := TProject.Create; 212 217 LastOpenedFiles := TLastOpenedList.Create; … … 222 227 end; 223 228 229 procedure TMainForm.CompilerDebugLog(Text: string); 230 begin 231 DebugLog.Add('', Text); 232 end; 233 224 234 procedure TMainForm.OpenRecentClick(Sender: TObject); 225 235 begin
Note:
See TracChangeset
for help on using the changeset viewer.