2011-03-20 18:05:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/gtk/checklst.h
|
|
|
|
// Purpose: wxCheckListBox class
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Modified by:
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2013-09-22 22:44:55 +00:00
|
|
|
#ifndef _WX_GTKCHECKLIST_H_
|
|
|
|
#define _WX_GTKCHECKLIST_H_
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxCheckListBox
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2013-09-22 22:44:55 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
|
2011-03-20 18:05:19 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxCheckListBox();
|
|
|
|
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
int nStrings = 0,
|
2013-09-22 22:44:55 +00:00
|
|
|
const wxString *choices = NULL,
|
2011-03-20 18:05:19 +00:00
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr);
|
|
|
|
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr);
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual bool IsChecked(unsigned int index) const wxOVERRIDE;
|
|
|
|
virtual void Check(unsigned int index, bool check = true) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
int GetItemHeight() const;
|
|
|
|
|
|
|
|
void DoCreateCheckList();
|
|
|
|
|
|
|
|
private:
|
2016-06-26 05:25:29 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxCheckListBox);
|
2011-03-20 18:05:19 +00:00
|
|
|
};
|
|
|
|
|
2013-09-22 22:44:55 +00:00
|
|
|
#endif // _WX_GTKCHECKLIST_H_
|