mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-12 00:59:11 +01:00
d14efe561b
long become wxWidgets 2.9.2, which in turn is expected to be the last 2.9 release before the 3.0 stable release. Since the full wxWidgets distribution is rather large, I have imported only the parts that we use, on a subdirectory basis: art include/wx/*.* include/wx/aui include/wx/cocoa include/wx/generic include/wx/gtk include/wx/meta include/wx/msw include/wx/osx include/wx/persist include/wx/private include/wx/protocol include/wx/unix src/aui src/common src/generic src/gtk src/msw src/osx src/unix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
63 lines
2.1 KiB
C++
63 lines
2.1 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/gtk/checklst.h
|
|
// Purpose: wxCheckListBox class
|
|
// Author: Robert Roebling
|
|
// Modified by:
|
|
// RCS-ID: $Id: checklst.h 61508 2009-07-23 20:30:22Z VZ $
|
|
// Copyright: (c) 1998 Robert Roebling
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __GTKCHECKLISTH__
|
|
#define __GTKCHECKLISTH__
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// macros
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// there is no "right" choice of the checkbox indicators, so allow the user to
|
|
// define them himself if he wants
|
|
#ifndef wxCHECKLBOX_CHECKED
|
|
#define wxCHECKLBOX_CHECKED wxT('x')
|
|
#define wxCHECKLBOX_UNCHECKED wxT(' ')
|
|
|
|
#define wxCHECKLBOX_STRING wxT("[ ] ")
|
|
#endif
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// wxCheckListBox
|
|
// ----------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_CORE wxCheckListBox : public wxListBox
|
|
{
|
|
public:
|
|
wxCheckListBox();
|
|
wxCheckListBox(wxWindow *parent, wxWindowID id,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
int nStrings = 0,
|
|
const wxString *choices = (const wxString *)NULL,
|
|
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);
|
|
|
|
bool IsChecked(unsigned int index) const;
|
|
void Check(unsigned int index, bool check = true);
|
|
|
|
int GetItemHeight() const;
|
|
|
|
void DoCreateCheckList();
|
|
|
|
private:
|
|
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
|
};
|
|
|
|
#endif //__GTKCHECKLISTH__
|