263 |
|
|
264 |
|
i: Integer; |
265 |
|
links: TStrings; |
266 |
+ |
ifile: TFile; |
267 |
|
begin |
268 |
|
inherited; |
269 |
|
if Assigned(Node) then |
279 |
|
2: HintText := ''; |
280 |
|
end; |
281 |
|
end; |
282 |
< |
if (data.Field is _MetaTypes.TDatLink) and (Column = 2) then |
282 |
> |
if data.Field is TFile then |
283 |
|
begin |
284 |
< |
links := nil; |
285 |
< |
links := ConManager.Connection[FConnectionID].GetFilesList(_MetaTypes.TDatLink(data.Field).PosExts, '', False, ST_NameAsc); |
286 |
< |
HintText := IntToStr(links.Count); |
287 |
< |
for i := 0 to Min(links.Count - 1, 99) do |
288 |
< |
begin |
289 |
< |
if (i mod 5) = 0 then |
290 |
< |
HintText := HintText + #13+#10; |
290 |
< |
HintText := HintText + links.Strings[i] + ' '; |
284 |
> |
ifile := TFile(data.Field); |
285 |
> |
case Column of |
286 |
> |
0: HintText := |
287 |
> |
'FileID: ' + IntToStr(ifile.FileInfo.ID) + #13#10 + |
288 |
> |
'Name: ' + ifile.FileInfo.Name + #13#10 + |
289 |
> |
'Extension: ' + ifile.FileInfo.Extension + #13#10 + |
290 |
> |
'.dat-size: ' + IntToStr(ifile.FileInfo.Size) + #13#10; |
291 |
|
end; |
292 |
|
end; |
293 |
|
end; |