]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: checkbox.h | |
3 | // Purpose: wxCheckBox class | |
a31a5f85 | 4 | // Author: Stefan Csomor |
0dbd6262 | 5 | // Modified by: |
a31a5f85 | 6 | // Created: 1998-01-01 |
0dbd6262 | 7 | // RCS-ID: $Id$ |
a31a5f85 | 8 | // Copyright: (c) Stefan Csomor |
6e8e9b66 | 9 | // Licence: wxWindows licence |
0dbd6262 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_CHECKBOX_H_ | |
13 | #define _WX_CHECKBOX_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0dbd6262 SC |
16 | #pragma interface "checkbox.h" |
17 | #endif | |
18 | ||
0dbd6262 | 19 | // Checkbox item (single checkbox) |
6e8e9b66 | 20 | class WXDLLEXPORT wxCheckBox : public wxCheckBoxBase |
0dbd6262 | 21 | { |
6e8e9b66 VZ |
22 | public: |
23 | wxCheckBox() { } | |
24 | wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, | |
25 | const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, long style = 0, | |
27 | const wxValidator& validator = wxDefaultValidator, | |
28 | const wxString& name = wxCheckBoxNameStr) | |
29 | { | |
30 | Create(parent, id, label, pos, size, style, validator, name); | |
31 | } | |
0dbd6262 | 32 | |
6e8e9b66 VZ |
33 | bool Create(wxWindow *parent, wxWindowID id, const wxString& label, |
34 | const wxPoint& pos = wxDefaultPosition, | |
35 | const wxSize& size = wxDefaultSize, long style = 0, | |
36 | const wxValidator& validator = wxDefaultValidator, | |
37 | const wxString& name = wxCheckBoxNameStr); | |
38 | virtual void SetValue(bool); | |
39 | virtual bool GetValue() const; | |
69b85ca4 | 40 | virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ); |
6e8e9b66 | 41 | virtual void Command(wxCommandEvent& event); |
0dbd6262 | 42 | |
6e8e9b66 | 43 | DECLARE_DYNAMIC_CLASS(wxCheckBox) |
0dbd6262 SC |
44 | }; |
45 | ||
6e8e9b66 | 46 | class WXDLLEXPORT wxBitmap; |
0dbd6262 SC |
47 | class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox |
48 | { | |
7ee31b00 | 49 | public: |
6e8e9b66 VZ |
50 | int checkWidth; |
51 | int checkHeight; | |
0dbd6262 | 52 | |
7ee31b00 GD |
53 | wxBitmapCheckBox() |
54 | : checkWidth(-1), checkHeight(-1) | |
55 | { } | |
0dbd6262 | 56 | |
6e8e9b66 VZ |
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) | |
0dbd6262 SC |
78 | }; |
79 | #endif | |
80 | // _WX_CHECKBOX_H_ |