Changeset 238 for branches/CpuSingleSize/Forms/FormMain.pas
- Timestamp:
- Jul 15, 2023, 12:51:15 AM (16 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/FormMain.pas
r237 r238 1 unit UFormMain;1 unit FormMain; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls, 7 ExtCtrls, Menus, UCpu, UMachine, UAssembler;7 ExtCtrls, Menus, Cpu, Machine, Assembler, FormMessages, FormAssembler; 8 8 9 9 type … … 36 36 PanelBottom: TPanel; 37 37 Splitter1: TSplitter; 38 procedure ButtonConsoleClick(Sender: TObject); 39 procedure ButtonCpuClick(Sender: TObject); 40 procedure ButtonLoadClick(Sender: TObject); 41 procedure ButtonScreenClick(Sender: TObject); 42 procedure ButtonStartClick(Sender: TObject); 43 procedure ButtonStopClick(Sender: TObject); 38 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 44 39 procedure FormCreate(Sender: TObject); 45 40 procedure FormDestroy(Sender: TObject); … … 47 42 private 48 43 public 44 FormMessages: TFormMessages; 45 FormAssembler: TFormAssembler; 49 46 procedure DockForm(Form: TForm; DockSite: TWinControl); 50 47 procedure DockInit; 51 48 end; 52 53 var54 FormMain: TFormMain;55 49 56 50 … … 59 53 {$R *.lfm} 60 54 61 uses62 UFormScreen, UFormCpu, UFormConsole, UFormAssembler, UFormMessages;63 64 55 { TFormMain } 65 56 66 57 procedure TFormMain.FormCreate(Sender: TObject); 67 58 begin 59 FormMessages := TFormMessages.Create(nil); 60 FormAssembler := TFormAssembler.Create(nil); 61 FormMessages.OnSelect := FormAssembler.Select; 68 62 end; 69 63 70 procedure TFormMain. ButtonConsoleClick(Sender: TObject);64 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 71 65 begin 72 end; 73 74 procedure TFormMain.ButtonCpuClick(Sender: TObject); 75 begin 76 77 end; 78 79 procedure TFormMain.ButtonLoadClick(Sender: TObject); 80 begin 81 82 end; 83 84 procedure TFormMain.ButtonScreenClick(Sender: TObject); 85 begin 86 87 end; 88 89 procedure TFormMain.ButtonStartClick(Sender: TObject); 90 begin 91 end; 92 93 procedure TFormMain.ButtonStopClick(Sender: TObject); 94 begin 66 Application.Terminate; 95 67 end; 96 68 97 69 procedure TFormMain.FormDestroy(Sender: TObject); 98 70 begin 71 FreeAndNil(FormAssembler); 72 FreeAndNil(FormMessages); 99 73 end; 100 74
Note:
See TracChangeset
for help on using the changeset viewer.