Changeset 61 for trunk/IDE/Forms/UFormMain.pas
- Timestamp:
- Jul 17, 2012, 9:15:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.pas
r60 r61 90 90 Splitter2: TSplitter; 91 91 Splitter3: TSplitter; 92 TabSheetExternalProducer: TTabSheet; 92 93 TabSheetProject: TTabSheet; 93 94 TabSheetCodeTree: TTabSheet; … … 143 144 procedure UpdateMenu; 144 145 procedure UpdateTitle; 146 procedure ProducerProcessOutput(Text: string); 145 147 public 146 148 procedure LoadFromRegistry(Root: HKEY; Key: string); … … 162 164 UCore, UFormMessages, UFormSourceCode, UFormProject, UCommon, UFormAbout, UFormOptions, 163 165 UFormTargets, UTarget, UExecutor, UFormProjectNew, 164 UFormTargetProject ;166 UFormTargetProject, UFormExternalProducerOutput; 165 167 166 168 { TFormMain } … … 189 191 Compiler.Compile; 190 192 TargetProject.Files.LoadFromList(Compiler.TargetFiles.Files); 193 TargetProject.MainSource := TProjectFile(TargetProject.Files.First); 191 194 FormTargetProject.UpdateInterface; 195 196 FormExternalProducerOutput.Memo1.Clear; 197 if Assigned(Compiler.Target.Producer) then 198 with Compiler.Target.Producer do begin 199 FormExternalProducerOutput.Memo1.Lines.Add(CompilerPath + ' ' + Format(CompilerParameters, [TargetProject.MainSource.AbsoluteFileName])); 200 ExternalExecute(CompilerPath + ' ' + Format(CompilerParameters, [TargetProject.MainSource.AbsoluteFileName])); 201 end; 192 202 end; 193 203 FormProject.TreeViewProjectChange(Self, FormProject.TreeViewProject.Selected); … … 344 354 FormTargetCode.Align := alClient; 345 355 FormTargetCode.Show; 356 FormExternalProducerOutput.ManualDock(TabSheetExternalProducer, nil, alClient); 357 FormExternalProducerOutput.Align := alClient; 358 FormExternalProducerOutput.Show; 346 359 PageControlRight.TabIndex := 0; 347 360 PageControlBottom.TabIndex := 0; … … 446 459 end; 447 460 461 procedure TFormMain.ProducerProcessOutput(Text: string); 462 begin 463 FormExternalProducerOutput.Memo1.Lines.Add(Text); 464 end; 465 448 466 procedure TFormMain.FormClose(Sender: TObject; var Action: TCloseAction); 449 467 begin … … 453 471 454 472 procedure TFormMain.FormCreate(Sender: TObject); 455 begin 473 var 474 I: Integer; 475 begin 476 with Core.Compiler.Targets do 477 for I := 0 to Count - 1 do 478 with TTarget(Items[I]) do 479 if Assigned(Producer) then 480 Producer.OnProcessOutput := ProducerProcessOutput; 456 481 end; 457 482 … … 517 542 if FormProjectNew.ShowModal = mrOk then begin 518 543 if Assigned(FormProjectNew.ListView1.Selected) then begin 519 Core.ProjectNew; 544 if TProjectTemplate(FormProjectNew.ListView1.Selected.Data).IsProject then 545 Core.ProjectNew; 520 546 TProjectTemplate(FormProjectNew.ListView1.Selected.Data).InitProject(Core.Project); 521 547 end;
Note:
See TracChangeset
for help on using the changeset viewer.