2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/checklst.h
|
|
|
|
// Purpose: wxCheckListBox class
|
|
|
|
// Author: David Elliott
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003/03/16
|
2006-03-23 17:05:23 -05:00
|
|
|
// RCS-ID: $Id$
|
2003-03-21 14:51:47 -05:00
|
|
|
// Copyright: (c) 2003 David Elliott
|
2006-03-23 17:05:23 -05:00
|
|
|
// Licence: wxWindows licence
|
2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_COCOA_CHECKLST_H__
|
|
|
|
#define __WX_COCOA_CHECKLST_H__
|
|
|
|
|
|
|
|
//#include "wx/cocoa/NSTableView.h"
|
|
|
|
|
|
|
|
// ========================================================================
|
|
|
|
// wxCheckListBox
|
|
|
|
// ========================================================================
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxCheckListBox: public wxCheckListBoxBase //, protected wxCocoaNSTableView
|
2003-03-21 14:51:47 -05:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// initialization
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
public:
|
|
|
|
wxCheckListBox() { }
|
|
|
|
wxCheckListBox(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
int n = 0, const wxString choices[] = NULL,
|
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, winid, pos, size, n, choices, style, validator, name);
|
|
|
|
}
|
2004-01-31 13:21:45 -05:00
|
|
|
wxCheckListBox(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, winid, pos, size, choices, style, validator, name);
|
|
|
|
}
|
2003-03-21 14:51:47 -05:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
int n = 0, const wxString choices[] = NULL,
|
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr);
|
2004-01-31 13:21:45 -05:00
|
|
|
bool Create(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
const wxArrayString& choices,
|
|
|
|
long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxListBoxNameStr);
|
2003-03-21 14:51:47 -05:00
|
|
|
virtual ~wxCheckListBox();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// Cocoa callbacks
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
protected:
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// Implementation
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
public:
|
|
|
|
// check list box specific methods
|
2006-03-23 17:05:23 -05:00
|
|
|
virtual bool IsChecked(unsigned int item) const;
|
|
|
|
virtual void Check(unsigned int item, bool check = true);
|
2003-03-21 14:51:47 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_COCOA_CHECKLST_H__
|