]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/checkbox.h
Fixed some warnings (don't know why dialoged Makefile is being committed)
[wxWidgets.git] / include / wx / qt / checkbox.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.h
01b2eeec
KB
3// Purpose: wxCheckBox class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_CHECKBOX_H_
13#define _WX_CHECKBOX_H_
7c78e7c7
RR
14
15#ifdef __GNUG__
01b2eeec 16#pragma interface "checkbox.h"
7c78e7c7
RR
17#endif
18
7c78e7c7
RR
19#include "wx/control.h"
20
01b2eeec 21WXDLLEXPORT_DATA(extern const char*) wxCheckBoxNameStr;
7c78e7c7 22
01b2eeec
KB
23// Checkbox item (single checkbox)
24class WXDLLEXPORT wxBitmap;
25class WXDLLEXPORT wxCheckBox: public wxControl
26{
27 DECLARE_DYNAMIC_CLASS(wxCheckBox)
7c78e7c7 28
01b2eeec
KB
29 public:
30 inline wxCheckBox() { }
31 inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize, long style = 0,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxCheckBoxNameStr)
36 {
37 Create(parent, id, label, pos, size, style, validator, name);
38 }
7c78e7c7 39
01b2eeec
KB
40 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize, long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxCheckBoxNameStr);
45 virtual void SetValue(bool);
46 virtual bool GetValue() const ;
47 virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
48 virtual void SetLabel(const wxString& label);
49 virtual void Command(wxCommandEvent& event);
50};
7c78e7c7 51
01b2eeec 52class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
7c78e7c7 53{
01b2eeec 54 DECLARE_DYNAMIC_CLASS(wxBitmapCheckBox)
7c78e7c7 55
01b2eeec
KB
56 public:
57 int checkWidth ;
58 int checkHeight ;
59
60 inline wxBitmapCheckBox() { checkWidth = -1; checkHeight = -1; }
61 inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize, long style = 0,
64 const wxValidator& validator = wxDefaultValidator,
65 const wxString& name = wxCheckBoxNameStr)
66 {
67 Create(parent, id, label, pos, size, style, validator, name);
68 }
7c78e7c7 69
01b2eeec
KB
70 bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
71 const wxPoint& pos = wxDefaultPosition,
72 const wxSize& size = wxDefaultSize, long style = 0,
73 const wxValidator& validator = wxDefaultValidator,
74 const wxString& name = wxCheckBoxNameStr);
75 virtual void SetValue(bool);
76 virtual bool GetValue() const ;
77 virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
78 virtual void SetLabel(const wxBitmap *bitmap);
79};
80#endif
81 // _WX_CHECKBOX_H_