Move wxListBox selection event generation to wxListBox itself

This allows to avoid making DoChangeSingleSelection() and
CalcAndSendEvent() public.

No real changes, this is just a refactoring.
This commit is contained in:
Vadim Zeitlin
2018-06-30 23:13:33 +02:00
parent 1eee7a8a3c
commit dde6f662fc
3 changed files with 33 additions and 27 deletions

View File

@@ -126,10 +126,8 @@ public:
virtual void HandleLineEvent( unsigned int n, bool doubleClick );
// These are called by wxNSTableView
using wxListBoxBase::DoChangeSingleSelection;
using wxListBoxBase::CalcAndSendEvent;
int GetOldSelection() const { return m_oldSelections.empty() ? wxNOT_FOUND : m_oldSelections[0]; }
// This is called by wxNSTableView
void MacHandleSelectionChange(int row);
protected:
// callback for derived classes which may have to insert additional data