]> git.saurik.com Git - wxWidgets.git/blame - include/wx/button.h
Revert "Make wxMSW stack walking methods work with Unicode identifiers."
[wxWidgets.git] / include / wx / button.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/button.h
3// Purpose: wxButtonBase class
4// Author: Vadim Zetlin
5// Modified by:
6// Created: 15.08.00
1e6feb95 7// Copyright: (c) Vadim Zetlin
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9/////////////////////////////////////////////////////////////////////////////
10
34138703
JS
11#ifndef _WX_BUTTON_H_BASE_
12#define _WX_BUTTON_H_BASE_
c801d85f 13
997176a3
VZ
14#include "wx/defs.h"
15
0b4f47a3
DS
16#if wxUSE_BUTTON
17
b4354db1 18#include "wx/anybutton.h"
1e6feb95 19
53a2db12 20extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
1e6feb95
VZ
21
22// ----------------------------------------------------------------------------
23// wxButton: a push button
24// ----------------------------------------------------------------------------
25
b4354db1 26class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
1e6feb95
VZ
27{
28public:
6463b9f5 29 wxButtonBase() { }
fc7a2a60 30
f2d7fdf7
VZ
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
94aff5ff
VZ
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();
1e6feb95
VZ
41
42 // returns the default button size for this platform
43 static wxSize GetDefaultSize();
fc7a2a60 44
233f10bf 45protected:
c0c133e1 46 wxDECLARE_NO_COPY_CLASS(wxButtonBase);
1e6feb95
VZ
47};
48
49#if defined(__WXUNIVERSAL__)
50 #include "wx/univ/button.h"
51#elif defined(__WXMSW__)
52 #include "wx/msw/button.h"
2049ba38 53#elif defined(__WXMOTIF__)
1e6feb95 54 #include "wx/motif/button.h"
1be7a35c 55#elif defined(__WXGTK20__)
1e6feb95 56 #include "wx/gtk/button.h"
1be7a35c
MR
57#elif defined(__WXGTK__)
58 #include "wx/gtk1/button.h"
34138703 59#elif defined(__WXMAC__)
ef0e9220 60 #include "wx/osx/button.h"
e64df9bc
DE
61#elif defined(__WXCOCOA__)
62 #include "wx/cocoa/button.h"
1777b9bb 63#elif defined(__WXPM__)
1e6feb95 64 #include "wx/os2/button.h"
c801d85f
KB
65#endif
66
1e6feb95
VZ
67#endif // wxUSE_BUTTON
68
b4354db1 69#endif // _WX_BUTTON_H_BASE_