]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/tglbtn.h | |
3 | // Purpose: This dummy header includes the proper header file for the | |
4 | // system we're compiling under. | |
5 | // Author: John Norris, minor changes by Axel Schlueter | |
6 | // Modified by: | |
7 | // Created: 08.02.01 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2000 Johnny C. Norris II | |
10 | // License: wxWindows Licence | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #ifndef _WX_TOGGLEBUTTON_H_BASE_ | |
14 | #define _WX_TOGGLEBUTTON_H_BASE_ | |
15 | ||
16 | #include "wx/defs.h" | |
17 | ||
18 | #if wxUSE_TOGGLEBTN | |
19 | ||
20 | #include "wx/event.h" | |
21 | #include "wx/control.h" // base class | |
22 | ||
23 | BEGIN_DECLARE_EVENT_TYPES() | |
24 | DECLARE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 19) | |
25 | END_DECLARE_EVENT_TYPES() | |
26 | ||
27 | #define EVT_TOGGLEBUTTON(id, fn) \ | |
28 | wx__DECLARE_EVT1(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, id, wxCommandEventHandler(fn)) | |
29 | ||
30 | #if defined(__WXMSW__) | |
31 | #include "wx/msw/tglbtn.h" | |
32 | #elif defined(__WXGTK__) | |
33 | #include "wx/gtk/tglbtn.h" | |
34 | # elif defined(__WXMOTIF__) | |
35 | #include "wx/motif/tglbtn.h" | |
36 | #elif defined(__WXMAC__) | |
37 | #include "wx/mac/tglbtn.h" | |
38 | #elif defined(__WXPALMOS__) | |
39 | #include "wx/palmos/tglbtn.h" | |
40 | #elif defined(__WXPM__) | |
41 | #include "wx/os2/tglbtn.h" | |
42 | #endif | |
43 | ||
44 | #endif // wxUSE_TOGGLEBTN | |
45 | ||
46 | #endif // _WX_TOGGLEBUTTON_H_BASE_ | |
47 |