X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c23a0b01b3fb667ec41fc8271ce1ee5b5aa4e19..27476f7368c891de149723b7d4cf9fb922ce8433:/include/wx/stubs/checklst.h diff --git a/include/wx/stubs/checklst.h b/include/wx/stubs/checklst.h index fb623cec0f..19b4ccb8d3 100644 --- a/include/wx/stubs/checklst.h +++ b/include/wx/stubs/checklst.h @@ -17,9 +17,9 @@ #pragma interface "checklst.h" #endif -typedef unsigned int uint; +#include "wx/listbox.h" -class wxCheckListBoxItem; // fwd decl, define in checklst.cpp +typedef unsigned int size_t; class wxCheckListBox : public wxListBox { @@ -37,23 +37,8 @@ public: const wxString& name = wxListBoxNameStr); // items may be checked - bool IsChecked(uint uiIndex) const; - void Check(uint uiIndex, bool bCheck = TRUE); - - // accessors - uint GetItemHeight() const { return m_nItemHeight; } - -protected: - // we create our items ourselves and they have non-standard size, - // so we need to override these functions - virtual wxOwnerDrawn *CreateItem(uint n); - - // pressing space or clicking the check box toggles the item - void OnChar(wxKeyEvent& event); - void OnLeftClick(wxMouseEvent& event); - -private: - uint m_nItemHeight; // height of checklistbox items (the same for all) + bool IsChecked(size_t uiIndex) const; + void Check(size_t uiIndex, bool bCheck = TRUE); DECLARE_EVENT_TABLE() };