Merge branch 'macos-native-statusbar' of https://github.com/vslavik/wxWidgets
Improve macOS status bar appearance and simplify code. See https://github.com/wxWidgets/wxWidgets/pull/2160
This commit is contained in:
@@ -329,6 +329,8 @@ public :
|
||||
|
||||
virtual void SetRepresentedFilename(const wxString& filename) wxOVERRIDE;
|
||||
|
||||
virtual void SetBottomBorderThickness(int thickness) wxOVERRIDE;
|
||||
|
||||
wxNonOwnedWindow* GetWXPeer() { return m_wxPeer; }
|
||||
|
||||
CGWindowLevel GetWindowLevel() const wxOVERRIDE { return m_macWindowLevel; }
|
||||
|
@@ -984,6 +984,8 @@ public :
|
||||
|
||||
virtual void SetRepresentedFilename(const wxString& WXUNUSED(filename)) { }
|
||||
|
||||
virtual void SetBottomBorderThickness(int WXUNUSED(thickness)) { }
|
||||
|
||||
#if wxOSX_USE_IPHONE
|
||||
virtual CGFloat GetWindowLevel() const { return 0.0; }
|
||||
#else
|
||||
|
@@ -71,6 +71,8 @@ public:
|
||||
long style = wxSTB_DEFAULT_STYLE,
|
||||
wxWindowID id = 0,
|
||||
const wxString& name = wxASCII_STR(wxStatusLineNameStr)) wxOVERRIDE;
|
||||
|
||||
virtual void SetStatusBar(wxStatusBar *statbar) wxOVERRIDE;
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
||||
void PositionBars();
|
||||
|
@@ -31,16 +31,12 @@ public:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
protected:
|
||||
virtual void DrawFieldText(wxDC& dc, const wxRect& rc, int i, int textHeight) wxOVERRIDE;
|
||||
virtual void DrawField(wxDC& dc, int i, int textHeight) wxOVERRIDE;
|
||||
virtual void DoUpdateStatusText(int number = 0) wxOVERRIDE;
|
||||
virtual int GetEffectiveFieldStyle(int WXUNUSED(i)) const wxOVERRIDE { return wxSB_NORMAL; }
|
||||
|
||||
virtual void InitColours() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxColour m_textActive, m_textInactive,
|
||||
m_bgActiveFrom, m_bgActiveTo,
|
||||
m_borderActive, m_borderInactive;
|
||||
wxColour m_textActive, m_textInactive;
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxStatusBarMac);
|
||||
wxDECLARE_EVENT_TABLE();
|
||||
|
Reference in New Issue
Block a user