]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/button.h | |
3 | // Purpose: wxButtonBase class | |
4 | // Author: Vadim Zetlin | |
5 | // Modified by: | |
6 | // Created: 15.08.00 | |
7 | // Copyright: (c) Vadim Zetlin | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_BUTTON_H_BASE_ | |
12 | #define _WX_BUTTON_H_BASE_ | |
13 | ||
14 | #include "wx/defs.h" | |
15 | ||
16 | #if wxUSE_BUTTON | |
17 | ||
18 | #include "wx/anybutton.h" | |
19 | ||
20 | extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[]; | |
21 | ||
22 | // ---------------------------------------------------------------------------- | |
23 | // wxButton: a push button | |
24 | // ---------------------------------------------------------------------------- | |
25 | ||
26 | class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton | |
27 | { | |
28 | public: | |
29 | wxButtonBase() { } | |
30 | ||
31 | // show the authentication needed symbol on the button: this is currently | |
32 | // only implemented on Windows Vista and newer (on which it shows the UAC | |
33 | // shield symbol) | |
34 | void SetAuthNeeded(bool show = true) { DoSetAuthNeeded(show); } | |
35 | bool GetAuthNeeded() const { return DoGetAuthNeeded(); } | |
36 | ||
37 | // make this button the default button in its top level window | |
38 | // | |
39 | // returns the old default item (possibly NULL) | |
40 | virtual wxWindow *SetDefault(); | |
41 | ||
42 | // returns the default button size for this platform | |
43 | static wxSize GetDefaultSize(); | |
44 | ||
45 | protected: | |
46 | wxDECLARE_NO_COPY_CLASS(wxButtonBase); | |
47 | }; | |
48 | ||
49 | #if defined(__WXUNIVERSAL__) | |
50 | #include "wx/univ/button.h" | |
51 | #elif defined(__WXMSW__) | |
52 | #include "wx/msw/button.h" | |
53 | #elif defined(__WXMOTIF__) | |
54 | #include "wx/motif/button.h" | |
55 | #elif defined(__WXGTK20__) | |
56 | #include "wx/gtk/button.h" | |
57 | #elif defined(__WXGTK__) | |
58 | #include "wx/gtk1/button.h" | |
59 | #elif defined(__WXMAC__) | |
60 | #include "wx/osx/button.h" | |
61 | #elif defined(__WXCOCOA__) | |
62 | #include "wx/cocoa/button.h" | |
63 | #elif defined(__WXPM__) | |
64 | #include "wx/os2/button.h" | |
65 | #endif | |
66 | ||
67 | #endif // wxUSE_BUTTON | |
68 | ||
69 | #endif // _WX_BUTTON_H_BASE_ |