X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53f60d4ab61af3d8f72eb2202b4cda96774531d8..2fe2d3de6b8c4020bd36c7259a5d4fb70b670592:/include/wx/listbox.h diff --git a/include/wx/listbox.h b/include/wx/listbox.h index cd4c0fa6f8..01f64a7ab1 100644 --- a/include/wx/listbox.h +++ b/include/wx/listbox.h @@ -101,9 +101,6 @@ public: // send the appropriate event if they differ, otherwise just return false. bool CalcAndSendEvent(); - wxArrayInt m_oldSelections; - void UpdateOldSelections(); - protected: virtual void DoSetFirstItem(int n) = 0; @@ -118,6 +115,16 @@ protected: // Returns true if the event was processed. bool SendEvent(wxEventType evtType, int item, bool selected); + // Array storing the indices of all selected items that we already notified + // the user code about for multi selection list boxes. + // + // TODO-OPT: wxSelectionStore would be more efficient for big list boxes. + wxArrayInt m_oldSelections; + + // Update m_oldSelections with currently selected items (does nothing in + // single selection mode). + void UpdateOldSelections(); + private: wxDECLARE_NO_COPY_CLASS(wxListBoxBase); };