1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: control.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-26 05:56:58 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
1999-07-26 19:02:32 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKCONTROLH__
|
|
|
|
#define __GTKCONTROLH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/list.h"
|
|
|
|
#include "wx/window.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxControl;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxControl
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
1999-07-27 10:09:25 -04:00
|
|
|
class wxControl : public wxWindow
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-07-26 19:02:32 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxControl)
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1998-07-23 12:05:14 -04:00
|
|
|
public:
|
1999-07-26 19:02:32 -04:00
|
|
|
wxControl();
|
|
|
|
wxControl( wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxPanelNameStr );
|
1998-07-23 12:05:14 -04:00
|
|
|
|
|
|
|
// this function will filter out '&' characters and will put the accelerator
|
1999-07-26 19:02:32 -04:00
|
|
|
// char (the one immediately after '&') into m_chAccel (TODO not yet)
|
|
|
|
virtual void SetLabel( const wxString &label );
|
|
|
|
virtual wxString GetLabel() const;
|
|
|
|
|
1998-07-23 12:05:14 -04:00
|
|
|
protected:
|
1999-07-26 19:02:32 -04:00
|
|
|
wxString m_label;
|
|
|
|
char m_chAccel; // enabled to avoid breaking binary compatibility later on
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKCONTROLH__
|