]> git.saurik.com Git - wxWidgets.git/blame - src/qt/checkbox.cpp
fixed GetSelection() inversion bug
[wxWidgets.git] / src / qt / checkbox.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.cpp
01b2eeec
KB
3// Purpose: wxCheckBox
4// Author: AUTHOR
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
7c78e7c7
RR
12#ifdef __GNUG__
13#pragma implementation "checkbox.h"
14#endif
15
16#include "wx/checkbox.h"
17
01b2eeec
KB
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
20IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
21#endif
22
23// Single check box item
24bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label,
25 const wxPoint& pos,
26 const wxSize& size, long style,
27 const wxValidator& validator,
28 const wxString& name)
29{
30 SetName(name);
31 SetValidator(validator);
32 m_windowStyle = style;
33
34 if (parent) parent->AddChild(this);
35
36 if ( id == -1 )
37 m_windowId = NewControlId();
38 else
39 m_windowId = id;
40
41 // TODO: create checkbox
42
43 return FALSE;
44}
45
46void wxCheckBox::SetLabel(const wxString& label)
47{
48 // TODO
49}
50
51void wxCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags)
52{
53 // TODO
54}
7c78e7c7 55
01b2eeec
KB
56void wxCheckBox::SetValue(bool val)
57{
58 // TODO
59}
7c78e7c7 60
01b2eeec 61bool wxCheckBox::GetValue() const
7c78e7c7 62{
01b2eeec
KB
63 // TODO
64 return FALSE;
65}
7c78e7c7 66
01b2eeec 67void wxCheckBox::Command (wxCommandEvent & event)
7c78e7c7 68{
01b2eeec
KB
69 SetValue ((event.GetInt() != 0));
70 ProcessCommand (event);
71}
7c78e7c7 72
01b2eeec
KB
73// Bitmap checkbox
74bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id, const wxBitmap *label,
75 const wxPoint& pos,
76 const wxSize& size, long style,
77 const wxValidator& validator,
78 const wxString& name)
7c78e7c7 79{
01b2eeec
KB
80 SetName(name);
81 SetValidator(validator);
82 m_windowStyle = style;
83
84 if (parent) parent->AddChild(this);
85
86 if ( id == -1 )
87 m_windowId = NewControlId();
88 else
89 m_windowId = id;
90
91 // TODO: Create the bitmap checkbox
92
93 return FALSE;
94}
7c78e7c7 95
01b2eeec 96void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap)
7c78e7c7 97{
01b2eeec
KB
98 // TODO
99}
7c78e7c7 100
01b2eeec 101void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags)
7c78e7c7 102{
01b2eeec
KB
103 // TODO
104}
105
106void wxBitmapCheckBox::SetValue(bool val)
107{
108 // TODO
109}
110
111bool wxBitmapCheckBox::GetValue() const
112{
113 // TODOD
114 return FALSE;
115}
116
7c78e7c7 117