Add wxListCtrlBase::GetItemCount() pure virtual

No real changes, just ensure that all derived classes implement this
method (which already was the case).
This commit is contained in:
Vadim Zeitlin 2019-10-08 01:16:50 +02:00
parent 30dabbdf69
commit f95ce8d9d5
4 changed files with 6 additions and 3 deletions

View File

@ -86,7 +86,7 @@ public:
bool GetSubItemRect( long item, long subItem, wxRect& rect, int code = wxLIST_RECT_BOUNDS ) const;
bool GetItemPosition( long item, wxPoint& pos ) const;
bool SetItemPosition( long item, const wxPoint& pos ); // not supported in wxGLC
int GetItemCount() const;
int GetItemCount() const wxOVERRIDE;
int GetColumnCount() const wxOVERRIDE;
void SetItemSpacing( int spacing, bool isSmall = false );
wxSize GetItemSpacing() const;

View File

@ -378,6 +378,9 @@ public:
virtual bool DeleteColumn(int col) = 0;
virtual bool DeleteAllColumns() = 0;
// Return the current number of items.
virtual int GetItemCount() const = 0;
// Return the current number of columns.
virtual int GetColumnCount() const = 0;

View File

@ -199,7 +199,7 @@ public:
bool SetItemPosition(long item, const wxPoint& pos);
// Gets the number of items in the list control
int GetItemCount() const;
int GetItemCount() const wxOVERRIDE;
// Gets the number of columns in the list control
int GetColumnCount() const wxOVERRIDE { return m_colCount; }

View File

@ -127,7 +127,7 @@ public:
bool SetItemPosition(long item, const wxPoint& pos);
// Gets the number of items in the list control
int GetItemCount() const;
int GetItemCount() const wxOVERRIDE;
// Gets the number of columns in the list control
int GetColumnCount() const wxOVERRIDE;