2014-08-24 01:50:11 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/stattext.h
|
|
|
|
// Author: Peter Most, Mariano Reingart
|
|
|
|
// Copyright: (c) 2010 wxWidgets dev team
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_STATTEXT_H_
|
|
|
|
#define _WX_QT_STATTEXT_H_
|
|
|
|
|
2016-08-25 15:56:00 +00:00
|
|
|
class QLabel;
|
2014-08-24 01:50:11 +00:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxStaticText();
|
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
2018-11-28 10:07:57 +00:00
|
|
|
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
2014-08-24 01:50:11 +00:00
|
|
|
|
2019-04-05 18:08:53 +00:00
|
|
|
virtual QWidget *GetHandle() const wxOVERRIDE;
|
2016-08-25 15:56:00 +00:00
|
|
|
|
2019-07-07 13:54:14 +00:00
|
|
|
protected:
|
|
|
|
virtual wxString WXGetVisibleLabel() const wxOVERRIDE;
|
|
|
|
virtual void WXSetVisibleLabel(const wxString& str) wxOVERRIDE;
|
|
|
|
|
2014-08-24 01:50:11 +00:00
|
|
|
private:
|
|
|
|
QLabel *m_qtLabel;
|
|
|
|
|
|
|
|
wxDECLARE_DYNAMIC_CLASS( wxStaticText );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_QT_STATTEXT_H_
|