]> git.saurik.com Git - wxWidgets.git/blob - src/common/checkboxcmn.cpp
Remove temporary files created by wxFileName unit test case.
[wxWidgets.git] / src / common / checkboxcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/checkboxcmn.cpp
3 // Purpose: wxCheckBox common code
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_CHECKBOX
28
29 #include "wx/checkbox.h"
30
31 extern WXDLLEXPORT_DATA(const char) wxCheckBoxNameStr[] = "check";
32
33 // ----------------------------------------------------------------------------
34 // XTI
35 // ----------------------------------------------------------------------------
36
37 wxDEFINE_FLAGS( wxCheckBoxStyle )
38 wxBEGIN_FLAGS( wxCheckBoxStyle )
39 // new style border flags, we put them first to
40 // use them for streaming out
41 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
42 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
43 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
44 wxFLAGS_MEMBER(wxBORDER_RAISED)
45 wxFLAGS_MEMBER(wxBORDER_STATIC)
46 wxFLAGS_MEMBER(wxBORDER_NONE)
47
48 // old style border flags
49 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
50 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
51 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
52 wxFLAGS_MEMBER(wxRAISED_BORDER)
53 wxFLAGS_MEMBER(wxSTATIC_BORDER)
54 wxFLAGS_MEMBER(wxNO_BORDER)
55
56 // standard window styles
57 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
58 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
59 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
60 wxFLAGS_MEMBER(wxWANTS_CHARS)
61 wxFLAGS_MEMBER(wxNO_FULL_REPAINT_ON_RESIZE)
62 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
63 wxFLAGS_MEMBER(wxVSCROLL)
64 wxFLAGS_MEMBER(wxHSCROLL)
65
66 wxEND_FLAGS( wxCheckBoxStyle )
67
68 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxCheckBox, wxControl, "wx/checkbox.h")
69
70 wxBEGIN_PROPERTIES_TABLE(wxCheckBox)
71 wxEVENT_PROPERTY( Click, wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEvent )
72
73 wxPROPERTY( Font, wxFont, SetFont, GetFont, wxEMPTY_PARAMETER_VALUE, \
74 0 /*flags*/, wxT("Helpstring"), wxT("group"))
75 wxPROPERTY( Label,wxString, SetLabel, GetLabel, wxString(), \
76 0 /*flags*/, wxT("Helpstring"), wxT("group"))
77 wxPROPERTY( Value,bool, SetValue, GetValue, wxEMPTY_PARAMETER_VALUE, \
78 0 /*flags*/, wxT("Helpstring"), wxT("group"))
79
80 wxPROPERTY_FLAGS( WindowStyle, wxCheckBoxStyle, long, SetWindowStyleFlag, \
81 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \
82 wxT("Helpstring"), wxT("group")) // style
83 wxEND_PROPERTIES_TABLE()
84
85 wxEMPTY_HANDLERS_TABLE(wxCheckBox)
86
87 wxCONSTRUCTOR_6( wxCheckBox, wxWindow*, Parent, wxWindowID, Id, \
88 wxString, Label, wxPoint, Position, wxSize, Size, long, WindowStyle )
89
90
91 #endif // wxUSE_CHECKBOX