2014-08-23 21:50:11 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/qt/statusbar.h
|
2014-08-28 23:37:46 -04:00
|
|
|
// Author: Peter Most, Javier Torres, Mariano Reingart, Sean D'Epagnier
|
|
|
|
// Copyright: (c) 2010 wxWidgets dev team
|
2014-08-23 21:50:11 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_QT_STATUSBAR_H_
|
|
|
|
#define _WX_QT_STATUSBAR_H_
|
|
|
|
|
|
|
|
#include "wx/statusbr.h"
|
|
|
|
|
2016-08-25 11:56:00 -04:00
|
|
|
class QLabel;
|
|
|
|
class QStatusBar;
|
|
|
|
|
|
|
|
template < class T > class QList;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxStatusBar : public wxStatusBarBase
|
|
|
|
{
|
|
|
|
public:
|
2016-08-25 11:56:00 -04:00
|
|
|
wxStatusBar();
|
2014-08-23 21:50:11 -04:00
|
|
|
wxStatusBar(wxWindow *parent, wxWindowID winid = wxID_ANY,
|
|
|
|
long style = wxSTB_DEFAULT_STYLE,
|
|
|
|
const wxString& name = wxStatusBarNameStr);
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
|
|
|
|
long style = wxSTB_DEFAULT_STYLE,
|
|
|
|
const wxString& name = wxStatusBarNameStr);
|
|
|
|
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual bool GetFieldRect(int i, wxRect& rect) const wxOVERRIDE;
|
|
|
|
virtual void SetMinHeight(int height) wxOVERRIDE;
|
|
|
|
virtual int GetBorderX() const wxOVERRIDE;
|
|
|
|
virtual int GetBorderY() const wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
virtual void Refresh( bool eraseBackground = true,
|
2019-04-05 14:08:53 -04:00
|
|
|
const wxRect *rect = (const wxRect *) NULL ) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2016-08-25 11:56:00 -04:00
|
|
|
QStatusBar *GetQStatusBar() const { return m_qtStatusBar; }
|
2019-04-05 14:08:53 -04:00
|
|
|
QWidget *GetHandle() const wxOVERRIDE;
|
2019-01-30 11:28:08 -05:00
|
|
|
|
2014-08-23 21:50:11 -04:00
|
|
|
protected:
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void DoUpdateStatusText(int number) wxOVERRIDE;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Init();
|
|
|
|
void UpdateFields();
|
|
|
|
|
|
|
|
QStatusBar *m_qtStatusBar;
|
2019-02-27 09:58:35 -05:00
|
|
|
wxVector<QLabel*> m_qtPanes;
|
2014-08-23 21:50:11 -04:00
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxStatusBar);
|
2014-08-23 21:50:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _WX_QT_STATUSBAR_H_
|