mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:59:21 +02:00
replaced some MessageDlg with QuestionDlg
git-svn-id: trunk@8332 -
This commit is contained in:
parent
ac41567764
commit
1efdc1275a
@ -1,5 +1,3 @@
|
|||||||
{ This is an automatically generated lazarus resource file }
|
|
||||||
|
|
||||||
LazarusResources.Add('TMainForm','FORMDATA',[
|
LazarusResources.Add('TMainForm','FORMDATA',[
|
||||||
'TPF0'#9'TMainForm'#8'MainForm'#7'Caption'#6#8'MainForm'#12'ClientHeight'#3#6
|
'TPF0'#9'TMainForm'#8'MainForm'#7'Caption'#6#8'MainForm'#12'ClientHeight'#3#6
|
||||||
+#2#11'ClientWidth'#3'Z'#2#4'Menu'#7#5'MMain'#12'OnCloseQuery'#7#18'MainFormC'
|
+#2#11'ClientWidth'#3'Z'#2#4'Menu'#7#5'MMain'#12'OnCloseQuery'#7#18'MainFormC'
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{ This is an automatically generated lazarus resource file }
|
|
||||||
|
|
||||||
LazarusResources.Add('TTableForm','FORMDATA',[
|
LazarusResources.Add('TTableForm','FORMDATA',[
|
||||||
'TPF0'#10'TTableForm'#9'TableForm'#11'BorderStyle'#7#8'bsDialog'#7'Caption'#6
|
'TPF0'#10'TTableForm'#9'TableForm'#11'BorderStyle'#7#8'bsDialog'#7'Caption'#6
|
||||||
+#16'Insert new table'#12'ClientHeight'#2'a'#11'ClientWidth'#3#26#1#13'Pixels'
|
+#16'Insert new table'#12'ClientHeight'#2'a'#11'ClientWidth'#3#26#1#13'Pixels'
|
||||||
|
@ -12,8 +12,9 @@
|
|||||||
<IconPath Value="./"/>
|
<IconPath Value="./"/>
|
||||||
<TargetFileExt Value=".exe"/>
|
<TargetFileExt Value=".exe"/>
|
||||||
<Title Value="Lazarus Documentation Editor"/>
|
<Title Value="Lazarus Documentation Editor"/>
|
||||||
<ActiveEditorIndexAtStart Value="5"/>
|
<ActiveEditorIndexAtStart Value="6"/>
|
||||||
</General>
|
</General>
|
||||||
|
<LazDoc Paths=""/>
|
||||||
<Units Count="13">
|
<Units Count="13">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<CursorPos X="3" Y="9"/>
|
<CursorPos X="3" Y="9"/>
|
||||||
@ -21,7 +22,7 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="lazde"/>
|
<UnitName Value="lazde"/>
|
||||||
<UsageCount Value="98"/>
|
<UsageCount Value="99"/>
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
<CursorPos X="15" Y="803"/>
|
<CursorPos X="15" Y="803"/>
|
||||||
@ -33,11 +34,11 @@
|
|||||||
<ResourceFilename Value="frmmain.lrs"/>
|
<ResourceFilename Value="frmmain.lrs"/>
|
||||||
<TopLine Value="787"/>
|
<TopLine Value="787"/>
|
||||||
<UnitName Value="FrmMain"/>
|
<UnitName Value="FrmMain"/>
|
||||||
<UsageCount Value="98"/>
|
<UsageCount Value="99"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
<Unit2>
|
<Unit2>
|
||||||
<CursorPos X="1" Y="23"/>
|
<CursorPos X="1" Y="23"/>
|
||||||
<EditorIndex Value="10"/>
|
<EditorIndex Value="3"/>
|
||||||
<Filename Value="frmoptions.pp"/>
|
<Filename Value="frmoptions.pp"/>
|
||||||
<ComponentName Value="OptionsForm"/>
|
<ComponentName Value="OptionsForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -45,11 +46,11 @@
|
|||||||
<ResourceFilename Value="frmoptions.lrs"/>
|
<ResourceFilename Value="frmoptions.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="frmOptions"/>
|
<UnitName Value="frmOptions"/>
|
||||||
<UsageCount Value="95"/>
|
<UsageCount Value="96"/>
|
||||||
</Unit2>
|
</Unit2>
|
||||||
<Unit3>
|
<Unit3>
|
||||||
<CursorPos X="1" Y="23"/>
|
<CursorPos X="1" Y="23"/>
|
||||||
<EditorIndex Value="11"/>
|
<EditorIndex Value="4"/>
|
||||||
<Filename Value="frmnewnode.pp"/>
|
<Filename Value="frmnewnode.pp"/>
|
||||||
<ComponentName Value="NewNodeForm"/>
|
<ComponentName Value="NewNodeForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -57,11 +58,11 @@
|
|||||||
<ResourceFilename Value="frmnewnode.lrs"/>
|
<ResourceFilename Value="frmnewnode.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="frmNewNode"/>
|
<UnitName Value="frmNewNode"/>
|
||||||
<UsageCount Value="92"/>
|
<UsageCount Value="93"/>
|
||||||
</Unit3>
|
</Unit3>
|
||||||
<Unit4>
|
<Unit4>
|
||||||
<CursorPos X="32" Y="27"/>
|
<CursorPos X="32" Y="27"/>
|
||||||
<EditorIndex Value="13"/>
|
<EditorIndex Value="8"/>
|
||||||
<Filename Value="frmmakeskel.pp"/>
|
<Filename Value="frmmakeskel.pp"/>
|
||||||
<ComponentName Value="MakeSkelForm"/>
|
<ComponentName Value="MakeSkelForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -69,11 +70,11 @@
|
|||||||
<ResourceFilename Value="frmmakeskel.lrs"/>
|
<ResourceFilename Value="frmmakeskel.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="FrmMakeSkel"/>
|
<UnitName Value="FrmMakeSkel"/>
|
||||||
<UsageCount Value="69"/>
|
<UsageCount Value="70"/>
|
||||||
</Unit4>
|
</Unit4>
|
||||||
<Unit5>
|
<Unit5>
|
||||||
<CursorPos X="11" Y="16"/>
|
<CursorPos X="11" Y="16"/>
|
||||||
<EditorIndex Value="8"/>
|
<EditorIndex Value="1"/>
|
||||||
<Filename Value="frmlink.pp"/>
|
<Filename Value="frmlink.pp"/>
|
||||||
<ComponentName Value="LinkForm"/>
|
<ComponentName Value="LinkForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -81,11 +82,11 @@
|
|||||||
<ResourceFilename Value="frmlink.lrs"/>
|
<ResourceFilename Value="frmlink.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="FrmLink"/>
|
<UnitName Value="FrmLink"/>
|
||||||
<UsageCount Value="62"/>
|
<UsageCount Value="63"/>
|
||||||
</Unit5>
|
</Unit5>
|
||||||
<Unit6>
|
<Unit6>
|
||||||
<CursorPos X="1" Y="23"/>
|
<CursorPos X="1" Y="23"/>
|
||||||
<EditorIndex Value="9"/>
|
<EditorIndex Value="2"/>
|
||||||
<Filename Value="frmtable.pp"/>
|
<Filename Value="frmtable.pp"/>
|
||||||
<ComponentName Value="TableForm"/>
|
<ComponentName Value="TableForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -93,11 +94,11 @@
|
|||||||
<ResourceFilename Value="frmtable.lrs"/>
|
<ResourceFilename Value="frmtable.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="frmTable"/>
|
<UnitName Value="frmTable"/>
|
||||||
<UsageCount Value="62"/>
|
<UsageCount Value="63"/>
|
||||||
</Unit6>
|
</Unit6>
|
||||||
<Unit7>
|
<Unit7>
|
||||||
<CursorPos X="35" Y="26"/>
|
<CursorPos X="35" Y="26"/>
|
||||||
<EditorIndex Value="12"/>
|
<EditorIndex Value="5"/>
|
||||||
<Filename Value="frmabout.pp"/>
|
<Filename Value="frmabout.pp"/>
|
||||||
<ComponentName Value="AboutForm"/>
|
<ComponentName Value="AboutForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -105,7 +106,7 @@
|
|||||||
<ResourceFilename Value="frmabout.lrs"/>
|
<ResourceFilename Value="frmabout.lrs"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="FrmAbout"/>
|
<UnitName Value="FrmAbout"/>
|
||||||
<UsageCount Value="53"/>
|
<UsageCount Value="54"/>
|
||||||
</Unit7>
|
</Unit7>
|
||||||
<Unit8>
|
<Unit8>
|
||||||
<CursorPos X="22" Y="251"/>
|
<CursorPos X="22" Y="251"/>
|
||||||
@ -113,17 +114,17 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<TopLine Value="235"/>
|
<TopLine Value="235"/>
|
||||||
<UnitName Value="PkEditor"/>
|
<UnitName Value="PkEditor"/>
|
||||||
<UsageCount Value="47"/>
|
<UsageCount Value="48"/>
|
||||||
</Unit8>
|
</Unit8>
|
||||||
<Unit9>
|
<Unit9>
|
||||||
<CursorPos X="12" Y="521"/>
|
<CursorPos X="12" Y="521"/>
|
||||||
<EditorIndex Value="14"/>
|
<EditorIndex Value="9"/>
|
||||||
<Filename Value="eleditor.pp"/>
|
<Filename Value="eleditor.pp"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
<TopLine Value="500"/>
|
<TopLine Value="500"/>
|
||||||
<UnitName Value="ElEditor"/>
|
<UnitName Value="ElEditor"/>
|
||||||
<UsageCount Value="47"/>
|
<UsageCount Value="48"/>
|
||||||
</Unit9>
|
</Unit9>
|
||||||
<Unit10>
|
<Unit10>
|
||||||
<CursorPos X="34" Y="28"/>
|
<CursorPos X="34" Y="28"/>
|
||||||
@ -131,11 +132,11 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UnitName Value="FPDEUtil"/>
|
<UnitName Value="FPDEUtil"/>
|
||||||
<UsageCount Value="47"/>
|
<UsageCount Value="48"/>
|
||||||
</Unit10>
|
</Unit10>
|
||||||
<Unit11>
|
<Unit11>
|
||||||
<CursorPos X="15" Y="71"/>
|
<CursorPos X="15" Y="71"/>
|
||||||
<EditorIndex Value="15"/>
|
<EditorIndex Value="10"/>
|
||||||
<Filename Value="frmexample.pp"/>
|
<Filename Value="frmexample.pp"/>
|
||||||
<ComponentName Value="ExampleForm"/>
|
<ComponentName Value="ExampleForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -143,11 +144,11 @@
|
|||||||
<ResourceFilename Value="frmexample.lrs"/>
|
<ResourceFilename Value="frmexample.lrs"/>
|
||||||
<TopLine Value="66"/>
|
<TopLine Value="66"/>
|
||||||
<UnitName Value="FrmExample"/>
|
<UnitName Value="FrmExample"/>
|
||||||
<UsageCount Value="38"/>
|
<UsageCount Value="39"/>
|
||||||
</Unit11>
|
</Unit11>
|
||||||
<Unit12>
|
<Unit12>
|
||||||
<CursorPos X="19" Y="568"/>
|
<CursorPos X="19" Y="568"/>
|
||||||
<EditorIndex Value="16"/>
|
<EditorIndex Value="11"/>
|
||||||
<Filename Value="frmbuild.pp"/>
|
<Filename Value="frmbuild.pp"/>
|
||||||
<ComponentName Value="BuildForm"/>
|
<ComponentName Value="BuildForm"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -155,7 +156,7 @@
|
|||||||
<ResourceFilename Value="frmbuild.lrs"/>
|
<ResourceFilename Value="frmbuild.lrs"/>
|
||||||
<TopLine Value="545"/>
|
<TopLine Value="545"/>
|
||||||
<UnitName Value="frmBuild"/>
|
<UnitName Value="frmBuild"/>
|
||||||
<UsageCount Value="33"/>
|
<UsageCount Value="34"/>
|
||||||
</Unit12>
|
</Unit12>
|
||||||
</Units>
|
</Units>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
|
@ -98,6 +98,12 @@ resourcestring
|
|||||||
lisProjectSrcPath = 'Project Src Path';
|
lisProjectSrcPath = 'Project Src Path';
|
||||||
lisMakeExe = 'Make Executable';
|
lisMakeExe = 'Make Executable';
|
||||||
lisProjectMakroProperties = 'Project makro properties';
|
lisProjectMakroProperties = 'Project makro properties';
|
||||||
|
lisOpenProject2 = 'Open project';
|
||||||
|
lisOpenAsTextFile = 'Open as text file';
|
||||||
|
lisAnErrorOccuredAtLastStartupWhileLoadingLoadThisPro = 'An error occured '
|
||||||
|
+'at last startup while loading %s!%s%sLoad this project again?';
|
||||||
|
lisOpenProjectAgain = 'Open project again';
|
||||||
|
lisStartWithANewProject = 'Start with a new project';
|
||||||
lisProjectMakroUnitPath = 'makro ProjectUnitPath';
|
lisProjectMakroUnitPath = 'makro ProjectUnitPath';
|
||||||
lisConfigDirectory = 'Lazarus config directory';
|
lisConfigDirectory = 'Lazarus config directory';
|
||||||
|
|
||||||
@ -122,6 +128,8 @@ resourcestring
|
|||||||
lisPkgEditPublishPackage = 'Publish Package';
|
lisPkgEditPublishPackage = 'Publish Package';
|
||||||
lisMenuOpenRecent = 'Open Recent';
|
lisMenuOpenRecent = 'Open Recent';
|
||||||
lisMenuSave = 'Save';
|
lisMenuSave = 'Save';
|
||||||
|
lisDiscardChanges = 'Discard changes';
|
||||||
|
lisDoNotCloseTheIDE = 'Do not close the IDE';
|
||||||
lisMenuSaveAs = 'Save As';
|
lisMenuSaveAs = 'Save As';
|
||||||
lisMenuSaveAll = 'Save All';
|
lisMenuSaveAll = 'Save All';
|
||||||
lisMenuClose = 'Close';
|
lisMenuClose = 'Close';
|
||||||
@ -238,6 +246,7 @@ resourcestring
|
|||||||
lisMenuStepOver = 'Step over';
|
lisMenuStepOver = 'Step over';
|
||||||
lisMenuRunToCursor = 'Run to cursor';
|
lisMenuRunToCursor = 'Run to cursor';
|
||||||
lisMenuStop = 'Stop';
|
lisMenuStop = 'Stop';
|
||||||
|
lisContinue = 'Continue';
|
||||||
lisMenuResetDebugger = 'Reset debugger';
|
lisMenuResetDebugger = 'Reset debugger';
|
||||||
lisMenuCompilerOptions = 'Compiler Options...';
|
lisMenuCompilerOptions = 'Compiler Options...';
|
||||||
lisMenuRunParameters = 'Run Parameters ...';
|
lisMenuRunParameters = 'Run Parameters ...';
|
||||||
@ -332,15 +341,20 @@ resourcestring
|
|||||||
+'sinitialization section.%sFor example {$I %s.lrs}.%sProbably a syntax '
|
+'sinitialization section.%sFor example {$I %s.lrs}.%sProbably a syntax '
|
||||||
+'error.';
|
+'error.';
|
||||||
lisResourceLoadError = 'Resource load error';
|
lisResourceLoadError = 'Resource load error';
|
||||||
|
lisIgnoreMissingFile = 'Ignore missing file';
|
||||||
lisnoname = 'noname';
|
lisnoname = 'noname';
|
||||||
lisTheDestinationDirectoryDoesNotExist = 'The destination directory%s%s%s%s '
|
lisTheDestinationDirectoryDoesNotExist = 'The destination directory%s%s%s%s '
|
||||||
+'does not exist.';
|
+'does not exist.';
|
||||||
lisRenameFile = 'Rename file?';
|
lisRenameFile = 'Rename file?';
|
||||||
lisThisLooksLikeAPascalFileFpc10XExpectsPascalFiles = 'This looks like a '
|
lisThisLooksLikeAPascalFileItIsRecommendedToUseLowerC = 'This looks like a '
|
||||||
+'pascal file.%sfpc 1.0.x expects pascal files lowercase.%sRename it to '
|
+'pascal file.%sIt is recommended to use lower case filenames, to avoid '
|
||||||
+'lowercase?';
|
+'various problems on some filesystems and different compilers.%sRename '
|
||||||
|
+'it to lowercase?';
|
||||||
|
lisRenameToLowercase = 'Rename to lowercase';
|
||||||
|
lisKeepName = 'Keep name';
|
||||||
lisOverwriteFile = 'Overwrite file?';
|
lisOverwriteFile = 'Overwrite file?';
|
||||||
lisAFileAlreadyExistsReplaceIt = 'A file %s%s%s already exists.%sReplace it?';
|
lisAFileAlreadyExistsReplaceIt = 'A file %s%s%s already exists.%sReplace it?';
|
||||||
|
lisOverwriteFileOnDisk = 'Overwrite file on disk';
|
||||||
lisAmbiguousFilesFound = 'Ambiguous files found';
|
lisAmbiguousFilesFound = 'Ambiguous files found';
|
||||||
lisThereAreOtherFilesInTheDirectoryWithTheSameName = 'There are other files '
|
lisThereAreOtherFilesInTheDirectoryWithTheSameName = 'There are other files '
|
||||||
+'in the directory with the same name,%swhich only differ in case:%s%s%'
|
+'in the directory with the same name,%swhich only differ in case:%s%s%'
|
||||||
@ -356,6 +370,9 @@ resourcestring
|
|||||||
+'resource T%s:FORMDATA to resource file %s%s%s%s.%sProbably a syntax '
|
+'resource T%s:FORMDATA to resource file %s%s%s%s.%sProbably a syntax '
|
||||||
+'error.';
|
+'error.';
|
||||||
lisUnableToCreateFile2 = 'Unable to create file %s%s%s';
|
lisUnableToCreateFile2 = 'Unable to create file %s%s%s';
|
||||||
|
lisContinueWithoutLoadingForm = 'Continue without loading form';
|
||||||
|
lisCancelLoadingUnit = 'Cancel loading unit';
|
||||||
|
lisAbortAllLoading = 'Abort all loading';
|
||||||
lisUnableToTransformBinaryComponentStreamOfTIntoText = 'Unable to transform '
|
lisUnableToTransformBinaryComponentStreamOfTIntoText = 'Unable to transform '
|
||||||
+'binary component stream of %s:T%s into text.';
|
+'binary component stream of %s:T%s into text.';
|
||||||
lisTheFileWasNotFoundIgnoreWillGoOnLoadingTheProject = 'The file %s%s%s%'
|
lisTheFileWasNotFoundIgnoreWillGoOnLoadingTheProject = 'The file %s%s%s%'
|
||||||
@ -605,6 +622,9 @@ resourcestring
|
|||||||
lisTheUnitAlreadyExistsIgnoreWillForceTheRenaming = 'The unit %s%s%s '
|
lisTheUnitAlreadyExistsIgnoreWillForceTheRenaming = 'The unit %s%s%s '
|
||||||
+'already exists.%sIgnore will force the renaming,%sCancel will cancel '
|
+'already exists.%sIgnore will force the renaming,%sCancel will cancel '
|
||||||
+'the saving of this source and%sAbort will abort the whole saving.';
|
+'the saving of this source and%sAbort will abort the whole saving.';
|
||||||
|
lisForceRenaming = 'Force renaming';
|
||||||
|
lisCancelRenaming = 'Cancel renaming';
|
||||||
|
lisAbortAll = 'Abort all';
|
||||||
lisInvalidPascalIdentifierCap = 'Invalid Pascal Identifier';
|
lisInvalidPascalIdentifierCap = 'Invalid Pascal Identifier';
|
||||||
lisInvalidPascalIdentifierText =
|
lisInvalidPascalIdentifierText =
|
||||||
'The name "%s" is not a valid pascal identifier.';
|
'The name "%s" is not a valid pascal identifier.';
|
||||||
|
57
ide/main.pp
57
ide/main.pp
@ -1268,8 +1268,11 @@ begin
|
|||||||
|
|
||||||
// check project
|
// check project
|
||||||
if SomethingOfProjectIsModified then begin
|
if SomethingOfProjectIsModified then begin
|
||||||
MsgResult:=MessageDlg(lisProjectChanged, Format(lisSaveChangesToProject,
|
MsgResult:=QuestionDlg(lisProjectChanged, Format(lisSaveChangesToProject,
|
||||||
[Project1.Title]), mtConfirmation, [mbYes, mbNo, mbAbort], 0);
|
[Project1.Title]), mtConfirmation,
|
||||||
|
[mrYes, lisMenuSave, mrNo, lisDiscardChanges, mbAbort,
|
||||||
|
lisDoNotCloseTheIDE],
|
||||||
|
0);
|
||||||
case MsgResult of
|
case MsgResult of
|
||||||
|
|
||||||
mrYes:
|
mrYes:
|
||||||
@ -1635,10 +1638,11 @@ procedure TMainIDE.SetupStartProject;
|
|||||||
|
|
||||||
function AskIfLoadLastFailingProject: boolean;
|
function AskIfLoadLastFailingProject: boolean;
|
||||||
begin
|
begin
|
||||||
Result:=MessageDlg('An error occured at last startup while loading '
|
Result:=QuestionDlg(lisOpenProject2,
|
||||||
+EnvironmentOptions.LastSavedProjectFile+ '!'#13
|
Format(lisAnErrorOccuredAtLastStartupWhileLoadingLoadThisPro, [
|
||||||
+#13
|
EnvironmentOptions.LastSavedProjectFile, #13, #13]), mtWarning,
|
||||||
+'Load this project again?', mtWarning, [mbYes,mbNo],0)=mrYes;
|
[mrYes, lisOpenProjectAgain, mrNo, lisStartWithANewProject], 0)=
|
||||||
|
mrYes;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -2692,8 +2696,9 @@ begin
|
|||||||
itDebugger:
|
itDebugger:
|
||||||
begin
|
begin
|
||||||
if Interactive
|
if Interactive
|
||||||
and (MessageDlg(lisStopDebugging,
|
and (QuestionDlg(lisStopDebugging,
|
||||||
lisStopTheDebugging, mtConfirmation, [mbYes, mbCancel], 0)<>mrYes)
|
lisStopTheDebugging, mtConfirmation,
|
||||||
|
[mrYes, lisMenuStop, mrCancel, lisContinue], 0)<>mrYes)
|
||||||
then exit;
|
then exit;
|
||||||
DebugBoss.DoStopProject;
|
DebugBoss.DoStopProject;
|
||||||
end;
|
end;
|
||||||
@ -3558,8 +3563,8 @@ begin
|
|||||||
if (ResourceCode=nil) and (not IgnoreSourceErrors) then begin
|
if (ResourceCode=nil) and (not IgnoreSourceErrors) then begin
|
||||||
MsgTxt:=Format(lisUnableToLoadOldResourceFileTheResourceFileIs, [#13,
|
MsgTxt:=Format(lisUnableToLoadOldResourceFileTheResourceFileIs, [#13,
|
||||||
#13, #13, AnUnitInfo.UnitName, #13]);
|
#13, #13, AnUnitInfo.UnitName, #13]);
|
||||||
Result:=MessageDlg(lisResourceLoadError, MsgTxt, mtWarning,
|
Result:=QuestionDlg(lisResourceLoadError, MsgTxt, mtWarning,
|
||||||
[mbIgnore,mbAbort],0);
|
[mrIgnore, lisIgnoreMissingFile, mrAbort], 0);
|
||||||
if Result=mrAbort then exit;
|
if Result=mrAbort then exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -3670,10 +3675,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
if Project1.IndexOfUnitWithName(NewUnitName,true,AnUnitInfo)>=0 then
|
if Project1.IndexOfUnitWithName(NewUnitName,true,AnUnitInfo)>=0 then
|
||||||
begin
|
begin
|
||||||
Result:=MessageDlg(lisUnitNameAlreadyExistsCap,
|
Result:=QuestionDlg(lisUnitNameAlreadyExistsCap,
|
||||||
Format(lisTheUnitAlreadyExistsIgnoreWillForceTheRenaming, ['"',
|
Format(lisTheUnitAlreadyExistsIgnoreWillForceTheRenaming, ['"',
|
||||||
NewUnitName, '"', #13, #13, #13]),
|
NewUnitName, '"', #13, #13, #13]),
|
||||||
mtConfirmation,[mbIgnore,mbCancel,mbAbort],0);
|
mtConfirmation, [mrIgnore, lisForceRenaming,
|
||||||
|
mrCancel, lisCancelRenaming,
|
||||||
|
mrAbort, lisAbortAll], 0);
|
||||||
if Result=mrIgnore then
|
if Result=mrIgnore then
|
||||||
Result:=mrCancel
|
Result:=mrCancel
|
||||||
else
|
else
|
||||||
@ -3691,9 +3698,10 @@ begin
|
|||||||
if EnvironmentOptions.CharcaseFileAction = ccfaAsk then begin
|
if EnvironmentOptions.CharcaseFileAction = ccfaAsk then begin
|
||||||
if lowercase(FileWithoutPath)<>FileWithoutPath
|
if lowercase(FileWithoutPath)<>FileWithoutPath
|
||||||
then begin
|
then begin
|
||||||
Result:=MessageDlg(lisRenameFile,
|
Result:=QuestionDlg(lisRenameFile,
|
||||||
Format(lisThisLooksLikeAPascalFileFpc10XExpectsPascalFiles, [#13, #13]),
|
Format(lisThisLooksLikeAPascalFileItIsRecommendedToUseLowerC, [
|
||||||
mtWarning,[mbYes,mbNo],0);
|
#13, #13]),
|
||||||
|
mtWarning, [mrYes, lisRenameToLowercase, mrNo, lisKeepName], 0);
|
||||||
if Result=mrYes then
|
if Result=mrYes then
|
||||||
NewFileName:=ExtractFilePath(NewFilename)+lowercase(FileWithoutPath);
|
NewFileName:=ExtractFilePath(NewFilename)+lowercase(FileWithoutPath);
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
@ -3711,7 +3719,8 @@ begin
|
|||||||
and FileExists(NewFilename) then begin
|
and FileExists(NewFilename) then begin
|
||||||
ACaption:=lisOverwriteFile;
|
ACaption:=lisOverwriteFile;
|
||||||
AText:=Format(lisAFileAlreadyExistsReplaceIt, ['"', NewFilename, '"', #13]);
|
AText:=Format(lisAFileAlreadyExistsReplaceIt, ['"', NewFilename, '"', #13]);
|
||||||
Result:=MessageDlg(ACaption, AText, mtConfirmation,[mbok,mbCancel],0);
|
Result:=QuestionDlg(ACaption, AText, mtConfirmation,
|
||||||
|
[mrYes, lisOverwriteFileOnDisk, mbCancel], 0);
|
||||||
if Result=mrCancel then exit;
|
if Result=mrCancel then exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -3912,9 +3921,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:=MessageDlg(lisUnableToCreateFile,
|
Result:=QuestionDlg(lisUnableToCreateFile,
|
||||||
Format(lisUnableToCreateFile2, ['"', LFMFilename, '"']),
|
Format(lisUnableToCreateFile2, ['"', LFMFilename, '"']),
|
||||||
mtWarning,[mbIgnore,mbCancel,mbAbort],0);
|
mtWarning, [mrIgnore, lisContinueWithoutLoadingForm,
|
||||||
|
mrCancel, lisCancelLoadingUnit,
|
||||||
|
mrAbort, lisAbortAllLoading], 0);
|
||||||
if Result<>mrIgnore then exit;
|
if Result<>mrIgnore then exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -5668,9 +5679,10 @@ begin
|
|||||||
and FilenameIsAbsolute(AFilename) and FileExists(AFilename) then begin
|
and FilenameIsAbsolute(AFilename) and FileExists(AFilename) then 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
|
||||||
if MessageDlg(lisOpenProject,
|
if QuestionDlg(lisOpenProject,
|
||||||
Format(lisOpenTheProjectAnswerNoToLoadItAsXmlFile, [AFilename, #13]),
|
Format(lisOpenTheProjectAnswerNoToLoadItAsXmlFile, [AFilename, #13]),
|
||||||
mtConfirmation,[mbYes,mbNo],0)=mrYes
|
mtConfirmation, [mrYes, lisOpenProject2, mrNo, lisOpenAsTextFile], 0)=
|
||||||
|
mrYes
|
||||||
then begin
|
then begin
|
||||||
Result:=DoOpenProjectFile(AFilename,[ofAddToRecent]);
|
Result:=DoOpenProjectFile(AFilename,[ofAddToRecent]);
|
||||||
exit;
|
exit;
|
||||||
@ -5678,9 +5690,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
// 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
|
||||||
if MessageDlg(lisOpenPackage,
|
if QuestionDlg(lisOpenPackage,
|
||||||
Format(lisOpenThePackageAnswerNoToLoadItAsXmlFile, [AFilename, #13]),
|
Format(lisOpenThePackageAnswerNoToLoadItAsXmlFile, [AFilename, #13]),
|
||||||
mtConfirmation,[mbYes,mbNo],0)=mrYes
|
mtConfirmation,
|
||||||
|
[mrYes, lisCompPalOpenPackage, mrNo, lisOpenAsTextFile], 0)=mrYes
|
||||||
then begin
|
then begin
|
||||||
Result:=PkgBoss.DoOpenPackageFile(AFilename,[pofAddToRecent]);
|
Result:=PkgBoss.DoOpenPackageFile(AFilename,[pofAddToRecent]);
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user