Changeset 60 for trunk/IDE/Forms/UFormMain.pas
- Timestamp:
- Jul 17, 2012, 7:25:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.pas
r59 r60 43 43 AProjectClose: TAction; 44 44 ActionList1: TActionList; 45 ComboBoxTarget: TComboBox; 45 46 ImageList1: TImageList; 46 47 MainMenu: TMainMenu; … … 99 100 ToolButton1: TToolButton; 100 101 ToolButton10: TToolButton; 102 ToolButton11: TToolButton; 101 103 ToolButton2: TToolButton; 102 104 ToolButton3: TToolButton; … … 131 133 procedure AViewProjectExecute(Sender: TObject); 132 134 procedure AViewSourceEditorExecute(Sender: TObject); 133 procedure ComboBox1Change(Sender: TObject); 134 procedure ComboBoxProducerChange(Sender: TObject); 135 procedure ComboBoxTargetChange(Sender: TObject); 135 136 procedure FormShow(Sender: TObject); 136 137 procedure FormClose(Sender: TObject; var Action: TCloseAction); … … 313 314 314 315 UpdateMenu; 316 Core.Compiler.Targets.LoadToStrings(ComboBoxTarget.Items); 317 ComboBoxTarget.ItemIndex := Core.Compiler.Targets.IndexOf(Core.Compiler.Target); 315 318 FormSourceCode.UpdateInterface; 316 319 FormTargetCode.UpdateInterface; … … 476 479 end; 477 480 478 procedure TFormMain.ComboBox1Change(Sender: TObject);479 begin480 ABuildExecute(Self);481 end;482 483 481 procedure TFormMain.AProjectOpenExecute(Sender: TObject); 484 482 begin … … 545 543 end; 546 544 547 procedure TFormMain.ComboBoxProducerChange(Sender: TObject); 548 begin 549 ABuildExecute(Self); 545 procedure TFormMain.ComboBoxTargetChange(Sender: TObject); 546 begin 547 with TMenuItem(Sender) do begin 548 Core.Compiler.Target := TTarget(Core.Compiler.Targets[ComboBoxTarget.ItemIndex]); 549 UpdateInterface; 550 end; 550 551 end; 551 552
Note:
See TracChangeset
for help on using the changeset viewer.