Changeset 49 for trunk/IDE/Forms/UFormMain.pas
- Timestamp:
- Mar 4, 2012, 5:26:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.pas
r48 r49 28 28 TFormMain = class(TForm) 29 29 ABuild: TAction; 30 AHelp: TAction; 30 31 ARunToCursor: TAction; 31 32 AStepOut: TAction; … … 82 83 MenuItem31: TMenuItem; 83 84 MenuItem32: TMenuItem; 85 MenuItem33: TMenuItem; 84 86 MenuItemProducer: TMenuItem; 85 87 MenuItem3: TMenuItem; … … 103 105 TabSheetMessages: TTabSheet; 104 106 TabSheetBreakpoints: TTabSheet; 105 TabSheet CompiledProject: TTabSheet;107 TabSheetTargetProject: TTabSheet; 106 108 TabSheetSource: TTabSheet; 107 109 TabSheetTarget: TTabSheet; … … 150 152 procedure ProjectOpen(FileName: string); 151 153 procedure UpdateMenu; 154 procedure UpdateToolbar; 152 155 public 153 156 ReopenLastOpenedFile: Boolean; … … 172 175 UFormMessages, UFormSourceCode, UFormProject, UCommon, UFormAbout, UFormOptions, 173 176 UFormTargets, UTarget, UAnalyzer, UProducer, UExecutor, UFormProjectNew, 174 UProjectTemplates ;177 UProjectTemplates, UFormTargetProject; 175 178 176 179 resourcestring … … 239 242 Compiler.SourceFiles.Clear; 240 243 Project.Files.DumpFileList(Compiler.SourceFiles); 241 Compiler.TargetFolder := ExtractFileDir(Project.FileName); 244 TargetProject.FileName := ExtractFileDir(Project.FileName) + DirectorySeparator + 245 Compiler.CompiledFolder + DirectorySeparator + Compiler.Target.Name + 246 DirectorySeparator + 'Target.tppr'; 247 Compiler.TargetFolder := ExtractFileDir(TargetProject.FileName); 242 248 Compiler.Compile; 249 TargetProject.Files.LoadFromList(Compiler.TargetFiles); 250 FormTargetProject.UpdateInterface; 243 251 end; 244 252 FormProject.TreeViewProjectChange(Self, FormProject.TreeViewProject.Selected); … … 332 340 333 341 UpdateMenu; 342 UpdateToolbar; 334 343 FormSourceCode.UpdateInterface; 344 FormTargetCode.UpdateInterface; 335 345 FormProject.UpdateInterface; 336 346 end; … … 350 360 FormProject.Align := alClient; 351 361 FormProject.Show; 362 FormTargetProject.ManualDock(TabSheetTargetProject, nil, alClient); 363 FormTargetProject.Align := alClient; 364 FormTargetProject.Show; 352 365 FormCodeTree.ManualDock(TabSheetCodeTree, nil, alClient); 353 366 FormCodeTree.Align := alClient; … … 473 486 end; 474 487 488 procedure TFormMain.UpdateToolbar; 489 var 490 I: Integer; 491 begin 492 for I := 0 to ToolBar1.ButtonCount - 1 do 493 TToolButton(ToolBar1.Buttons[I]).Hint := TToolButton(ToolBar1.Buttons[I]).Caption; 494 end; 495 475 496 procedure TFormMain.FormClose(Sender: TObject; var Action: TCloseAction); 476 497 begin
Note:
See TracChangeset
for help on using the changeset viewer.