]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/button.h
Updated Italian translations
[wxWidgets.git] / include / wx / gtk / button.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: button.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKBUTTONH__
11 #define __GTKBUTTONH__
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "wx/defs.h"
18 #include "wx/object.h"
19 #include "wx/list.h"
20 #include "wx/control.h"
21
22 //-----------------------------------------------------------------------------
23 // classes
24 //-----------------------------------------------------------------------------
25
26 class wxButton;
27
28 //-----------------------------------------------------------------------------
29 // global data
30 //-----------------------------------------------------------------------------
31
32 extern const wxChar *wxButtonNameStr;
33
34 //-----------------------------------------------------------------------------
35 // wxButton
36 //-----------------------------------------------------------------------------
37
38 class wxButton: public wxControl
39 {
40 public:
41 wxButton();
42 inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize, long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxButtonNameStr)
47 {
48 Create(parent, id, label, pos, size, style, validator, name);
49 }
50 ~wxButton();
51 bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
52 const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize, long style = 0,
54 const wxValidator& validator = wxDefaultValidator,
55 const wxString& name = wxButtonNameStr);
56 virtual void SetDefault();
57 void SetLabel( const wxString &label );
58 bool Enable( bool enable );
59
60 static wxSize GetDefaultSize();
61
62 // implementation
63 // --------------
64
65 void ApplyWidgetStyle();
66
67 protected:
68 virtual wxSize DoGetBestSize() const;
69
70 private:
71 DECLARE_DYNAMIC_CLASS(wxButton)
72 };
73
74 #endif // __GTKBUTTONH__