mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:39:09 +02:00
lazbuild: fixed using lcl questiondlg
git-svn-id: trunk@36201 -
This commit is contained in:
parent
cfae3de029
commit
2a90441323
@ -1074,7 +1074,7 @@ begin
|
|||||||
if (ANode<>nil) and (not IgnoreAll) then begin
|
if (ANode<>nil) and (not IgnoreAll) then begin
|
||||||
DebugLn(['TBuildManager.CheckUnitPathForAmbiguousPascalFiles CurUnitName="',CurUnitName,'" CurFilename="',CurFilename,'" OtherUnitName="',PUnitFile(ANode.Data)^.FileUnitName,'" OtherFilename="',PUnitFile(ANode.Data)^.Filename,'"']);
|
DebugLn(['TBuildManager.CheckUnitPathForAmbiguousPascalFiles CurUnitName="',CurUnitName,'" CurFilename="',CurFilename,'" OtherUnitName="',PUnitFile(ANode.Data)^.FileUnitName,'" OtherFilename="',PUnitFile(ANode.Data)^.Filename,'"']);
|
||||||
// pascal unit exists twice
|
// pascal unit exists twice
|
||||||
Result:=QuestionDlg(lisAmbiguousUnitFound2,
|
Result:=IDEQuestionDialog(lisAmbiguousUnitFound2,
|
||||||
Format(lisTheUnitExistsTwiceInTheUnitPathOfThe, [CurUnitName,
|
Format(lisTheUnitExistsTwiceInTheUnitPathOfThe, [CurUnitName,
|
||||||
ContextDescription])
|
ContextDescription])
|
||||||
+#13
|
+#13
|
||||||
@ -1083,7 +1083,7 @@ begin
|
|||||||
+'2. "'+CurFilename+'"'#13
|
+'2. "'+CurFilename+'"'#13
|
||||||
+#13
|
+#13
|
||||||
+lisHintCheckIfTwoPackagesContainAUnitWithTheSameName,
|
+lisHintCheckIfTwoPackagesContainAUnitWithTheSameName,
|
||||||
mtWarning, [mrIgnore, mrYesToAll, lisIgnoreAll, mrAbort], 0);
|
mtWarning, [mrIgnore, mrYesToAll, lisIgnoreAll, mrAbort]);
|
||||||
case Result of
|
case Result of
|
||||||
mrIgnore: ;
|
mrIgnore: ;
|
||||||
mrYesToAll: IgnoreAll:=true;
|
mrYesToAll: IgnoreAll:=true;
|
||||||
|
@ -37,7 +37,7 @@ uses
|
|||||||
KeywordFuncLists, CodeToolManager, FileProcs, DefineTemplates,
|
KeywordFuncLists, CodeToolManager, FileProcs, DefineTemplates,
|
||||||
CodeToolsStructs,
|
CodeToolsStructs,
|
||||||
// IDEIntf
|
// IDEIntf
|
||||||
ProjectIntf, MacroIntf, IDEExternToolIntf, LazIDEIntf,
|
ProjectIntf, MacroIntf, IDEExternToolIntf, LazIDEIntf, IDEDialogs,
|
||||||
// IDE
|
// IDE
|
||||||
Project, PackageSystem, ExtToolEditDlg, IDEProcs, EnvironmentOpts,
|
Project, PackageSystem, ExtToolEditDlg, IDEProcs, EnvironmentOpts,
|
||||||
LazarusIDEStrConsts, PackageDefs, CompilerOptions, TransferMacros, LazConf;
|
LazarusIDEStrConsts, PackageDefs, CompilerOptions, TransferMacros, LazConf;
|
||||||
@ -222,8 +222,8 @@ begin
|
|||||||
AddWarning(Title + ' ' + Warning);
|
AddWarning(Title + ' ' + Warning);
|
||||||
if ErrorMsg <> '' then
|
if ErrorMsg <> '' then
|
||||||
begin
|
begin
|
||||||
Result := QuestionDlg(lisCCOInvalidSearchPath, Title + ' ' + ErrorMsg, mtError,
|
Result := IDEQuestionDialog(lisCCOInvalidSearchPath, Title + ' ' + ErrorMsg, mtError,
|
||||||
[mrIgnore, lisCCOSkip, mrAbort], 0);
|
[mrIgnore, lisCCOSkip, mrAbort]);
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
if Warning = '' then
|
if Warning = '' then
|
||||||
@ -263,9 +263,9 @@ begin
|
|||||||
CheckIfFileIsExecutable(CompilerFilename);
|
CheckIfFileIsExecutable(CompilerFilename);
|
||||||
except
|
except
|
||||||
on e: Exception do begin
|
on e: Exception do begin
|
||||||
Result:=QuestionDlg(lisCCOInvalidCompiler,
|
Result:=IDEQuestionDialog(lisCCOInvalidCompiler,
|
||||||
Format(lisCCOCompilerNotAnExe,[CompilerFilename,#13,E.Message]),
|
Format(lisCCOCompilerNotAnExe,[CompilerFilename,#13,E.Message]),
|
||||||
mtError,[mrIgnore,lisCCOSkip,mrAbort],0);
|
mtError,[mrIgnore,lisCCOSkip,mrAbort]);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -343,12 +343,11 @@ begin
|
|||||||
if s = '' then
|
if s = '' then
|
||||||
Exit(mrOk);
|
Exit(mrOk);
|
||||||
|
|
||||||
MsgResult:=QuestionDlg(lisMissingEvents,
|
MsgResult:=IDEQuestionDialog(lisMissingEvents,
|
||||||
Format(lisTheFollowingMethodsUsedByAreNotInTheSourceRemoveTh, [DbgSName(
|
Format(lisTheFollowingMethodsUsedByAreNotInTheSourceRemoveTh, [DbgSName(
|
||||||
RootComponent), #13, PascalBuffer.Filename, #13, #13, s, #13])
|
RootComponent), #13, PascalBuffer.Filename, #13, #13, s, #13])
|
||||||
,mtConfirmation,
|
,mtConfirmation,
|
||||||
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrCancel],
|
[mrYes, lisRemoveThem, mrIgnore, lisKeepThemAndContinue, mrCancel]);
|
||||||
0);
|
|
||||||
if MsgResult=mrYes then begin
|
if MsgResult=mrYes then begin
|
||||||
ClearDanglingEvents(ListOfPInstancePropInfo);
|
ClearDanglingEvents(ListOfPInstancePropInfo);
|
||||||
ComponentModified:=true;
|
ComponentModified:=true;
|
||||||
|
@ -47,8 +47,8 @@ uses
|
|||||||
// IDE
|
// IDE
|
||||||
LazarusIDEStrConsts, ControlSelection, Project, JITForms, MainIntf,
|
LazarusIDEStrConsts, ControlSelection, Project, JITForms, MainIntf,
|
||||||
CustomNonFormDesigner, NonControlDesigner, FrameDesigner, ComponentReg,
|
CustomNonFormDesigner, NonControlDesigner, FrameDesigner, ComponentReg,
|
||||||
IDEProcs, ComponentEditors, IDEOptionsIntf, KeyMapping, EditorOptions,
|
IDEProcs, ComponentEditors, IDEOptionsIntf, IDEDialogs, KeyMapping,
|
||||||
EnvironmentOpts, DesignerProcs;
|
EditorOptions, EnvironmentOpts, DesignerProcs;
|
||||||
|
|
||||||
const
|
const
|
||||||
OrdinalTypes = [tkInteger,tkChar,tkEnumeration,tkbool];
|
OrdinalTypes = [tkInteger,tkChar,tkEnumeration,tkbool];
|
||||||
@ -1832,7 +1832,6 @@ var
|
|||||||
aCaption, aMsg: string;
|
aCaption, aMsg: string;
|
||||||
DlgType: TMsgDlgType;
|
DlgType: TMsgDlgType;
|
||||||
Buttons: TMsgDlgButtons;
|
Buttons: TMsgDlgButtons;
|
||||||
HelpCtx: Longint;
|
|
||||||
JITComponentList: TJITComponentList;
|
JITComponentList: TJITComponentList;
|
||||||
StreamClass: TComponentClass;
|
StreamClass: TComponentClass;
|
||||||
AnUnitInfo: TUnitInfo;
|
AnUnitInfo: TUnitInfo;
|
||||||
@ -1844,8 +1843,7 @@ begin
|
|||||||
aMsg:='';
|
aMsg:='';
|
||||||
DlgType:=mtError;
|
DlgType:=mtError;
|
||||||
Buttons:=[mbCancel];
|
Buttons:=[mbCancel];
|
||||||
HelpCtx:=0;
|
|
||||||
|
|
||||||
// get current lfm filename
|
// get current lfm filename
|
||||||
LFMFilename:='';
|
LFMFilename:='';
|
||||||
if (JITComponentList.CurReadStreamClass<>nil)
|
if (JITComponentList.CurReadStreamClass<>nil)
|
||||||
@ -1895,14 +1893,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
if Buttons=[mbIgnore,mbCancel] then begin
|
if Buttons=[mbIgnore,mbCancel] then begin
|
||||||
Action:=QuestionDlg(aCaption,aMsg,DlgType,
|
Action:=IDEQuestionDialog(aCaption,aMsg,DlgType,
|
||||||
[mrIgnore, lisCFEContinueLoading,
|
[mrIgnore, lisCFEContinueLoading,
|
||||||
mrCancel, lisCFECancelLoadingThisResource,
|
mrCancel, lisCFECancelLoadingThisResource,
|
||||||
mrAbort, lisCFEStopAllLoading], HelpCtx);
|
mrAbort, lisCFEStopAllLoading]);
|
||||||
end else begin
|
end else begin
|
||||||
Action:=QuestionDlg(aCaption,aMsg,DlgType,
|
Action:=IDEQuestionDialog(aCaption,aMsg,DlgType,
|
||||||
[mrCancel, lisCFECancelLoadingThisResource,
|
[mrCancel, lisCFECancelLoadingThisResource,
|
||||||
mrAbort, lisCFEStopAllLoading], HelpCtx);
|
mrAbort, lisCFEStopAllLoading]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -2505,9 +2505,9 @@ begin
|
|||||||
and ((FindDebuggerClass(EnvironmentOptions.DebuggerConfig.DebuggerClass)=nil)
|
and ((FindDebuggerClass(EnvironmentOptions.DebuggerConfig.DebuggerClass)=nil)
|
||||||
or (not FileIsExecutable(EnvironmentOptions.DebuggerFilename)))
|
or (not FileIsExecutable(EnvironmentOptions.DebuggerFilename)))
|
||||||
then begin
|
then begin
|
||||||
if QuestionDlg(lisDbgMangNoDebuggerSpecified,
|
if IDEQuestionDialog(lisDbgMangNoDebuggerSpecified,
|
||||||
Format(lisDbgMangThereIsNoDebuggerSpecifiedSettingBreakpointsHaveNo, [#13]),
|
Format(lisDbgMangThereIsNoDebuggerSpecifiedSettingBreakpointsHaveNo, [#13]),
|
||||||
mtWarning, [mrCancel, mrIgnore, lisDbgMangSetTheBreakpointAnyway], 0)
|
mtWarning, [mrCancel, mrIgnore, lisDbgMangSetTheBreakpointAnyway])
|
||||||
<>mrIgnore
|
<>mrIgnore
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
@ -2525,9 +2525,9 @@ begin
|
|||||||
and ((FindDebuggerClass(EnvironmentOptions.DebuggerConfig.DebuggerClass)=nil)
|
and ((FindDebuggerClass(EnvironmentOptions.DebuggerConfig.DebuggerClass)=nil)
|
||||||
or (not FileIsExecutable(EnvironmentOptions.DebuggerFilename)))
|
or (not FileIsExecutable(EnvironmentOptions.DebuggerFilename)))
|
||||||
then begin
|
then begin
|
||||||
if QuestionDlg(lisDbgMangNoDebuggerSpecified,
|
if IDEQuestionDialog(lisDbgMangNoDebuggerSpecified,
|
||||||
Format(lisDbgMangThereIsNoDebuggerSpecifiedSettingBreakpointsHaveNo, [#13]),
|
Format(lisDbgMangThereIsNoDebuggerSpecifiedSettingBreakpointsHaveNo, [#13]),
|
||||||
mtWarning, [mrCancel, mrIgnore, lisDbgMangSetTheBreakpointAnyway], 0)
|
mtWarning, [mrCancel, mrIgnore, lisDbgMangSetTheBreakpointAnyway])
|
||||||
<>mrIgnore
|
<>mrIgnore
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
|
@ -440,10 +440,10 @@ begin
|
|||||||
end else begin
|
end else begin
|
||||||
// file already exists
|
// file already exists
|
||||||
if WarnOverwrite then begin
|
if WarnOverwrite then begin
|
||||||
Result:=QuestionDlg(lisOverwriteFile,
|
Result:=IDEQuestionDialog(lisOverwriteFile,
|
||||||
Format(lisAFileAlreadyExistsReplaceIt, ['"', AFilename, '"', #13]),
|
Format(lisAFileAlreadyExistsReplaceIt, ['"', AFilename, '"', #13]),
|
||||||
mtConfirmation,
|
mtConfirmation,
|
||||||
[mrYes, lisOverwriteFileOnDisk, mbCancel], 0);
|
[mrYes, lisOverwriteFileOnDisk, mbCancel]);
|
||||||
if Result=mrCancel then exit;
|
if Result=mrCancel then exit;
|
||||||
end;
|
end;
|
||||||
if CreateBackup then begin
|
if CreateBackup then begin
|
||||||
@ -513,10 +513,10 @@ begin
|
|||||||
try
|
try
|
||||||
TargetFilename:=ReadAllLinks(Filename,true);
|
TargetFilename:=ReadAllLinks(Filename,true);
|
||||||
if TargetFilename<>Filename then begin
|
if TargetFilename<>Filename then begin
|
||||||
case QuestionDlg(lisFileIsSymlink,
|
case IDEQuestionDialog(lisFileIsSymlink,
|
||||||
Format(lisTheFileIsASymlinkOpenInstead, ['"', Filename, '"', #13, #13,
|
Format(lisTheFileIsASymlinkOpenInstead, ['"', Filename, '"', #13, #13,
|
||||||
'"', TargetFilename, '"']),
|
'"', TargetFilename, '"']),
|
||||||
mtConfirmation, [mbYes, lisOpenTarget, mbNo, lisOpenSymlink, mbCancel], 0)
|
mtConfirmation, [mbYes, lisOpenTarget, mbNo, lisOpenSymlink, mbCancel])
|
||||||
of
|
of
|
||||||
mrYes: Filename:=TargetFilename;
|
mrYes: Filename:=TargetFilename;
|
||||||
mrNo: ;
|
mrNo: ;
|
||||||
@ -709,9 +709,9 @@ begin
|
|||||||
ErrMsg:=CodeToolBoss.ErrorMessage;
|
ErrMsg:=CodeToolBoss.ErrorMessage;
|
||||||
LazarusIDE.DoJumpToCodeToolBossError;
|
LazarusIDE.DoJumpToCodeToolBossError;
|
||||||
if Ask then begin
|
if Ask then begin
|
||||||
Result:=QuestionDlg(lisCCOErrorCaption,
|
Result:=IDEQuestionDialog(lisCCOErrorCaption,
|
||||||
Format(lisTheCodetoolsFoundAnError, [#13, ErrMsg, #13]),
|
Format(lisTheCodetoolsFoundAnError, [#13, ErrMsg, #13]),
|
||||||
mtWarning, [mrIgnore, lisIgnoreAndContinue, mrAbort], 0);
|
mtWarning, [mrIgnore, lisIgnoreAndContinue, mrAbort]);
|
||||||
if Result=mrIgnore then Result:=mrCancel;
|
if Result=mrIgnore then Result:=mrCancel;
|
||||||
end else begin
|
end else begin
|
||||||
Result:=mrCancel;
|
Result:=mrCancel;
|
||||||
|
@ -506,10 +506,10 @@ begin
|
|||||||
if ShortDescr<>'' then begin
|
if ShortDescr<>'' then begin
|
||||||
// the inherited entry already contains a description.
|
// the inherited entry already contains a description.
|
||||||
// ask if it should be really replaced
|
// ask if it should be really replaced
|
||||||
if QuestionDlg(lisCodeHelpConfirmreplace,
|
if IDEQuestionDialog(lisCodeHelpConfirmreplace,
|
||||||
GetContextTitle(Element)+' already contains the help:'+#13
|
GetContextTitle(Element)+' already contains the help:'+#13
|
||||||
+ShortDescr,
|
+ShortDescr,
|
||||||
mtConfirmation,[mrYes,lisReplace,mrCancel],0)<>mrYes then exit;
|
mtConfirmation,[mrYes,lisReplace,mrCancel])<>mrYes then exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
@ -1594,10 +1594,10 @@ begin
|
|||||||
if i<0 then exit;
|
if i<0 then exit;
|
||||||
//DebugLn(['TFPDocEditForm.CopyFromInheritedButtonClick ']);
|
//DebugLn(['TFPDocEditForm.CopyFromInheritedButtonClick ']);
|
||||||
if ShortEdit.Text<>'' then begin
|
if ShortEdit.Text<>'' then begin
|
||||||
if QuestionDlg('Confirm replace',
|
if IDEQuestionDialog('Confirm replace',
|
||||||
GetContextTitle(fChain[0])+' already contains the help:'+#13
|
GetContextTitle(fChain[0])+' already contains the help:'+#13
|
||||||
+ShortEdit.Text,
|
+ShortEdit.Text,
|
||||||
mtConfirmation,[mrYes,'Replace',mrCancel],0)<>mrYes then exit;
|
mtConfirmation,[mrYes,'Replace',mrCancel])<>mrYes then exit;
|
||||||
end;
|
end;
|
||||||
LoadGUIValues(fChain[i]);
|
LoadGUIValues(fChain[i]);
|
||||||
Modified:=true;
|
Modified:=true;
|
||||||
|
@ -33,8 +33,9 @@ uses
|
|||||||
StdCtrls, Grids, LCLType, Buttons, ExtCtrls, Dialogs, ComCtrls, Menus,
|
StdCtrls, Grids, LCLType, Buttons, ExtCtrls, Dialogs, ComCtrls, Menus,
|
||||||
AvgLvlTree, SynEdit, SynHighlighterPas, SynEditKeyCmds, SynCompletion,
|
AvgLvlTree, SynEdit, SynHighlighterPas, SynEditKeyCmds, SynCompletion,
|
||||||
KeywordFuncLists, CodeToolsCfgScript, IDEImagesIntf, IDECommands, ProjectIntf,
|
KeywordFuncLists, CodeToolsCfgScript, IDEImagesIntf, IDECommands, ProjectIntf,
|
||||||
PackageIntf, IDEOptionsIntf, MacroIntf, CompilerOptions, EditorOptions, CompOptsIntf,
|
PackageIntf, IDEOptionsIntf, MacroIntf, CompilerOptions, EditorOptions,
|
||||||
LazarusIDEStrConsts, CompOptsModes, SourceSynEditor, PackageDefs;
|
CompOptsIntf, IDEDialogs, LazarusIDEStrConsts, CompOptsModes, SourceSynEditor,
|
||||||
|
PackageDefs;
|
||||||
|
|
||||||
type
|
type
|
||||||
TCBMNodeType = (
|
TCBMNodeType = (
|
||||||
@ -390,10 +391,10 @@ begin
|
|||||||
if (Prefix<>'') and (SysUtils.CompareText(Prefix,copy(S,1,length(Prefix)))<>0)
|
if (Prefix<>'') and (SysUtils.CompareText(Prefix,copy(S,1,length(Prefix)))<>0)
|
||||||
then begin
|
then begin
|
||||||
BetterName:=GetMacroNamePrefix(cbmpMedium)+S;
|
BetterName:=GetMacroNamePrefix(cbmpMedium)+S;
|
||||||
DlgResult:=QuestionDlg(lisCCOWarningCaption,
|
DlgResult:=IDEQuestionDialog(lisCCOWarningCaption,
|
||||||
Format(lisTheMacroDoesNotBeginWith, [S, Prefix]),
|
Format(lisTheMacroDoesNotBeginWith, [S, Prefix]),
|
||||||
mtWarning, [mrCancel, mrYes, Format(lisRenameTo, [BetterName]),
|
mtWarning, [mrCancel, mrYes, Format(lisRenameTo, [BetterName]),
|
||||||
mrIgnore], 0);
|
mrIgnore]);
|
||||||
if DlgResult=mrIgnore then begin
|
if DlgResult=mrIgnore then begin
|
||||||
end else if DlgResult=mrYes then
|
end else if DlgResult=mrYes then
|
||||||
S:=BetterName
|
S:=BetterName
|
||||||
|
@ -407,12 +407,12 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
Duplicates.Delimiter:=#13;
|
Duplicates.Delimiter:=#13;
|
||||||
Duplicates.StrictDelimiter:=true;
|
Duplicates.StrictDelimiter:=true;
|
||||||
if QuestionDlg(lisDuplicateSearchPath,
|
if IDEQuestionDialog(lisDuplicateSearchPath,
|
||||||
Format(lisTheOtherSourcesContainsADirectoryWhichIsAlreadyInT, [#13#13,
|
Format(lisTheOtherSourcesContainsADirectoryWhichIsAlreadyInT, [#13#13,
|
||||||
Duplicates.DelimitedText]),
|
Duplicates.DelimitedText]),
|
||||||
mtError,
|
mtError,
|
||||||
[mrCancel, mrYes, lisRemoveThePathsFromOtherSources, 'IsDefault'],
|
[mrCancel, mrYes, lisRemoveThePathsFromOtherSources, 'IsDefault']
|
||||||
0)=mrYes
|
)=mrYes
|
||||||
then begin
|
then begin
|
||||||
// remove paths from SrcPath
|
// remove paths from SrcPath
|
||||||
OldUnparsedSrcPath:=FCompilerOpts.SrcPath;
|
OldUnparsedSrcPath:=FCompilerOpts.SrcPath;
|
||||||
|
@ -289,7 +289,7 @@ begin
|
|||||||
FLazarusPath:=CustomExe;
|
FLazarusPath:=CustomExe;
|
||||||
end else begin
|
end else begin
|
||||||
// the custom exe is older => let user choose
|
// the custom exe is older => let user choose
|
||||||
MsgResult:=QuestionDlg('Multiple lazarus found',
|
MsgResult:=IDEQuestionDialog('Multiple lazarus found',
|
||||||
'Which Lazarus should be started?'#13
|
'Which Lazarus should be started?'#13
|
||||||
+#13
|
+#13
|
||||||
+'The system default executable'#13
|
+'The system default executable'#13
|
||||||
|
85
ide/main.pp
85
ide/main.pp
@ -2177,10 +2177,10 @@ procedure TMainIDE.SetupStartProject;
|
|||||||
function AskIfLoadLastFailingProject: boolean;
|
function AskIfLoadLastFailingProject: boolean;
|
||||||
begin
|
begin
|
||||||
debugln(['AskIfLoadLastFailingProject START']);
|
debugln(['AskIfLoadLastFailingProject START']);
|
||||||
Result:=QuestionDlg(lisOpenProject2,
|
Result:=IDEQuestionDialog(lisOpenProject2,
|
||||||
Format(lisAnErrorOccuredAtLastStartupWhileLoadingLoadThisPro, [
|
Format(lisAnErrorOccuredAtLastStartupWhileLoadingLoadThisPro, [
|
||||||
EnvironmentOptions.LastSavedProjectFile, #13, #13]), mtWarning,
|
EnvironmentOptions.LastSavedProjectFile, #13, #13]), mtWarning,
|
||||||
[mrYes, lisOpenProjectAgain, mrNoToAll, lisStartWithANewProject], 0)=
|
[mrYes, lisOpenProjectAgain, mrNoToAll, lisStartWithANewProject])=
|
||||||
mrYes;
|
mrYes;
|
||||||
debugln(['AskIfLoadLastFailingProject END ',dbgs(Result)]);
|
debugln(['AskIfLoadLastFailingProject END ',dbgs(Result)]);
|
||||||
end;
|
end;
|
||||||
@ -3017,10 +3017,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
if NeedSave = 1 then begin
|
if NeedSave = 1 then begin
|
||||||
Ed := TSourceEditor(SourceEditorManager.UniqueSourceEditors[Idx]);
|
Ed := TSourceEditor(SourceEditorManager.UniqueSourceEditors[Idx]);
|
||||||
r := QuestionDlg(lisSourceModified,
|
r := IDEQuestionDialog(lisSourceModified,
|
||||||
Format(lisSourceOfPageHasChangedSave, ['"', Ed.PageName, '"']),
|
Format(lisSourceOfPageHasChangedSave, ['"', Ed.PageName, '"']),
|
||||||
mtConfirmation,
|
mtConfirmation,
|
||||||
[mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort], 0);
|
[mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
||||||
mrNo: ; // don't save
|
mrNo: ; // don't save
|
||||||
@ -3033,12 +3033,12 @@ begin
|
|||||||
if CheckEditorNeedsSave(SourceEditorManager.UniqueSourceEditors[i], False) then begin
|
if CheckEditorNeedsSave(SourceEditorManager.UniqueSourceEditors[i], False) then begin
|
||||||
dec(NeedSave);
|
dec(NeedSave);
|
||||||
Ed := TSourceEditor(SourceEditorManager.UniqueSourceEditors[i]);
|
Ed := TSourceEditor(SourceEditorManager.UniqueSourceEditors[i]);
|
||||||
r := QuestionDlg(lisSourceModified,
|
r := IDEQuestionDialog(lisSourceModified,
|
||||||
Format(lisSourceOfPageHasChangedSaveExtended, ['"', Ed.PageName, '"', NeedSave]),
|
Format(lisSourceOfPageHasChangedSaveExtended, ['"', Ed.PageName, '"', NeedSave]),
|
||||||
mtConfirmation,
|
mtConfirmation,
|
||||||
[mrYes, lisMenuSave, mrAll, lisSaveAll,
|
[mrYes, lisMenuSave, mrAll, lisSaveAll,
|
||||||
mrNo, lisDiscardChanges, mrIgnore, lisDiscardChangesAll,
|
mrNo, lisDiscardChanges, mrIgnore, lisDiscardChangesAll,
|
||||||
mrAbort], 0);
|
mrAbort]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
||||||
mrNo: ; // don't save
|
mrNo: ; // don't save
|
||||||
@ -3104,10 +3104,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
if NeedSave = 1 then begin
|
if NeedSave = 1 then begin
|
||||||
Ed := ActiveSrcNoteBook.Editors[Idx];
|
Ed := ActiveSrcNoteBook.Editors[Idx];
|
||||||
r := QuestionDlg(lisSourceModified,
|
r := IDEQuestionDialog(lisSourceModified,
|
||||||
Format(lisSourceOfPageHasChangedSave, ['"', Ed.PageName, '"']),
|
Format(lisSourceOfPageHasChangedSave, ['"', Ed.PageName, '"']),
|
||||||
mtConfirmation,
|
mtConfirmation,
|
||||||
[mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort], 0);
|
[mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
||||||
mrNo: ; // don't save
|
mrNo: ; // don't save
|
||||||
@ -3120,12 +3120,12 @@ begin
|
|||||||
if CheckEditorNeedsSave(ActiveSrcNoteBook.Editors[i], True) then begin
|
if CheckEditorNeedsSave(ActiveSrcNoteBook.Editors[i], True) then begin
|
||||||
dec(NeedSave);
|
dec(NeedSave);
|
||||||
Ed := ActiveSrcNoteBook.Editors[i];
|
Ed := ActiveSrcNoteBook.Editors[i];
|
||||||
r := QuestionDlg(lisSourceModified,
|
r := IDEQuestionDialog(lisSourceModified,
|
||||||
Format(lisSourceOfPageHasChangedSaveExtended, ['"', Ed.PageName, '"', NeedSave]),
|
Format(lisSourceOfPageHasChangedSaveExtended, ['"', Ed.PageName, '"', NeedSave]),
|
||||||
mtConfirmation,
|
mtConfirmation,
|
||||||
[mrYes, lisMenuSave, mrAll, lisSaveAll,
|
[mrYes, lisMenuSave, mrAll, lisSaveAll,
|
||||||
mrNo, lisDiscardChanges, mrIgnore, lisDiscardChangesAll,
|
mrNo, lisDiscardChanges, mrIgnore, lisDiscardChangesAll,
|
||||||
mrAbort], 0);
|
mrAbort]);
|
||||||
case r of
|
case r of
|
||||||
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
mrYes: DoSaveEditorFile(Ed, [sfCheckAmbiguousFiles]);
|
||||||
mrNo: ; // don't save
|
mrNo: ; // don't save
|
||||||
@ -3829,9 +3829,9 @@ begin
|
|||||||
itDebugger:
|
itDebugger:
|
||||||
begin
|
begin
|
||||||
if (rfInteractive in AFlags)
|
if (rfInteractive in AFlags)
|
||||||
and (QuestionDlg(lisStopDebugging,
|
and (IDEQuestionDialog(lisStopDebugging,
|
||||||
lisStopTheDebugging, mtConfirmation,
|
lisStopTheDebugging, mtConfirmation,
|
||||||
[mrYes, lisMenuStop, mrCancel, lisContinue], 0) <> mrYes)
|
[mrYes, lisMenuStop, mrCancel, lisContinue]) <> mrYes)
|
||||||
then exit;
|
then exit;
|
||||||
if (DebugBoss.DoStopProject = mrOK) and (ToolStatus = itDebugger) and (rfCloseOnDone in AFlags) then
|
if (DebugBoss.DoStopProject = mrOK) and (ToolStatus = itDebugger) and (rfCloseOnDone in AFlags) then
|
||||||
FWaitForClose := True;
|
FWaitForClose := True;
|
||||||
@ -4177,19 +4177,19 @@ begin
|
|||||||
// or it is not yet a lazarus project ;)
|
// or it is not yet a lazarus project ;)
|
||||||
LPIFilename:=ChangeFileExt(AFilename,'.lpi');
|
LPIFilename:=ChangeFileExt(AFilename,'.lpi');
|
||||||
if FileExistsUTF8(LPIFilename) then begin
|
if FileExistsUTF8(LPIFilename) then begin
|
||||||
if QuestionDlg(lisProjectInfoFileDetected,
|
if IDEQuestionDialog(lisProjectInfoFileDetected,
|
||||||
Format(lisTheFileSeemsToBeTheProgramFileOfAnExistingLazarusP, [
|
Format(lisTheFileSeemsToBeTheProgramFileOfAnExistingLazarusP, [
|
||||||
AFilename]), mtConfirmation,
|
AFilename]), mtConfirmation,
|
||||||
[mrOk, lisOpenProject2, mrCancel], 0)
|
[mrOk, lisOpenProject2, mrCancel])
|
||||||
<>mrOk
|
<>mrOk
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
AFilename:=LPIFilename;
|
AFilename:=LPIFilename;
|
||||||
end else begin
|
end else begin
|
||||||
if QuestionDlg(lisFileHasNoProject,
|
if IDEQuestionDialog(lisFileHasNoProject,
|
||||||
Format(lisTheFileIsNotALazarusProjectCreateANewProjectForThi, [
|
Format(lisTheFileIsNotALazarusProjectCreateANewProjectForThi, [
|
||||||
'"', AFilename, '"', #13, '"'+lowercase(SourceType)+'"']),
|
'"', AFilename, '"', #13, '"'+lowercase(SourceType)+'"']),
|
||||||
mtConfirmation, [mrYes, lisCreateProject, mrCancel], 0)<>mrYes
|
mtConfirmation, [mrYes, lisCreateProject, mrCancel])<>mrYes
|
||||||
then
|
then
|
||||||
exit;
|
exit;
|
||||||
DoCreateProjectForProgram(PreReadBuf);
|
DoCreateProjectForProgram(PreReadBuf);
|
||||||
@ -4219,11 +4219,10 @@ begin
|
|||||||
|
|
||||||
// check project
|
// check project
|
||||||
if SomethingOfProjectIsModified then begin
|
if SomethingOfProjectIsModified then begin
|
||||||
DlgResult:=QuestionDlg(lisProjectChanged,
|
DlgResult:=IDEQuestionDialog(lisProjectChanged,
|
||||||
Format(lisSaveChangesToProject, [Project1.GetTitleOrName]), mtConfirmation,
|
Format(lisSaveChangesToProject, [Project1.GetTitleOrName]), mtConfirmation,
|
||||||
[mrYes, lisMenuSave, mrNoToAll, lisDiscardChanges,
|
[mrYes, lisMenuSave, mrNoToAll, lisDiscardChanges,
|
||||||
mrAbort, lisDoNotCloseTheProject],
|
mrAbort, lisDoNotCloseTheProject]);
|
||||||
0);
|
|
||||||
case DlgResult of
|
case DlgResult of
|
||||||
mrYes:
|
mrYes:
|
||||||
if not (DoSaveProject([]) in [mrOk,mrIgnore]) then exit;
|
if not (DoSaveProject([]) in [mrOk,mrIgnore]) then exit;
|
||||||
@ -6004,11 +6003,11 @@ begin
|
|||||||
if LFMCode=nil then begin
|
if LFMCode=nil then begin
|
||||||
LFMCode:=CodeToolBoss.CreateFile(LFMFilename);
|
LFMCode:=CodeToolBoss.CreateFile(LFMFilename);
|
||||||
if LFMCode=nil then begin
|
if LFMCode=nil then begin
|
||||||
Result:=QuestionDlg(lisUnableToCreateFile,
|
Result:=IDEQuestionDialog(lisUnableToCreateFile,
|
||||||
Format(lisUnableToCreateFile2, ['"', LFMFilename, '"']),
|
Format(lisUnableToCreateFile2, ['"', LFMFilename, '"']),
|
||||||
mtWarning, [mrIgnore, lisContinueWithoutLoadingForm,
|
mtWarning, [mrIgnore, lisContinueWithoutLoadingForm,
|
||||||
mrCancel, lisCancelLoadingUnit,
|
mrCancel, lisCancelLoadingUnit,
|
||||||
mrAbort, lisAbortAllLoading], 0);
|
mrAbort, lisAbortAllLoading]);
|
||||||
if Result<>mrIgnore then exit;
|
if Result<>mrIgnore then exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -6530,12 +6529,11 @@ var
|
|||||||
begin
|
begin
|
||||||
if ofProjectLoading in Flags then begin
|
if ofProjectLoading in Flags then begin
|
||||||
// this is a file, that was loaded last time, but was removed from disk
|
// this is a file, that was loaded last time, but was removed from disk
|
||||||
Result:=QuestionDlg(lisFileNotFound,
|
Result:=IDEQuestionDialog(lisFileNotFound,
|
||||||
Format(lisTheFileWasNotFoundIgnoreWillGoOnLoadingTheProject, ['"',
|
Format(lisTheFileWasNotFoundIgnoreWillGoOnLoadingTheProject, ['"',
|
||||||
AFilename, '"', #13, #13, #13]),
|
AFilename, '"', #13, #13, #13]),
|
||||||
mtError, [mrIgnore, lisSkipFileAndContinueLoading,
|
mtError, [mrIgnore, lisSkipFileAndContinueLoading,
|
||||||
mrAbort, lisAbortLoadingProject],
|
mrAbort, lisAbortLoadingProject]);
|
||||||
0);
|
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -6607,10 +6605,10 @@ begin
|
|||||||
// or it is not yet a lazarus project ;)
|
// or it is not yet a lazarus project ;)
|
||||||
LPIFilename:=ChangeFileExt(AFilename,'.lpi');
|
LPIFilename:=ChangeFileExt(AFilename,'.lpi');
|
||||||
if FileExistsUTF8(LPIFilename) then begin
|
if FileExistsUTF8(LPIFilename) then begin
|
||||||
if QuestionDlg(lisProjectInfoFileDetected,
|
if IDEQuestionDialog(lisProjectInfoFileDetected,
|
||||||
Format(lisTheFileSeemsToBeTheProgramFileOfAnExistingLazarusP, [
|
Format(lisTheFileSeemsToBeTheProgramFileOfAnExistingLazarusP, [
|
||||||
AFilename]), mtConfirmation,
|
AFilename]), mtConfirmation,
|
||||||
[mrOk, lisOpenProject2, mrCancel, lisOpenTheFileAsNormalSource], 0)
|
[mrOk, lisOpenProject2, mrCancel, lisOpenTheFileAsNormalSource])
|
||||||
=mrOk then
|
=mrOk then
|
||||||
begin
|
begin
|
||||||
Result:=DoOpenProjectFile(LPIFilename,[]);
|
Result:=DoOpenProjectFile(LPIFilename,[]);
|
||||||
@ -7405,14 +7403,14 @@ var
|
|||||||
Project1.ConvertToLPIFilename(UsingFilename);
|
Project1.ConvertToLPIFilename(UsingFilename);
|
||||||
UsedFilename:=UnitCode.Filename;
|
UsedFilename:=UnitCode.Filename;
|
||||||
Project1.ConvertToLPIFilename(UsedFilename);
|
Project1.ConvertToLPIFilename(UsedFilename);
|
||||||
TheModalResult:=QuestionDlg(lisCodeTemplError,
|
TheModalResult:=IDEQuestionDialog(lisCodeTemplError,
|
||||||
Format(lisClassConflictsWithLfmFileTheUnitUsesTheUnitWhic, [#13,
|
Format(lisClassConflictsWithLfmFileTheUnitUsesTheUnitWhic, [#13,
|
||||||
UsingFilename, #13, UsedFilename, #13, AComponentClassName, #13, #13,
|
UsingFilename, #13, UsedFilename, #13, AComponentClassName, #13, #13,
|
||||||
#13, AComponentClassName]),
|
#13, AComponentClassName]),
|
||||||
mtError,
|
mtError,
|
||||||
[mrCancel, lisCancelLoadingThisComponent,
|
[mrCancel, lisCancelLoadingThisComponent,
|
||||||
mrAbort, lisAbortWholeLoading,
|
mrAbort, lisAbortWholeLoading,
|
||||||
mrIgnore, lisIgnoreUseTFormAsAncestor], 0);
|
mrIgnore, lisIgnoreUseTFormAsAncestor]);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
// there is no .lfm file
|
// there is no .lfm file
|
||||||
@ -7560,11 +7558,11 @@ begin
|
|||||||
|
|
||||||
// check for circles
|
// check for circles
|
||||||
if AnUnitInfo.LoadingComponent then begin
|
if AnUnitInfo.LoadingComponent then begin
|
||||||
Result:=QuestionDlg(lisCodeTemplError, Format(
|
Result:=IDEQuestionDialog(lisCodeTemplError, Format(
|
||||||
lisUnableToLoadTheComponentClassBecauseItDependsOnIts, ['"',
|
lisUnableToLoadTheComponentClassBecauseItDependsOnIts, ['"',
|
||||||
AComponentClassName, '"']),
|
AComponentClassName, '"']),
|
||||||
mtError, [mrCancel, lisCancelLoadingThisComponent,
|
mtError, [mrCancel, lisCancelLoadingThisComponent,
|
||||||
mrAbort, lisAbortWholeLoading], 0);
|
mrAbort, lisAbortWholeLoading]);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -7619,12 +7617,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
// not found => tell the user
|
// not found => tell the user
|
||||||
Result:=QuestionDlg(lisCodeTemplError,
|
Result:=IDEQuestionDialog(lisCodeTemplError,
|
||||||
Format(lisUnableToFindTheLfmFileOfComponentClassNeededByUnit, [
|
Format(lisUnableToFindTheLfmFileOfComponentClassNeededByUnit, [
|
||||||
AComponentClassName, #13, #13, AnUnitInfo.Filename]),
|
AComponentClassName, #13, #13, AnUnitInfo.Filename]),
|
||||||
mtError, [mrCancel, lisCancelLoadingThisComponent,
|
mtError, [mrCancel, lisCancelLoadingThisComponent,
|
||||||
mrAbort, lisAbortWholeLoading,
|
mrAbort, lisAbortWholeLoading,
|
||||||
mrIgnore, lisIgnoreUseTFormAsAncestor], 0);
|
mrIgnore, lisIgnoreUseTFormAsAncestor]);
|
||||||
finally
|
finally
|
||||||
AnUnitInfo.LoadingComponent:=false;
|
AnUnitInfo.LoadingComponent:=false;
|
||||||
end;
|
end;
|
||||||
@ -9359,9 +9357,9 @@ begin
|
|||||||
AText:=Format(lisSourceOfPageHasChangedSave, ['"',
|
AText:=Format(lisSourceOfPageHasChangedSave, ['"',
|
||||||
TSourceEditor(AEditor).PageName, '"']);
|
TSourceEditor(AEditor).PageName, '"']);
|
||||||
ACaption:=lisSourceModified;
|
ACaption:=lisSourceModified;
|
||||||
Result:=QuestionDlg(ACaption, AText,
|
Result:=IDEQuestionDialog(ACaption, AText,
|
||||||
mtConfirmation, [mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort
|
mtConfirmation, [mrYes, lisMenuSave, mrNo, lisDiscardChanges, mrAbort
|
||||||
], 0);
|
]);
|
||||||
end else
|
end else
|
||||||
Result:=mrYes;
|
Result:=mrYes;
|
||||||
if Result=mrYes then begin
|
if Result=mrYes then begin
|
||||||
@ -9563,9 +9561,9 @@ begin
|
|||||||
// check if file is a lazarus project (.lpi)
|
// check if file is a lazarus project (.lpi)
|
||||||
if (CompareFileExt(AFilename,'.lpi',false)=0) then begin
|
if (CompareFileExt(AFilename,'.lpi',false)=0) then begin
|
||||||
case
|
case
|
||||||
QuestionDlg(
|
IDEQuestionDialog(
|
||||||
lisOpenProject, Format(lisOpenTheProject, [AFilename]), mtConfirmation,
|
lisOpenProject, Format(lisOpenTheProject, [AFilename]), mtConfirmation,
|
||||||
[mrYes, lisOpenProject2, mrNoToAll, lisOpenAsXmlFile, mrCancel], 0)
|
[mrYes, lisOpenProject2, mrNoToAll, lisOpenAsXmlFile, mrCancel])
|
||||||
of
|
of
|
||||||
mrYes: begin
|
mrYes: begin
|
||||||
Result:=DoOpenProjectFile(AFilename,[ofAddToRecent]);
|
Result:=DoOpenProjectFile(AFilename,[ofAddToRecent]);
|
||||||
@ -9579,9 +9577,9 @@ begin
|
|||||||
// check if file is a lazarus package (.lpk)
|
// check if file is a lazarus package (.lpk)
|
||||||
if (CompareFileExt(AFilename,'.lpk',false)=0) then begin
|
if (CompareFileExt(AFilename,'.lpk',false)=0) then begin
|
||||||
case
|
case
|
||||||
QuestionDlg(
|
IDEQuestionDialog(
|
||||||
lisOpenPackage, Format(lisOpenThePackage, [AFilename]), mtConfirmation,
|
lisOpenPackage, Format(lisOpenThePackage, [AFilename]), mtConfirmation,
|
||||||
[mrYes, lisCompPalOpenPackage, mrNoToAll, lisOpenAsXmlFile, mrCancel], 0)
|
[mrYes, lisCompPalOpenPackage, mrNoToAll, lisOpenAsXmlFile, mrCancel])
|
||||||
of
|
of
|
||||||
mrYes: begin
|
mrYes: begin
|
||||||
Result:=PkgBoss.DoOpenPackageFile(AFilename,[pofAddToRecent],CanAbort);
|
Result:=PkgBoss.DoOpenPackageFile(AFilename,[pofAddToRecent],CanAbort);
|
||||||
@ -11076,9 +11074,9 @@ begin
|
|||||||
if Result=mrAbort then exit;
|
if Result=mrAbort then exit;
|
||||||
end;
|
end;
|
||||||
if not FileReadable then begin
|
if not FileReadable then begin
|
||||||
Result:=QuestionDlg(lisUnableToReadFile,
|
Result:=IDEQuestionDialog(lisUnableToReadFile,
|
||||||
Format(lisUnableToReadFilename, ['"', AFilename, '"']),
|
Format(lisUnableToReadFilename, ['"', AFilename, '"']),
|
||||||
mtError, [mrCancel, lisSkipFile, mrAbort, lisAbortAllLoading], 0);
|
mtError, [mrCancel, lisSkipFile, mrAbort, lisAbortAllLoading]);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -13382,7 +13380,7 @@ begin
|
|||||||
InvalidateFileStateCache;
|
InvalidateFileStateCache;
|
||||||
|
|
||||||
if Project1.HasProjectInfoFileChangedOnDisk then begin
|
if Project1.HasProjectInfoFileChangedOnDisk then begin
|
||||||
if QuestionDlg(lisProjectChangedOnDisk,
|
if IDEQuestionDialog(lisProjectChangedOnDisk,
|
||||||
Format(lisTheProjectInformationFileHasChangedOnDisk, ['"',
|
Format(lisTheProjectInformationFileHasChangedOnDisk, ['"',
|
||||||
Project1.ProjectInfoFile, '"', #13]), mtConfirmation, [mrYes,
|
Project1.ProjectInfoFile, '"', #13]), mtConfirmation, [mrYes,
|
||||||
lisReopenProject, mrIgnore], '')
|
lisReopenProject, mrIgnore], '')
|
||||||
@ -17334,9 +17332,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
CloseAction := caHide;
|
CloseAction := caHide;
|
||||||
case QuestionDlg(lisCloseAllTabsTitle, lisCloseAllTabsQuestion, mtConfirmation,
|
case IDEQuestionDialog(lisCloseAllTabsTitle, lisCloseAllTabsQuestion, mtConfirmation,
|
||||||
[mrYes, lisCloseAllTabsClose, mrNo, lisCloseAllTabsHide, mrCancel],
|
[mrYes, lisCloseAllTabsClose, mrNo, lisCloseAllTabsHide, mrCancel])
|
||||||
0)
|
|
||||||
of
|
of
|
||||||
mrYes : begin
|
mrYes : begin
|
||||||
SourceEditorManager.IncUpdateLock;
|
SourceEditorManager.IncUpdateLock;
|
||||||
|
@ -7420,9 +7420,9 @@ begin
|
|||||||
or (EditorOpts.DoNotWarnForFont<>CurFont.Name))
|
or (EditorOpts.DoNotWarnForFont<>CurFont.Name))
|
||||||
then begin
|
then begin
|
||||||
{$IFDEF HasMonoSpaceFonts}
|
{$IFDEF HasMonoSpaceFonts}
|
||||||
DummyResult:=QuestionDlg(lisUEFontWith,
|
DummyResult:=IDEQuestionDialog(lisUEFontWith,
|
||||||
Format(lisUETheCurre, [#13, #13]),
|
Format(lisUETheCurre, [#13, #13]),
|
||||||
mtWarning, [mrIgnore, mrYesToAll, lisUEDoNotSho], 0);
|
mtWarning, [mrIgnore, mrYesToAll, lisUEDoNotSho]);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
DummyResult:=mrYesToAll;
|
DummyResult:=mrYesToAll;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
@ -4592,10 +4592,10 @@ begin
|
|||||||
if (not Quiet) and DirPathExistsCached(PkgLinks.GetGlobalLinkDirectory)
|
if (not Quiet) and DirPathExistsCached(PkgLinks.GetGlobalLinkDirectory)
|
||||||
then begin
|
then begin
|
||||||
// tell the user
|
// tell the user
|
||||||
CurResult:=QuestionDlg(lisPkgSysPackageFileNotFound,
|
CurResult:=IDEQuestionDialog(lisPkgSysPackageFileNotFound,
|
||||||
Format(lisPkgSysThePackageIsInstalledButNoValidPackageFileWasFound, ['"',
|
Format(lisPkgSysThePackageIsInstalledButNoValidPackageFileWasFound, ['"',
|
||||||
BrokenPackage.Name, '"', #13]),
|
BrokenPackage.Name, '"', #13]),
|
||||||
mtError,[mrOk,mrYesToAll,'Skip these warnings'],0);
|
mtError,[mrOk,mrYesToAll,'Skip these warnings']);
|
||||||
if CurResult=mrYesToAll then
|
if CurResult=mrYesToAll then
|
||||||
Quiet:=true;
|
Quiet:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user