2001-06-26 20:59:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/button.h
|
|
|
|
// Purpose: wxButtonBase class
|
|
|
|
// Author: Vadim Zetlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 15.08.00
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Vadim Zetlin
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 20:59:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-15 00:23:28 +00:00
|
|
|
#ifndef _WX_BUTTON_H_BASE_
|
|
|
|
#define _WX_BUTTON_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2003-07-09 21:48:53 +00:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2004-05-30 15:14:41 +00:00
|
|
|
#if wxUSE_BUTTON
|
|
|
|
|
2011-06-14 13:00:42 +00:00
|
|
|
#include "wx/anybutton.h"
|
2001-06-26 20:59:19 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
|
2001-06-26 20:59:19 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxButton: a push button
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2011-06-14 13:00:42 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
|
2001-06-26 20:59:19 +00:00
|
|
|
{
|
|
|
|
public:
|
2004-01-15 13:49:22 +00:00
|
|
|
wxButtonBase() { }
|
2003-07-22 00:24:07 +00:00
|
|
|
|
2010-02-08 19:52:00 +00:00
|
|
|
// show the authentication needed symbol on the button: this is currently
|
|
|
|
// only implemented on Windows Vista and newer (on which it shows the UAC
|
|
|
|
// shield symbol)
|
|
|
|
void SetAuthNeeded(bool show = true) { DoSetAuthNeeded(show); }
|
|
|
|
bool GetAuthNeeded() const { return DoGetAuthNeeded(); }
|
|
|
|
|
2007-04-08 22:18:35 +00:00
|
|
|
// make this button the default button in its top level window
|
|
|
|
//
|
|
|
|
// returns the old default item (possibly NULL)
|
|
|
|
virtual wxWindow *SetDefault();
|
2001-06-26 20:59:19 +00:00
|
|
|
|
|
|
|
// returns the default button size for this platform
|
|
|
|
static wxSize GetDefaultSize();
|
2003-07-22 00:24:07 +00:00
|
|
|
|
2009-06-15 04:23:54 +00:00
|
|
|
protected:
|
2009-02-08 11:45:59 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxButtonBase);
|
2001-06-26 20:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/button.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/button.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/motif/button.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK20__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/gtk/button.h"
|
2006-01-23 03:27:34 +00:00
|
|
|
#elif defined(__WXGTK__)
|
|
|
|
#include "wx/gtk1/button.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 19:17:41 +00:00
|
|
|
#include "wx/osx/button.h"
|
2003-03-22 06:18:36 +00:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/cocoa/button.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 20:59:19 +00:00
|
|
|
#include "wx/os2/button.h"
|
2005-01-24 07:38:52 +00:00
|
|
|
#elif defined(__WXPALMOS__)
|
|
|
|
#include "wx/palmos/button.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif // wxUSE_BUTTON
|
|
|
|
|
2011-06-14 13:00:42 +00:00
|
|
|
#endif // _WX_BUTTON_H_BASE_
|