MCPcopy Create free account
hub / github.com/amule-project/amule / GetFullPath

Method GetFullPath

src/DirectoryTreeCtrl.cpp:360–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358
359
360CPath CDirectoryTreeCtrl::GetFullPath(wxTreeItemId hItem)
361{
362 { wxCHECK_MSG(hItem.IsOk(), CPath(), "Invalid item in GetFullPath"); }
363
364 CPath result;
365 for (; hItem.IsOk(); hItem = GetItemParent(hItem)) {
366 CItemData* data = dynamic_cast<CItemData*>(GetItemData(hItem));
367 wxCHECK_MSG(data, CPath(), "Missing data-item in GetFullPath");
368
369 result = data->GetPathComponent().JoinPaths(result);
370 }
371
372 return result;
373}
374
375
376void CDirectoryTreeCtrl::AddSubdirectories(wxTreeItemId hBranch, const CPath& path)

Callers 15

InitCommonMethod · 0.80
OnInitMethod · 0.80
OnFinishedCompletionMethod · 0.80
OnFileSystemEventMethod · 0.80
Check_and_Init_SkinMethod · 0.80
Add_Skin_IconMethod · 0.80
GetKeyMethod · 0.80
OnRefreshTimerMethod · 0.80
OnFtpUpdateTimerMethod · 0.80
RefreshMethod · 0.80
RefreshMethod · 0.80
SetED2KHashFromFileMethod · 0.80

Calls 3

JoinPathsMethod · 0.80
CPathClass · 0.70
IsOkMethod · 0.45

Tested by

no test coverage detected