]> git.saurik.com Git - wxWidgets.git/blob - src/qt/control.cpp
Added stubs .cpp files.
[wxWidgets.git] / src / qt / control.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: control.cpp
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 #ifdef __GNUG__
12 #pragma implementation "control.h"
13 #endif
14
15 #include "wx/control.h"
16
17 //-----------------------------------------------------------------------------
18 // wxControl
19 //-----------------------------------------------------------------------------
20
21 IMPLEMENT_DYNAMIC_CLASS(wxControl,wxWindow)
22
23 wxControl::wxControl(void)
24 {
25 };
26
27 wxControl::wxControl( wxWindow *parent, wxWindowID id,
28 const wxPoint &pos, const wxSize &size,
29 long style, const wxString &name ) :
30 wxWindow( parent, id, pos, size, style, name )
31 {
32 };
33
34 void wxControl::Command( wxCommandEvent &WXUNUSED(event) )
35 {
36 };
37
38 void wxControl::SetLabel( const wxString &label )
39 {
40 for ( const char *pc = label; *pc != '\0'; pc++ ) {
41 if ( *pc == '&' ) {
42 pc++; // skip it
43 #if 0 // it would be unused anyhow for now - kbd interface not done yet
44 if ( *pc != '&' )
45 m_chAccel = *pc;
46 #endif
47 }
48
49 m_label << *pc;
50 }
51 };
52
53 wxString wxControl::GetLabel(void) const
54 {
55 return m_label;
56 };
57
58
59