X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6eb3a84be918dcfed2496d014549e13af0f0e9..0dd9646ea8b9e6f3a5fa8c42b6a4954cf8e3a48d:/include/wx/osx/carbon/checklst.h diff --git a/include/wx/osx/carbon/checklst.h b/include/wx/osx/carbon/checklst.h index 8be9e99c08..5e2fb9774b 100644 --- a/include/wx/osx/carbon/checklst.h +++ b/include/wx/osx/carbon/checklst.h @@ -13,15 +13,6 @@ #ifndef _WX_MAC_CHECKLST_H_ #define _WX_MAC_CHECKLST_H_ -class wxMacCheckListControl -{ -public : - virtual bool MacIsChecked(unsigned int n) const = 0; - virtual void MacCheck(unsigned int n, bool bCheck = true) = 0; - - virtual ~wxMacCheckListControl() { } -}; - class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase { public: @@ -77,9 +68,22 @@ public: bool IsChecked(unsigned int uiIndex) const; void Check(unsigned int uiIndex, bool bCheck = true); - wxMacCheckListControl* GetPeer() const; + // data callbacks + virtual void GetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value ); + virtual void SetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value ); protected: + // override all methods which add/delete items to update m_checks array as + // well + virtual void OnItemInserted(unsigned int pos); + virtual void DoDeleteOneItem(unsigned int n); + virtual void DoClear(); + + // the array containing the checked status of the items + wxArrayInt m_checks; + + wxListWidgetColumn* m_checkColumn ; + void Init(); private: