2001-06-26 16:59:19 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/checklst.h
|
|
|
|
// Purpose: wxCheckListBox class interface
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12.09.00
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Vadim Zeitlin
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 16:59:19 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_CHECKLST_H_BASE_
|
|
|
|
#define _WX_CHECKLST_H_BASE_
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#if wxUSE_CHECKLISTBOX
|
|
|
|
|
|
|
|
#include "wx/listbox.h"
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxCheckListBox: a listbox whose items may be checked
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxCheckListBoxBase : public
|
2005-11-05 17:49:33 -05:00
|
|
|
#ifdef __WXWINCE__
|
|
|
|
// keep virtuals synchronised
|
|
|
|
wxListBoxBase
|
|
|
|
#else
|
|
|
|
wxListBox
|
|
|
|
#endif
|
2001-06-26 16:59:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2004-01-15 08:49:22 -05:00
|
|
|
wxCheckListBoxBase() { }
|
2003-07-21 20:24:07 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
// check list box specific methods
|
2006-03-23 17:05:23 -05:00
|
|
|
virtual bool IsChecked(unsigned int item) const = 0;
|
|
|
|
virtual void Check(unsigned int item, bool check = true) = 0;
|
2003-07-21 20:24:07 -04:00
|
|
|
|
|
|
|
DECLARE_NO_COPY_CLASS(wxCheckListBoxBase)
|
2001-06-26 16:59:19 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/checklst.h"
|
2005-11-05 17:49:33 -05:00
|
|
|
#elif defined(__WXWINCE__)
|
|
|
|
#include "wx/msw/wince/checklst.h"
|
2001-06-26 16:59:19 -04:00
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/checklst.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/motif/checklst.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK20__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/gtk/checklst.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK__)
|
|
|
|
#include "wx/gtk1/checklst.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 15:17:41 -04:00
|
|
|
#include "wx/osx/checklst.h"
|
2003-03-22 01:18:36 -05:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/cocoa/checklst.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/os2/checklst.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_CHECKLISTBOX
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#endif
|
|
|
|
// _WX_CHECKLST_H_BASE_
|