Merge wxQT branch into the trunk.
This merges in the latest sources from GSoC 2014 wxQt project with just a few minor corrections, mostly undoing wrong changes to common files in that branch (results of a previous bad merge?) and getting rid of whitespace-only changes. Also remove debug logging from wxGrid. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
51
include/wx/qt/statusbar.h
Normal file
51
include/wx/qt/statusbar.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/qt/statusbar.h
|
||||
// Author: Peter Most, Javier Torres
|
||||
// Copyright: (c) Peter Most, Javier Torres
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_QT_STATUSBAR_H_
|
||||
#define _WX_QT_STATUSBAR_H_
|
||||
|
||||
#include "wx/statusbr.h"
|
||||
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QStatusBar>
|
||||
|
||||
class WXDLLIMPEXP_CORE wxStatusBar : public wxStatusBarBase
|
||||
{
|
||||
public:
|
||||
wxStatusBar() {}
|
||||
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);
|
||||
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
||||
virtual void SetMinHeight(int height);
|
||||
virtual int GetBorderX() const;
|
||||
virtual int GetBorderY() const;
|
||||
virtual void Refresh( bool eraseBackground = true,
|
||||
const wxRect *rect = (const wxRect *) NULL );
|
||||
|
||||
virtual QStatusBar *GetHandle() const;
|
||||
|
||||
protected:
|
||||
virtual void DoUpdateStatusText(int number);
|
||||
|
||||
private:
|
||||
void Init();
|
||||
void UpdateFields();
|
||||
|
||||
QStatusBar *m_qtStatusBar;
|
||||
QList< QLabel* > m_qtPanes;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS( wxStatusBar )
|
||||
};
|
||||
|
||||
|
||||
#endif // _WX_QT_STATUSBAR_H_
|
Reference in New Issue
Block a user