mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 11:00:37 +02:00
codetools: clean up
This commit is contained in:
parent
ceaec5975a
commit
48401c65c8
@ -87,7 +87,6 @@ type
|
|||||||
FFPCOptions: string;
|
FFPCOptions: string;
|
||||||
FFPCPath: string;
|
FFPCPath: string;
|
||||||
FFPCSrcDir: string;
|
FFPCSrcDir: string;
|
||||||
FFPCUnitPath: string;
|
|
||||||
FLazarusSrcDir: string;
|
FLazarusSrcDir: string;
|
||||||
FLazarusSrcOptions: string;
|
FLazarusSrcOptions: string;
|
||||||
FLCLWidgetType: string;
|
FLCLWidgetType: string;
|
||||||
@ -101,7 +100,6 @@ type
|
|||||||
procedure SetFPCOptions(const AValue: string);
|
procedure SetFPCOptions(const AValue: string);
|
||||||
procedure SetFPCPath(const AValue: string);
|
procedure SetFPCPath(const AValue: string);
|
||||||
procedure SetFPCSrcDir(const AValue: string);
|
procedure SetFPCSrcDir(const AValue: string);
|
||||||
procedure SetFPCUnitPath(const AValue: string);
|
|
||||||
procedure SetLazarusSrcDir(const AValue: string);
|
procedure SetLazarusSrcDir(const AValue: string);
|
||||||
procedure SetLCLWidgetType(const AValue: string);
|
procedure SetLCLWidgetType(const AValue: string);
|
||||||
procedure SetLazarusSrcOptions(const AValue: string);
|
procedure SetLazarusSrcOptions(const AValue: string);
|
||||||
@ -131,7 +129,6 @@ type
|
|||||||
property TargetOS: string read FTargetOS write SetTargetOS;
|
property TargetOS: string read FTargetOS write SetTargetOS;
|
||||||
property TargetProcessor: string read FTargetProcessor write SetTargetProcessor;
|
property TargetProcessor: string read FTargetProcessor write SetTargetProcessor;
|
||||||
property TestPascalFile: string read FTestPascalFile write SetTestPascalFile; // points to an empty unit
|
property TestPascalFile: string read FTestPascalFile write SetTestPascalFile; // points to an empty unit
|
||||||
property FPCUnitPath: string read FFPCUnitPath write SetFPCUnitPath;
|
|
||||||
property PPUExt: string read FPPUExt write SetPPUExt;
|
property PPUExt: string read FPPUExt write SetPPUExt;
|
||||||
property SourceCaches: TFPCSourceCaches read FSourceCaches;
|
property SourceCaches: TFPCSourceCaches read FSourceCaches;
|
||||||
property ConfigCaches: TPCTargetConfigCaches read FConfigCaches;
|
property ConfigCaches: TPCTargetConfigCaches read FConfigCaches;
|
||||||
@ -176,13 +173,6 @@ begin
|
|||||||
Modified:=true;
|
Modified:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCodeToolsOptions.SetFPCUnitPath(const AValue: string);
|
|
||||||
begin
|
|
||||||
if FFPCUnitPath=AValue then exit;
|
|
||||||
FFPCUnitPath:=AValue;
|
|
||||||
Modified:=true;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TCodeToolsOptions.SetLazarusSrcDir(const AValue: string);
|
procedure TCodeToolsOptions.SetLazarusSrcDir(const AValue: string);
|
||||||
var
|
var
|
||||||
NewValue: String;
|
NewValue: String;
|
||||||
@ -300,7 +290,6 @@ begin
|
|||||||
XMLConfig.SetDeleteValue(Path+'FPC/Options/Value',FPCOptions,'');
|
XMLConfig.SetDeleteValue(Path+'FPC/Options/Value',FPCOptions,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/CompilerPath/Value',FPCPath,'');
|
XMLConfig.SetDeleteValue(Path+'FPC/CompilerPath/Value',FPCPath,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/SrcDir/Value',FPCSrcDir,'');
|
XMLConfig.SetDeleteValue(Path+'FPC/SrcDir/Value',FPCSrcDir,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/UnitPath/Value',FPCUnitPath,'');
|
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/TargetOS/Value',TargetOS,'');
|
XMLConfig.SetDeleteValue(Path+'FPC/TargetOS/Value',TargetOS,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/TargetProcessor/Value',TargetProcessor,'');
|
XMLConfig.SetDeleteValue(Path+'FPC/TargetProcessor/Value',TargetProcessor,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'FPC/PPUExt/Value',PPUExt,'.ppu');
|
XMLConfig.SetDeleteValue(Path+'FPC/PPUExt/Value',PPUExt,'.ppu');
|
||||||
@ -316,18 +305,10 @@ end;
|
|||||||
|
|
||||||
procedure TCodeToolsOptions.LoadFromXMLConfig(XMLConfig: TXMLConfig;
|
procedure TCodeToolsOptions.LoadFromXMLConfig(XMLConfig: TXMLConfig;
|
||||||
const Path: string);
|
const Path: string);
|
||||||
var
|
|
||||||
i: Integer;
|
|
||||||
UnitPath: string;
|
|
||||||
begin
|
begin
|
||||||
FPCOptions:=XMLConfig.GetValue(Path+'FPC/Options/Value','');
|
FPCOptions:=XMLConfig.GetValue(Path+'FPC/Options/Value','');
|
||||||
FPCPath:=XMLConfig.GetValue(Path+'FPC/CompilerPath/Value','');
|
FPCPath:=XMLConfig.GetValue(Path+'FPC/CompilerPath/Value','');
|
||||||
FPCSrcDir:=XMLConfig.GetValue(Path+'FPC/SrcDir/Value','');
|
FPCSrcDir:=XMLConfig.GetValue(Path+'FPC/SrcDir/Value','');
|
||||||
UnitPath:=XMLConfig.GetValue(Path+'FPC/UnitPath/Value','');
|
|
||||||
for i:=1 to length(UnitPath) do
|
|
||||||
if (UnitPath[i] in [#0..#8,#10..#31]) then
|
|
||||||
UnitPath[i]:=';';
|
|
||||||
FPCUnitPath:=UnitPath;
|
|
||||||
TargetOS:=XMLConfig.GetValue(Path+'FPC/TargetOS/Value','');
|
TargetOS:=XMLConfig.GetValue(Path+'FPC/TargetOS/Value','');
|
||||||
TargetProcessor:=XMLConfig.GetValue(Path+'FPC/TargetProcessor/Value','');
|
TargetProcessor:=XMLConfig.GetValue(Path+'FPC/TargetProcessor/Value','');
|
||||||
PPUExt:=XMLConfig.GetValue(Path+'FPC/PPUExt/Value','.ppu');
|
PPUExt:=XMLConfig.GetValue(Path+'FPC/PPUExt/Value','.ppu');
|
||||||
|
Loading…
Reference in New Issue
Block a user