summaryrefslogtreecommitdiff
path: root/examples/apps/ide/src/frm_debug.pas
blob: 267871c2a98347270237a98a4225bbadc0376d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
unit frm_debug;

{$mode objfpc}{$H+}

interface

uses
  SysUtils, Classes, fpg_base, fpg_main, fpg_form, fpg_tab, fpg_grid;

type

  TDebugForm = class(TfpgForm)
  private
    {@VFD_HEAD_BEGIN: DebugForm}
    PageControl1: TfpgPageControl;
    TabSheet1: TfpgTabSheet;
    TabSheet2: TfpgTabSheet;
    TabSheet3: TfpgTabSheet;
    TabSheet4: TfpgTabSheet;
    TabSheet5: TfpgTabSheet;
    TabSheet6: TfpgTabSheet;
    TabSheet7: TfpgTabSheet;
    Grid1: TfpgStringGrid;
    Grid2: TfpgStringGrid;
    Grid3: TfpgStringGrid;
    {@VFD_HEAD_END: DebugForm}
  public
    procedure AfterCreate; override;
  end;

{@VFD_NEWFORM_DECL}

var
  DebugForm: TDebugForm;

implementation

{@VFD_NEWFORM_IMPL}

procedure TDebugForm.AfterCreate;
begin
  {%region 'Auto-generated GUI code' -fold}
  {@VFD_BODY_BEGIN: DebugForm}
  Name := 'DebugForm';
  SetPosition(690, 193, 512, 247);
  WindowTitle := 'Debug Window';
  Hint := '';

  PageControl1 := TfpgPageControl.Create(self);
  with PageControl1 do
  begin
    Name := 'PageControl1';
    SetPosition(4, 4, 506, 240);
    ActivePageIndex := 0;
    Hint := '';
    TabOrder := 0;
  end;

  TabSheet1 := TfpgTabSheet.Create(PageControl1);
  with TabSheet1 do
  begin
    Name := 'TabSheet1';
    SetPosition(3, 24, 500, 213);
    Text := 'Watches';
  end;

  TabSheet2 := TfpgTabSheet.Create(PageControl1);
  with TabSheet2 do
  begin
    Name := 'TabSheet2';
    SetPosition(3, 24, 500, 213);
    Text := 'BreakPoints';
  end;

  TabSheet3 := TfpgTabSheet.Create(PageControl1);
  with TabSheet3 do
  begin
    Name := 'TabSheet3';
    SetPosition(3, 24, 500, 213);
    Text := 'Local Vars';
  end;

  TabSheet4 := TfpgTabSheet.Create(PageControl1);
  with TabSheet4 do
  begin
    Name := 'TabSheet4';
    SetPosition(3, 24, 500, 213);
    Text := 'Call Stack';
  end;

  TabSheet5 := TfpgTabSheet.Create(PageControl1);
  with TabSheet5 do
  begin
    Name := 'TabSheet5';
    SetPosition(3, 24, 500, 213);
    Text := 'Registers';
  end;

  TabSheet6 := TfpgTabSheet.Create(PageControl1);
  with TabSheet6 do
  begin
    Name := 'TabSheet6';
    SetPosition(3, 24, 500, 213);
    Text := 'Asm';
  end;

  TabSheet7 := TfpgTabSheet.Create(PageControl1);
  with TabSheet7 do
  begin
    Name := 'TabSheet7';
    SetPosition(3, 24, 500, 213);
    Text := 'GDB output';
  end;

  Grid1 := TfpgStringGrid.Create(TabSheet1);
  with Grid1 do
  begin
    Name := 'Grid1';
    SetPosition(0, 4, 496, 204);
    AddColumn('Expression', 100, taLeftJustify);
    AddColumn('Value', 350, taLeftJustify);
    FontDesc := '#Grid';
    HeaderFontDesc := '#GridHeader';
    Hint := '';
    RowCount := 5;
    RowSelect := False;
    TabOrder := 0;
  end;

  Grid2 := TfpgStringGrid.Create(TabSheet2);
  with Grid2 do
  begin
    Name := 'Grid2';
    SetPosition(0, 4, 496, 204);
    AddColumn('State', 50, taLeftJustify);
    AddColumn('Filename/Addres', 120, taLeftJustify);
    AddColumn('Line/Length', 85, taLeftJustify);
    AddColumn('Condition', 70, taLeftJustify);
    AddColumn('Action', 50, taLeftJustify);
    AddColumn('Count', 50, taLeftJustify);
    AddColumn('Group', 80, taLeftJustify);
    FontDesc := '#Grid';
    HeaderFontDesc := '#GridHeader';
    Hint := '';
    RowCount := 5;
    RowSelect := False;
    TabOrder := 0;
  end;

  Grid3 := TfpgStringGrid.Create(TabSheet3);
  with Grid3 do
  begin
    Name := 'Grid3';
    SetPosition(0, 4, 496, 204);
    AddColumn('Name', 150, taLeftJustify);
    AddColumn('Value', 250, taLeftJustify);
    FontDesc := '#Grid';
    HeaderFontDesc := '#GridHeader';
    Hint := '';
    RowCount := 5;
    RowSelect := False;
    TabOrder := 0;
  end;

  {@VFD_BODY_END: DebugForm}
  {%endregion}
end;


end.