Changeset 62
- Timestamp:
- Jul 17, 2012, 10:14:41 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzerPascal.pas
r58 r62 568 568 if NextToken = 'initialization' then Break 569 569 else if NextToken = 'finalization' then Break 570 else if NextToken = 'end' then Break 570 571 else begin 571 572 ErrorMessage(SInvalidConstruction, [NextToken]); … … 1444 1445 Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name); 1445 1446 if not Assigned(Module) then begin 1446 if ParseFile(Name ) then begin1447 if ParseFile(Name + '.pas') then begin 1447 1448 Module := SourceCode.ParentModule.ParentProgram.Modules.Search(Name); 1448 1449 Exported := AExported; -
trunk/Compiler/UAnalyzer.pas
r44 r62 374 374 // Update cursor position 375 375 Inc(CodePosition.X); 376 if (CurrentChar = LineEnding ) then begin376 if (CurrentChar = LineEnding[1]) then begin 377 377 CodePosition.X := 0; 378 378 Inc(CodePosition.Y); -
trunk/Compiler/UCompiler.pas
r59 r62 111 111 begin 112 112 I := 0; 113 while (I < Files.Count) and (ExtractFileName Only(Files[I]) <> Name) do Inc(I);113 while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I); 114 114 if I < Files.Count then begin 115 115 if FileExistsUTF8(Files[I]) then begin … … 127 127 begin 128 128 I := 0; 129 while (I < Files.Count) and (ExtractFileName Only(Files[I]) <> Name) do Inc(I);129 while (I < Files.Count) and (ExtractFileName(Files[I]) <> Name) do Inc(I); 130 130 if I >= Files.Count then begin 131 131 SaveStringToFile(Name, Content); … … 212 212 if MainSource <> '' then begin 213 213 Analyzer.FileName := MainSource; 214 Analyzer.OnGetSource(ExtractFileName Only(Analyzer.FileName), Analyzer.SourceCode);214 Analyzer.OnGetSource(ExtractFileName(Analyzer.FileName), Analyzer.SourceCode); 215 215 Analyzer.Process; 216 216 //ShowMessage(IntToHex(Integer(Addr(Analyzer.OnGetSource)), 8)); -
trunk/IDE/Forms/UFormMain.pas
r61 r62 183 183 with TProjectFile(Project.Files[0]) do begin 184 184 Compiler.SourceFiles.Files.Clear; 185 Compiler.TargetFiles.Files.Clear; 185 186 Project.Files.DumpFileList(Compiler.SourceFiles.Files); 186 187 Compiler.MainSource := Project.MainSource.AbsoluteFileName; … … 497 498 Core.ProjectTemplatesInit; 498 499 499 if Core.ReopenLastOpenedFile and (Core.LastOpenedFiles.Items.Count > 0) then begin 500 if Core.ReopenLastOpenedFile and (Core.LastOpenedFiles.Items.Count > 0) then 501 if FileExistsUTF8(Core.LastOpenedFiles.Items[0]) then 500 502 Core.ProjectOpen(Core.LastOpenedFiles.Items[0]); 501 end;502 503 503 504 WindowState := wsMaximized; … … 513 514 procedure TFormMain.AProjectCloseExecute(Sender: TObject); 514 515 begin 515 //if Project.Modified then ; 516 //if Project.Modified then ; A 517 FormSourceCode.ProjectFile := nil; 516 518 FreeAndNil(Core.Project); 519 FormProject.UpdateProjectTree; 517 520 UpdateInterface; 518 521 end; -
trunk/IDE/Forms/UFormProject.pas
r61 r62 125 125 procedure TFormProject.AShowExecute(Sender: TObject); 126 126 begin 127 if Assigned(TreeViewProject.Selected) then 128 FormSourceCode.SynEditSource.Lines.Assign(TProjectFile(TreeViewProject.Selected.Data).Source); 127 if Assigned(TreeViewProject.Selected) then begin 128 FormMain.TabSheetSource.Show; 129 FormSourceCode.ProjectFile := TProjectFile(TreeViewProject.Selected.Data); 130 end; 129 131 end; 130 132 -
trunk/IDE/Forms/UFormSourceCode.pas
r57 r62 40 40 procedure TFormSourceCode.SynEditSourceChange(Sender: TObject); 41 41 begin 42 Save; 42 43 if Assigned(Core.Project) and Assigned(ProjectFile) then 43 44 ProjectFile.Modified := True; -
trunk/IDE/Forms/UFormTargetProject.pas
r54 r62 66 66 if TProjectFile(Node.Data) is TProjectFile then begin 67 67 ProjectFile := TProjectFile(Node.Data); 68 FormMain.TabSheetTarget.Show; 68 69 SynEdit1.Lines.Assign(TProjectFile(Node.Data).Source); 69 70 end; -
trunk/IDE/UCore.lfm
r57 r62 37 37 EmailContact = 'robie@centrum.cz' 38 38 AppName = 'Transpascal IDE' 39 ReleaseDate = 4110 339 ReleaseDate = 41107 40 40 RegistryKey = '\Software\Chronosoft\Transpascal' 41 41 RegistryRoot = rrKeyCurrentUser
Note:
See TracChangeset
for help on using the changeset viewer.