void CGItemListArea::SetList (CCodeChain &CC, ICCItem *pList) // SetList // // Sets the list from a CC list { CleanUp(); // Create the new data source m_pListData = new CListWrapper(&CC, pList); m_iType = listCustom; // Done InitRowDesc(); Invalidate(); }
void CGItemListArea::SetList (CItemList &ItemList) // SetList // // Set list of items { CleanUp(); // Create a new data source m_pListData = new CItemListWrapper(ItemList); m_iType = listItem; // Done InitRowDesc(); Invalidate(); }
void CGItemListArea::SetList (CSpaceObject *pSource) // SetList // // Sets the item list that this control will display { CleanUp(); // Make sure the items in the source are sorted pSource->GetItemList().SortItems(); // Create a new data source m_pListData = new CItemListWrapper(pSource); m_iType = listItem; // Done InitRowDesc(); Invalidate(); }