diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-18 17:07:55 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-18 17:07:55 +0200 |
commit | c5b339a2f692b27fb239386ceafc1145e967773b (patch) | |
tree | 66e9e4f19527699931961d45ba2fb93c67fa6bd7 /src | |
parent | 22e6fb73635a415cf338b9d2a4e59fd0c71e482e (diff) | |
download | fpGUI-c5b339a2f692b27fb239386ceafc1145e967773b.tar.xz |
TreeNode.Append() changed parameter name to something more meaningful.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_tree.pas | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gui/fpg_tree.pas b/src/gui/fpg_tree.pas index e38b32da..d8f3fde2 100644 --- a/src/gui/fpg_tree.pas +++ b/src/gui/fpg_tree.pas @@ -104,7 +104,7 @@ type function FindSubNode(AData: TObject; ARecursive: Boolean): TfpgTreeNode; overload; function GetMaxDepth: integer; function GetMaxVisibleDepth: integer; - procedure Append(var aValue: TfpgTreeNode); + procedure Append(var ANode: TfpgTreeNode); procedure Clear; // remove all nodes recursively procedure Collapse; procedure Expand; @@ -418,20 +418,21 @@ begin end; end; -procedure TfpgTreeNode.Append(var aValue: TfpgTreeNode); +procedure TfpgTreeNode.Append(var ANode: TfpgTreeNode); begin - aValue.Parent := self; - aValue.Next := nil; + DoTreeCheck(ANode); + ANode.Parent := self; + ANode.Next := nil; if FFirstSubNode = nil then - FFirstSubNode := aValue; + FFirstSubNode := ANode; - aValue.prev := FLastSubNode; + ANode.Prev := FLastSubNode; if FLastSubNode <> nil then - FLastSubNode.Next := aValue; + FLastSubNode.Next := ANode; - FLastSubNode := aValue; + FLastSubNode := ANode; end; function TfpgTreeNode.FindSubNode(AText: string; ARecursive: Boolean): TfpgTreeNode; |