| 358 | |
| 359 | |
| 360 | CPath 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 | |
| 376 | void CDirectoryTreeCtrl::AddSubdirectories(wxTreeItemId hBranch, const CPath& path) |
no test coverage detected