Changeset 44 for branches/DelphiToC/Visual/USourceTree.pas
- Timestamp:
- Aug 9, 2010, 10:22:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Visual/USourceTree.pas
r42 r44 23 23 procedure AddNodeConstantList(Node: TTreeNode; Constants: TConstantList); 24 24 procedure AddNodeModule(Node: TTreeNode; Module: TModule); 25 procedure AddNodeUses(Node: TTreeNode; UsedModuleList: TUsedModuleList); 25 26 procedure AddNodeProgram(Node: TTreeNode; Code: TProgram); 26 27 procedure AddNodeWhileDo(Node: TTreeNode; WhileDo: TWhileDo); … … 207 208 end; 208 209 NewNode := TreeView.Items.AddChild(Node, TypeName + ' ' + Module.Name); 209 for I := 0 to Module.Constants.Count - 1 do begin 210 AddNodeMethodList(NewNode, Module.Methods); 211 AddNodeConstantList(NewNode, Module.Constants); 212 AddNodeVariableList(NewNode, Module.Variables); 213 AddNodeTypeList(NewNode, Module.Types); 214 AddNodeBeginEnd(NewNode, Module.Code); 210 AddNodeUses(NewNode, Module.UsedModules); 211 AddNodeMethodList(NewNode, Module.Methods); 212 AddNodeConstantList(NewNode, Module.Constants); 213 AddNodeVariableList(NewNode, Module.Variables); 214 AddNodeTypeList(NewNode, Module.Types); 215 AddNodeBeginEnd(NewNode, Module.Code); 216 end; 217 218 procedure TSourceTree.AddNodeUses(Node: TTreeNode; 219 UsedModuleList: TUsedModuleList); 220 var 221 NewNode: TTreeNode; 222 I: Integer; 223 begin 224 NewNode := TreeView.Items.AddChild(Node, 'uses'); 225 for I := 0 to UsedModuleList.Count - 1 do begin 226 TreeView.Items.AddChild(NewNode, TUsedModule(UsedModuleList[I]).Name); 215 227 end; 216 228 end;
Note:
See TracChangeset
for help on using the changeset viewer.