]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/control.h
f18f219d8c691229e212d30683432ae21183302e
[wxWidgets.git] / include / wx / gtk1 / control.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: control.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKCONTROLH__
11 #define __GTKCONTROLH__
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/window.h"
21
22 //-----------------------------------------------------------------------------
23 // classes
24 //-----------------------------------------------------------------------------
25
26 class wxControl;
27
28 //-----------------------------------------------------------------------------
29 // wxControl
30 //-----------------------------------------------------------------------------
31
32 class wxControl : public wxWindow
33 {
34 DECLARE_DYNAMIC_CLASS(wxControl)
35
36 public:
37 wxControl();
38 wxControl( wxWindow *parent,
39 wxWindowID id,
40 const wxPoint &pos = wxDefaultPosition,
41 const wxSize &size = wxDefaultSize,
42 long style = 0,
43 const wxString &name = wxPanelNameStr );
44
45 // this function will filter out '&' characters and will put the accelerator
46 // char (the one immediately after '&') into m_chAccel (TODO not yet)
47 virtual void SetLabel( const wxString &label );
48 virtual wxString GetLabel() const;
49
50 protected:
51 wxString m_label;
52 char m_chAccel; // enabled to avoid breaking binary compatibility later on
53 };
54
55 #endif // __GTKCONTROLH__