mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 16:16:00 +02:00
ide: add dummy debugger options class make filtering IDE options work
git-svn-id: trunk@30679 -
This commit is contained in:
parent
d9366ecdb7
commit
0fb8976945
@ -27,7 +27,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, Graphics, Forms, StdCtrls, Spin, CheckLst,
|
Classes, SysUtils, FileUtil, Graphics, Forms, StdCtrls, Spin, CheckLst,
|
||||||
ComCtrls, LCLType, LCLIntf, ColorBox, Debugger, LazarusIDEStrConsts,
|
ComCtrls, LCLType, LCLIntf, ColorBox, Debugger, LazarusIDEStrConsts,
|
||||||
IDEOptionsIntf, EnvironmentOpts;
|
IDEOptionsIntf, EnvironmentOpts, BaseDebugManager;
|
||||||
|
|
||||||
type
|
type
|
||||||
{ TDebuggerEventLogOptionsFrame }
|
{ TDebuggerEventLogOptionsFrame }
|
||||||
@ -235,7 +235,7 @@ procedure TDebuggerEventLogOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptio
|
|||||||
var
|
var
|
||||||
EventType: TDBGEventType;
|
EventType: TDBGEventType;
|
||||||
begin
|
begin
|
||||||
with AOptions as TEnvironmentOptions do
|
with EnvironmentOptions do
|
||||||
begin
|
begin
|
||||||
chkClearLogOnRun.Checked := DebuggerEventLogClearOnRun;
|
chkClearLogOnRun.Checked := DebuggerEventLogClearOnRun;
|
||||||
chkLimitLinecount.Checked := DebuggerEventLogCheckLineLimit;
|
chkLimitLinecount.Checked := DebuggerEventLogCheckLineLimit;
|
||||||
@ -264,7 +264,7 @@ procedure TDebuggerEventLogOptionsFrame.WriteSettings(AOptions: TAbstractIDEOpti
|
|||||||
var
|
var
|
||||||
EventType: TDBGEventType;
|
EventType: TDBGEventType;
|
||||||
begin
|
begin
|
||||||
with AOptions as TEnvironmentOptions do
|
with EnvironmentOptions do
|
||||||
begin
|
begin
|
||||||
DebuggerEventLogClearOnRun := chkClearLogOnRun.Checked;
|
DebuggerEventLogClearOnRun := chkClearLogOnRun.Checked;
|
||||||
DebuggerEventLogCheckLineLimit := chkLimitLinecount.Checked;
|
DebuggerEventLogCheckLineLimit := chkLimitLinecount.Checked;
|
||||||
@ -284,7 +284,7 @@ end;
|
|||||||
|
|
||||||
class function TDebuggerEventLogOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
class function TDebuggerEventLogOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
||||||
begin
|
begin
|
||||||
Result := TEnvironmentOptions;
|
Result := TDebuggerOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@ -312,9 +312,9 @@ end;
|
|||||||
procedure TDebuggerGeneralOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
procedure TDebuggerGeneralOptionsFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
||||||
begin
|
begin
|
||||||
ClearDbgProperties;
|
ClearDbgProperties;
|
||||||
with AOptions as TEnvironmentOptions do
|
with EnvironmentOptions do
|
||||||
begin
|
begin
|
||||||
TEnvironmentOptions(AOptions).ObjectInspectorOptions.AssignTo(PropertyGrid);
|
ObjectInspectorOptions.AssignTo(PropertyGrid);
|
||||||
FOldDebuggerPathAndParams := DebuggerFilename;
|
FOldDebuggerPathAndParams := DebuggerFilename;
|
||||||
cmbDebuggerPath.Text := FOldDebuggerPathAndParams;
|
cmbDebuggerPath.Text := FOldDebuggerPathAndParams;
|
||||||
FetchDebuggerClass;
|
FetchDebuggerClass;
|
||||||
@ -326,7 +326,7 @@ procedure TDebuggerGeneralOptionsFrame.WriteSettings(AOptions: TAbstractIDEOptio
|
|||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
with AOptions as TEnvironmentOptions do
|
with EnvironmentOptions do
|
||||||
begin
|
begin
|
||||||
DebuggerFilename := cmbDebuggerPath.Text;
|
DebuggerFilename := cmbDebuggerPath.Text;
|
||||||
DebuggerFileHistory.Assign(cmbDebuggerPath.Items);
|
DebuggerFileHistory.Assign(cmbDebuggerPath.Items);
|
||||||
@ -346,7 +346,7 @@ end;
|
|||||||
|
|
||||||
class function TDebuggerGeneralOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
class function TDebuggerGeneralOptionsFrame.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
||||||
begin
|
begin
|
||||||
Result := TEnvironmentOptions;
|
Result := TDebuggerOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@ -195,7 +195,7 @@ end;
|
|||||||
|
|
||||||
class function TDebuggerLanguageExceptionsOptions.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
class function TDebuggerLanguageExceptionsOptions.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := TDebuggerOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@ -113,7 +113,7 @@ end;
|
|||||||
|
|
||||||
class function TDebuggerSignalsOptions.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
class function TDebuggerSignalsOptions.SupportedOptionsClass: TAbstractIDEOptionsClass;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := TDebuggerOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@ -188,6 +188,7 @@ procedure RegisterDebugger(const ADebuggerClass: TDebuggerClass);
|
|||||||
|
|
||||||
var
|
var
|
||||||
DebugBoss: TBaseDebugManager;
|
DebugBoss: TBaseDebugManager;
|
||||||
|
DebuggerOptions: TDebuggerOptions = nil;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -231,7 +232,7 @@ end;
|
|||||||
|
|
||||||
class function TDebuggerOptions.GetInstance: TAbstractIDEOptions;
|
class function TDebuggerOptions.GetInstance: TAbstractIDEOptions;
|
||||||
begin
|
begin
|
||||||
Result := nil;
|
Result := DebuggerOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@ -1305,6 +1305,8 @@ begin
|
|||||||
CodeExplorerOptions.OnAfterWrite := @DoCodeExplorerOptionsAfterWrite;
|
CodeExplorerOptions.OnAfterWrite := @DoCodeExplorerOptionsAfterWrite;
|
||||||
CodeExplorerOptions.Load;
|
CodeExplorerOptions.Load;
|
||||||
|
|
||||||
|
DebuggerOptions := TDebuggerOptions.Create;
|
||||||
|
|
||||||
MainBuildBoss.SetupInputHistories;
|
MainBuildBoss.SetupInputHistories;
|
||||||
CompileProgress.SetEnabled(EnvironmentOptions.ShowCompileDialog);
|
CompileProgress.SetEnabled(EnvironmentOptions.ShowCompileDialog);
|
||||||
|
|
||||||
@ -1511,6 +1513,7 @@ begin
|
|||||||
FreeThenNil(CodeExplorerOptions);
|
FreeThenNil(CodeExplorerOptions);
|
||||||
FreeThenNil(MiscellaneousOptions);
|
FreeThenNil(MiscellaneousOptions);
|
||||||
FreeThenNil(EditorOpts);
|
FreeThenNil(EditorOpts);
|
||||||
|
FreeThenNil(DebuggerOptions);
|
||||||
IDEWindowCreators.OnShowForm:=nil;
|
IDEWindowCreators.OnShowForm:=nil;
|
||||||
FreeThenNil(EnvironmentOptions);
|
FreeThenNil(EnvironmentOptions);
|
||||||
FreeThenNil(IDECommandScopes);
|
FreeThenNil(IDECommandScopes);
|
||||||
|
Loading…
Reference in New Issue
Block a user