1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: wx/qt/statbmp.h 3 // Author: Peter Most, Mariano Reingart 4 // Copyright: (c) 2010 wxWidgets dev team 5 // Licence: wxWindows licence 6 ///////////////////////////////////////////////////////////////////////////// 7 8 #ifndef _WX_QT_STATBMP_H_ 9 #define _WX_QT_STATBMP_H_ 10 11 class QLabel; 12 13 class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase 14 { 15 public: 16 wxStaticBitmap(); 17 wxStaticBitmap( wxWindow *parent, 18 wxWindowID id, 19 const wxBitmap& label, 20 const wxPoint& pos = wxDefaultPosition, 21 const wxSize& size = wxDefaultSize, 22 long style = 0, 23 const wxString& name = wxASCII_STR(wxStaticBitmapNameStr) ); 24 25 bool Create( wxWindow *parent, 26 wxWindowID id, 27 const wxBitmap& label, 28 const wxPoint& pos = wxDefaultPosition, 29 const wxSize& size = wxDefaultSize, 30 long style = 0, 31 const wxString& name = wxASCII_STR(wxStaticBitmapNameStr)); 32 33 virtual void SetIcon(const wxIcon& icon) wxOVERRIDE; 34 virtual void SetBitmap(const wxBitmap& bitmap) wxOVERRIDE; 35 virtual wxBitmap GetBitmap() const wxOVERRIDE; 36 virtual wxIcon GetIcon() const wxOVERRIDE; 37 38 virtual QWidget *GetHandle() const wxOVERRIDE; 39 protected: 40 41 private: 42 QLabel *m_qtLabel; 43 44 wxDECLARE_DYNAMIC_CLASS(wxStaticBitmap); 45 }; 46 47 #endif // _WX_QT_STATBMP_H_ 48