mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 13:19:20 +02:00
fixed finding class after class completion
git-svn-id: trunk@6514 -
This commit is contained in:
parent
66a176a847
commit
d92ce8d36c
@ -2269,7 +2269,7 @@ var CleanCursorPos, Indent, insertPos: integer;
|
|||||||
// due to insertions in fron of the class, the cursor position could
|
// due to insertions in fron of the class, the cursor position could
|
||||||
// have changed
|
// have changed
|
||||||
while (CursorNode<>nil) do begin
|
while (CursorNode<>nil) do begin
|
||||||
if (CursorNode.Desc in [ctnTypeSection,ctnTypeDefinition,ctnClass])
|
if (CursorNode.Desc in [ctnTypeSection,ctnTypeDefinition])
|
||||||
then break;
|
then break;
|
||||||
CursorNode:=CursorNode.Parent;
|
CursorNode:=CursorNode.Parent;
|
||||||
end;
|
end;
|
||||||
|
@ -94,6 +94,8 @@ type
|
|||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
procedure Loaded; override;
|
procedure Loaded; override;
|
||||||
|
procedure SaveChanges; virtual;
|
||||||
|
public
|
||||||
property ListObject: TObject read FListObject write SetListObject;
|
property ListObject: TObject read FListObject write SetListObject;
|
||||||
property ListDirection: TTIListDirection read FListDirection write SetListDirection;
|
property ListDirection: TTIListDirection read FListDirection write SetListDirection;
|
||||||
property DefaultRowHeight default 20;
|
property DefaultRowHeight default 20;
|
||||||
@ -177,6 +179,8 @@ procedure TTICustomGrid.SetListObject(const AValue: TObject);
|
|||||||
begin
|
begin
|
||||||
if FListObject=AValue then exit;
|
if FListObject=AValue then exit;
|
||||||
FListObject:=AValue;
|
FListObject:=AValue;
|
||||||
|
if SaveOnChangeTIObject then
|
||||||
|
SaveChanges;
|
||||||
ReloadTIList;
|
ReloadTIList;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -237,6 +241,11 @@ begin
|
|||||||
ReloadTIList;
|
ReloadTIList;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TTICustomGrid.SaveChanges;
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
// property editor for TTICustomPropertyGrid.TIObject
|
// property editor for TTICustomPropertyGrid.TIObject
|
||||||
RegisterPropertyEditor(ClassTypeInfo(TPersistent),
|
RegisterPropertyEditor(ClassTypeInfo(TPersistent),
|
||||||
|
Loading…
Reference in New Issue
Block a user