mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Debugger: Updated delete/confirmation dialogs to TTaskDialog.
This commit is contained in:
parent
5779cff4d2
commit
55a673e4c4
@ -840,6 +840,7 @@ var
|
||||
CurBreakPoint: TIDEBreakPoint;
|
||||
Filename: String;
|
||||
MsgResult: Integer;
|
||||
NotAgain: Boolean;
|
||||
begin
|
||||
BeginUpdate;
|
||||
try
|
||||
@ -849,11 +850,11 @@ begin
|
||||
Filename:=TIDEBreakpoint(tvBreakPoints.NodeItem[VNode]).Source;
|
||||
|
||||
if EnvironmentDebugOpts.ConfirmDeleteFileBreakPoints then begin
|
||||
MsgResult:=IDEQuestionDialog(lisDeleteAllBreakpoints, lisDeleteAllBreakpoints2, mtConfirmation,
|
||||
[mrYes, lisYes, mrNo, lisNo, mrYesToAll, dbgDoNotShowThisMessageAgain], '');
|
||||
MsgResult:=TaskDlg(lisDeleteAllBreakpoints, lisDeleteAllBreakpoints2, '', tdiQuestion,
|
||||
[mbYes, mbNo], dbgDoNotShowThisMessageAgain, NotAgain);
|
||||
if MsgResult = mrNo then
|
||||
exit;
|
||||
if MsgResult = mrYesToAll then
|
||||
if NotAgain then
|
||||
EnvironmentDebugOpts.ConfirmDeleteFileBreakPoints:= False;
|
||||
end;
|
||||
|
||||
@ -921,13 +922,14 @@ var
|
||||
VNode: PVirtualNode;
|
||||
CurBreakPoint: TIDEBreakPoint;
|
||||
MsgResult: Integer;
|
||||
NotAgain: Boolean;
|
||||
begin
|
||||
if EnvironmentDebugOpts.ConfirmDeleteAllBreakPoints then begin
|
||||
MsgResult:=IDEQuestionDialog(lisDeleteAllBreakpoints, lisDeleteAllBreakpoints, mtConfirmation,
|
||||
[mrYes, lisYes, mrNo, lisNo, mrYesToAll, dbgDoNotShowThisMessageAgain], '');
|
||||
MsgResult:=TaskDlg(lisDeleteAllBreakpoints, lisDeleteAllBreakpoints, '', tdiQuestion,
|
||||
[mbYes, mbNo], dbgDoNotShowThisMessageAgain, NotAgain);
|
||||
if MsgResult = mrNo then
|
||||
exit;
|
||||
if MsgResult = mrYesToAll then
|
||||
if NotAgain then
|
||||
EnvironmentDebugOpts.ConfirmDeleteAllBreakPoints := False;
|
||||
end;
|
||||
|
||||
|
@ -120,13 +120,14 @@ end;
|
||||
procedure THistoryDialog.tbClearClick(Sender: TObject);
|
||||
var
|
||||
MsgResult: Integer;
|
||||
NotAgain: Boolean;
|
||||
begin
|
||||
if EnvironmentDebugOpts.ConfirmDeleteAllHistory then begin
|
||||
MsgResult:=IDEQuestionDialog(dlgHistoryDeleteAllConfirm, dlgHistoryDeleteAllConfirm, mtConfirmation,
|
||||
[mrYes, lisYes, mrNo, lisNo, mrYesToAll, dbgDoNotShowThisMessageAgain], '');
|
||||
MsgResult:=TaskDlg(dlgHistoryDeleteAllConfirm, dlgHistoryDeleteAllConfirm, '', tdiQuestion,
|
||||
[mbYes, mbNo], dbgDoNotShowThisMessageAgain, NotAgain);
|
||||
if MsgResult = mrNo then
|
||||
exit;
|
||||
if MsgResult = mrYesToAll then
|
||||
if NotAgain then
|
||||
EnvironmentDebugOpts.ConfirmDeleteAllHistory := False;
|
||||
end;
|
||||
|
||||
|
@ -497,7 +497,7 @@ resourcestring
|
||||
DispFormatOptChangingDescrSome = 'Setting fallback options for all windows.';
|
||||
DispFormatOptProjectText = 'General and specific project settings will be used first. Only if none of them sets a default, then the IDE-wide settings will be tried.';
|
||||
|
||||
dbgDoNotShowThisMessageAgain = 'Yes, do not show this message again';
|
||||
dbgDoNotShowThisMessageAgain = 'Do not ask again';
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -31,7 +31,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "بعض المجموعات في قائمة تفعيل/تعطيل غير موجودة.%0:sعل يتم إنشاؤها؟%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -31,7 +31,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Některé skupiny v seznamu Povolené/Zakázané neexistují.%0:sMají se vytvořit?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Einige Gruppen in der Aktivierungsliste existieren nicht.%0:sErzeugen?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Algunos grupos en la lista Activar/Desactivar no existen.%0:s¿Crearlos?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Joitain Salli/Estä listan ryhmiä ei ole.%0:sLuodaanko ne?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Certains groupes de la liste Activer/désactiver n'existent pas.%0:sFaut-il les créer ?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -31,7 +31,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Néhány csoport az Engedélyezés/Letiltás listában nem létezik.%0:sLétre legyenek hozva?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -31,7 +31,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Alcuni gruppi nella lista Abilita/Disabilita non esistono.%0:sCrearli?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "有効/無効リストのグループのいくつかが存在しません。%0:s作成しますか?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Aktyvinimo/pasyvinimo sąraše yra neegzistuojančių grupių.%0:sJas sukurti?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -31,7 +31,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -32,7 +32,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -28,7 +28,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -39,7 +39,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Alguns grupos na lista Habilitar/Desabilitar não existem.%0:sCriá-los?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -38,7 +38,9 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Некоторые группы в списке включения/отключения не существуют.%0:sСоздать их?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
#, fuzzy
|
||||
#| msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr "Да, больше не показывать это сообщение"
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -38,7 +38,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -38,7 +38,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Etkin/Devre dışı listesindeki bazı gruplar mevcut değil.%0:sOluşturulsun mu?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -40,7 +40,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "Деякі групи в списку ввімкнення/вимкнення не існують.%0:sСтворити їх?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -39,7 +39,7 @@ msgid "Some groups in the Enable/Disable list do not exist.%0:sCreate them?%0:s%
|
||||
msgstr "一些组在启用/禁用列表中不存在。%0:s创建它们吗?%0:s%0:s%1:s"
|
||||
|
||||
#: idedebuggerstringconstants.dbgdonotshowthismessageagain
|
||||
msgid "Yes, do not show this message again"
|
||||
msgid "Do not ask again"
|
||||
msgstr ""
|
||||
|
||||
#: idedebuggerstringconstants.dispformatbasebin
|
||||
|
@ -903,13 +903,14 @@ procedure TWatchesDlg.popDeleteAllClick(Sender: TObject);
|
||||
var
|
||||
VNode: PVirtualNode;
|
||||
MsgResult: Integer;
|
||||
NotAgain: Boolean;
|
||||
begin
|
||||
if EnvironmentDebugOpts.ConfirmDeleteAllWatches then begin
|
||||
MsgResult:=IDEQuestionDialog(dlgWatchesDeleteAllConfirm, dlgWatchesDeleteAllConfirm, mtConfirmation,
|
||||
[mrYes, lisYes, mrNo, lisNo, mrYesToAll, dbgDoNotShowThisMessageAgain], '');
|
||||
MsgResult:=TaskDlg(dlgWatchesDeleteAllConfirm, dlgWatchesDeleteAllConfirm, '', tdiQuestion,
|
||||
[mbYes, mbNo], dbgDoNotShowThisMessageAgain, NotAgain);
|
||||
if MsgResult = mrNo then
|
||||
exit;
|
||||
if MsgResult = mrYesToAll then
|
||||
if NotAgain then
|
||||
EnvironmentDebugOpts.ConfirmDeleteAllWatches := False;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user