IDE: compiler options: fixed setting modified flag when changing create makefile

git-svn-id: trunk@36219 -
This commit is contained in:
mattias 2012-03-22 14:19:35 +00:00
parent cc38536b22
commit 092067fc90
2 changed files with 9 additions and 2 deletions

View File

@ -445,6 +445,7 @@ type
fCompilerMessages: TCompilerMessagesList; fCompilerMessages: TCompilerMessagesList;
procedure OnItemChanged(Sender: TObject); procedure OnItemChanged(Sender: TObject);
procedure SetCreateMakefileOnBuild(AValue: boolean);
protected protected
function GetCompilerPath: String; function GetCompilerPath: String;
function GetBaseDirectory: string; function GetBaseDirectory: string;
@ -582,7 +583,7 @@ type
property ExecuteBefore: TCompilationToolOptions read fExecuteBefore; property ExecuteBefore: TCompilationToolOptions read fExecuteBefore;
property ExecuteAfter: TCompilationToolOptions read fExecuteAfter; property ExecuteAfter: TCompilationToolOptions read fExecuteAfter;
property CreateMakefileOnBuild: boolean read FCreateMakefileOnBuild property CreateMakefileOnBuild: boolean read FCreateMakefileOnBuild
write FCreateMakefileOnBuild; write SetCreateMakefileOnBuild;
// compiler messages // compiler messages
property CompilerMessages: TCompilerMessagesList read fCompilerMessages; property CompilerMessages: TCompilerMessagesList read fCompilerMessages;
@ -1177,6 +1178,13 @@ begin
IncreaseChangeStamp; IncreaseChangeStamp;
end; end;
procedure TBaseCompilerOptions.SetCreateMakefileOnBuild(AValue: boolean);
begin
if FCreateMakefileOnBuild=AValue then Exit;
FCreateMakefileOnBuild:=AValue;
IncreaseChangeStamp;
end;
function TBaseCompilerOptions.GetCompilerPath: String; function TBaseCompilerOptions.GetCompilerPath: String;
begin begin
Result:=ParsedOpts.Values[pcosCompilerPath].UnparsedValue; Result:=ParsedOpts.Values[pcosCompilerPath].UnparsedValue;

View File

@ -45,7 +45,6 @@ type
lblRunIfExecAfter: TLabel; lblRunIfExecAfter: TLabel;
lblRunIfExecBefore: TLabel; lblRunIfExecBefore: TLabel;
private private
{ private declarations }
public public
function GetTitle: string; override; function GetTitle: string; override;
procedure Setup(ADialog: TAbstractOptionsEditorDialog); override; procedure Setup(ADialog: TAbstractOptionsEditorDialog); override;