Move virtual stub functions to wxListCtrlBase
This commit is contained in:
@@ -5533,31 +5533,6 @@ wxSize wxGenericListCtrl::DoGetBestClientSize() const
|
||||
// virtual list control support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxString wxGenericListCtrl::OnGetItemText(long WXUNUSED(item), long WXUNUSED(col)) const
|
||||
{
|
||||
// this is a pure virtual function, in fact - which is not really pure
|
||||
// because the controls which are not virtual don't need to implement it
|
||||
wxFAIL_MSG( wxT("wxGenericListCtrl::OnGetItemText not supposed to be called") );
|
||||
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
int wxGenericListCtrl::OnGetItemImage(long WXUNUSED(item)) const
|
||||
{
|
||||
wxCHECK_MSG(!GetImageList(wxIMAGE_LIST_SMALL),
|
||||
-1,
|
||||
wxT("List control has an image list, OnGetItemImage or OnGetItemColumnImage should be overridden."));
|
||||
return -1;
|
||||
}
|
||||
|
||||
int wxGenericListCtrl::OnGetItemColumnImage(long item, long column) const
|
||||
{
|
||||
if (!column)
|
||||
return OnGetItemImage(item);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
void wxGenericListCtrl::SetItemCount(long count)
|
||||
{
|
||||
wxASSERT_MSG( IsVirtual(), wxT("this is for virtual controls only") );
|
||||
|
Reference in New Issue
Block a user