/////////////////////////////////////////////////////////////////////
| 527 | |
| 528 | ////////////////////////////////////////////////////////////////////////// |
| 529 | void CBaseLibraryDialog::SelectItem( CBaseLibraryItem *item,bool bForceReload ) |
| 530 | { |
| 531 | if (item == m_pCurrentItem && !bForceReload) |
| 532 | return; |
| 533 | |
| 534 | if (item) |
| 535 | { |
| 536 | // Selecting item from different library. |
| 537 | if (item->GetLibrary() != m_pLibrary) |
| 538 | { |
| 539 | // Select library first. |
| 540 | SelectLibrary( item->GetLibrary()->GetName() ); |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | m_pCurrentItem = item; |
| 545 | |
| 546 | if (item) |
| 547 | { |
| 548 | m_selectedGroup = item->GetGroupName(); |
| 549 | } |
| 550 | else |
| 551 | m_selectedGroup = ""; |
| 552 | |
| 553 | m_pCurrentItem = item; |
| 554 | |
| 555 | // Set item visible. |
| 556 | HTREEITEM hItem = stl::find_in_map( m_itemsToTree,item,(HTREEITEM)0 ); |
| 557 | if (hItem) |
| 558 | { |
| 559 | m_treeCtrl.SelectItem(hItem); |
| 560 | m_treeCtrl.EnsureVisible(hItem); |
| 561 | } |
| 562 | } |
| 563 | |
| 564 | ////////////////////////////////////////////////////////////////////////// |
| 565 | void CBaseLibraryDialog::Update() |
nothing calls this directly
no test coverage detected