• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/classic/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        checkbox.h
3// Purpose:     wxCheckBox class
4// Author:      Stefan Csomor
5// Modified by:
6// Created:     1998-01-01
7// RCS-ID:      $Id: checkbox.h 35650 2005-09-23 12:56:45Z MR $
8// Copyright:   (c) Stefan Csomor
9// Licence:     wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CHECKBOX_H_
13#define _WX_CHECKBOX_H_
14
15// Checkbox item (single checkbox)
16class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase
17{
18public:
19    wxCheckBox() { }
20    wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
21            const wxPoint& pos = wxDefaultPosition,
22            const wxSize& size = wxDefaultSize, long style = 0,
23            const wxValidator& validator = wxDefaultValidator,
24            const wxString& name = wxCheckBoxNameStr)
25    {
26        Create(parent, id, label, pos, size, style, validator, name);
27    }
28
29    bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
30            const wxPoint& pos = wxDefaultPosition,
31            const wxSize& size = wxDefaultSize, long style = 0,
32            const wxValidator& validator = wxDefaultValidator,
33            const wxString& name = wxCheckBoxNameStr);
34    virtual void SetValue(bool);
35    virtual bool GetValue() const;
36
37    void DoSet3StateValue(wxCheckBoxState val);
38    virtual wxCheckBoxState DoGet3StateValue() const;
39
40    virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown );
41    virtual void Command(wxCommandEvent& event);
42
43    DECLARE_DYNAMIC_CLASS(wxCheckBox)
44};
45
46class WXDLLEXPORT wxBitmap;
47class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
48{
49public:
50    int checkWidth;
51    int checkHeight;
52
53    wxBitmapCheckBox()
54        : checkWidth(-1), checkHeight(-1)
55        { }
56
57    wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
58            const wxPoint& pos = wxDefaultPosition,
59            const wxSize& size = wxDefaultSize, long style = 0,
60            const wxValidator& validator = wxDefaultValidator,
61            const wxString& name = wxCheckBoxNameStr)
62    {
63        Create(parent, id, label, pos, size, style, validator, name);
64    }
65
66    bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
67            const wxPoint& pos = wxDefaultPosition,
68            const wxSize& size = wxDefaultSize, long style = 0,
69            const wxValidator& validator = wxDefaultValidator,
70            const wxString& name = wxCheckBoxNameStr);
71    virtual void SetValue(bool);
72    virtual bool GetValue() const;
73    virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
74    virtual void SetLabel(const wxBitmap *bitmap);
75    virtual void SetLabel( const wxString & WXUNUSED(name) ) {}
76
77    DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
78};
79#endif
80    // _WX_CHECKBOX_H_
81