IDE: compiler options: immediate invalidate when changing paths

git-svn-id: trunk@14426 -
This commit is contained in:
mattias 2008-03-05 12:33:35 +00:00
parent 8d42e3ebab
commit b0e8ed453a
3 changed files with 5 additions and 3 deletions

View File

@ -339,9 +339,9 @@ begin
GetCompilerOptions(nil); GetCompilerOptions(nil);
end; end;
{------------------------------------------------------------------------------} {------------------------------------------------------------------------------
{ TfrmCompilerOptions ButtonOKClicked } TfrmCompilerOptions ButtonOKClicked
{------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TfrmCompilerOptions.ButtonOKClicked(Sender: TObject); procedure TfrmCompilerOptions.ButtonOKClicked(Sender: TObject);
begin begin
// Accept any changes // Accept any changes

View File

@ -1598,6 +1598,7 @@ begin
FAutoCreateForms := true; FAutoCreateForms := true;
FBookmarks := TProjectBookmarkList.Create; FBookmarks := TProjectBookmarkList.Create;
CompilerOptions := TProjectCompilerOptions.Create(Self); CompilerOptions := TProjectCompilerOptions.Create(Self);
CompilerOptions.ParsedOpts.InvalidateParseOnChange:=true;
FDefineTemplates:=TProjectDefineTemplates.Create(Self); FDefineTemplates:=TProjectDefineTemplates.Create(Self);
FFlags:=DefaultProjectFlags; FFlags:=DefaultProjectFlags;
fIconPath := ''; fIconPath := '';

View File

@ -2377,6 +2377,7 @@ begin
FMacros.MarkUnhandledMacros:=false; FMacros.MarkUnhandledMacros:=false;
FMacros.OnSubstitution:=@OnMacroListSubstitution; FMacros.OnSubstitution:=@OnMacroListSubstitution;
FCompilerOptions:=TPkgCompilerOptions.Create(Self); FCompilerOptions:=TPkgCompilerOptions.Create(Self);
FCompilerOptions.ParsedOpts.InvalidateParseOnChange:=true;
FCompilerOptions.ParsedOpts.OnLocalSubstitute:=@SubstitutePkgMacro; FCompilerOptions.ParsedOpts.OnLocalSubstitute:=@SubstitutePkgMacro;
FCompilerOptions.ParsedOpts.GetWritableOutputDirectory:= FCompilerOptions.ParsedOpts.GetWritableOutputDirectory:=
@GetWritableOutputDirectory; @GetWritableOutputDirectory;