mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-04 11:56:25 +02:00
IDE/LCL: Prevent using the TListItems component editor when the associated listview is in virtual mode. https://forum.lazarus.freepascal.org/index.php/topic,66660.0.html, patch by dsiders.
This commit is contained in:
parent
5f9dd398f7
commit
5621ec7af3
@ -1643,6 +1643,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
|
@ -1588,6 +1588,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Stavový index:"
|
msgstr "Stavový index:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -2,7 +2,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"POT-Creation-Date: \n"
|
"POT-Creation-Date: \n"
|
||||||
"PO-Revision-Date: 2024-02-21 23:55+0100\n"
|
"PO-Revision-Date: 2024-03-18 21:06+0100\n"
|
||||||
"Last-Translator: Swen Heinig <swen@heinig.email>\n"
|
"Last-Translator: Swen Heinig <swen@heinig.email>\n"
|
||||||
"Language-Team: Deutsch <lazarus@miraclec.com>\n"
|
"Language-Team: Deutsch <lazarus@miraclec.com>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@ -1586,6 +1586,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Status-Index:"
|
msgstr "Status-Index:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr "Listeneinträge können zur Entwurfszeit nicht bearbeitet werden, wenn OwnerData aktiviert ist. Verwenden Sie dafür stattdessen Items.Count und das OnData-Ereignis."
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
@ -1871,4 +1875,3 @@ msgstr "Tab nach links bewegen"
|
|||||||
#: objinspstrconsts.tccesmovetabright
|
#: objinspstrconsts.tccesmovetabright
|
||||||
msgid "Move tab right"
|
msgid "Move tab right"
|
||||||
msgstr "Tab nach rechts bewegen"
|
msgstr "Tab nach rechts bewegen"
|
||||||
|
|
||||||
|
@ -1589,6 +1589,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Índice de estado:"
|
msgstr "Índice de estado:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1587,6 +1587,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Tila osoitin:"
|
msgstr "Tila osoitin:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1584,6 +1584,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "État de l'index :"
|
msgstr "État de l'index :"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1650,6 +1650,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "אינדקס מצב:"
|
msgstr "אינדקס מצב:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1587,6 +1587,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Állapot index:"
|
msgstr "Állapot index:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1650,6 +1650,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Indeks Keadaan:"
|
msgstr "Indeks Keadaan:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
|
@ -1590,6 +1590,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Indice di stato:"
|
msgstr "Indice di stato:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1597,6 +1597,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "ステートのインデックス:"
|
msgstr "ステートのインデックス:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1589,6 +1589,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Būsenos indeksas:"
|
msgstr "Būsenos indeksas:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1642,6 +1642,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Status index:"
|
msgstr "Status index:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1582,6 +1582,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1574,6 +1574,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Índice Estado:"
|
msgstr "Índice Estado:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Индекс состояния:"
|
msgstr "Индекс состояния:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1597,6 +1597,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Stavový index:"
|
msgstr "Stavový index:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Durum dizini:"
|
msgstr "Durum dizini:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1586,6 +1586,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "Індекс стану:"
|
msgstr "Індекс стану:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -1584,6 +1584,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex"
|
|||||||
msgid "State Index:"
|
msgid "State Index:"
|
||||||
msgstr "状态索引:"
|
msgstr "状态索引:"
|
||||||
|
|
||||||
|
#: objinspstrconsts.sccslvedtmsgownerdata
|
||||||
|
msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: objinspstrconsts.sccslvedtnewitem
|
#: objinspstrconsts.sccslvedtnewitem
|
||||||
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
msgctxt "objinspstrconsts.sccslvedtnewitem"
|
||||||
msgid "New Item"
|
msgid "New Item"
|
||||||
|
@ -29,7 +29,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils,
|
Classes, SysUtils,
|
||||||
// LCL
|
// LCL
|
||||||
Forms, Controls, ComCtrls, StdCtrls, Buttons, ButtonPanel,
|
Forms, Controls, ComCtrls, StdCtrls, Dialogs, Buttons, ButtonPanel,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
PropEdits, ComponentEditors, ObjInspStrConsts, IDEWindowIntf;
|
PropEdits, ComponentEditors, ObjInspStrConsts, IDEWindowIntf;
|
||||||
|
|
||||||
@ -92,6 +92,13 @@ function EditListView(AListView: TListView): Boolean;
|
|||||||
var
|
var
|
||||||
ListViewEditorDlg: TListViewItemsEditorForm;
|
ListViewEditorDlg: TListViewItemsEditorForm;
|
||||||
begin
|
begin
|
||||||
|
if AListView.OwnerData then
|
||||||
|
begin
|
||||||
|
MessageDlg(sccsLvEdtMsgOwnerData, mtError, [mbOK], 0);
|
||||||
|
Result := false;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
ListViewEditorDlg := TListViewItemsEditorForm.Create(Application);
|
ListViewEditorDlg := TListViewItemsEditorForm.Create(Application);
|
||||||
try
|
try
|
||||||
ListViewEditorDlg.LoadFromList(AListView);
|
ListViewEditorDlg.LoadFromList(AListView);
|
||||||
|
@ -134,6 +134,7 @@ resourcestring
|
|||||||
sccsLvEdtLabelImageIndex = 'Image Index:';
|
sccsLvEdtLabelImageIndex = 'Image Index:';
|
||||||
sccsLvEdtLabelStateIndex = 'State Index:';
|
sccsLvEdtLabelStateIndex = 'State Index:';
|
||||||
sccsLvEdtItem = 'Item';
|
sccsLvEdtItem = 'Item';
|
||||||
|
sccsLvEdtMsgOwnerData = 'List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead.';
|
||||||
|
|
||||||
// Image editor strings
|
// Image editor strings
|
||||||
oisImageListComponentEditor = 'I&mageList Editor ...';
|
oisImageListComponentEditor = 'I&mageList Editor ...';
|
||||||
|
Loading…
Reference in New Issue
Block a user