1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButtonBase class
4 // Author: Vadim Zetlin
7 // Copyright: (c) Vadim Zetlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_BUTTON_H_BASE_
12 #define _WX_BUTTON_H_BASE_
18 #include "wx/anybutton.h"
20 extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr
[];
22 // ----------------------------------------------------------------------------
23 // wxButton: a push button
24 // ----------------------------------------------------------------------------
26 class WXDLLIMPEXP_CORE wxButtonBase
: public wxAnyButton
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
34 void SetAuthNeeded(bool show
= true) { DoSetAuthNeeded(show
); }
35 bool GetAuthNeeded() const { return DoGetAuthNeeded(); }
37 // make this button the default button in its top level window
39 // returns the old default item (possibly NULL)
40 virtual wxWindow
*SetDefault();
42 // returns the default button size for this platform
43 static wxSize
GetDefaultSize();
46 wxDECLARE_NO_COPY_CLASS(wxButtonBase
);
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"
67 #endif // wxUSE_BUTTON
69 #endif // _WX_BUTTON_H_BASE_