Changeset 62 for trunk/IDE/Forms
- Timestamp:
- Jul 17, 2012, 10:14:41 AM (12 years ago)
- Location:
- trunk/IDE/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.