2014-08-24 01:50:11 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/anybutton.h
|
|
|
|
// Purpose: wxQT wxAnyButton class declaration
|
|
|
|
// Author: Mariano Reingart
|
|
|
|
// Copyright: (c) 2014 wxWidgets dev team
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_ANYBUTTON_H_
|
|
|
|
#define _WX_QT_ANYBUTTON_H_
|
|
|
|
|
2016-08-25 15:56:00 +00:00
|
|
|
class QPushButton;
|
2014-08-24 01:50:11 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxAnyButton
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxAnyButton()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// implementation
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
virtual void SetLabel( const wxString &label );
|
|
|
|
virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
|
|
|
|
|
2016-08-25 15:56:00 +00:00
|
|
|
virtual QWidget *GetHandle() const;
|
2014-08-24 01:50:11 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
QPushButton *m_qtPushButton;
|
|
|
|
|
|
|
|
void QtCreate(wxWindow *parent);
|
|
|
|
void QtSetBitmap( const wxBitmap &bitmap );
|
|
|
|
|
|
|
|
private:
|
|
|
|
typedef wxAnyButtonBase base_type;
|
|
|
|
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxAnyButton);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _WX_QT_ANYBUTTON_H_
|