2001-06-26 20:59:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/checklst.h
|
|
|
|
// Purpose: wxCheckListBox class interface
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12.09.00
|
|
|
|
// Copyright: (c) Vadim Zeitlin
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 20:59:19 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_CHECKLST_H_BASE_
|
|
|
|
#define _WX_CHECKLST_H_BASE_
|
|
|
|
|
2010-08-08 11:35:55 +00:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#if wxUSE_CHECKLISTBOX
|
|
|
|
|
|
|
|
#include "wx/listbox.h"
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxCheckListBox: a listbox whose items may be checked
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2015-08-27 15:48:54 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxCheckListBoxBase : public wxListBox
|
2001-06-26 20:59:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-01-15 13:49:22 +00:00
|
|
|
wxCheckListBoxBase() { }
|
2003-07-22 00:24:07 +00:00
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
// check list box specific methods
|
2006-03-23 22:05:23 +00:00
|
|
|
virtual bool IsChecked(unsigned int item) const = 0;
|
|
|
|
virtual void Check(unsigned int item, bool check = true) = 0;
|
2003-07-22 00:24:07 +00:00
|
|
|
|
2013-01-21 11:18:55 +00:00
|
|
|
virtual unsigned int GetCheckedItems(wxArrayInt& checkedItems) const;
|
|
|
|
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase);
|
2001-06-26 20:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/checklst.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/checklst.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/motif/checklst.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK20__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/gtk/checklst.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK__)
|
|
|
|
#include "wx/gtk1/checklst.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 19:17:41 +00:00
|
|
|
#include "wx/osx/checklst.h"
|
2014-08-24 01:50:11 +00:00
|
|
|
#elif defined(__WXQT__)
|
|
|
|
#include "wx/qt/checklst.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_CHECKLISTBOX
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#endif
|
|
|
|
// _WX_CHECKLST_H_BASE_
|