]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/control.h
GetLabel() added
[wxWidgets.git] / include / wx / gtk1 / control.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: control.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKCONTROLH__
13 #define __GTKCONTROLH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/list.h"
22 #include "wx/window.h"
23
24 //-----------------------------------------------------------------------------
25 // classes
26 //-----------------------------------------------------------------------------
27
28 class wxControl;
29
30 //-----------------------------------------------------------------------------
31 // wxControl
32 //-----------------------------------------------------------------------------
33
34 class wxControl: public wxWindow
35 {
36 DECLARE_DYNAMIC_CLASS(wxControl)
37
38 public:
39 // construction
40 wxControl();
41 wxControl( wxWindow *parent, wxWindowID id,
42 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
43 long style = 0, const wxString &name = wxPanelNameStr );
44
45 // overridables
46 virtual void Command( wxCommandEvent &event );
47
48 // accessors
49 // this function will filter out '&' characters and will put the accelerator
50 // char (the one immediately after '&') into m_chAccel (@@ not yet)
51 virtual void SetLabel( const wxString &label );
52 virtual wxString GetLabel() const;
53
54 protected:
55 wxString m_label;
56 // when we implement keyboard interface we will make use of this, but not yet
57 //char m_chAccel;
58 };
59
60 #endif // __GTKCONTROLH__