1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: button.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-26 10:56:58 +00:00
|
|
|
// Id: $Id$
|
1998-10-24 17:12:05 +00:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
1998-05-20 14:01:55 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKBUTTONH__
|
|
|
|
#define __GTKBUTTONH__
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/list.h"
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxButton;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// global data
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
1999-07-15 18:08:57 +00:00
|
|
|
extern const wxChar *wxButtonNameStr;
|
1998-05-20 14:01:55 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxButton
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxButton: public wxControl
|
|
|
|
{
|
1999-10-11 10:05:36 +00:00
|
|
|
public:
|
1998-11-06 08:50:52 +00:00
|
|
|
wxButton();
|
1998-08-14 10:07:38 +00:00
|
|
|
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, validator, name);
|
|
|
|
}
|
1998-11-06 08:50:52 +00:00
|
|
|
~wxButton();
|
1998-08-14 10:07:38 +00:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr);
|
1999-08-16 20:17:48 +00:00
|
|
|
virtual void SetDefault();
|
1998-05-20 14:01:55 +00:00
|
|
|
void SetLabel( const wxString &label );
|
1999-05-09 22:17:03 +00:00
|
|
|
bool Enable( bool enable );
|
1999-07-04 13:50:13 +00:00
|
|
|
|
|
|
|
static wxSize GetDefaultSize();
|
1998-11-06 08:50:52 +00:00
|
|
|
|
1998-10-29 18:03:18 +00:00
|
|
|
// implementation
|
|
|
|
|
|
|
|
void ApplyWidgetStyle();
|
1999-10-11 10:05:36 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKBUTTONH__
|