checklst.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/checklst.h
  3. // Purpose: wxCheckListBox class
  4. // Author: Robert Roebling
  5. // Modified by:
  6. // Copyright: (c) 1998 Robert Roebling
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GTKCHECKLIST_H_
  10. #define _WX_GTKCHECKLIST_H_
  11. //-----------------------------------------------------------------------------
  12. // wxCheckListBox
  13. // ----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
  15. {
  16. public:
  17. wxCheckListBox();
  18. wxCheckListBox(wxWindow *parent, wxWindowID id,
  19. const wxPoint& pos = wxDefaultPosition,
  20. const wxSize& size = wxDefaultSize,
  21. int nStrings = 0,
  22. const wxString *choices = NULL,
  23. long style = 0,
  24. const wxValidator& validator = wxDefaultValidator,
  25. const wxString& name = wxListBoxNameStr);
  26. wxCheckListBox(wxWindow *parent, wxWindowID id,
  27. const wxPoint& pos,
  28. const wxSize& size,
  29. const wxArrayString& choices,
  30. long style = 0,
  31. const wxValidator& validator = wxDefaultValidator,
  32. const wxString& name = wxListBoxNameStr);
  33. virtual bool IsChecked(unsigned int index) const;
  34. virtual void Check(unsigned int index, bool check = true);
  35. int GetItemHeight() const;
  36. void DoCreateCheckList();
  37. private:
  38. DECLARE_DYNAMIC_CLASS(wxCheckListBox)
  39. };
  40. #endif // _WX_GTKCHECKLIST_H_