2001-06-26 16:59:19 -04: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 16:59:19 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_BUTTON_H_BASE_
|
|
|
|
#define _WX_BUTTON_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2003-07-09 17:48:53 -04:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
2004-05-30 11:14:41 -04:00
|
|
|
#if wxUSE_BUTTON
|
|
|
|
|
2011-06-14 09:00:42 -04:00
|
|
|
#include "wx/anybutton.h"
|
2001-06-26 16:59:19 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
|
2001-06-26 16:59:19 -04:00
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxButton: a push button
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2011-06-14 09:00:42 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
|
2001-06-26 16:59:19 -04:00
|
|
|
{
|
|
|
|
public:
|
2004-01-15 08:49:22 -05:00
|
|
|
wxButtonBase() { }
|
2003-07-21 20:24:07 -04:00
|
|
|
|
2010-02-08 14:52:00 -05: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 18:18:35 -04: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 16:59:19 -04:00
|
|
|
|
|
|
|
// returns the default button size for this platform
|
|
|
|
static wxSize GetDefaultSize();
|
2003-07-21 20:24:07 -04:00
|
|
|
|
2009-06-15 00:23:54 -04:00
|
|
|
protected:
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxButtonBase);
|
2001-06-26 16:59:19 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#if defined(__WXUNIVERSAL__)
|
|
|
|
#include "wx/univ/button.h"
|
|
|
|
#elif defined(__WXMSW__)
|
|
|
|
#include "wx/msw/button.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/motif/button.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK20__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/gtk/button.h"
|
2006-01-22 22:27:34 -05:00
|
|
|
#elif defined(__WXGTK__)
|
|
|
|
#include "wx/gtk1/button.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
2008-06-11 15:17:41 -04:00
|
|
|
#include "wx/osx/button.h"
|
2003-03-22 01:18:36 -05:00
|
|
|
#elif defined(__WXCOCOA__)
|
|
|
|
#include "wx/cocoa/button.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
2001-06-26 16:59:19 -04:00
|
|
|
#include "wx/os2/button.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_BUTTON
|
|
|
|
|
2011-06-14 09:00:42 -04:00
|
|
|
#endif // _WX_BUTTON_H_BASE_
|