]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/radiobut.h | |
3 | // Purpose: wxRadioButton declaration | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 07.09.00 | |
7 | // Copyright: (c) Vadim Zeitlin | |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_RADIOBUT_H_BASE_ | |
12 | #define _WX_RADIOBUT_H_BASE_ | |
13 | ||
14 | #include "wx/defs.h" | |
15 | ||
16 | #if wxUSE_RADIOBTN | |
17 | ||
18 | /* | |
19 | There is no wxRadioButtonBase class as wxRadioButton interface is the same | |
20 | as wxCheckBox(Base), but under some platforms wxRadioButton really | |
21 | derives from wxCheckBox and on the others it doesn't. | |
22 | ||
23 | The pseudo-declaration of wxRadioButtonBase would look like this: | |
24 | ||
25 | class wxRadioButtonBase : public ... | |
26 | { | |
27 | public: | |
28 | virtual void SetValue(bool value); | |
29 | virtual bool GetValue() const; | |
30 | }; | |
31 | */ | |
32 | ||
33 | #include "wx/control.h" | |
34 | ||
35 | extern WXDLLIMPEXP_DATA_CORE(const char) wxRadioButtonNameStr[]; | |
36 | ||
37 | #if defined(__WXUNIVERSAL__) | |
38 | #include "wx/univ/radiobut.h" | |
39 | #elif defined(__WXMSW__) | |
40 | #include "wx/msw/radiobut.h" | |
41 | #elif defined(__WXMOTIF__) | |
42 | #include "wx/motif/radiobut.h" | |
43 | #elif defined(__WXGTK20__) | |
44 | #include "wx/gtk/radiobut.h" | |
45 | #elif defined(__WXGTK__) | |
46 | #include "wx/gtk1/radiobut.h" | |
47 | #elif defined(__WXMAC__) | |
48 | #include "wx/osx/radiobut.h" | |
49 | #elif defined(__WXCOCOA__) | |
50 | #include "wx/cocoa/radiobut.h" | |
51 | #elif defined(__WXPM__) | |
52 | #include "wx/os2/radiobut.h" | |
53 | #endif | |
54 | ||
55 | #endif // wxUSE_RADIOBTN | |
56 | ||
57 | #endif | |
58 | // _WX_RADIOBUT_H_BASE_ |