1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButtonBase class
4 // Author: Vadim Zetlin
8 // Copyright: (c) Vadim Zetlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_BUTTON_H_BASE_
13 #define _WX_BUTTON_H_BASE_
19 #include "wx/anybutton.h"
21 extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr
[];
23 // ----------------------------------------------------------------------------
24 // wxButton: a push button
25 // ----------------------------------------------------------------------------
27 class WXDLLIMPEXP_CORE wxButtonBase
: public wxAnyButton
32 // show the authentication needed symbol on the button: this is currently
33 // only implemented on Windows Vista and newer (on which it shows the UAC
35 void SetAuthNeeded(bool show
= true) { DoSetAuthNeeded(show
); }
36 bool GetAuthNeeded() const { return DoGetAuthNeeded(); }
38 // make this button the default button in its top level window
40 // returns the old default item (possibly NULL)
41 virtual wxWindow
*SetDefault();
43 // returns the default button size for this platform
44 static wxSize
GetDefaultSize();
47 wxDECLARE_NO_COPY_CLASS(wxButtonBase
);
50 #if defined(__WXUNIVERSAL__)
51 #include "wx/univ/button.h"
52 #elif defined(__WXMSW__)
53 #include "wx/msw/button.h"
54 #elif defined(__WXMOTIF__)
55 #include "wx/motif/button.h"
56 #elif defined(__WXGTK20__)
57 #include "wx/gtk/button.h"
58 #elif defined(__WXGTK__)
59 #include "wx/gtk1/button.h"
60 #elif defined(__WXMAC__)
61 #include "wx/osx/button.h"
62 #elif defined(__WXCOCOA__)
63 #include "wx/cocoa/button.h"
64 #elif defined(__WXPM__)
65 #include "wx/os2/button.h"
68 #endif // wxUSE_BUTTON
70 #endif // _WX_BUTTON_H_BASE_