|
@@ -346,7 +346,8 @@ end;
|
|
procedure TIDEApp.DoDebuggerSwitch;
|
|
procedure TIDEApp.DoDebuggerSwitch;
|
|
var R,R2: TRect;
|
|
var R,R2: TRect;
|
|
D: PCenterDialog;
|
|
D: PCenterDialog;
|
|
- RB1,RB2: PRadioButtons;
|
|
|
|
|
|
+ RB : PRadioButtons;
|
|
|
|
+ CB: PCheckBoxes;
|
|
IL2: PInputLine;
|
|
IL2: PInputLine;
|
|
L,I: longint;
|
|
L,I: longint;
|
|
Items: PSItem;
|
|
Items: PSItem;
|
|
@@ -361,23 +362,26 @@ begin
|
|
Items:=nil;
|
|
Items:=nil;
|
|
for I:=DebugInfoSwitches^.ItemCount-1 downto 0 do
|
|
for I:=DebugInfoSwitches^.ItemCount-1 downto 0 do
|
|
Items:=NewSItem(DebugInfoSwitches^.ItemName(I), Items);
|
|
Items:=NewSItem(DebugInfoSwitches^.ItemName(I), Items);
|
|
- New(RB1, Init(R2, Items));
|
|
|
|
|
|
+ New(RB, Init(R2, Items));
|
|
L:=DebugInfoSwitches^.GetCurrSel;
|
|
L:=DebugInfoSwitches^.GetCurrSel;
|
|
- RB1^.SetData(L);
|
|
|
|
- Insert(RB1);
|
|
|
|
|
|
+ RB^.SetData(L);
|
|
|
|
+ Insert(RB);
|
|
R2.Copy(R); Inc(R2.A.Y); R2.B.Y:=R2.A.Y+1;
|
|
R2.Copy(R); Inc(R2.A.Y); R2.B.Y:=R2.A.Y+1;
|
|
- Insert(New(PLabel, Init(R2, 'Debugging information', RB1)));
|
|
|
|
|
|
+ Insert(New(PLabel, Init(R2, 'Debugging information', RB)));
|
|
|
|
|
|
R2.Copy(R); Inc(R2.A.Y,2+DebugInfoSwitches^.ItemCount+2); R2.B.Y:=R2.A.Y+ProfileInfoSwitches^.ItemCount;
|
|
R2.Copy(R); Inc(R2.A.Y,2+DebugInfoSwitches^.ItemCount+2); R2.B.Y:=R2.A.Y+ProfileInfoSwitches^.ItemCount;
|
|
Items:=nil;
|
|
Items:=nil;
|
|
for I:=ProfileInfoSwitches^.ItemCount-1 downto 0 do
|
|
for I:=ProfileInfoSwitches^.ItemCount-1 downto 0 do
|
|
Items:=NewSItem(ProfileInfoSwitches^.ItemName(I), Items);
|
|
Items:=NewSItem(ProfileInfoSwitches^.ItemName(I), Items);
|
|
- New(RB2, Init(R2, Items));
|
|
|
|
|
|
+ New(CB, Init(R2, Items));
|
|
L:=ProfileInfoSwitches^.GetCurrSel;
|
|
L:=ProfileInfoSwitches^.GetCurrSel;
|
|
- RB2^.SetData(L);
|
|
|
|
- Insert(RB2);
|
|
|
|
|
|
+ If L = 1 then
|
|
|
|
+ CB^.SetData(3)
|
|
|
|
+ else
|
|
|
|
+ CB^.SetData(1);
|
|
|
|
+ Insert(CB);
|
|
R2.Copy(R); Inc(R2.A.Y,6); R2.B.Y:=R2.A.Y+1;
|
|
R2.Copy(R); Inc(R2.A.Y,6); R2.B.Y:=R2.A.Y+1;
|
|
- Insert(New(PLabel, Init(R2, 'Profiling Switches', RB2)));
|
|
|
|
|
|
+ Insert(New(PLabel, Init(R2, 'Profiling Switches', CB)));
|
|
|
|
|
|
{custom }
|
|
{custom }
|
|
R2.A.Y:=R2.B.Y+2;
|
|
R2.A.Y:=R2.B.Y+2;
|
|
@@ -389,17 +393,24 @@ begin
|
|
Insert(New(PLabel, Init(R2,'~A~dditional compiler args', IL2)));
|
|
Insert(New(PLabel, Init(R2,'~A~dditional compiler args', IL2)));
|
|
end;
|
|
end;
|
|
InsertButtons(D);
|
|
InsertButtons(D);
|
|
- RB1^.Select;
|
|
|
|
|
|
+ RB^.Select;
|
|
if Desktop^.ExecView(D)=cmOK then
|
|
if Desktop^.ExecView(D)=cmOK then
|
|
begin
|
|
begin
|
|
- DebugInfoSwitches^.SetCurrSel(RB1^.Value);
|
|
|
|
- ProfileInfoSwitches^.SetCurrSel(RB2^.Value);
|
|
|
|
|
|
+ DebugInfoSwitches^.SetCurrSel(RB^.Value);
|
|
|
|
+ Writeln(':',CB^.Value,':');
|
|
|
|
+ readln;
|
|
|
|
+ if CB^.Value = 3 then
|
|
|
|
+ I := 1
|
|
|
|
+ else
|
|
|
|
+ I := 0;
|
|
|
|
+ ProfileInfoSwitches^.SetCurrSel(I);
|
|
CustomArg[SwitchesMode]:=IL2^.Data^;
|
|
CustomArg[SwitchesMode]:=IL2^.Data^;
|
|
end;
|
|
end;
|
|
Dispose(D, Done);
|
|
Dispose(D, Done);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
procedure TIDEApp.Directories;
|
|
procedure TIDEApp.Directories;
|
|
var R,R2: TRect;
|
|
var R,R2: TRect;
|
|
D: PCenterDialog;
|
|
D: PCenterDialog;
|
|
@@ -713,7 +724,12 @@ end;
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.13 1999-02-10 09:52:43 pierre
|
|
|
|
|
|
+ Revision 1.14 1999-02-16 10:43:56 peter
|
|
|
|
+ * use -dGDB for the compiler
|
|
|
|
+ * only use gdb_file when -dDEBUG is used
|
|
|
|
+ * profiler switch is now a toggle instead of radiobutton
|
|
|
|
+
|
|
|
|
+ Revision 1.13 1999/02/10 09:52:43 pierre
|
|
* MemorySizeSwitches -> MemorySwitches (were duplicates)
|
|
* MemorySizeSwitches -> MemorySwitches (were duplicates)
|
|
|
|
|
|
Revision 1.12 1999/02/08 17:41:34 pierre
|
|
Revision 1.12 1999/02/08 17:41:34 pierre
|