Changeset 5 for trunk/Forms
- Timestamp:
- Apr 18, 2026, 7:24:02 PM (4 weeks ago)
- Location:
- trunk/Forms
- Files:
-
- 5 added
- 7 edited
-
Base.pas (added)
-
FormCpu.pas (modified) (1 diff)
-
FormDisassembler.lfm (modified) (1 diff)
-
FormDisassembler.pas (modified) (1 diff)
-
FormGoToAddress.lfm (added)
-
FormGoToAddress.pas (added)
-
FormMain.lfm (modified) (8 diffs)
-
FormMain.pas (modified) (3 diffs)
-
FormMemory.lfm (modified) (3 diffs)
-
FormMemory.pas (modified) (4 diffs)
-
FormMessages.lfm (added)
-
FormMessages.pas (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCpu.pas
r2 r5 20 20 end; 21 21 22 22 23 implementation 23 24 -
trunk/Forms/FormDisassembler.lfm
r2 r5 8 8 ClientWidth = 1056 9 9 DesignTimePPI = 144 10 LCLVersion = '4.6.0.0' 10 11 OnClose = FormClose 11 12 OnCreate = FormCreate 12 13 OnDestroy = FormDestroy 13 14 OnShow = FormShow 14 LCLVersion = '2.2.6.0'15 15 object ListView1: TListView 16 16 Left = 0 -
trunk/Forms/FormDisassembler.pas
r2 r5 71 71 Item: TListItem; 72 72 DecodedInstruction: TDecodedInstruction; 73 Index: Integer; 73 74 begin 74 DecodedInstruction := Disassembler.DecodedInstructions.SearchAddress(Address); 75 if Assigned(DecodedInstruction) then begin 76 Item := ListView1.Items[Disassembler.DecodedInstructions.IndexOf(DecodedInstruction)]; 75 Index := Disassembler.DecodedInstructions.SearchAddressIndex(Address); 76 if Index >= 0 then begin 77 DecodedInstruction := Disassembler.DecodedInstructions[Index]; 78 Item := ListView1.Items[Index]; 77 79 if Assigned(Item) then begin 78 80 Item.MakeVisible(False); 79 Item.Focused := True; 80 Item.Selected := True; 81 //Item.Focused := False; 82 //Item.Selected := False; 83 //Item.Focused := True; 84 //Item.Selected := True; 85 ListView1.ItemIndex := Index; 86 ListView1.Selected := ListView1.Items[Index]; 87 ListView1.Items[Index].Focused := True; 81 88 end; 82 89 end; -
trunk/Forms/FormMain.lfm
r2 r5 5 5 Width = 1061 6 6 Caption = 'SHARP MZ-800 emulator' 7 ClientHeight = 6827 ClientHeight = 716 8 8 ClientWidth = 1061 9 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 11 LCLVersion = '4.6.0.0' 11 12 OnClose = FormClose 12 13 OnCreate = FormCreate 13 14 OnDestroy = FormDestroy 14 15 OnShow = FormShow 15 LCLVersion = '2.2.6.0'16 16 object PanelLeft: TPanel 17 17 Left = 0 18 Height = 68218 Height = 716 19 19 Top = 0 20 20 Width = 231 … … 25 25 object PanelRight: TPanel 26 26 Left = 806 27 Height = 68227 Height = 716 28 28 Top = 0 29 29 Width = 255 … … 34 34 object Splitter1: TSplitter 35 35 Left = 231 36 Height = 68236 Height = 716 37 37 Top = 0 38 38 Width = 8 … … 40 40 object Splitter2: TSplitter 41 41 Left = 798 42 Height = 68242 Height = 716 43 43 Top = 0 44 44 Width = 8 … … 48 48 object PanelCenter: TPanel 49 49 Left = 239 50 Height = 68250 Height = 716 51 51 Top = 0 52 52 Width = 559 53 53 Align = alClient 54 54 BevelOuter = bvNone 55 ClientHeight = 716 56 ClientWidth = 559 55 57 TabOrder = 4 58 object PanelBottom: TPanel 59 Left = 0 60 Height = 164 61 Top = 552 62 Width = 559 63 Align = alBottom 64 BevelOuter = bvNone 65 TabOrder = 0 66 end 56 67 end 57 68 object MainMenu1: TMainMenu 58 69 Left = 216 59 70 Top = 64 60 object MenuItem 1: TMenuItem71 object MenuItemFile: TMenuItem 61 72 Caption = 'File' 62 73 object MenuItem4: TMenuItem … … 64 75 end 65 76 end 66 object MenuItem5: TMenuItem 77 object MenuItemEdit: TMenuItem 78 Caption = 'Edit' 79 object MenuItem1: TMenuItem 80 Action = Core.AGoToAddress 81 end 82 end 83 object MenuItemView: TMenuItem 67 84 Caption = 'View' 68 85 object MenuItem6: TMenuItem … … 79 96 end 80 97 end 81 object MenuItem 2: TMenuItem98 object MenuItemDebug: TMenuItem 82 99 Caption = 'Debug' 83 100 object MenuItem3: TMenuItem … … 86 103 object MenuItem8: TMenuItem 87 104 Action = Core.APause 105 end 106 object MenuItem2: TMenuItem 107 Action = Core.AReset 108 end 109 object Separator1: TMenuItem 110 Caption = '-' 88 111 end 89 112 object MenuItem13: TMenuItem -
trunk/Forms/FormMain.pas
r2 r5 13 13 MainMenu1: TMainMenu; 14 14 MenuItem1: TMenuItem; 15 MenuItem2: TMenuItem; 16 Separator1: TMenuItem; 17 MenuItemFile: TMenuItem; 15 18 MenuItem10: TMenuItem; 16 19 MenuItem11: TMenuItem; … … 19 22 MenuItem14: TMenuItem; 20 23 MenuItem15: TMenuItem; 21 MenuItem2: TMenuItem; 24 MenuItemEdit: TMenuItem; 25 MenuItemDebug: TMenuItem; 22 26 MenuItem3: TMenuItem; 23 27 MenuItem4: TMenuItem; 24 MenuItem 5: TMenuItem;28 MenuItemView: TMenuItem; 25 29 MenuItem6: TMenuItem; 26 30 MenuItem7: TMenuItem; 27 31 MenuItem8: TMenuItem; 28 32 MenuItem9: TMenuItem; 33 PanelBottom: TPanel; 29 34 PanelLeft: TPanel; 30 35 PanelRight: TPanel; … … 66 71 Core.Core.AViewScreen.Execute; 67 72 Core.Core.AViewDissssembler.Execute; 73 Core.Core.AViewMessages.Execute; 68 74 DockForm(Core.Core.FormScreen, PanelCenter); 69 75 DockForm(Core.Core.FormCpu, PanelRight); 70 76 DockForm(Core.Core.FormDisassembler, PanelLeft); 77 DockForm(Core.Core.FormMessages, PanelBottom); 71 78 end; 72 79 -
trunk/Forms/FormMemory.lfm
r2 r5 8 8 ClientWidth = 1150 9 9 DesignTimePPI = 144 10 LCLVersion = '4.6.0.0' 11 OnCreate = FormCreate 12 OnDestroy = FormDestroy 10 13 OnShow = FormShow 11 LCLVersion = '2.2.6.0'12 14 object ListViewMemory: TListView 13 Left = 814 Height = 8 5015 Top = 816 Width = 11 3417 Align = alC lient15 Left = 0 16 Height = 810 17 Top = 48 18 Width = 1142 19 Align = alCustom 18 20 Anchors = [akTop, akLeft, akBottom] 19 21 BorderSpacing.Around = 8 … … 29 31 item 30 32 Caption = 'ASCII' 31 Width = 3 5633 Width = 364 32 34 end> 33 35 Font.Height = -20 … … 39 41 OnData = ListViewMemoryData 40 42 end 43 object Label1: TLabel 44 Left = 8 45 Height = 26 46 Top = 8 47 Width = 44 48 Caption = 'Area:' 49 end 50 object ComboBoxArea: TComboBox 51 Left = 104 52 Height = 42 53 Top = 0 54 Width = 334 55 ItemHeight = 0 56 Style = csDropDownList 57 TabOrder = 1 58 OnSelect = ComboBoxAreaSelect 59 end 41 60 object Timer1: TTimer 42 61 Interval = 500 -
trunk/Forms/FormMemory.pas
r2 r5 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, ExtCtrls, 7 Memory;7 StdCtrls, Memory, Generics.Collections; 8 8 9 9 type … … 13 13 14 14 TFormMemory = class(TForm) 15 ComboBoxArea: TComboBox; 16 Label1: TLabel; 15 17 ListViewMemory: TListView; 16 18 Timer1: TTimer; 19 procedure ComboBoxAreaSelect(Sender: TObject); 20 procedure FormCreate(Sender: TObject); 21 procedure FormDestroy(Sender: TObject); 17 22 procedure FormShow(Sender: TObject); 18 23 procedure ListViewMemoryData(Sender: TObject; Item: TListItem); 19 24 procedure Timer1Timer(Sender: TObject); 20 p ublic25 private 21 26 Memory: TMemory; 22 27 Size: Integer; 28 public 29 Areas: TObjectList<TMemory>; 30 procedure ReloadAreas; 23 31 procedure Reload; 24 32 end; … … 65 73 procedure TFormMemory.FormShow(Sender: TObject); 66 74 begin 75 ReloadAreas; 76 ComboBoxAreaSelect(nil); 77 end; 78 79 procedure TFormMemory.FormCreate(Sender: TObject); 80 begin 81 Areas := TObjectList<TMemory>.Create(False); 82 end; 83 84 procedure TFormMemory.ComboBoxAreaSelect(Sender: TObject); 85 begin 86 if ComboBoxArea.ItemIndex >= 0 then begin 87 Memory := TMemory(ComboBoxArea.Items.Objects[ComboBoxArea.ItemIndex]); 88 Size := Memory.Size; 89 end else begin 90 Memory := nil; 91 Size := 0; 92 end; 67 93 Reload; 94 end; 95 96 procedure TFormMemory.FormDestroy(Sender: TObject); 97 begin 98 FreeAndNil(Areas); 68 99 end; 69 100 … … 73 104 end; 74 105 106 procedure TFormMemory.ReloadAreas; 107 var 108 I: Integer; 109 begin 110 ComboBoxArea.Items.BeginUpdate; 111 try 112 while ComboBoxArea.Items.Count > Areas.Count do 113 ComboBoxArea.Items.Delete(ComboBoxArea.Items.Count - 1); 114 while ComboBoxArea.Items.Count < Areas.Count do 115 ComboBoxArea.Items.Add(''); 116 for I := 0 to Areas.Count - 1 do begin 117 ComboBoxArea.Items.Strings[I] := Areas[I].Title; 118 ComboBoxArea.Items.Objects[I] := Areas[I]; 119 end; 120 if (ComboBoxArea.ItemIndex = -1) and (ComboBoxArea.Items.Count > 0) then 121 ComboBoxArea.ItemIndex := 0; 122 finally 123 ComboBoxArea.Items.EndUpdate; 124 end; 125 end; 126 75 127 end. 76 128
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/mzxemu/chrome/site/your_project_logo.png)