35bc8f449b
There are no longer any qt headers included in wx/qt headers. Applications do not need to link with qt librarys anymore, only wxqt libraries. wxWindow and derived widgets only contain one pointer to their qtwidget, no longer carrying both base and derived pointers in parallel as was before.
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// 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_
|
|
|
|
class QPushButton;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// wxAnyButton
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_CORE wxAnyButton : public wxAnyButtonBase
|
|
{
|
|
public:
|
|
wxAnyButton()
|
|
{
|
|
}
|
|
|
|
// implementation
|
|
// --------------
|
|
|
|
virtual void SetLabel( const wxString &label );
|
|
virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
|
|
|
|
virtual QWidget *GetHandle() const;
|
|
|
|
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_
|