2014-08-24 01:50:11 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/statbmp.h
|
2014-08-29 03:37:46 +00:00
|
|
|
// Author: Peter Most, Mariano Reingart
|
|
|
|
// Copyright: (c) 2010 wxWidgets dev team
|
2014-08-24 01:50:11 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_STATBMP_H_
|
|
|
|
#define _WX_QT_STATBMP_H_
|
|
|
|
|
2016-08-25 15:56:00 +00:00
|
|
|
class QLabel;
|
2014-08-24 01:50:11 +00:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxStaticBitmap();
|
|
|
|
wxStaticBitmap( wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxBitmap& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBitmapNameStr );
|
|
|
|
|
|
|
|
bool Create( wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxBitmap& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBitmapNameStr);
|
|
|
|
|
|
|
|
virtual void SetIcon(const wxIcon& icon);
|
|
|
|
virtual void SetBitmap(const wxBitmap& bitmap);
|
|
|
|
virtual wxBitmap GetBitmap() const;
|
|
|
|
virtual wxIcon GetIcon() const;
|
|
|
|
|
2016-08-25 15:56:00 +00:00
|
|
|
virtual QWidget *GetHandle() const;
|
2014-08-24 01:50:11 +00:00
|
|
|
protected:
|
|
|
|
|
|
|
|
private:
|
|
|
|
QLabel *m_qtLabel;
|
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxStaticBitmap);
|
2014-08-24 01:50:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_STATBMP_H_
|